/* ============================================================
   ADN Confianza — Landing page
   1. Tokens · 2. Reset · 3. Tipografía · 4. Utilidades
   5. Botones · 6. Header · 7. Hero · 8. Secciones
   9. Formulario · 10. Footer · 11. Responsive
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Neutros limpios (inspirados en el blanco puro y canvas clínico del logo) */
  --bone: #F6FAFC;
  --bone-2: #EDF4F8;
  --surface: #FFFFFF;
  --line: #DEEAF0;
  --line-2: #EAF1F5;

  /* Obsidiana profunda y tinta (del delineado negro y sombra del logotipo) */
  --ink-900: #06131D;
  --ink-800: #0D2130;
  --ink-700: #143044;
  --ink-600: #1F425C;

  /* Texto de alta legibilidad */
  --text: #091A26;
  --text-2: #40596B;
  --text-3: #6B8597;

  /* Azul cian LexGen (extraído directamente del logotipo #00B8DD) */
  --brand-900: #003F4D;
  --brand-800: #00586B;
  --brand-700: #00768F;
  --brand-600: #009BB8;
  --brand-500: #00B8DD;
  --brand-400: #26C9EC;
  --brand-300: #62DCF4;
  --brand-200: #A2EAF7;
  --brand-100: #D8F5FB;
  --brand-50: #EFFBFD;

  /* Acentos de precisión genética (sintonizados con el cian del logotipo) */
  --sand-600: #00768F;
  --sand-500: #00B8DD;
  --sand-300: #62DCF4;
  --sand-100: #D8F5FB;

  --wa: #1FA855;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radios */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-full: 999px;

  /* Sombras — muy sutiles */
  --sh-xs: 0 1px 2px rgba(12, 30, 42, .05);
  --sh-sm: 0 2px 6px -2px rgba(12, 30, 42, .07), 0 1px 2px rgba(12, 30, 42, .04);
  --sh-md: 0 14px 32px -16px rgba(12, 30, 42, .16), 0 3px 8px -4px rgba(12, 30, 42, .06);
  --sh-lg: 0 34px 70px -30px rgba(12, 30, 42, .24), 0 8px 20px -12px rgba(12, 30, 42, .08);

  /* Ritmo */
  --sp-section: clamp(43px, 5.4vw, 77px);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15.5px, .55vw + 14.4px, 17px);
  line-height: 1.68;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--brand-800);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* El atributo hidden debe imponerse sobre cualquier display de componente */
[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Foco visible y accesible */
:focus-visible {
  outline: 2.5px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-full);
  background: var(--ink-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sh-md);
  transition: transform .25s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

/* ── 3. TIPOGRAFÍA ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-section);
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  margin-top: .58em;
  border-radius: 50%;
  background: var(--sand-500);
  flex: none;
}

.eyebrow--light {
  color: var(--brand-200);
}

.eyebrow--light .eyebrow__dot {
  background: var(--sand-300);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  font-size: clamp(17px, 1.1vw, 19.5px);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 56ch;
}

.section__head {
  max-width: 660px;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Marcador de contenido pendiente de sustituir */
.ph {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--sand-600);
  border-radius: 2px;
}

/* ── 4. ANIMACIONES DE ENTRADA ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── 5. BOTONES ────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
    background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .25s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn__icon--wa {
  width: 18px;
  height: 18px;
}

.btn:hover .btn__icon--wa {
  transform: none;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--brand-700);
  box-shadow: 0 8px 20px -10px rgba(0, 118, 143, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--primary:hover {
  background: var(--brand-800);
  box-shadow: 0 14px 28px -12px rgba(0, 118, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--ghost {
  --btn-fg: var(--ink-800);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--brand-200);
  box-shadow: var(--sh-sm);
}

.btn--outline {
  --btn-fg: var(--brand-800);
  background: transparent;
  border-color: var(--brand-200);
}

.btn--outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-400);
}

.btn--light {
  --btn-fg: var(--ink-900);
  background: #fff;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5);
}

.btn--light:hover {
  background: #fff;
}

.btn--wa {
  --btn-fg: #fff;
  background: var(--wa);
  box-shadow: 0 8px 20px -10px rgba(31, 168, 85, .6);
}

.btn--wa:hover {
  background: #188743;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--brand-700);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform .25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.badge--soft {
  background: var(--brand-50);
  color: var(--brand-800);
}

/* ── 6. HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  scroll-margin-top: 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 250, 252, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.is-stuck::before {
  border-bottom-color: var(--line);
  background: rgba(246, 250, 252, .94);
  box-shadow: 0 6px 24px -18px rgba(6, 19, 29, .25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-900);
}

.brand__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}

.site-header .brand__logo {
  height: 62px;
  max-width: 220px;
  filter: drop-shadow(0 1px 3px rgba(6, 19, 29, .22)) drop-shadow(0 4px 10px rgba(6, 19, 29, .17));
}

.brand:hover .brand__logo {
  transform: scale(1.025);
}

.site-header .brand:hover .brand__logo {
  filter: drop-shadow(0 2px 5px rgba(6, 19, 29, .28)) drop-shadow(0 6px 16px rgba(6, 19, 29, .22));
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--ink-800), var(--brand-800));
  color: var(--brand-200);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.brand__mark svg {
  width: 30px;
  height: 30px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand__tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav__link:hover {
  color: var(--ink-900);
  background: rgba(0, 184, 221, .08);
}

.nav__link.is-active {
  color: var(--ink-900);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand-500);
}

.nav__cta {
  margin-left: 10px;
}

.nav-toggle {
  position: relative;
  z-index: 96;
  /* por encima del panel para poder cerrarlo */
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: var(--sh-xs);
}

.nav-toggle__bars {
  display: grid;
  gap: 4.5px;
  width: 19px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .32s var(--ease), opacity .2s var(--ease), width .32s var(--ease);
}

.nav-toggle__bars i:last-child {
  width: 13px;
  margin-left: auto;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6.4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  width: 19px;
  transform: translateY(-6.4px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 30, 42, .34);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.nav-scrim.is-open {
  opacity: 1;
}

/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(34px, 4.2vw, 62px) clamp(38px, 4.8vw, 70px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(0, 184, 221, .16), transparent 58%),
    radial-gradient(90% 70% at 4% 92%, rgba(162, 234, 247, .25), transparent 60%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -14%;
  right: -8%;
  z-index: 0;
  width: min(620px, 58vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(0, 184, 221, .14), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.1vw, 68px);
  line-height: 1.04;
  letter-spacing: -.032em;
  color: var(--ink-900);
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(17px, 1.15vw, 19.5px);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}

.hero__points svg {
  width: 15px;
  height: 15px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  color: var(--brand-700);
  background: var(--brand-100);
  box-sizing: content-box;
}

/* Composición de ADN */
.hero__visual {
  position: relative;
}

.helix-card {
  position: relative;
  aspect-ratio: 400/500;
  max-height: min(560px, 68vh);
  margin-inline: auto;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 30% 12%, rgba(255, 255, 255, .95), transparent 60%),
    linear-gradient(155deg, #FFFFFF 0%, #EDF7FA 50%, #D8F3F9 100%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--sh-lg);
}

.helix-card__grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 184, 221, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 221, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(75% 65% at 50% 45%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000, transparent 78%);
}

.helix {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 78%;
  height: auto;
  overflow: visible;
  animation: helix-float 9s ease-in-out infinite;
}

@keyframes helix-float {

  0%,
  100% {
    transform: translateY(-6px) rotate(-1.2deg);
  }

  50% {
    transform: translateY(6px) rotate(1.2deg);
  }
}

.helix__strand {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5.5;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: helix-draw 2.2s var(--ease-out) forwards;
}

.helix__strand.s1 {
  stroke: var(--brand-500);
}

.helix__strand.s2 {
  stroke: var(--ink-800);
  animation-delay: .18s;
}

@keyframes helix-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.helix__rungs line {
  stroke-linecap: round;
}

.helix__rungs .r1 {
  stroke: var(--brand-500);
}

.helix__rungs .r2 {
  stroke: var(--brand-300);
}

.helix__rungs {
  animation: rungs-in 1.4s .6s var(--ease-out) backwards;
}

@keyframes rungs-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 11px 15px 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--sh-md);
  animation: chip-float 7s ease-in-out infinite;
}

.chip--a {
  left: -4%;
  top: 16%;
}

.chip--b {
  right: -4%;
  bottom: 14%;
  animation-delay: -3.5s;
}

@keyframes chip-float {

  0%,
  100% {
    transform: translateY(-5px);
  }

  50% {
    transform: translateY(5px);
  }
}

.chip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.chip__icon svg {
  width: 19px;
  height: 19px;
}

.chip figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chip strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.chip span {
  font-size: 12.5px;
  color: var(--text-3);
}

/* ── 8. CONFIANZA ──────────────────────────────────────────── */
.trust {
  padding-top: clamp(24px, 1.8vw, 24px);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.tcard {
  padding: clamp(22px, 2.2vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-md);
}

.tcard__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--brand-50), var(--brand-100));
  color: var(--brand-700);
  transition: background .35s var(--ease), color .35s var(--ease);
}

.tcard:hover .tcard__icon {
  background: var(--brand-700);
  color: #fff;
}

.tcard__icon svg {
  width: 23px;
  height: 23px;
}

.tcard h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.tcard p {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── 9. PRUEBAS QUE REALIZAMOS ─────────────────────────────── */
.tests__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(16px, 1.8vw, 22px);
  align-items: stretch;
}

.test-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.test-card--wide {
  grid-column: span 3;
}

.test-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
  transform: translateY(-3px);
}

.test-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.test-card__icon svg {
  width: 24px;
  height: 24px;
}

.test-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.018em;
  color: var(--ink-900);
  margin-bottom: 10px;
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
}

.test-card__text {
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--text-2);
  flex-grow: 1;
  margin-bottom: 16px;
}

.test-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14.2px;
  font-weight: 600;
  color: var(--brand-800);
  transition: color .2s var(--ease);
}

.test-card__toggle:hover {
  color: var(--brand-600);
}

.test-card__arrow {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--brand-600);
  transition: transform .25s var(--ease);
}

.test-card__toggle:hover .test-card__arrow {
  transform: translateX(3px);
}

/* Subsección de otros estudios (exclusivamente informativos) */
.tests__extra {
  margin-top: clamp(56px, 6.5vw, 88px);
  padding-top: clamp(48px, 5.5vw, 76px);
  border-top: 1px solid var(--line);
}

.tests__extra-head {
  max-width: 720px;
}

.section__title--sub {
  font-size: clamp(26px, 3vw, 40px);
}

.tests__grid--extra {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tests__grid--extra > .test-card {
  grid-column: span 1;
}

.test-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.test-card__top .test-card__icon {
  margin-bottom: 0;
}

.test-card__badge {
  border: 1px solid var(--brand-200);
}

.note--info-only {
  background: var(--brand-50);
  border-color: var(--brand-200);
  border-left: 3px solid var(--brand-600);
}

.tspec {
  display: grid;
  gap: 15px;
  padding-top: 18px;
}

.tspec__row {
  display: grid;
  gap: 4px;
}

.tspec dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.6px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tspec dt svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand-600);
}

.tspec dd {
  margin: 0;
  font-size: 14.4px;
  line-height: 1.6;
  color: var(--text-2);
}

.ticks {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.2px;
  color: var(--text-2);
}

.ticks svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 4px;
  padding: 3px;
  border-radius: 50%;
  box-sizing: content-box;
  color: #fff;
  background: var(--brand-700);
}

.ticks--sm li {
  font-size: 14.2px;
}

/* ── 9b. MODAL DE DETALLE ──────────────────────────────────── */
.modal {
  display: none;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(12, 30, 42, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal[open] {
  display: block;
  animation: modal-in .32s var(--ease-out);
}

.modal[open]::backdrop {
  animation: backdrop-in .32s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

/* El fondo no se desplaza mientras hay un diálogo abierto */
body:has(dialog[open]) {
  overflow: hidden;
}

.modal__box {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 56px);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(20px, 2.4vw, 28px) 18px;
  border-bottom: 1px solid var(--line-2);
}

.modal__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.modal__icon svg {
  width: 22px;
  height: 22px;
}

.modal__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.018em;
  color: var(--ink-900);
}

.modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-3);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.modal__close:hover {
  background: var(--bone-2);
  color: var(--ink-900);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: 20px clamp(20px, 2.4vw, 28px) 24px;
  overflow-y: auto;
}

.modal__lead {
  font-size: 15.2px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 22px;
}

.modal__body .tspec {
  padding-top: 0;
}

/* ── 10. PROCESO ───────────────────────────────────────────── */
.process {
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
}

.steps {
  --gap: clamp(16px, 2vw, 26px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.step {
  position: relative;
  padding-top: 4px;
}

.step__rail {
  position: absolute;
  left: 64px;
  right: calc(-1 * var(--gap));
  top: 30px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.step:last-child .step__rail {
  display: none;
}

.step__rail-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
  transition: width .9s var(--ease-out);
}

.step.is-in .step__rail-fill {
  width: 100%;
  transition-delay: calc(var(--d, 0) * 160ms);
}

.step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--brand-200);
  color: var(--brand-700);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.step:hover .step__icon {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}

.step__icon svg {
  width: 24px;
  height: 24px;
}

.step__num {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink-900);
  margin-bottom: 9px;
}

.step__text {
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--text-2);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(40px, 4.5vw, 60px);
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand-500);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-xs);
}

.note + .note {
  margin-top: 14px;
}

.note__icon {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 2px;
  color: var(--sand-600);
}

.note p {
  font-size: 15px;
  color: var(--text-2);
}

.note strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* ── 11. PRIVACIDAD ────────────────────────────────────────── */
.privacy,
.about {
  position: relative;
  padding-block: var(--sp-section);
  background: linear-gradient(155deg, var(--ink-900) 0%, var(--ink-800) 45%, var(--brand-900) 100%);
  color: #fff;
  overflow: hidden;
}

.privacy__pattern,
.about__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 184, 221, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(90% 70% at 78% 22%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 70% at 78% 22%, #000, transparent 72%);
  pointer-events: none;
}

.privacy__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.privacy__lead {
  font-size: clamp(16.5px, 1.05vw, 18.5px);
  line-height: 1.68;
  color: rgba(255, 255, 255, .76);
  max-width: 52ch;
}

.privacy__list {
  display: grid;
  gap: 14px;
}

.pitem {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.pitem:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(0, 184, 221, .36);
  transform: translateX(4px);
}

.pitem__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(0, 184, 221, .16);
  color: var(--brand-300);
}

.pitem__icon svg {
  width: 21px;
  height: 21px;
}

.pitem h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #fff;
  margin-bottom: 5px;
}

.pitem p {
  font-size: 14.6px;
  line-height: 1.58;
  color: rgba(255, 255, 255, .66);
}

.privacy__note {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
}

.privacy__note a {
  color: var(--brand-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy__note a:hover {
  color: #fff;
}

/* ── 11b. SOBRE MÍ ─────────────────────────────────────────── */
.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.about__lead {
  font-size: clamp(16.5px, 1.05vw, 18.5px);
  line-height: 1.68;
  color: rgba(255, 255, 255, .76);
  max-width: 52ch;
  margin-bottom: 26px;
}

.about__card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
}

.about__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 184, 221, .14);
  border: 1.5px dashed rgba(0, 184, 221, .45);
  color: var(--brand-300);
}

.about__avatar svg {
  width: 30px;
  height: 30px;
}

.about__photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.about__card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.about__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #fff;
}

.about__role {
  font-size: 14.4px;
  color: rgba(255, 255, 255, .7);
}

.about__lic {
  font-size: 12.8px;
  color: rgba(255, 255, 255, .45);
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.about__h {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 22px;
}

.about__h-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(0, 184, 221, .16);
  color: var(--brand-300);
}

.about__h-icon svg {
  width: 18px;
  height: 18px;
}

/* Diplomados y certificaciones: ocupa el ancho de las dos columnas */
.about__block--full {
  grid-column: 1 / -1;
  margin-top: clamp(12px, 1.6vw, 22px);
}

.certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.certs__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}

.certs__item:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(0, 184, 221, .36);
}

.certs__item--full {
  grid-column: 1 / -1;
}

.certs__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 9px;
  background: rgba(0, 184, 221, .16);
  color: var(--brand-300);
}

.certs__icon svg {
  width: 16px;
  height: 16px;
}

.certs__item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.certs__name {
  font-size: 14.8px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: #fff;
}

.certs__meta {
  font-size: 13.2px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}

.certs__meta a {
  color: var(--brand-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
  transition: color .2s var(--ease);
}

.certs__meta a:hover {
  color: #fff;
}

/* Línea de tiempo de formación y experiencia */
.tl {
  display: grid;
}

.tl__item {
  position: relative;
  padding: 0 0 26px 26px;
}

.tl__item:last-child {
  padding-bottom: 0;
}

.tl__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(38, 201, 236, .22);
}

.tl__item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  bottom: -2px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(0, 184, 221, .35), rgba(0, 184, 221, .06));
}

.tl__item:last-child::after {
  display: none;
}

.tl__year {
  display: block;
  font-size: 12.4px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--brand-200);
  margin-bottom: 5px;
}

.tl__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: #fff;
  margin-bottom: 4px;
}

.tl__text {
  margin: 0;
  font-size: 14.2px;
  line-height: 1.58;
  color: rgba(255, 255, 255, .62);
}

/* Marcadores pendientes sobre fondo oscuro */
.about .ph {
  color: var(--sand-300);
}

/* ── 12. FAQ ───────────────────────────────────────────────── */
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq__head .section__lead {
  font-size: 16.5px;
}

.accordion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.acc+.acc {
  border-top: 1px solid var(--line-2);
}

.acc__h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px clamp(20px, 2.2vw, 28px);
  text-align: left;
  font-size: 16.2px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink-900);
  transition: background-color .22s var(--ease), color .22s var(--ease);
}

.acc__btn:hover {
  background: var(--brand-50);
}

.acc__btn:focus-visible {
  outline-offset: -3px;
}

.acc__chevron {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-700);
  transition: transform .32s var(--ease);
}

.acc__btn[aria-expanded="true"] {
  color: var(--brand-800);
}

.acc__btn[aria-expanded="true"] .acc__chevron {
  transform: rotate(180deg);
}

.acc__panel {
  overflow: hidden;
  transition: height .36s var(--ease);
}

.acc__content {
  padding: 0 clamp(20px, 2.2vw, 28px) 22px;
  font-size: 15.4px;
  line-height: 1.68;
  color: var(--text-2);
  max-width: 62ch;
}

.acc__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 14. CONTACTO Y UBICACIÓN ──────────────────────────────── */
.contact {
  background: linear-gradient(180deg, var(--bone-2) 0%, var(--bone) 46%);
}

.contact__layout {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}

/* Tarjeta de WhatsApp */
.wa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
  padding: clamp(28px, 3.2vw, 40px) clamp(24px, 2.8vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.wa-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}

.wa-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(31, 168, 85, .1);
  color: var(--wa);
}

.wa-card__icon svg {
  width: 28px;
  height: 28px;
}

.wa-card__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.wa-card__text {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 42ch;
  margin: 0 auto 20px;
}

.wa-card .ticks {
  margin-top: 22px;
  text-align: left;
}

.wa-card__note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}

.wa-card__note a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tarjeta de Información de Oficina */
.info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 3.2vw, 40px) clamp(24px, 2.8vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.info-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.info-card__header-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.info-card__header-icon svg {
  width: 22px;
  height: 22px;
}

.info-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink-900);
  margin: 0;
}

.info-card__subtitle {
  font-size: 13.5px;
  color: var(--text-3);
  margin: 2px 0 0;
}

.info-card__list {
  display: grid;
  gap: 0;
  flex: 1;
}

.info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.info__item + .info__item {
  border-top: 1px solid var(--line-2);
}

.info__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.info__icon--wa {
  background: rgba(31, 168, 85, .1);
  color: var(--wa);
}

.info__icon svg {
  width: 19px;
  height: 19px;
}

.info__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.info__value {
  display: block;
  font-size: 14.8px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-900);
}

.info__value--link {
  color: var(--brand-800);
  transition: color .2s var(--ease);
}

.info__value--link:hover {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card__footer {
  margin-top: auto;
  padding-top: 20px;
}

/* Tarjeta del Mapa Completa */
.map-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.map-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}

.map-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
}

.map-card__location {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-card__pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.map-card__pin svg {
  width: 19px;
  height: 19px;
}

.map-card__name {
  display: block;
  font-size: 14.8px;
  font-weight: 600;
  color: var(--ink-900);
}

.map-card__address {
  display: block;
  font-size: 13.2px;
  color: var(--text-2);
}

.map-card__frame-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 32vw, 420px);
  background: var(--bone-2);
}

.map-card__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── 15. FOOTER ────────────────────────────────────────────── */
.footer {
  padding-block: clamp(31px, 3.6vw, 46px) 0;
  background: var(--ink-900);
  color: rgba(255, 255, 255, .68);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(22px, 2.4vw, 31px);
}

.brand--footer {
  color: #fff;
  margin-bottom: 18px;
}

.brand--footer:hover {
  color: #fff;
}

.brand--footer .brand__logo {
  height: 54px;
  max-width: 200px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.brand--footer .brand__mark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: none;
}

.brand--footer .brand__tag {
  color: rgba(255, 255, 255, .55);
}

.footer__about {
  font-size: 14.6px;
  line-height: 1.65;
  max-width: 38ch;
}

.footer__h {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 16px;
}

.footer__nav ul,
.footer__contact ul {
  display: grid;
  gap: 10px;
}

.footer__nav a,
.footer__contact a {
  font-size: 14.8px;
  color: rgba(255, 255, 255, .72);
  transition: color .2s var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: #fff;
}

.footer__contact li {
  font-size: 14.8px;
  line-height: 1.55;
}

.footer .ph {
  color: var(--brand-300);
  background: linear-gradient(180deg, transparent 62%, rgba(0, 184, 221, .24) 62%);
}

.footer .ph:hover {
  color: var(--brand-100);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__copy {
  margin: 0;
  font-size: 13.6px;
  color: rgba(255, 255, 255, .5);
}

.footer__legal {
  display: flex;
  gap: 22px;
}

.footer__legal a {
  font-size: 13.6px;
  color: rgba(255, 255, 255, .62);
}

.footer__legal a:hover {
  color: #fff;
}

/* ── 16. BARRA MÓVIL ───────────────────────────────────────── */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -14px rgba(12, 30, 42, .34);
  transform: translateY(110%);
  transition: transform .38s var(--ease);
}

.mobile-bar.is-visible {
  transform: none;
}

.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 11.6px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink-800);
  background: var(--bone-2);
}

.mobile-bar__btn svg {
  width: 19px;
  height: 19px;
}

.mobile-bar__btn--wa {
  background: rgba(31, 168, 85, .11);
  color: #14713a;
}

.mobile-bar__btn--wide {
  flex: 1.6;
}

.mobile-bar__btn--primary {
  background: var(--brand-700);
  color: #fff;
}

.mobile-bar__btn--primary:hover {
  color: #fff;
}

/* ── 17. RESPONSIVE ────────────────────────────────────────── */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

@media (max-width:1080px) {

  /* Seis enlaces + CTA aprietan la barra en esta franja */
  .nav__link {
    padding: 9px 10px;
    font-size: 13.8px;
  }

  .nav__cta {
    margin-left: 6px;
  }

  .faq__inner {
    grid-template-columns: 1fr;
  }

  .faq__head {
    position: static;
    max-width: 660px;
  }

  .privacy__inner {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .tests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-card,
  .test-card--wide {
    grid-column: span 1;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(30px, 4vw, 44px);
  }

  .step__rail {
    display: none;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    row-gap: 36px;
  }
}

@media (max-width:960px) {
  :root {
    --header-h: 70px;
  }

  .site-header .brand__logo {
    height: 56px;
    max-width: 190px;
  }

  /* Menú lateral en móvil/tablet */
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(360px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 20px) 22px 32px;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 70px -40px rgba(12, 30, 42, .5);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .4s var(--ease), visibility .4s;
  }

  .nav.is-open {
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 14px;
    font-size: 16.5px;
    border-radius: 12px;
  }

  .nav__link.is-active {
    background: var(--brand-50);
    color: var(--brand-800);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__cta {
    margin: 22px 0 0;
    width: 100%;
    padding-block: 14px;
    font-size: 15.5px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 56px);
  }

  .hero__visual {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

  .helix-card {
    aspect-ratio: 4/5;
  }

  .contact__grid,
  .contact__cards {
    grid-template-columns: 1fr;
  }

  .map-card__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card__action {
    width: 100%;
  }

  .map-card__frame-wrap {
    height: 300px;
  }
}

@media (max-width:760px) {
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Proceso: línea de tiempo vertical */
  .steps {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .step {
    position: relative;
    padding: 0 0 0 74px;
  }

  .step__icon {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .step__rail {
    display: block;
    left: 26px;
    right: auto;
    top: 60px;
    width: 2px;
    height: calc(100% + 34px - 60px);
  }

  .step:last-child .step__rail {
    display: none;
  }

  .step__rail-fill {
    width: 100%;
    height: 0;
    transition: height .9s var(--ease-out);
  }

  .step.is-in .step__rail-fill {
    height: 100%;
  }

  .step__num {
    padding-top: 8px;
  }

  .tests__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .about__cols {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .certs {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }

  /* Barra de contacto siempre a la mano */
  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 78px;
  }
}

@media (max-width:560px) {
  .brand {
    gap: 9px;
  }

  .brand__logo {
    height: 38px;
    max-width: 150px;
  }

  .site-header .brand__logo {
    height: 50px;
    max-width: 165px;
  }

  .brand__tag {
    font-size: 10px;
    line-height: 1.2;
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .chip--a {
    left: 0;
    top: 10%;
  }

  .chip--b {
    right: 0;
    bottom: 8%;
  }

  .chip {
    padding: 9px 13px 9px 10px;
  }

  .chip__icon {
    width: 32px;
    height: 32px;
  }

  .chip strong {
    font-size: 13px;
  }

  .chip span {
    font-size: 11.5px;
  }

  .acc__btn {
    font-size: 15.4px;
    gap: 14px;
  }

  .note {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width:380px) {
  .brand__tag {
    display: none;
  }
}

/* ── 18. MOVIMIENTO REDUCIDO ───────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .helix__strand {
    stroke-dashoffset: 0;
  }

  .step__rail-fill {
    width: 100%;
  }
}

/* ── 19. PÁGINA LEGAL ──────────────────────────────────────── */
.legal {
  padding-block: clamp(29px, 3.6vw, 50px) clamp(34px, 4.2vw, 58px);
}

.legal__inner {
  max-width: 760px;
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.028em;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.legal__meta {
  font-size: 14.5px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.legal__callout {
  padding: 18px 22px;
  margin-bottom: 44px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-sm);
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--text-2);
}

.legal__callout strong {
  display: block;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.legal__block {
  margin-bottom: 34px;
}

.legal__block h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.legal__block p {
  font-size: 15.6px;
  line-height: 1.72;
  color: var(--text-2);
}

.legal__list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.legal__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15.4px;
  line-height: 1.65;
  color: var(--text-2);
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.legal__back {
  margin-top: 12px;
}

.footer--slim {
  padding-top: 0;
}

.footer--slim .footer__bottom {
  border-top: 0;
  padding-block: 26px;
}