:root {
  --ink: #0b1220;
  --ink-2: #111b2b;
  --text: #253044;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --line: #e2e8f0;
  --red: #c92825;
  --red-dark: #9d201e;
  --blue: #3f7894;
  --blue-dark: #285b75;
  --green: #25d366;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 100px 0; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -70px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  width: 190px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.main-nav { display: flex; align-items: center; gap: 22px; color: #354156; font-size: .9rem; font-weight: 750; }
.main-nav > a:not(.nav-cta) { position: relative; padding: 10px 0; }
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: right .25s ease;
}
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11,18,32,.16);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 14% 10%, rgba(63,120,148,.19), transparent 30%),
    radial-gradient(circle at 90% 86%, rgba(201,40,37,.15), transparent 30%),
    linear-gradient(135deg, #080e18 0%, #101a2a 58%, #0a111c 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 2px;
  left: -90px;
  bottom: 90px;
  background: linear-gradient(90deg, transparent, rgba(201,40,37,.9), transparent);
  transform: rotate(-18deg);
}
.hero-orb { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.hero-orb-one { width: 540px; height: 540px; right: -220px; top: -220px; }
.hero-orb-two { width: 260px; height: 260px; left: 44%; bottom: -180px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 72px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: #c6dce8; font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 2px; background: var(--red); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(3.05rem, 5.8vw, 6rem); line-height: .95; letter-spacing: -.055em; }
.hero-text { max-width: 720px; margin: 28px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1.04rem, 1.55vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border-radius: 14px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px rgba(201,40,37,.26); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.04); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-pills span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.76); font-size: .8rem; }
.hero-visual { position: relative; min-width: 0; }
.hero-photo-wrap { overflow: hidden; border-radius: 30px; border: 1px solid rgba(255,255,255,.12); background: #05080d; box-shadow: 0 36px 76px rgba(0,0,0,.36); }
.hero-photo-wrap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.hero-badge { position: absolute; left: -36px; bottom: 30px; width: 190px; padding: 9px; border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 42px rgba(0,0,0,.27); }
.hero-badge img { width: 100%; aspect-ratio: 1.55 / 1; object-fit: cover; }

.quick-band { border-bottom: 1px solid var(--line); background: #fff; }
.quick-grid { min-height: 88px; display: grid; grid-template-columns: 1.2fr .8fr .8fr; align-items: center; gap: 30px; }
.quick-grid > * { min-width: 0; }
.quick-grid div:first-child { display: flex; align-items: center; gap: 12px; }
.quick-grid div:not(:first-child), .quick-grid a { display: flex; flex-direction: column; }
.quick-grid span:not(.quick-dot) { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.quick-grid strong { color: var(--ink); }
.quick-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(201,40,37,.1); }

.section-kicker { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading h2, .about-copy h2, .training-copy h2, .contact-copy h2, .cta-card h2 { margin: 0; color: var(--ink); font-size: clamp(2.25rem, 4.3vw, 4.15rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:not(.section-kicker), .about-copy > p:not(.section-kicker), .training-copy > p:not(.section-kicker), .contact-copy > p:not(.section-kicker) { color: var(--muted); font-size: 1.07rem; }

.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; }
.focus-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.focus-row article { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #edf1f5; border-radius: 16px; background: var(--soft); }
.focus-row span { color: var(--red); font-size: .74rem; font-weight: 900; }
.focus-row strong { color: var(--ink); font-size: .94rem; }
.about-image { position: relative; }
.about-image > img { position: relative; z-index: 2; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-frame { position: absolute; z-index: 1; width: 58%; height: 58%; right: -18px; bottom: -18px; border: 1px solid rgba(63,120,148,.5); border-radius: var(--radius); }

.services { background: linear-gradient(135deg, #0b1220, #111d2e); color: #fff; }
.section-heading.light h2 { color: #fff; }
.section-heading.light > p:not(.section-kicker) { color: rgba(255,255,255,.62); }
.services .section-kicker { color: #ff6c68; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.service-card { min-height: 252px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.022)); transition: transform .24s ease, border-color .24s ease, background .24s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(63,120,148,.7); background: linear-gradient(155deg, rgba(63,120,148,.15), rgba(255,255,255,.025)); }
.service-card-wide { grid-column: span 2; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.service-top > span { color: rgba(255,255,255,.42); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.service-icon { min-width: 42px; height: 42px; padding: 0 9px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: #b9d2df; font-size: .7rem; font-weight: 900; letter-spacing: .05em; }
.sigma-mark { font-size: 1rem; }
.service-card h3 { margin: auto 0 24px; max-width: 510px; color: #fff; font-size: clamp(1.42rem, 2.15vw, 2rem); line-height: 1.13; }
.service-rule { width: 78px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--blue)); }

.three-pillars { background: #fff; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-card { min-height: 320px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 32px rgba(15,23,42,.055); }
.pillar-number { color: var(--red); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.pillar-card h3 { margin: 66px 0 16px; color: var(--ink); font-size: 1.85rem; letter-spacing: -.03em; }
.pillar-card p { margin: 0; color: var(--muted); }

.training { background: var(--soft); }
.training-grid { display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: 70px; }
.training-image { overflow: hidden; border-radius: var(--radius); background: #dce3e9; box-shadow: var(--shadow); }
.training-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--blue-dark); font-weight: 900; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.quote-visual { padding: 0 0 100px; background: var(--soft); }
.quote-image { max-width: 760px; margin-inline: auto; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); background: #090d14; }
.quote-image img { width: 100%; height: auto; }

.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #e8edf2; cursor: zoom-in; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item span { position: absolute; right: 13px; bottom: 13px; padding: 7px 10px; border-radius: 999px; background: rgba(11,18,32,.78); color: #fff; font-size: .72rem; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.gallery-item:hover span { opacity: 1; transform: none; }
.gallery-a { grid-column: span 7; grid-row: span 3; }
.gallery-b { grid-column: span 5; grid-row: span 5; }
.gallery-c { grid-column: span 5; grid-row: span 3; }
.gallery-d { grid-column: span 7; grid-row: span 3; }

.cta-section { padding: 0 0 100px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 56px; border-radius: 28px; background: linear-gradient(135deg, #0b1220, #17263a); color: #fff; box-shadow: var(--shadow); }
.cta-card > div { max-width: 800px; }
.cta-card h2 { color: #fff; }
.cta-card p:not(.section-kicker) { color: rgba(255,255,255,.65); }
.cta-card .section-kicker { color: #ff6c68; }
.cta-card .btn { flex: 0 0 auto; }

.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 70px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { min-height: 94px; padding: 20px 24px; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-card:hover { transform: translateX(4px); border-color: #bad0dc; box-shadow: 0 12px 26px rgba(15,23,42,.07); }
.contact-label { color: var(--red); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { color: var(--ink); font-size: 1.05rem; }
.contact-card small { color: var(--muted); }

.site-footer { padding: 54px 0; background: #070c13; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 44px; align-items: start; }
.footer-brand img { width: 178px; height: 120px; object-fit: cover; border-radius: 12px; background: #fff; }
.footer-brand p { margin: 12px 0 0; color: #fff; font-weight: 850; }
.footer-brand span { font-size: .9rem; }
.footer-links, .footer-social { display: grid; gap: 10px; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); box-shadow: 0 14px 32px rgba(37,211,102,.35); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); }
.whatsapp-float svg { width: 30px; fill: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 28px; background: rgba(3,7,18,.92); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* El contenido es visible por defecto. JS solo añade una animación ligera, por lo que la página nunca queda en blanco si el script no carga. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.reveal-ready.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal.reveal-ready { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 15px; font-size: .84rem; }
  .brand { width: 164px; }
}

@media (max-width: 960px) {
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 76px; }
  .brand { width: 152px; height: 58px; }
  .menu-toggle { width: 46px; height: 46px; display: inline-grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 3px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 13px !important; border-radius: 10px; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .main-nav > a:not(.nav-cta):hover { background: var(--soft); }
  .nav-cta { margin-top: 4px; text-align: center; }

  .hero { padding: 70px 0 82px; }
  .hero-grid, .about-grid, .training-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 680px; }
  .hero-photo-wrap img { aspect-ratio: 16 / 12; }
  .hero-badge { left: 22px; bottom: 22px; width: 170px; }
  .quick-grid { grid-template-columns: 1fr 1fr; padding: 18px 0; }
  .quick-grid > div:first-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card-wide { grid-column: span 2; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 230px; }
  .pillar-card h3 { margin-top: 42px; }
  .gallery-grid { grid-auto-rows: 112px; }
  .gallery-a { grid-column: span 7; }
  .gallery-b { grid-column: span 5; }
  .gallery-c { grid-column: span 5; }
  .gallery-d { grid-column: span 7; }
  .cta-card { align-items: flex-start; flex-direction: column; padding: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 64px 0; }
  .brand { width: 140px; height: 54px; }
  .main-nav { left: 14px; right: 14px; }
  .hero { padding: 56px 0 68px; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .hero-text { margin-top: 22px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-photo-wrap img { aspect-ratio: 4 / 5; }
  .hero-badge { width: 145px; left: 14px; bottom: 14px; }
  .quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .quick-grid > div:first-child { grid-column: auto; }
  .focus-row { grid-template-columns: 1fr; }
  .focus-row article { min-height: 86px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-wide { grid-column: auto; min-height: 190px; }
  .pillar-card { min-height: 220px; padding: 25px; }
  .quote-visual { padding-bottom: 64px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-item, .gallery-a, .gallery-b, .gallery-c, .gallery-d { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 11; }
  .gallery-b { aspect-ratio: 4 / 5; }
  .gallery-item span { opacity: 1; transform: none; }
  .cta-section { padding-bottom: 64px; }
  .cta-card { padding: 34px 24px; border-radius: 22px; }
  .contact-card { grid-template-columns: 1fr; gap: 5px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
