/* ============================================================
   MindFlight Consult by Sandra Mora
   styles.css — Sistema de diseño
   Secciones:
   01. Tokens (:root)
   02. Reset & base
   03. Tipografía
   04. Utilidades de layout
   05. Botones
   06. Header / Navegación
   07. Hero "Mapa mental de vuelo"
   08. Propuesta de valor
   09. Servicios
   10. Para quién (constelación)
   11. Experiencia (Sandra Mora)
   12. Metodología (ruta de vuelo)
   13. Factores humanos (instrumentos)
   14. Formación
   15. Principios de trabajo
   16. CTA final
   17. Formulario
   18. Footer
   19. WhatsApp flotante
   20. Reveal / animaciones
   21. Páginas legales
   22. Responsive
   23. prefers-reduced-motion
   ============================================================ */

/* 01. TOKENS ------------------------------------------------ */
:root {
  /* Paleta */
  --c-night:    #071A2B;
  --c-aero:     #123A56;
  --c-bluegray: #49697B;
  --c-ivory:    #F5F2EA;
  --c-white:    #FCFCFA;
  --c-fog:      #E9EEF0;
  --c-graphite: #20282D;
  --c-amber:    #D79A45;
  --c-green:    #5B806F;

  /* Derivados */
  --night-80: rgba(7, 26, 43, 0.80);
  --night-60: rgba(7, 26, 43, 0.60);
  --night-12: rgba(7, 26, 43, 0.12);
  --ivory-70: rgba(245, 242, 234, 0.70);
  --line-dark: rgba(245, 242, 234, 0.14);
  --line-light: rgba(7, 26, 43, 0.10);

  /* Tipografía */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-lead:    clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  --fs-h4:      clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
  --fs-h3:      clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-h1:      clamp(2.5rem, 1.6rem + 4vw, 4.6rem);
  --fs-display: clamp(3rem, 1.8rem + 5vw, 6rem);

  /* Espaciado */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;

  --container: 1200px;
  --container-narrow: 760px;

  /* Radios y bordes */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(7,26,43,0.06), 0 2px 8px rgba(7,26,43,0.05);
  --sh-md: 0 8px 30px rgba(7,26,43,0.10);
  --sh-lg: 0 24px 60px rgba(7,26,43,0.18);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 200ms;
  --t-mid: 320ms;
  --t-slow: 600ms;

  --header-h: 76px;
}

/* 02. RESET & BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-graphite);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--c-amber); color: var(--c-night); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 2000;
  background: var(--c-night);
  color: var(--c-ivory);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

:focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 03. TIPOGRAFÍA -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--c-night);
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bluegray);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-amber);
}
.on-dark .eyebrow { color: var(--c-amber); }
.on-dark .eyebrow::before { background: var(--c-amber); }

.lead { font-size: var(--fs-lead); color: var(--c-aero); line-height: 1.55; }
.on-dark .lead { color: var(--ivory-70); }

.amber { color: var(--c-amber); }

/* 04. UTILIDADES DE LAYOUT ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.bg-light { background: var(--c-white); color: var(--c-graphite); }
.bg-ivory { background: var(--c-ivory); color: var(--c-graphite); }
.bg-fog   { background: var(--c-fog);   color: var(--c-graphite); }
.bg-night { background: var(--c-night); color: var(--c-ivory); }
.bg-aero  { background: var(--c-aero);  color: var(--c-ivory); }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--c-ivory); }
.on-dark p { color: var(--ivory-70); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 0.75rem; }
.section-head p { margin-top: 1rem; }
.section-head.center p { margin-inline: auto; }

/* Líneas de carta aeronáutica (textura sutil) */
.chart-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

/* 05. BOTONES ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--c-amber); color: var(--c-night); }
.btn--primary:hover { background: #e6ad5f; box-shadow: 0 8px 24px rgba(215,154,69,0.30); }

.btn--solid-night { background: var(--c-night); color: var(--c-ivory); }
.btn--solid-night:hover { background: var(--c-aero); box-shadow: var(--sh-md); }

.btn--ghost {
  background: transparent;
  color: var(--c-night);
  border-color: var(--line-light);
}
.btn--ghost:hover { border-color: var(--c-night); background: rgba(7,26,43,0.04); }

.on-dark .btn--ghost { color: var(--c-ivory); border-color: var(--line-dark); }
.on-dark .btn--ghost:hover { border-color: var(--c-ivory); background: rgba(245,242,234,0.07); }

.btn--wa { background: var(--c-green); color: #fff; }
.btn--wa:hover { background: #6a9181; box-shadow: 0 8px 24px rgba(91,128,111,0.32); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* 06. HEADER ------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
}
.site-header.scrolled {
  background: rgba(7, 26, 43, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--c-ivory); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-amber); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--ivory-70);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--c-ivory); background: rgba(245,242,234,0.07); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: var(--ivory-70);
  border: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 36px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: var(--c-amber); color: var(--c-night); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--c-ivory);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* 07. HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(18,58,86,0.55), transparent 60%),
    radial-gradient(90% 80% at 12% 90%, rgba(73,105,123,0.30), transparent 55%),
    linear-gradient(165deg, #061827 0%, #071A2B 45%, #0a2438 100%);
  color: var(--c-ivory);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__sky {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__horizon {
  position: absolute;
  left: 0; right: 0; top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,154,69,0.55), transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: horizonIn 1.4s var(--ease) 0.2s forwards;
}
@keyframes horizonIn { to { transform: scaleX(1); } }

.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero .container { position: relative; z-index: 3; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}
.hero h1 {
  font-size: var(--fs-h1);
  color: var(--c-ivory);
  margin: 1.1rem 0 1.3rem;
}
.hero h1 .ln { display: block; opacity: 0; animation: fadeUp 0.8s var(--ease) forwards; }
.hero h1 .ln:nth-child(1) { animation-delay: 0.55s; }
.hero h1 .ln:nth-child(2) { animation-delay: 0.72s; color: var(--c-amber); }
.hero__text {
  font-size: var(--fs-lead);
  color: var(--ivory-70);
  max-width: 52ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.95s forwards;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.15s forwards;
}
.hero__micro {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: var(--ivory-70);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.35s forwards;
}
.hero__micro .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(91,128,111,0.6);
  animation: pulseDot 2.6s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(91,128,111,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(91,128,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,128,111,0); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Hero diagrama (mente / trayectoria) */
.hero__stage { position: relative; aspect-ratio: 1 / 1; }
.hero__stage svg { width: 100%; height: 100%; overflow: visible; }

.scroll-cue {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-70);
  z-index: 4;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.8s forwards;
}
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(var(--c-amber), transparent); }
.scroll-cue .line::after {
  content: ""; position: absolute; width: 1px; height: 12px; background: var(--c-amber);
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }

/* Etiquetas SVG progresivas del hero */
.node-label { opacity: 0; }
.node-dot { opacity: 0; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--c-amber);
  z-index: 1100;
  transition: width 80ms linear;
}

/* 08. PROPUESTA DE VALOR ------------------------------------ */
.value-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  position: relative;
}
.value-flow::before {
  content: "";
  position: absolute;
  top: 46px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-bluegray) 0 8px, transparent 8px 16px);
  opacity: 0.4;
  z-index: 0;
}
.value-node { position: relative; z-index: 1; text-align: center; }
.value-node__ring {
  width: 92px; height: 92px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-white);
  border: 1.5px solid var(--line-light);
  box-shadow: var(--sh-sm);
  color: var(--c-aero);
}
.bg-ivory .value-node__ring { background: var(--c-white); }
.value-node__ring svg { width: 38px; height: 38px; }
.value-node h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.value-node p { font-size: 0.96rem; margin-inline: auto; max-width: 28ch; color: var(--c-bluegray); }
.value-node__idx {
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--c-amber); display: block; margin-bottom: 0.4rem;
}

/* 09. SERVICIOS --------------------------------------------- */
.services-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.services-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.services-nav__btn {
  display: flex; align-items: center; gap: 0.9rem;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  color: var(--ivory-70);
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 60px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.services-nav__btn .num {
  font-family: var(--font-head);
  font-size: 0.8rem; color: var(--c-amber);
  flex: none;
}
.services-nav__btn:hover { border-color: rgba(215,154,69,0.5); color: var(--c-ivory); }
.services-nav__btn[aria-selected="true"] {
  background: rgba(215,154,69,0.10);
  border-color: var(--c-amber);
  color: var(--c-ivory);
}
.services-panel {
  background: rgba(245,242,234,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  min-height: 380px;
}
.service-content { display: none; }
.service-content.active { display: block; animation: panelIn var(--t-mid) var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.service-content__idx { font-family: var(--font-head); color: var(--c-amber); letter-spacing: 0.2em; font-size: 0.85rem; }
.service-content h3 { color: var(--c-ivory); font-size: var(--fs-h3); margin: 0.5rem 0 1rem; max-width: 22ch; }
.service-content > p { color: var(--ivory-70); font-size: var(--fs-lead); max-width: 60ch; }
.service-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 1.8rem 0;
}
.service-points li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: var(--c-ivory);
  padding: 0.7rem 0.9rem;
  background: rgba(7,26,43,0.35);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
}
.service-points li::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-radius: 50%; background: var(--c-amber);
}

/* Acordeón móvil */
.services-accordion { display: none; }
.acc-item { border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; margin-bottom: 0.6rem; }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 0.8rem;
  background: transparent; border: 0;
  padding: 1.1rem 1.1rem;
  color: var(--c-ivory);
  font-weight: 600; font-size: 1rem; text-align: left;
  min-height: 60px;
}
.acc-trigger .num { font-family: var(--font-head); color: var(--c-amber); font-size: 0.8rem; }
.acc-trigger .chev { margin-left: auto; transition: transform var(--t-fast) var(--ease); flex: none; }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-mid) var(--ease);
}
.acc-panel__inner { padding: 0 1.1rem 1.3rem; }
.acc-panel__inner p { color: var(--ivory-70); }

.service-cta { margin-top: 1.5rem; }

/* 10. PARA QUIÉN (constelación) ----------------------------- */
.audience { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,1rem+3vw,3.5rem); align-items: center; }
.constellation { position: relative; aspect-ratio: 1/1; max-width: 520px; margin-inline: auto; width: 100%; }
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.const-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.const-node button {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-ivory); border: 2px solid var(--c-aero);
  padding: 0; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.const-node button:hover, .const-node button:focus-visible, .const-node.active button {
  background: var(--c-amber); border-color: var(--c-amber);
  transform: scale(1.25); box-shadow: 0 0 0 6px rgba(215,154,69,0.18);
}
.const-node .tag {
  font-size: 0.72rem; font-weight: 600; color: var(--c-bluegray);
  white-space: nowrap; pointer-events: none;
}
.const-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--c-aero), var(--c-night));
  color: var(--c-ivory); box-shadow: var(--sh-md);
  border: 1px solid var(--line-dark);
}
.const-center span { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; line-height: 1.3; }

.audience-detail {
  background: var(--c-white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--sh-md);
  min-height: 220px;
}
.audience-detail .pill {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-amber);
  background: rgba(215,154,69,0.12); padding: 0.35rem 0.8rem; border-radius: var(--r-pill);
}
.audience-detail h3 { font-size: var(--fs-h3); margin: 1rem 0 0.6rem; }
.audience-detail p { font-size: var(--fs-lead); color: var(--c-aero); }

/* Grid móvil de audiencia */
.audience-grid { display: none; grid-template-columns: 1fr; gap: 0.7rem; }
.audience-card {
  border: 1px solid var(--line-light); border-radius: var(--r-md);
  padding: 1.1rem 1.2rem; background: var(--c-white); box-shadow: var(--sh-sm);
}
.audience-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.audience-card p { font-size: 0.95rem; color: var(--c-bluegray); }

/* 11. EXPERIENCIA ------------------------------------------- */
.exp-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem,1rem+4vw,4.5rem); align-items: center; }
.exp-portrait { position: relative; }
.exp-portrait__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line-dark);
}
.exp-portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.exp-portrait__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,26,43,0.55) 100%);
  mix-blend-mode: multiply;
}
.exp-portrait__badge {
  position: absolute; left: -14px; bottom: 28px;
  background: var(--c-night); color: var(--c-ivory);
  border: 1px solid var(--c-amber);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--sh-md);
}
.exp-portrait__badge strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--c-amber); display: block; }
.exp-portrait__badge span { font-size: 0.78rem; color: var(--ivory-70); }
.exp-portrait__deco {
  position: absolute; right: -16px; top: -16px; width: 120px; height: 120px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  opacity: 0.5; pointer-events: none;
}

.exp-body h2 { margin-bottom: 1.2rem; }
.exp-body p + p { margin-top: 1rem; }
.exp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; }
.exp-stat { border-top: 2px solid var(--c-amber); padding-top: 0.8rem; }
.exp-stat strong { font-family: var(--font-head); font-size: clamp(1.4rem,1.1rem+1vw,1.9rem); color: var(--c-night); display: block; }
.on-dark .exp-stat strong { color: var(--c-ivory); }
.exp-stat span { font-size: 0.84rem; color: var(--c-bluegray); }
.on-dark .exp-stat span { color: var(--ivory-70); }

.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.exp-tags li {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-pill);
  color: var(--c-aero);
  background: var(--c-white);
}
.on-dark .exp-tags li { color: var(--c-ivory); border-color: var(--line-dark); background: rgba(245,242,234,0.05); }

/* 12. METODOLOGÍA ------------------------------------------- */
.method { position: relative; }
.method-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,0.5rem+1.5vw,2rem); position: relative; }
.method-track::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px;
  background: var(--line-dark);
}
.method-track__progress {
  position: absolute; top: 22px; left: 6%; height: 2px; width: 0%;
  background: var(--c-amber);
  transition: width var(--t-slow) var(--ease);
  max-width: 88%;
}
.method-step { position: relative; z-index: 1; }
.method-step__dot {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-night); border: 2px solid var(--line-dark);
  color: var(--ivory-70);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  margin-bottom: 1.2rem;
  transition: border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.method-step.lit .method-step__dot { border-color: var(--c-amber); color: var(--c-night); background: var(--c-amber); }
.method-step h3 { font-size: var(--fs-h4); color: var(--c-ivory); margin-bottom: 0.5rem; }
.method-step p { font-size: 0.95rem; color: var(--ivory-70); max-width: 26ch; }

/* 13. FACTORES HUMANOS (instrumentos) ----------------------- */
.instruments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 0.5rem + 1.5vw, 1.4rem); }
.instrument {
  background: var(--c-white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: clamp(1.2rem,1rem+1vw,1.8rem);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.instrument:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.instrument__gauge { width: 64px; height: 64px; margin-bottom: 1rem; }
.instrument__gauge svg { width: 100%; height: 100%; }
.instrument h3 { font-size: var(--fs-h4); margin-bottom: 0.45rem; }
.instrument p { font-size: 0.94rem; color: var(--c-bluegray); max-width: 30ch; }

/* 14. FORMACIÓN --------------------------------------------- */
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,0.6rem+1.5vw,1.6rem); }
.training-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(245,242,234,0.04);
}
.training-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(245,242,234,0.05) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, var(--c-aero), var(--c-night));
  display: grid; place-items: center;
}
.training-card__media .ph-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ivory-70);
  border: 1px dashed var(--line-dark); padding: 0.4rem 0.7rem; border-radius: 6px;
  text-transform: uppercase;
}
.training-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.training-card__kicker { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-amber); font-weight: 700; }
.training-card h3 { color: var(--c-ivory); font-size: var(--fs-h4); margin: 0.5rem 0 0.6rem; }
.training-card p { color: var(--ivory-70); font-size: 0.95rem; flex: 1; }
.training-note {
  margin-top: 2rem; text-align: center; font-size: 0.86rem; color: var(--ivory-70);
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; width: 100%;
}
.training-note .tag {
  border: 1px solid var(--line-dark); border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
}

/* 15. PRINCIPIOS -------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem,0.5rem+1.5vw,1.4rem); }
.principle {
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--c-green);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
  background: var(--c-white);
}
.principle h3 { font-size: var(--fs-h4); margin-bottom: 0.4rem; }
.principle p { font-size: 0.92rem; color: var(--c-bluegray); }

/* 16. CTA FINAL --------------------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 120% at 80% 0%, rgba(18,58,86,0.7), transparent 60%),
    linear-gradient(165deg, #061827, #0a2438);
  color: var(--c-ivory);
  text-align: center;
}
.cta-final__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta-final h2 { color: var(--c-ivory); font-size: var(--fs-h2); }
.cta-final p { color: var(--ivory-70); font-size: var(--fs-lead); margin: 1.2rem auto 2rem; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* 17. FORMULARIO -------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem,1rem+4vw,4rem); align-items: start; }
.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside p { color: var(--c-bluegray); }
.contact-channels { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }
.contact-channel {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-light); border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-channel:hover { border-color: var(--c-amber); transform: translateX(3px); }
.contact-channel__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-ivory); color: var(--c-aero); }
.contact-channel__icon svg { width: 20px; height: 20px; }
.contact-channel b { display: block; font-size: 0.95rem; color: var(--c-night); }
.contact-channel span { font-size: 0.85rem; color: var(--c-bluegray); word-break: break-word; }

.form-card {
  background: var(--c-white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--c-night); }
.field label .req { color: var(--c-amber); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-graphite);
  min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(215,154,69,0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b23a3a; box-shadow: 0 0 0 3px rgba(178,58,58,0.14); }
.field__error { font-size: 0.78rem; color: #b23a3a; min-height: 1em; }

.field--check { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.field--check input { width: 22px; height: 22px; min-height: 22px; flex: none; margin-top: 2px; accent-color: var(--c-amber); }
.field--check label { font-weight: 500; font-size: 0.88rem; color: var(--c-bluegray); }
.field--check a { color: var(--c-aero); text-decoration: underline; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.info { background: rgba(73,105,123,0.12); color: var(--c-aero); }
.form-status.error { background: rgba(178,58,58,0.10); color: #8f2f2f; }
.form-note { font-size: 0.8rem; color: var(--c-bluegray); margin-top: 1rem; }

/* 18. FOOTER ------------------------------------------------ */
.site-footer { background: var(--c-night); color: var(--ivory-70); padding-block: clamp(3rem,2rem+3vw,4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(1.5rem,1rem+2vw,3rem); }
.footer-brand .brand { color: var(--c-ivory); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-amber); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.92rem; color: var(--ivory-70); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--c-ivory); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--ivory-70);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.footer-social a:hover { border-color: var(--c-amber); color: var(--c-night); background: var(--c-amber); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.84rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal-note { font-size: 0.78rem; opacity: 0.7; max-width: 70ch; margin-top: 1rem; }

/* 19. WHATSAPP FLOTANTE ------------------------------------- */
.wa-float {
  position: fixed;
  right: max(1.2rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--c-green); color: #fff;
  padding: 0.85rem 1.1rem; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(7,26,43,0.28);
  font-weight: 600; font-size: 0.95rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), background var(--t-fast) var(--ease);
}
.wa-float.in { transform: none; opacity: 1; }
.wa-float:hover { background: #6a9181; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float .label { white-space: nowrap; }

/* 20. REVEAL ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* 21. PÁGINAS LEGALES --------------------------------------- */
.legal-main { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 4rem; }
.legal-wrap { max-width: var(--container-narrow); margin-inline: auto; }
.legal-wrap .eyebrow { margin-bottom: 0.6rem; }
.legal-wrap h1 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.legal-meta { font-size: 0.85rem; color: var(--c-bluegray); margin-bottom: 2.5rem; }
.legal-wrap h2 { font-size: var(--fs-h4); margin: 2.2rem 0 0.7rem; color: var(--c-aero); }
.legal-wrap p, .legal-wrap li { font-size: 0.98rem; color: var(--c-graphite); }
.legal-wrap p { margin-bottom: 0.9rem; }
.legal-wrap ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-wrap li { margin-bottom: 0.4rem; }
.legal-wrap a { color: var(--c-aero); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem; font-weight: 600; color: var(--c-aero); }
.legal-disclaimer { background: var(--c-fog); border-radius: var(--r-md); padding: 1.2rem 1.4rem; font-size: 0.9rem; margin-bottom: 2rem; }

/* 404 */
.notfound {
  min-height: 80svh; display: grid; place-items: center; text-align: center;
  padding-top: var(--header-h);
}
.notfound__code { font-family: var(--font-head); font-size: clamp(4rem,3rem+6vw,8rem); color: var(--c-amber); letter-spacing: -0.04em; }
.notfound h1 { font-size: var(--fs-h3); margin: 0.5rem 0 1rem; }
.notfound p { color: var(--c-bluegray); margin: 0 auto 2rem; }

/* 22. RESPONSIVE -------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 440px; margin-inline: auto; order: -1; }
  .services-layout { grid-template-columns: 1fr; }
  .services-desktop { display: none; }
  .services-accordion { display: block; }
  .audience { grid-template-columns: 1fr; }
  .constellation { display: none; }
  .audience-grid { display: grid; }
  .audience-detail { display: none; }
  .exp-layout { grid-template-columns: 1fr; }
  .exp-portrait { max-width: 360px; }
  .method-track { grid-template-columns: 1fr; gap: 0; }
  .method-track::before { left: 22px; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; }
  .method-track__progress { display: none; }
  .method-step { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; padding-bottom: 1.8rem; }
  .method-step__dot { margin-bottom: 0; }
  .method-step p { max-width: none; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav, .header-actions .desktop-cta { display: none; }
  .nav-toggle { display: block; }

  /* Menú móvil */
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(7,26,43,0.97);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    padding: 1.5rem;
    gap: 0.3rem;
    z-index: 999;
    overflow-y: auto;
  }
  .nav.mobile-open a { font-size: 1.1rem; padding: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav.mobile-open .mobile-cta { margin-top: 1rem; }

  .value-flow { grid-template-columns: 1fr; gap: 2.5rem; }
  .value-flow::before { display: none; }
  .instruments { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .exp-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float .label { display: none; }
  .wa-float { padding: 0.9rem; }
}

@media (max-width: 380px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* 23. REDUCED MOTION ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .ln, .hero__eyebrow, .hero__text, .hero__cta, .hero__micro, .scroll-cue { opacity: 1 !important; animation: none !important; }
  .hero__horizon { transform: scaleX(1); }
  .wa-float { transform: none; opacity: 1; }
}
