/* ==========================================================================
   DYNAPRAX — Hoja de estilos principal
   Estructura: 1) Tokens  2) Reset/base  3) Utilidades/layout  4) Botones
               5) Header/Nav  6) Secciones  7) Footer  8) Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Color — alineado al logotipo/identidad oficial DYNAPRAX */
  --c-ink:            #16223f;   /* indigo profundo (titulares sobre claro) */
  --c-brand:          #1F457D;   /* azul profundo oficial (DYNA / botones / cards) */
  --c-brand-700:      #163a68;
  --c-teal:           #18C4C0;   /* cian oficial DYNAPRAX (PRAX / la X / acentos) */
  --c-teal-600:       #0E8F8C;   /* cian oscuro para texto/etiquetas (contraste AA) */
  --c-elec:           #3792CB;   /* azul eléctrico oficial (acento secundario) */
  --c-dark:           #0e1a2b;   /* fondo marino oscuro (dirección de arte aprobada) */
  --c-navy:           #14243f;   /* secciones azul marino (diag, cta final) */

  --c-white:          #ffffff;
  --c-paper:          #ffffff;   /* fondo secciones claras */
  --c-paper-2:        #F0F4F8;   /* gris nube oficial (fondo claro alterno) */

  --c-text:           #343c50;   /* cuerpo sobre claro */
  --c-text-muted:     #5a6577;
  --c-text-light:     #e8edf4;   /* cuerpo sobre oscuro */
  --c-text-light-muted:#a7b4c6;

  --c-line:           #e3e8f0;   /* bordes sobre claro */
  --c-line-dark:      rgba(255,255,255,.14);

  /* Tipografía — Montserrat (titulares, identidad de marca) + Inter (cuerpo/UI) */
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-h1:      clamp(2.3rem, 1.35rem + 4vw, 4.5rem);
  --fs-h2:      clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  --fs-lead:    clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-small:   0.9rem;
  --fs-eyebrow: 0.82rem;

  /* Layout */
  --container:  1240px;
  --gutter:     clamp(1.25rem, 4vw, 2rem);   /* padding lateral (≈20–32px) */
  --pad-section: clamp(4rem, 7.5vw, 7.5rem);  /* padding vertical de sección */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill:999px;

  --shadow-sm:  0 1px 3px rgba(16,26,45,.08);
  --shadow-md:  0 10px 30px rgba(16,26,45,.10);
  --shadow-dark:0 18px 45px rgba(0,0,0,.35);

  --header-h:   72px;
  --ease:       cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* seguro anti scroll horizontal */
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; color: var(--c-ink); letter-spacing: -0.01em; font-family: var(--font-head); }
/* Elementos display no-heading que también usan la tipografía de titulares */
.diag__eyebrow, .diag__number, .problema__close, .paraquien__group-title { font-family: var(--font-head); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

strong { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--c-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Logo (SVG wordmark, hereda tipografía de la página) */
.logo__dyna, .logo__prax { font-family: var(--font); font-weight: 800; font-size: 26px; letter-spacing: 0.5px; }
.logo__dyna { fill: var(--c-brand); }
.logo__prax { fill: var(--c-teal); }
.logo__x    { stroke: var(--c-teal); stroke-width: 4.5; stroke-linecap: round; }
.site-footer .logo__dyna, .posic__panel .logo__dyna { fill: #fff; }

/* Logo por archivo real (assets/images/logo-dynaprax.svg) con fallback al wordmark inline.
   Si el archivo no existe, onerror muestra el SVG hermano. */
.brand-logo__img { display: block; width: auto; }
.site-header .brand-logo__img { height: 44px; }
.posic__panel  .brand-logo__img { height: 52px; margin: 0 auto 0.25rem; }
.brand-logo__fallback { display: none; }

/* ==========================================================================
   3. UTILIDADES / LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--pad-section); }
.section--light { background: var(--c-paper); color: var(--c-text); }
.section--dark  { background: var(--c-dark);  color: var(--c-text-light); }
.section--navy  { background: var(--c-navy);  color: var(--c-text-light); }

.section__head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__title { font-size: var(--fs-h2); }
.section__subtitle {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--c-brand);
}
.section--dark .section__title { color: #fff; }
.section--dark .section__subtitle { color: var(--c-text-light-muted); }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__subtitle { color: var(--c-text-light-muted); }

.section__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ==========================================================================
   4. BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0.9rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }

.btn--primary { background: #fff; color: var(--c-brand); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #eaf0f8; }

.btn--dark { background: var(--c-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--dark:hover { background: var(--c-brand-700); }

.btn:active { transform: translateY(1px); }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(16,26,45,.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; }
.logo__mark { height: 26px; width: auto; }

.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #38414f;
  padding: .35rem 0;
  position: relative;
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--c-brand); }
.nav__link.is-active { color: var(--c-brand); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-teal); border-radius: 2px;
}
.nav__link--cta {
  background: var(--c-brand);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav__link--cta:hover { background: var(--c-brand-700); color: #fff; }
.nav__link--cta.is-active::after { display: none; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; height: 2px; width: 100%;
  background: var(--c-ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   6. SECCIONES
   ========================================================================== */

/* ---- 6.1 HERO ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 92svh, 940px);
  padding-block: clamp(4rem, 10vh, 7rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--c-dark); }
.hero__video, .hero__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(11,21,36,.30) 0%, rgba(11,21,36,.66) 62%, rgba(11,21,36,.86) 100%),
    linear-gradient(180deg, rgba(11,21,36,.72) 0%, rgba(11,21,36,.30) 30%, rgba(11,21,36,.40) 68%, rgba(11,21,36,.82) 100%);
}
.hero__inner { display: flex; justify-content: center; }
.hero__content { max-width: 900px; margin-inline: auto; }
.hero__title { font-size: var(--fs-h1); color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__title-em { color: #fff; }
.hero__subtitle {
  margin: 1.6rem auto 0;
  max-width: 52ch;
  font-size: var(--fs-lead);
  font-weight: 400;
  color: #e4ebf4;
  text-shadow: 0 1px 14px rgba(0,0,0,.3);
}
.hero .btn { margin-top: 2.25rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__scroll-dot {
  width: 4px; height: 8px; margin-top: 7px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translateY(-3px)} 50%{opacity:1} 100%{opacity:0;transform:translateY(9px)} }

/* ---- 6.2 PROBLEMA ------------------------------------------------------ */
.problema__inner { max-width: 880px; margin-inline: auto; text-align: center; }
.problema__title { font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.15rem); line-height: 1.14; }
.problema__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--c-text-muted);
}
.problema__list {
  margin: clamp(2.75rem, 6vw, 4rem) auto;
  max-width: 680px;
  display: grid;
  gap: 0;
  text-align: left;
}
.problema__item {
  position: relative;
  padding: 1.35rem 1rem 1.35rem 3.1rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.problema__item:first-child { border-top: 1px solid var(--c-line); }
.problema__item::before {
  content: "";
  position: absolute; left: .4rem; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%;
  background: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
}
.problema__close {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.35rem);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.28;
}
.problema__close strong { color: var(--c-brand); }

/* ---- 6.3 DIAGNÓSTICO 360 ---------------------------------------------- */
.diag__inner {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.diag__eyebrow { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.15rem); font-weight: 600; color: #fff; letter-spacing: .01em; }
.diag__number  { font-size: clamp(3.6rem, 2rem + 6.5vw, 6.6rem); font-weight: 800; color: #fff; line-height: .9; letter-spacing: -.02em; }
.diag__title {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem);
  color: #fff;
  max-width: 22ch;
  line-height: 1.25;
}
.diag__list { margin: 2rem 0; display: grid; gap: 1rem; }
.diag__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-text-light);
  font-size: var(--fs-lead);
}
.diag__list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 15px; height: 15px;
  border: 2px solid var(--c-teal);
  border-radius: 50%;
}
.diag__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  outline: 1px solid rgba(255,255,255,.08);
  outline-offset: -1px;
}
.diag__figure::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.04);
  border-radius: inherit;
  pointer-events: none;
}
.diag__figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 6/7; }

/* ---- 6.4 MÉTODO -------------------------------------------------------- */
.metodo__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phase__badge {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.phase__icon {
  color: var(--c-brand);
  margin: 1.15rem 0 1.4rem;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.phase__icon svg { width: 40px; height: 40px; }
.phase__title { font-size: var(--fs-h3); margin-bottom: 1.4rem; min-height: 2.6em; display: flex; align-items: center; }
.phase__list {
  width: 100%;
  text-align: left;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  display: grid;
  gap: .7rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.phase__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--c-text);
  font-size: 1.05rem;
}
.phase__list li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-teal);
}
.phase__goal {
  margin-top: 1.4rem;
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 30ch;
}
.phase__goal span { color: var(--c-ink); font-weight: 700; }

/* Conectores horizontales (desktop) */
.phase:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 68px;                       /* alineado al centro del icono */
  right: calc(-1 * clamp(1.5rem, 4vw, 3rem) / 2);
  transform: translateX(50%);
  width: 28px; height: 22px;
  color: var(--c-teal);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 4l6 6-6 6M13 4l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 4l6 6-6 6M13 4l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .9;
}

/* ---- 6.5 POSICIONAMIENTO ---------------------------------------------- */
.posic__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.posic__panel {
  position: relative;
  background: #fff;
  color: var(--c-ink);
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(2.5rem, 8vw, 6rem);
  max-width: 900px;
  width: 100%;
  /* Hexágono horizontal (evoca la forma original, seguro para texto) */
  clip-path: polygon(0 50%, 7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%);
  filter: drop-shadow(0 22px 48px rgba(0,0,0,.38));
}
.posic__logo { height: 30px; width: auto; margin: 0 auto 1rem; }
.posic__panel .logo__dyna { fill: var(--c-brand); }   /* sobre panel blanco */
.posic__accent { width: 46px; height: 3px; background: var(--c-teal); border-radius: 2px; margin: 0 auto 1.75rem; }
.posic__title { font-size: var(--fs-h2); margin-bottom: 1.5rem; color: var(--c-ink); }
.posic__text { color: var(--c-text); max-width: 56ch; margin: 0 auto; font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); }
.posic__text + .posic__text { margin-top: 1.1rem; }
.posic__text strong { color: var(--c-ink); }

.posic__objetivo { margin-top: clamp(2.75rem, 6vw, 4.25rem); max-width: 660px; }

/* CTA secundario de vídeo (no compite con el CTA comercial) */
.btn-video {
  margin-top: 1.75rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.35rem;
  font-family: inherit; font-size: .95rem; font-weight: 700;
  color: var(--c-brand);
  background: transparent;
  border: 1.5px solid #cfd9e6;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.btn-video:hover { background: #eef3f9; border-color: var(--c-teal); color: var(--c-brand-700); }
.btn-video:active { transform: translateY(1px); }
.btn-video__icon {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-teal); color: #fff;
}
.btn-video__icon svg { width: 11px; height: 11px; margin-left: 1px; }
.posic__objetivo-label {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: #fff; margin-bottom: .85rem;
}
.posic__objetivo-text { font-size: var(--fs-lead); color: var(--c-text-light); margin-bottom: 2rem; }

/* ---- 6.6 PARA QUIÉN ---------------------------------------------------- */
.paraquien__group-title {
  text-align: center;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  color: var(--c-ink);
  margin: clamp(1rem, 3vw, 1.5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}
.paraquien__group-title--muted { margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--c-ink); }

.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.fit-card {
  background: var(--c-brand);
  color: #eaf0f9;
  border-radius: var(--radius);
  padding: 1.9rem 1.85rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.fit-card__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--c-teal);
}
.fit-card__icon svg { width: 20px; height: 20px; }
.fit-card p { font-size: 1.05rem; line-height: 1.6; }
.fit-card strong { color: #fff; }

.nofit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.nofit-card {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  text-align: center;
  background: var(--c-paper-2);
}
.nofit-card p { color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.6; }
.nofit-card strong { color: var(--c-ink); }

/* ---- 6.7 RESULTADOS ---------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
}
.result-card {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.85rem;
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.result-card__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--c-line); margin-bottom: 1.25rem; }
.result-card__num {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px solid var(--c-brand);
  border-radius: 50%;
  color: var(--c-brand);
  font-weight: 800; font-size: 1rem;
}
.result-card__title { font-size: 1.25rem; color: var(--c-ink); overflow-wrap: anywhere; }

/* Bloque Situación → Acción → Resultado: vertical por defecto (seguro) */
.result-card__body { display: flex; flex-direction: column; gap: 1rem; }
.sar { flex: 1; min-width: 0; }
.sar__label {
  display: block;
  font-size: .74rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.sar__label--sit { color: var(--c-brand); }
.sar__label--acc { color: var(--c-teal-600); }
.sar__label--res { color: var(--c-brand); }
.sar__text { font-size: 1rem; line-height: 1.5; color: var(--c-text-muted); overflow-wrap: anywhere; }
.sar__text--strong { color: var(--c-ink); font-weight: 700; }
.sar__arrow { color: var(--c-teal); font-weight: 700; opacity: .7; align-self: flex-start; transform: rotate(90deg); margin: .1rem 0 0 .2rem; }
.sar__arrow svg { width: 18px; height: 18px; display: block; }

/* ---- 6.8 FAQ ----------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4rem); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.25rem 1.35rem 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute; right: 0; top: 50%; margin-top: -8px;
  width: 16px; height: 16px;
  background: var(--c-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.4rem; }
.faq__a p { color: var(--c-text-muted); max-width: 52ch; }

/* ---- 6.9 CTA FINAL ----------------------------------------------------- */
.cta-final { padding-block: clamp(5rem, 10vw, 9rem); }
.cta-final__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.cta-final__title { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.7rem); color: #fff; text-wrap: balance; line-height: 1.12; letter-spacing: -0.015em; }
.cta-final__title span { color: #fff; }
.cta-final__title br + span { display: inline-block; margin-top: .5em; }
.cta-final__text { margin-top: 1.5rem; color: var(--c-text-light-muted); font-size: var(--fs-lead); }
.cta-final__text:first-of-type { margin-top: 2.5rem; }
.cta-final__meta {
  margin: 2.75rem 0 1.1rem;
  font-weight: 700; font-size: 1rem;
  color: #fff; letter-spacing: .01em;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer { background: var(--c-dark); color: var(--c-text-light-muted); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-logo { height: 28px; width: auto; margin-bottom: 1.5rem; }
.site-footer__heading { font-size: 1.5rem; color: #fff; margin-bottom: .75rem; }
.site-footer__desc { max-width: 40ch; margin-bottom: 1.5rem; }
.site-footer__email {
  display: inline-block;
  color: #fff; font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid var(--c-line-dark);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.site-footer__email:hover { border-color: var(--c-teal); }

.socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line-dark);
  border-radius: 10px;
  color: #cdd7e5;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social svg { width: 19px; height: 19px; }
a.social:hover { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.social[data-pending] { opacity: .55; cursor: default; }   /* placeholder sin URL */

.site-footer__nav-title, .site-footer__legal-nav .site-footer__nav-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.site-footer__nav ul, .site-footer__legal-nav ul { display: grid; gap: .7rem; }
.site-footer__nav a, .site-footer__legal-nav a { transition: color .18s var(--ease); }
.site-footer__nav a:hover, .site-footer__legal-nav a:hover { color: #fff; }

.site-footer__bottom { border-top: 1px solid var(--c-line-dark); }
.site-footer__bottom .container { padding-block: 1.4rem; }
.site-footer__bottom p { font-size: .85rem; color: #8494a8; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

/* ---- Resultados: 2 columnas hasta 1239px (horizontal SAR llega en 1240) - */
@media (max-width: 1239px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet (≤1023px) -------------------------------------------------- */
@media (max-width: 1023px) {
  /* Navegación → hamburguesa */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 14px 30px rgba(16,26,45,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
    z-index: 99;
  }
  .nav.is-open { max-height: calc(100vh - var(--header-h)); }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav__link { padding: 1rem 0; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .nav__link.is-active::after { display: none; }
  .nav__link--cta { margin-top: 1rem; border-bottom: none; text-align: center; padding: .9rem 1.2rem; }

  /* Diag: apilar */
  .diag__inner { grid-template-columns: 1fr; }
  .diag__figure { order: 2; max-width: 520px; margin-inline: auto; }

  /* Método: 3→adaptación (mantiene 3 pero sin conectores forzados si cabe) */
  .metodo__flow { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 2.5rem; }
  .phase__title { min-height: 0; }
  /* Conector vertical entre fases */
  .phase:not(:last-child)::after {
    top: auto; bottom: calc(-1 * 2.5rem / 2);
    right: 50%;
    transform: translate(50%, 50%) rotate(90deg);
    opacity: .7;
  }

  /* Para quién / Resultados → 2 columnas */
  .fit-grid, .nofit-grid, .results-grid { grid-template-columns: repeat(2, 1fr); }
  .nofit-grid { max-width: 720px; margin-inline: auto; }

  /* Footer: marca a ancho completo + nav/legal en 2 columnas */
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---- Móvil (≤767px) ---------------------------------------------------- */
@media (max-width: 767px) {
  :root { --pad-section: clamp(3rem, 12vw, 4.25rem); }

  .fit-grid, .nofit-grid, .results-grid { grid-template-columns: 1fr; }
  .nofit-grid { max-width: 460px; }

  /* FAQ → una columna (acordeón) */
  .faq__grid { grid-template-columns: 1fr; }

  /* Footer → una sola columna */
  .site-footer__inner { grid-template-columns: 1fr; }

  /* Posicionamiento: la geometría se simplifica a tarjeta limpia */
  .posic__panel {
    clip-path: none;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 7vw, 2.75rem) clamp(1.5rem, 6vw, 2rem);
    filter: drop-shadow(0 16px 34px rgba(0,0,0,.34));
  }

  .hero { min-height: clamp(520px, 82svh, 680px); }
  .hero__subtitle { font-size: 1.08rem; }

  .problema__item { font-size: 1.1rem; }
  .section__head--left { text-align: center; }
}

/* ---- Móvil pequeño (≤400px) ------------------------------------------- */
@media (max-width: 400px) {
  :root { --gutter: 1.25rem; }
  .btn { width: 100%; }
  .hero .btn, .section__cta .btn { width: auto; }        /* CTAs no full-width por defecto salvo bloque */
  .hero__scroll { display: none; }
}

/* ---- Desktop grande: refuerzo tipográfico ------------------------------ */
@media (min-width: 1024px) {
  .faq__q { font-size: 1.15rem; }
}

/* ==========================================================================
   9. PREFERENCIAS DE MOVIMIENTO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__scroll-dot { animation: none; }
}

/* ==========================================================================
   11. MODAL DE VÍDEO
   ========================================================================== */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); }
.video-modal[hidden] { display: none; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(8,14,24,.82); backdrop-filter: blur(3px); animation: vmFade .2s var(--ease); }
.video-modal__dialog {
  position: relative; z-index: 1;
  width: min(960px, 100%);
  animation: vmPop .22s var(--ease);
}
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.video-modal__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-dark);
}
.video-modal__video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-modal__close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--c-ink);
  border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.video-modal__close:hover { background: #eef3f9; }
.video-modal__close:active { transform: translateY(1px); }
.video-modal__close svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .video-modal__close { top: -10px; right: -6px; width: 40px; height: 40px; }
}
body.modal-open { overflow: hidden; }

/* ==========================================================================
   12. PÁGINAS LEGALES (placeholder)
   ========================================================================== */
.legal { padding-block: clamp(3rem, 6vw, 5rem); min-height: 60vh; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.legal p { color: var(--c-text-muted); margin-bottom: 1rem; }
.legal .legal__note {
  margin-top: 1.5rem; padding: 1.1rem 1.35rem;
  background: var(--c-paper-2); border: 1px solid var(--c-line);
  border-radius: var(--radius); color: var(--c-text);
}
.legal__back { display: inline-block; margin-top: 2rem; font-weight: 600; color: var(--c-brand); }
.legal__back:hover { text-decoration: underline; }
