/* =========================================================
   KINEO · versión PC (diseño base 1440 px)
   ========================================================= */

/* ---------- Tipografías alojadas en el sitio (licencia OFL, ver assets/fonts) ---------- */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/fredoka-latin-700-normal.woff2') format('woff2'); }

:root {
  --coral:       #E58F72;
  --coral-dark:  #D97B5F;
  --mostaza:     #E8C97A;
  --azul:        #92B4CC;
  --oliva:       #A5A85B;
  --crema:       #FFFBEA;
  --gris:        #EDEDED;
  --texto:       #1c1c1c;
  --container:   1072px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El desplazamiento suave lo hace dinamic.js (con duración y curva propias).
   No pongas aquí "scroll-behavior: smooth" o se mezclaría con esa animación. */

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.container { width: min(var(--container), 100% - 80px); margin-inline: auto; }

section[id], footer[id] { scroll-margin-top: 88px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid var(--coral);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn--fill { background: var(--coral); color: #fff; }
.btn--fill:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn--outline { color: var(--coral); background: rgba(255, 251, 234, .65); }
.btn--outline:hover { background: var(--coral); color: #fff; }

.btn-pill {
  background: var(--mostaza);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.btn-pill:hover { transform: translateY(-2px); background: #e0be66; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 88px;
  background: var(--crema);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 56px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.header__nav > a:not(.btn-pill):hover { color: var(--coral-dark); }

.lang { margin-left: 32px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.header__burger { display: none; }   /* solo en celular */
.lang button { opacity: .5; padding: 2px 3px; transition: opacity .2s; }
.lang button:hover { opacity: .85; }
.lang button.is-active { opacity: 1; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(56.25vw, 860px);   /* proporción 1440 × 810 */
  min-height: 520px;
  overflow: hidden;
  background: #F6E9CF;
}

/* Capa 0 · habitación */
.hero__room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Capa 1 · línea con degradado */
.hero__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: draw-line 1.6s .3s cubic-bezier(.4, 0, .2, 1) both;
}
.hero__line path { stroke-width: 56; }

@keyframes draw-line {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Capa 2 · niño (por encima de la línea) */
.hero__kid {
  position: absolute;
  right: 3%;
  bottom: 0;
  height: 90%;
  width: auto;
  max-width: none;     /* sin esto, "img { max-width: 100% }" achica el ancho y el niño se ve estirado */
  z-index: 2;
}

/* Capa 3 · texto */
.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 5%;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }

.hero__title {
  font-size: clamp(2.8rem, 5.8vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero__title span { color: #FFB800; }

.hero__sub {
  margin-top: 20px;
  max-width: 19em;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
  line-height: 1.35;
}
.hero__actions { display: flex; gap: 24px; margin-top: 28px; }

/* ---------- ¿Qué es Kineo? ---------- */
.que-es { position: relative; overflow: hidden; background: #fff; }

.que-es__top {
  position: relative;
  z-index: 2;
  padding: 70px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.que-es__title { display: flex; align-items: center; justify-content: center; gap: 6px; }

.qm {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 12rem;
  line-height: .7;
  color: var(--azul);
  align-self: flex-start;
}
.qm--open  { transform: rotate(-8deg); }
.qm--close { transform: rotate(8deg); }
html[lang="en"] .qm--open { display: none; }

.que-es__words { display: flex; flex-direction: column; align-items: center; }
.que-es__small { align-self: flex-start; margin-left: 24px; font-size: 4rem; font-weight: 700; line-height: 1; }
.que-es__words img { width: 420px; height: auto; margin-top: -8px; }

.que-es__box {
  max-width: 800px;
  padding: 26px 36px;
  background: var(--azul);
  border-radius: 20px;
  font-size: 1rem;
}

/* Círculos decorativos (posiciones tomadas del diseño a 1440 px) */
.deco { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.deco--mostaza-izq { width: 440px; height: 440px; left: -250px; top: 205px; background: #EBD07F; }
.deco--azul-izq    { width: 170px; height: 170px; left: -116px; top: 800px; background: var(--azul); }
.deco--coral-der   { width: 180px; height: 180px; right: -50px; top: 530px; background: var(--coral); }
.deco--mostaza-der { width: 300px; height: 300px; right: -80px; top: 940px; background: #EBD07F; }
.deco--coral-abajo { width: 140px; height: 140px; left: -70px;  top: 1110px; background: var(--coral); }

/* ---------- Pilares ---------- */
.fortalece { background: var(--gris); padding: 56px 0 72px; }  /* sin z-index: no crea contexto de apilado */
.fortalece .container { position: relative; z-index: 2; }

.fortalece__label { text-align: center; font-size: .95rem; }

.fortalece__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 66px;
  margin-top: 28px;
}

/* Tarjeta giratoria: el contenedor (.pillar) no se mueve, solo gira .pillar__inner.
   Así el mouse no "parpadea" cuando la tarjeta está a mitad del giro. */
.pillar {
  width: 308px;
  height: 212px;
  perspective: 1000px;
  outline: none;
  cursor: pointer;
}
.pillar__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s ease-in-out;
}
.pillar:focus-visible .pillar__inner,
.pillar.is-flipped .pillar__inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .pillar:hover .pillar__inner { transform: rotateY(180deg); }
}

.pillar__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Frente: foto + velo de color + título.
   IMPORTANTE: aquí no se usa z-index. Un z-index en el texto hacía que se viera
   (al revés) a través del reverso al girar la tarjeta. El orden de pintado lo da
   el orden del HTML: primero el fondo (::before) y encima el texto (span). */
.pillar__front { background: #D9C99B; }
.pillar__front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(232, 201, 122, .55), rgba(229, 143, 114, .45)),
    var(--img) center / cover no-repeat;
}
.pillar__front span {
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0 18px;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* Reverso: tarjeta mostaza con el concepto */
.pillar__back {
  background: #EBCB7C;
  transform: rotateY(180deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.pillar__back p {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0 34px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}


/* ---------- Juegos ---------- */
.juegos {
  position: relative;
  padding: 80px 0 90px;
  background: #F4DFA0 url('assets/pc/fondo_pestaña_de_juegos.png') center / cover no-repeat;
}
.juegos::before { content: ""; position: absolute; inset: 0; background: rgba(255, 236, 170, .55); }
.juegos > * { position: relative; }

.juegos__band {
  height: 180px;
  line-height: 180px;
  background: var(--coral);
  color: #fff;
  text-align: center;
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.juegos__grid { display: flex; justify-content: center; gap: 22px; margin-top: 64px; }

.card {
  flex: 1 1 0;
  max-width: 344px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 56px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }

.card__title {
  padding: 34px 0 30px;
  background: var(--coral);
  color: #fff;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
}
.card__media { position: relative; height: 340px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Sin degradado ni botón encima: la foto del juego se ve completa */
.card__btn {
  position: relative;
  z-index: 2;
  margin: 22px 22px 28px;
  padding: 12px 0;
  background: var(--mostaza);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.card__btn:hover { background: #e0be66; transform: scale(1.03); }

/* ---------- Footer ---------- */
.footer { background: #fff; padding: 80px 0 56px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__brand img { width: 520px; height: auto; }
.footer__copy { margin-top: 14px; font-size: .85rem; }
.footer__cols { display: flex; gap: 90px; padding-top: 14px; }
.footer__col h3 { margin-bottom: 20px; font-size: 1.15rem; font-weight: 700; }
.footer__col li + li { margin-top: 16px; }
.footer__col a { font-size: .9rem; transition: color .2s; }
.footer__col a:hover { color: var(--coral-dark); }

/* ---------- Modal ---------- */
.modal {
  width: min(var(--container), 100% - 80px);   /* mismo ancho que el contenido de la página (de Imiteo a Ensarteo) */
  height: min(860px, 92vh);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 60px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(40, 50, 60, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Mientras la ventana está abierta, la página de fondo no hace scroll */
body:has(.modal[open]) { overflow: hidden; }
html { scrollbar-gutter: stable; }   /* evita que la página "salte" al abrir/cerrar la ventana */

.modal__shell { position: relative; width: 100%; height: 100%; }

/* Formas decorativas (medidas de tu Figma) */
.modal__deco { position: absolute; z-index: 0; pointer-events: none; }
.modal__deco--tl { top: 0;    left: 0;  width: 224px; height: 134px; background: #FF9F00;       border-radius: 0 0 100% 0; }
.modal__deco--tr { top: 0;    right: 0; width: 248px; height: 256px; background: #E8927A;       border-radius: 0 0 0 100%; }
.modal__deco--ml { top: 40%;  left: 0;  width: 84px;  height: 205px; background: var(--azul);   border-radius: 0 100% 100% 0 / 0 50% 50% 0; }
.modal__deco--mr { top: 42%;  right: 0; width: 105px; height: 208px; background: var(--azul);   border-radius: 100% 0 0 100% / 50% 0 0 50%; }
.modal__deco--bl { bottom: 0; left: 0;  width: 164px; height: 128px; background: #E8927A;       border-radius: 0 100% 0 0; }
.modal__deco--br { bottom: 0; right: 0; width: 196px; height: 145px; background: #FF9F00;       border-radius: 100% 0 0 0; }

/* Botón cerrar */
.modal__close {
  position: absolute;
  z-index: 3;
  top: 46px;
  right: clamp(16px, 5vw, 74px);
  width: 60px;
  height: 66px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  transition: background .25s ease, transform .25s ease;
}
.modal__close svg { width: 34px; height: 34px; fill: none; stroke: #FF9F00; stroke-width: 5; stroke-linecap: round; transition: stroke .25s ease; }
/* Al pasar el mouse: fondo naranja y X blanca */
.modal__close:hover,
.modal__close:focus-visible { background: #FF9F00; transform: scale(1.05); outline: none; }
.modal__close:hover svg,
.modal__close:focus-visible svg { stroke: #fff; }

/* Contenido con scroll vertical */
.modal__scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 150px 9% 90px;           /* el título empieza debajo de la forma naranja */
  scrollbar-width: thin;
  scrollbar-color: #E8927A transparent;
}
.modal__scroll::-webkit-scrollbar { width: 10px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; margin: 60px 0; }
.modal__scroll::-webkit-scrollbar-thumb { background: #E8927A; border-radius: 999px; }

.modal__title { font-size: 3.2rem; font-weight: 700; line-height: 1.1; color: var(--coral-dark); }
.modal__desc { margin-top: 18px; font-size: 1.2rem; line-height: 1.55; }
.modal__subtitle { margin-top: 30px; font-size: 1.2rem; font-weight: 700; }
.modal__list { margin-top: 12px; padding-left: 38px; list-style: disc; font-size: 1.2rem; line-height: 1.55; }
.modal__list li + li { margin-top: 4px; }

.modal__video-title { margin-top: 64px; font-size: 3.2rem; font-weight: 600; line-height: 1.1; }
.modal__video {
  --video-ratio: 16 / 9;            /* proporción del video; cámbiala si tu video es distinto */
  margin-top: 28px;
  aspect-ratio: var(--video-ratio);
  background: #D9D9D9;              /* recuadro gris mientras no haya video */
  overflow: hidden;
}
.modal__video > * { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }

/* ---------- Aparición al hacer scroll ---------- */
/* dinamic.js añade la clase "reveal" a los elementos y "is-visible" cuando
   entran en pantalla. El retraso escalonado (transition-delay) se pone desde JS.
   Para cambiar la velocidad: .9s aquí, y REVEAL_MS en dinamic.js (deben coincidir). */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s ease, transform .9s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }


/* =========================================================
   TABLET · diseño base 744 px · se aplica hasta 1024 px de ancho
   (todo lo de arriba es la versión PC; aquí solo se sobrescribe lo que cambia)
   ========================================================= */
.hero__line--tablet,
.hero__line--mobile { display: none; }

@media (max-width: 1024px) {

  .container { width: calc(100% - 18.8vw); }          /* márgenes de ~70 px a 744 px */
  section[id], footer[id] { scroll-margin-top: 84px; }

  /* ---------- Header ---------- */
  .header { height: 84px; }
  .header__logo img { height: 52px; }
  .header__nav { gap: 28px; font-size: .9rem; }
  .lang { margin-left: 28px; }
  .btn-pill { padding: 10px 24px; }

  /* ---------- Hero ---------- */
  .hero {
    height: clamp(520px, 75vw, 700px);
    min-height: 0;
    /* Posición del niño: ajusta estos 3 valores si lo quieres más arriba, abajo o más grande */
    --kid-left: -6%;
    --kid-top: 48%;
    --kid-height: 113%;
  }
  .hero__line--desktop { display: none; }
  .hero__line--tablet  { display: block; }
  .hero__line--tablet path { stroke-width: 46; }

  .hero__content {
    align-items: center;
    justify-content: flex-start;
    padding: 64px 0 0;
    text-align: center;
  }
  .hero__title { font-size: min(12.7vw, 112px); }
  .hero__sub { margin-top: 14px; max-width: 23em; font-size: min(3.4vw, 1.7rem); }
  .hero__actions { justify-content: center; gap: 16px; margin-top: 22px; }
  .btn { padding: 12px 26px; font-size: .95rem; }

  .hero__kid { right: auto; bottom: auto; left: var(--kid-left); top: var(--kid-top); height: var(--kid-height); }

  /* ---------- ¿Qué es Kineo? ---------- */
  .que-es__top { padding: 56px 0 64px; gap: 28px; }
  .qm { font-size: 8rem; }
  .que-es__small { margin-left: 14px; font-size: 2.6rem; }
  .que-es__words img { width: 260px; }
  .que-es__box { max-width: none; padding: 18px 26px; font-size: .92rem; }

  /* Círculos decorativos */
  .deco--mostaza-izq { width: 150px; height: 150px; left: -62px; top: 350px; }
  .deco--coral-der   { width: 124px; height: 124px; right: -42px; top: 400px; }
  .deco--azul-izq    { width: 150px; height: 150px; left: -54px; top: 1110px; }
  .deco--coral-abajo { width: 168px; height: 168px; left: 57%; top: 1010px; }
  .deco--mostaza-der { width: 240px; height: 240px; right: -30px; top: 1040px; }

  /* ---------- Pilares: 2 columnas ---------- */
  .fortalece { padding: 46px 0 72px; }
  .fortalece__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 30px;
    margin-top: 24px;
  }
  .pillar { position: relative; width: 100%; height: auto; aspect-ratio: 286 / 198; }
  .pillar__inner { position: absolute; inset: 0; height: auto; }
  .pillar__front span { font-size: 1.5rem; }
  .pillar__back p { padding: 0 24px; font-size: 1.25rem; }

  /* ---------- Juegos: 2 + 1 ---------- */
  .juegos { padding: 80px 0 80px; }
  .juegos__band { height: 120px; line-height: 120px; font-size: 2.75rem; }
  .juegos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 76px; }
  .card { max-width: none; border-radius: 48px; }
  .card:nth-child(3) { grid-column: 1 / -1; }          /* Ensarteo ocupa todo el ancho */
  .card__title { padding: 44px 0 40px; font-size: 1.5rem; }
  .card__media { height: 280px; }
  .card:nth-child(3) .card__media { height: 360px; }

  /* ---------- Footer ---------- */
  .footer { padding: 64px 0 48px; }
  .footer__brand img { width: 254px; }
  .footer__copy { max-width: 250px; font-size: .8rem; }
  .footer__cols { gap: 56px; }

  /* ---------- Ventana emergente ---------- */
  .modal { width: calc(100% - 18.8vw); height: 90vh; border-radius: 44px; }   /* mismo ancho que .container en tablet */
  .modal__scroll { padding: 118px 8% 70px; }
  .modal__title, .modal__video-title { font-size: 2.5rem; }
  .modal__video-title { margin-top: 48px; }
  .modal__desc, .modal__subtitle, .modal__list { font-size: 1.05rem; }
  .modal__close { top: 30px; right: 34px; width: 52px; height: 58px; }
  .modal__close svg { width: 28px; height: 28px; }
  .modal__deco--tl { width: 157px; height: 94px; }
  .modal__deco--tr { width: 174px; height: 179px; }
  .modal__deco--ml { width: 59px;  height: 144px; }
  .modal__deco--mr { width: 74px;  height: 146px; }
  .modal__deco--bl { width: 115px; height: 90px; }
  .modal__deco--br { width: 137px; height: 102px; }
}


/* =========================================================
   CELULAR · se aplica hasta 600 px de ancho
   Las medidas están en vw (proporcionales al ancho de la pantalla),
   tomadas de tu diseño móvil, para que escale igual en cualquier celular.
   ========================================================= */
@media (max-width: 600px) {

  .container { width: calc(100% - 15.2vw); }
  section[id], footer[id] { scroll-margin-top: max(60px, 18.6vw); }

  /* ---------- Header + menú hamburguesa ---------- */
  .header { height: max(60px, 18.6vw); }
  .header__logo img { width: 39vw; height: auto; }
  .lang { margin-left: auto; font-size: max(12px, 3.3vw); }

  .header__burger {
    display: block;
    position: relative;
    width: 8.2vw;
    height: 6.4vw;
    margin-left: 6vw;
  }
  .header__burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: max(3px, .9vw);
    background: #1c1c1c;
    border-radius: 999px;
    transition: top .3s ease, transform .3s ease, opacity .2s ease;
  }
  .header__burger span:nth-child(1) { top: 0; }
  .header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .header__burger span:nth-child(3) { top: 100%; transform: translateY(-100%); }
  /* abierto: las 3 rayas se convierten en una X */
  .header.is-open .header__burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .header.is-open .header__burger span:nth-child(2) { opacity: 0; }
  .header.is-open .header__burger span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

  /* El menú (Juegos / Contacto) baja como un panel debajo del header */
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 5vw;
    padding: 6vw 0 8vw;
    background: var(--crema);
    font-size: 4vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .1);
  }
  .header__nav .btn-pill { padding: 2.6vw 8vw; }

  /* ---------- Hero ---------- */
  .hero {
    height: 137vw;
    --room-pos: 72% bottom;                    /* qué parte de la habitación se ve */
  }
  .hero__room { object-position: var(--room-pos); }
  .hero__line--tablet { display: none; }
  .hero__line--mobile { display: block; }
  .hero__line--mobile path { stroke-width: 40; }

  .hero__content { padding-top: 10vw; }
  .hero__title { font-size: 13.2vw; }
  .hero__sub { margin-top: 3vw; max-width: none; font-size: 3.5vw; }
  .hero__actions { flex-direction: column; align-items: center; gap: 3.7vw; margin-top: 7.8vw; }
  .btn { width: 49vw; height: 10vw; padding: 0; display: grid; place-items: center; font-size: 3.6vw; border-radius: 3.3vw; }

  /* Niño centrado abajo, con sus proporciones reales (se fija el ancho y el alto se calcula solo).
     Se ve de la cabeza a la caja. Ajusta top (más arriba/abajo) o width (más grande/pequeño). */
  .hero__kid { left: 0; right: 0; margin-inline: auto; top: 81vw; width: 62vw; height: auto; }

  /* ---------- ¿Qué es Kineo? ---------- */
  .que-es__top { padding: 15vw 0 13vw; gap: 6.7vw; }
  .qm { font-size: 23vw; }
  .que-es__small { margin-left: -5vw; font-size: 9.2vw; }
  .que-es__words img { width: 42vw; }
  .que-es__box { width: 100%; padding: 4.5vw; font-size: 3.2vw; line-height: 1.4; border-radius: 4.5vw; }

  /* Círculos decorativos */
  .deco--mostaza-izq { width: 38.7vw; height: 38.7vw; left: -25vw;  top: 94vw; }
  .deco--coral-der   { width: 22vw;   height: 22vw;   right: -10.8vw; top: 97vw; }
  .deco--azul-izq    { width: 19.3vw; height: 19.3vw; left: -10vw;  top: 220vw; }
  .deco--coral-abajo { width: 17.8vw; height: 17.8vw; left: -8vw;   top: 303vw; }
  .deco--mostaza-der { width: 22.3vw; height: 22.3vw; right: -3.3vw; top: 303vw; }

  /* ---------- Pilares: una columna ---------- */
  .fortalece { padding: 10.4vw 0 17.8vw; }
  .fortalece__label { font-size: 3.4vw; }
  .fortalece__grid { grid-template-columns: 1fr; justify-items: center; gap: 5.9vw; margin-top: 9vw; }
  .pillar { width: 65.8vw; aspect-ratio: 177 / 79; }
  .pillar__face { border-radius: 9vw; }
  .pillar__front span { padding: 0 3vw; font-size: 5.4vw; }
  .pillar__back p { padding: 0 5vw; font-size: 4.4vw; }

  /* ---------- Juegos: una columna ---------- */
  .juegos { padding: 9vw 0 17vw; }
  .juegos__band { height: 13vw; line-height: 13vw; font-size: 4vw; }
  .juegos__grid { grid-template-columns: 1fr; gap: 4.8vw; margin-top: 16.7vw; }
  .card { border-radius: 9vw; }
  .card:nth-child(3) { grid-column: auto; }
  .card__title { padding: 3vw 0; font-size: 3.9vw; }
  .card__media,
  .card:nth-child(3) .card__media { height: 68vw; }
  .card__btn { margin: 3vw 5vw 6vw; padding: 3.8vw 0; font-size: 3.6vw; }

  /* ---------- Footer: todo centrado en una columna ---------- */
  .footer { padding: 11vw 0 14vw; }
  .footer__inner { flex-direction: column; align-items: center; }
  .footer__brand img { width: 57.6vw; }
  .footer__copy { max-width: 57.6vw; margin-top: 3vw; font-size: 3vw; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4vw; width: 57.6vw; margin-top: 7.5vw; padding-top: 0; }
  .footer__col h3 { margin-bottom: 5vw; font-size: 3.6vw; }
  .footer__col li + li { margin-top: 5vw; }
  .footer__col a { font-size: 3.3vw; }

  /* ---------- Ventana emergente ---------- */
  .modal { width: calc(100% - 15.2vw); height: 86vh; border-radius: 9vw; }
  .modal__scroll { padding: 74px 9% 50px; }
  .modal__title { font-size: 2rem; }
  .modal__video-title { margin-top: 36px; font-size: 1.7rem; }
  .modal__desc, .modal__subtitle, .modal__list { font-size: .95rem; }
  .modal__list { padding-left: 24px; }
  .modal__close { top: 16px; right: 14px; width: 42px; height: 46px; border-radius: 10px; }
  .modal__close svg { width: 22px; height: 22px; }
  .modal__deco--tl { width: 90px;  height: 54px; }
  .modal__deco--tr { width: 100px; height: 103px; }
  .modal__deco--ml { width: 24px;  height: 82px; }
  .modal__deco--mr { width: 30px;  height: 84px; }
  .modal__deco--bl { width: 66px;  height: 52px; }
  .modal__deco--br { width: 79px;  height: 59px; }
}