/* ==========================================================
   NUKOB — estilos
   Paleta: crema + verde bosque + coral de marca (logo)
   ========================================================== */

:root {
  /* Color: superficies */
  --cream: #FAF5EE;
  --paper: #FFFDF9;
  --sand: #F1E6D6;
  --forest: #1F3D36;
  --forest-2: #2C5248;

  /* Color: texto */
  --ink: #1B2A26;
  --ink-soft: #4A5A55;
  --on-forest: #FAF5EE;
  --on-forest-soft: #C9D7CF;   /* secundario sobre verde: teñido, no gris */

  /* Color: marca y acentos */
  --coral: #E85C41;
  --coral-deep: #B9472E;       /* coral para texto: AA sobre crema */
  --peach: #F6CDB4;
  --sage: #CFE0D4;
  --line: rgba(31, 61, 54, .12);
  --line-strong: rgba(31, 61, 54, .3);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Espaciado y forma */
  --gutter: 1.25rem;
  --max: 72rem;
  --radius: 1rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);

  /* Movimiento: curvas fuertes; nunca ease-in en UI */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  /* Superficies del navegador, tematizadas con la paleta */
  scrollbar-color: var(--line-strong) var(--cream);
  accent-color: var(--forest);
  caret-color: var(--coral);
}

::selection { background: var(--peach); color: var(--forest); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a, button { touch-action: manipulation; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--forest);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--forest);
  color: var(--on-forest);
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 600;
  /* Acción de teclado: aparece al instante, sin animación */
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.lead {
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
  /* Soltar: 200ms; presionar: 100ms (la respuesta al toque es inmediata) */
  transition:
    background-color 200ms ease,
    text-decoration-color 200ms ease,
    transform 200ms var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn-primary {
  background: var(--forest);
  color: var(--on-forest);
  box-shadow: 0 8px 20px -10px rgba(31, 61, 54, .6);
}
.btn-primary:active { background: var(--forest-2); }
.btn-sm { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-link {
  color: var(--forest);
  padding-inline: .5rem;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.btn-link .arrow {
  width: 1.15em; height: 1.15em;
  transition: transform 200ms var(--ease-out);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding-block: .5rem;
  color: var(--coral);
  text-decoration: none;
}
.logo svg, .logo img { height: 1.75rem; width: auto; }

/* Selector de idioma: discreto, pero con área táctil de 44px */
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-left: auto;
  margin-right: .25rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.lang-switch:active { background: var(--sand); }
.logo-sm svg, .logo-sm img { height: 1.375rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.375rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  /* Morfología ☰ → ✕ en pantalla: ease-in-out */
  transition: transform 200ms var(--ease-in-out), background-color 150ms ease;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem var(--gutter) 1.75rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -16px rgba(31, 61, 54, .2);
  /* Cerrado: salida más rápida que la entrada */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.5rem);
  transition:
    opacity 150ms ease,
    transform 150ms var(--ease-out),
    visibility 0s linear 150ms;
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s;
}
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: .75rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 150ms ease;
}
.nav-list a:active { color: var(--coral-deep); }

/* Menú móvil: al abrir, los enlaces entran escalonados (35ms); al cerrar, salen juntos y más rápido */
@media (max-width: 63.99em) {
  .nav-list li {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms var(--ease-out);
  }
  .nav.is-open .nav-list li {
    opacity: 1;
    transform: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  }
  .nav.is-open .nav-list li:nth-child(2) { transition-delay: 35ms; }
  .nav.is-open .nav-list li:nth-child(3) { transition-delay: 70ms; }
  .nav.is-open .nav-list li:nth-child(4) { transition-delay: 105ms; }
  .nav.is-open .nav-list li:nth-child(5) { transition-delay: 140ms; }
}

/* ---------- Formas de fondo ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 8vw, 6rem);
  overflow-x: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-1 {
  width: 28rem; height: 28rem;
  top: -10rem; right: -10rem;
  background: radial-gradient(circle at 40% 40%, var(--peach), rgba(246, 205, 180, 0) 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 22rem; height: 22rem;
  bottom: -8rem; left: -8rem;
  background: radial-gradient(circle at 50% 50%, var(--sage), rgba(207, 224, 212, 0) 70%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.625rem, 7.8vw, 4.75rem);
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--coral-deep);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 2.25rem;
}
/* Foto del hero (Unsplash, Amy Hirschi). Encuadre 4:3 en móvil, cuadrado en escritorio. */
.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 58% 45%;
  border-radius: 1.25rem;
  background: var(--sand);   /* mientras carga */
  box-shadow: 0 24px 48px -28px rgba(31, 61, 54, .45);
}
/* El acuerdo: un check sobre la foto */
.hero-photo-badge {
  position: absolute;
  left: -.75rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 3.75rem; height: 3.75rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  border: 4px solid var(--cream);
  box-shadow: 0 10px 24px -12px rgba(31, 61, 54, .5);
}
.hero-photo-badge svg { width: 1.75rem; height: 1.75rem; }

/* Momento de autor: la foto se descubre de abajo hacia arriba y luego aparece el check.
   El estado final es el estado por defecto (sin animación, todo queda visible). */
/* La revelación arranca cuando la foto terminó de cargar (onload → .is-ready);
   así nunca se anima un recuadro vacío. Sin JS, todo se ve directamente. */
.js .hero-photo:not(.is-ready) img,
.js .hero-photo:not(.is-ready) .hero-photo-badge { opacity: 0; }
.hero-photo.is-ready img { animation: photo-reveal 1000ms var(--ease-expo) both; }
.hero-photo.is-ready .hero-photo-badge { animation: badge-in 450ms var(--ease-expo) 650ms both; }
.tick { stroke-dasharray: 1; }
.hero-photo.is-ready .tick { animation: tick-draw 400ms var(--ease-out) 900ms both; }

/* ---------- Idea central ---------- */
.idea { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.idea-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
  letter-spacing: -.015em;
}
.idea-text span { color: var(--forest); }

/* ---------- Cifras ---------- */
.stats { position: relative; padding-bottom: clamp(1rem, 4vw, 2rem); }
.stats-band {
  /* La banda verde envuelve título + cifras */
  --band-pad-x: clamp(1.5rem, 4vw, 3rem);
}
.stats-title {
  margin: 0;
  padding: clamp(2rem, 5vw, 2.75rem) var(--band-pad-x) 0;
  background: var(--forest);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--on-forest);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
}
.stats-list {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) var(--band-pad-x) clamp(2rem, 5vw, 3rem);
  background: var(--forest);
  color: var(--on-forest);
  border-radius: 0 0 var(--radius) var(--radius);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-block: 1rem;
}
.stat + .stat { border-top: 1px solid rgba(250, 245, 238, .14); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--peach);
  letter-spacing: -.02em;
}
.stat-label { color: var(--on-forest-soft); max-width: 16rem; }

/* ---------- Secciones genéricas ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); text-wrap: pretty; }
.section-intro { margin-top: 1rem; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Cómo trabajamos: recorrido conectado ---------- */
.path {
  --dot: 3rem;
  --path-gap: 2.5rem;
  display: grid;
  gap: var(--path-gap);
}
.path-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  column-gap: 1.25rem;
  align-content: start;
}
.path-dot {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-forest);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
  position: relative;
  z-index: 1;
}
.path-step h3 { font-size: 1.5rem; padding-top: .6rem; margin-bottom: .4rem; }
.path-step p { color: var(--ink-soft); max-width: 22rem; }

/* Tramo entre pasos (vertical en móvil) */
.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  top: calc(var(--dot) + .5rem);
  bottom: calc(.5rem - var(--path-gap));
  border-left: 2px solid var(--line-strong);
  transform-origin: top;
  transition: transform 600ms var(--ease-out);
}
/* El camino hacia el respaldo legal es punteado: se recorre solo si hace falta */
.path-step:nth-child(3)::after { border-left-style: dashed; }
.path-step--backup .path-dot {
  background: transparent;
  color: var(--forest);
  border: 2px dashed var(--line-strong);
}
.path-step:nth-child(2)::after { transition-delay: 150ms; }
.path-step:nth-child(3)::after { transition-delay: 300ms; }
.js .path:not(.is-drawn) .path-step::after { transform: scaleY(0); }

/* ---------- Para tu institución ---------- */
.institution { background: var(--sand); }
.institution::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 3rem;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.institution-inner { display: grid; gap: 1rem; position: relative; }
.institution .section-head .btn { margin-top: 2rem; }

.offer li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.5rem;
}
.offer li::before,
.offer li:last-child::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.offer li::before { top: 0; }
.offer li:last-child::after { bottom: 0; transition-delay: 240ms; }
.offer li:nth-child(2)::before { transition-delay: 60ms; }
.offer li:nth-child(3)::before { transition-delay: 120ms; }
.offer li:nth-child(4)::before { transition-delay: 180ms; }
.js .offer:not(.is-drawn) li::before,
.js .offer:not(.is-drawn) li:last-child::after { transform: scaleX(0); }
.offer-icon { width: 2rem; height: 2rem; flex: none; color: var(--coral-deep); }
.offer p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--forest);
}

/* ---------- Nuestro enfoque ---------- */
.approach {
  background: var(--forest);
  color: var(--on-forest);
  overflow: hidden;
}
.approach-bg { position: absolute; inset: 0; pointer-events: none; display: none; }
.approach-bg svg { width: 100%; height: 100%; }
.approach-inner { position: relative; }
.approach h2 { color: var(--on-forest); }
.approach .section-intro { color: var(--on-forest-soft); }

.values { display: grid; gap: 2.5rem; }
.value h3 {
  font-size: 1.5rem;
  color: var(--on-forest);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.value p { color: var(--on-forest-soft); line-height: 1.65; max-width: 34rem; }
.value:not(.value--lead) { padding-top: 1.75rem; border-top: 1px solid rgba(250, 245, 238, .18); }
/* Lo primero se ve primero: las personas en el tamaño mayor y en color cálido */
.value--lead h3 {
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--peach);
}
.value--lead p { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: var(--on-forest); max-width: 40rem; }

/* ---------- Tecnología que potencia lo humano ---------- */
.tech-list { display: grid; gap: 0; }
.tech-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 1.25rem;
  padding-block: 1.5rem;
}
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.tech-list li:nth-child(2)::before { transition-delay: 60ms; }
.tech-list li:nth-child(3)::before { transition-delay: 120ms; }
.js .tech-list:not(.is-drawn) li::before { transform: scaleX(0); }
.tech-icon { grid-row: span 2; width: 2rem; height: 2rem; color: var(--coral-deep); }
.tech-list h3 { font-size: 1.375rem; margin-bottom: .35rem; }
.tech-list p { color: var(--ink-soft); max-width: 30rem; }
.tech-closing {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--coral-deep);
  max-width: 34rem;
}

/* ---------- Datos y confidencialidad ---------- */
.privacy { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.privacy-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.privacy-icon { width: 3.5rem; height: 3.5rem; flex: none; }
.privacy h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: .5rem; }
.privacy p { color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact {
  overflow: hidden;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
}
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-4 {
  width: 34rem; height: 34rem;
  left: 50%; top: 50%;
  margin: -17rem 0 0 -17rem;
  background: radial-gradient(circle, var(--peach), rgba(246, 205, 180, 0) 68%);
  animation: drift 30s ease-in-out infinite alternate;
}
.orb-5 {
  width: 16rem; height: 16rem;
  left: 8%; bottom: -6rem;
  background: radial-gradient(circle, var(--sage), rgba(207, 224, 212, 0) 70%);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
.contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact h2 { font-size: clamp(2.75rem, 8vw, 5rem); letter-spacing: -.025em; }
.contact .lead { margin-bottom: 1.25rem; }
.contact-mail { color: var(--ink-soft); margin-top: .5rem; }
.contact-mail a { color: var(--forest); font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-block; padding-block: .6rem; color: var(--forest); }
.credit { display: block; margin-top: .25rem; font-size: .8125rem; }
.credit a { color: inherit; }

/* ---------- Animaciones ---------- */
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5rem, 1.75rem, 0) scale(1.08); }
}
@keyframes photo-reveal {
  from { clip-path: inset(18% 0 0 0 round 1.25rem); transform: scale(1.04); opacity: .4; }
  to   { clip-path: inset(0 0 0 0 round 1.25rem); transform: none; opacity: 1; }
}
@keyframes badge-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes tick-draw { from { stroke-dashoffset: 1; } }

/* Hover solo en dispositivos con puntero real (evita hover "pegado" al tocar) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--forest-2); }
  .btn-link:hover { text-decoration-color: currentColor; }
  .btn-link:hover .arrow { transform: translateX(3px); }
  .nav-list a:hover { color: var(--coral-deep); }
  .lang-switch:hover { color: var(--forest); background: var(--sand); }
}

/* Movimiento reducido: más suave, no cero. Se quitan desplazamientos, escalas y
   animaciones continuas; se conservan los fundidos de opacidad y color. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .hero-photo.is-ready img { animation: fade-in 400ms ease both; }
  .hero-photo.is-ready .hero-photo-badge { animation: fade-in 300ms ease 200ms both; }
  .hero-photo.is-ready .tick { animation: none; }
  .js .path:not(.is-drawn) .path-step::after,
  .js .offer:not(.is-drawn) li::before,
  .js .offer:not(.is-drawn) li:last-child::after,
  .js .tech-list:not(.is-drawn) li::before { transform: none; }
  .btn, .btn:active, .btn-link .arrow, .nav, .nav.is-open,
  .nav-list li, .nav.is-open .nav-list li { transform: none !important; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Tablet (≥ 768px) ---------- */
@media (min-width: 48em) {
  :root { --gutter: 2rem; }

  .stats-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stat { padding-block: 0; }
  .stat + .stat { border-top: 0; border-left: 1px solid rgba(250, 245, 238, .14); padding-left: 2rem; }

  .approach-bg { display: block; }
  .values { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .value--lead { grid-column: 1 / -1; }

  .privacy-inner { flex-direction: row; align-items: center; gap: 1.75rem; padding: 2.25rem 2.5rem; }

  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* ---------- Escritorio (≥ 1024px) ---------- */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav { margin-left: auto; }
  .lang-switch { order: 3; margin: 0 0 0 1rem; }
  .nav-list { flex-direction: row; gap: 1.75rem; }
  .nav-list a { padding: .25rem 0; border: 0; font-size: .9688rem; }

  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .hero-photo-badge { left: -1.5rem; bottom: 2.5rem; width: 4.5rem; height: 4.5rem; }
  .hero-photo-badge svg { width: 2rem; height: 2rem; }

  /* Recorrido horizontal */
  .path { --path-gap: 2rem; grid-template-columns: repeat(4, 1fr); }
  .path-step { grid-template-columns: 1fr; row-gap: 0; }
  .path-dot { grid-row: auto; margin-bottom: 1.5rem; }
  .path-step h3 { padding-top: 0; }
  .path-step:not(:last-child)::after {
    left: calc(var(--dot) + .5rem);
    right: calc(.5rem - var(--path-gap));
    top: calc(var(--dot) / 2 - 1px);
    bottom: auto;
    border-left: 0;
    border-top: 2px solid var(--line-strong);
    transform-origin: left;
  }
  .path-step:nth-child(3)::after { border-top-style: dashed; }
  .js .path:not(.is-drawn) .path-step::after { transform: scaleX(0); }

  .institution-inner { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .institution .section-head { position: sticky; top: 7rem; margin-bottom: 0; }

  .approach-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .approach .section-head { margin-bottom: 0; }
  .values { grid-template-columns: 1fr 1fr; }

  .privacy-inner { margin-inline: auto; }

  /* Tecnología: encabezado a la izquierda, puntos a la derecha, cierre debajo del encabezado */
  .tech-inner { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 4rem; align-items: start; }
  .tech .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .tech-list { grid-column: 2; grid-row: 1 / span 2; }
  .tech-closing { grid-column: 1; grid-row: 2; align-self: end; }
}
