/* Sema · página de inicio (zine / collage), ronda 3.
   Colores: solo tokens de sema.css. Movimiento: todo se apaga con prefers-reduced-motion.
   Regla de la página: cada sección tiene UN gesto de collage protagonista y máximo dos detalles. */

/* ── Piezas comunes ─────────────────────────────── */
.escena { position: relative; }

/* Recortes de papel: formas hechas en capturas/landing/formas.py (bordes rasgados con fibra blanca o corte de tijera) */
.recorte { position: absolute; z-index: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 3px 3px rgb(72 58 88 / 0.16)); }
.papel-forma { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 4px 4px rgb(72 58 88 / 0.16)); }
.fibra { fill: var(--blanco); }
.p-lila { fill: var(--firma); }
.p-arena { fill: var(--arena); }
.p-coral { fill: var(--coral); }

/* Celular: marco ciruela con la captura real adentro */
.celular {
  position: relative; z-index: 2; margin: 0;
  padding: 7px; background: var(--ciruela); border-radius: 38px;
  box-shadow: 0 22px 40px -22px rgb(72 58 88 / 0.55);
}
.celular::before { /* bocina */
  content: ""; position: absolute; z-index: 1; top: 13px; left: 50%; translate: -50% 0;
  width: 26%; height: 6px; border-radius: 6px; background: var(--ciruela);
}
.celular img { width: 100%; border-radius: 31px; background: var(--blanco); }

/* Sticker: el recorte ya trae su borde claro; aquí van giro, sombra suave y flotación */
.sticker { position: absolute; z-index: 3; display: block; rotate: var(--giro, 0deg); }
.sticker img { width: 100%; filter: drop-shadow(0 5px 6px rgb(72 58 88 / 0.26)); }

/* Cinta adhesiva de papel */
.cinta {
  position: absolute; z-index: 4; width: 84px; height: 26px; rotate: var(--giro, 4deg);
  background: linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0) 45%), rgb(243 222 190 / 0.9);
  box-shadow: 0 1px 2px rgb(72 58 88 / 0.18);
  clip-path: polygon(0 8%, 5% 0, 10% 12%, 15% 0, 85% 0, 90% 12%, 95% 0, 100% 8%, 100% 92%, 95% 100%, 90% 88%, 85% 100%, 15% 100%, 10% 88%, 5% 100%, 0 92%);
}

/* Nota a mano (Instrument Serif) con trazos dibujados */
.nota-mano { position: absolute; z-index: 4; font: italic 400 1.5rem/1 var(--f-cita); color: var(--tinta); white-space: nowrap; }
.trazo { overflow: visible; }
.trazo path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.flecha { position: absolute; width: 72px; height: 56px; }

/* ── 1 · Hero ─────────────────────────────── */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); }
.hero-rejilla { display: grid; gap: 2.75rem; }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 5.2rem); }
.subrayado { position: relative; display: inline-block; white-space: nowrap; }
.subrayado .trazo { position: absolute; z-index: -1; left: -2%; bottom: -0.14em; width: 104%; height: 0.32em; color: var(--firma); }
.subrayado .trazo path { stroke-width: 9; }
.hero-texto { position: relative; z-index: 1; } /* sin data-revela: el texto del hero se pinta de inmediato (LCP) */
.hero .bajada { font-size: clamp(1.0625rem, 2.4vw, 1.2rem); color: var(--tinta-suave); max-width: 33rem; margin-top: 1.5rem; }
.hero .bajada-2 { margin-top: 0.9rem; color: var(--tinta); font-weight: 600; }

.escena-hero { width: min(100%, 23rem); height: 30rem; margin-inline: auto; }
.recorte-lila { width: 104%; left: -2%; top: 24%; rotate: -6deg; }
.recorte-arena { width: 50%; right: -11%; top: -5%; rotate: 10deg; }
.recorte-coral { width: 23%; left: 3%; bottom: 3%; rotate: 14deg; }
.chispas { position: absolute; z-index: 1; left: 0.5rem; top: 0.25rem; width: 2.75rem; color: var(--accion); rotate: -18deg; }
.chispas path { stroke-width: 5; }
.escena-hero .celular { position: absolute; left: 54%; top: 0.75rem; width: 13rem; translate: -50% 0; rotate: 4deg; }
.gato-asoma { position: absolute; z-index: 1; width: 8.75rem; left: calc(54% - 12.4rem); top: 2.75rem; rotate: -8deg; }
.zorro-presume { position: absolute; z-index: 3; width: 8rem; right: -0.75rem; bottom: -0.25rem; rotate: 6deg; filter: drop-shadow(0 5px 6px rgb(72 58 88 / 0.26)); }

/* ── 2 · Lo que pasa dentro ─────────────────────────────── */
.funciones { padding-block: clamp(3rem, 8vw, 5.5rem); }
.funciones h2 { font-size: clamp(1.9rem, 7vw, 3.4rem); line-height: 1.25; }
/* Palabra recortada tipo nota de rescate: cada letra en su papelito */
.rescate { display: inline-flex; align-items: center; gap: 0.06em; margin-left: 0.1em; vertical-align: baseline; white-space: nowrap; }
.rescate span {
  display: inline-block; min-width: 0.9em; padding: 0.04em 0.14em 0.08em; text-align: center; line-height: 1.05;
  background: var(--blanco); color: var(--tinta); box-shadow: 0 2px 3px rgb(72 58 88 / 0.22);
}
.rescate span:nth-child(1) { rotate: -5deg; background: var(--firma); }
.rescate span:nth-child(2) { rotate: 3deg; font: italic 400 1.18em/0.95 var(--f-cita); translate: 0 0.06em; }
.rescate span:nth-child(3) { rotate: -2deg; background: var(--tinta); color: var(--blanco); font-family: var(--f-boleto); font-weight: 700; }
.rescate span:nth-child(4) { rotate: 4deg; background: var(--arena); translate: 0 -0.05em; }
.rescate span:nth-child(5) { rotate: -4deg; background: var(--coral); font: italic 400 1.18em/0.95 var(--f-cita); }
.rescate span:nth-child(6) { rotate: 2deg; clip-path: polygon(0 6%, 96% 0, 100% 94%, 4% 100%); }

.tarjetas { display: grid; gap: 3.25rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.tarjeta {
  position: relative; isolation: isolate; padding: 2.1rem 1.5rem 1.75rem; color: var(--tinta);
  rotate: var(--giro, 0deg); transition: rotate 0.35s cubic-bezier(.2,.9,.3,1.2);
  display: flex; flex-direction: column; align-items: flex-start;
}
.tarjeta > :not(.papel-forma) { position: relative; z-index: 1; }
.tarjeta:hover { rotate: 0deg; }
.tarjeta .boleto { background: var(--blanco); }
.tarjeta h3 { font-size: clamp(1.3rem, 5.2vw, 1.6rem); line-height: 1.15; margin-top: 0.9rem; }
.tarjeta p { margin-top: 0.7rem; max-width: 26rem; }

.tarjeta-lector { --giro: -1.8deg; padding-bottom: 0; }
.asoma { align-self: stretch; height: 15rem; margin-top: 1.5rem; overflow: hidden; display: flex; justify-content: center; }
.celular-chico { width: 12rem; flex: none; height: max-content; rotate: 3deg; translate: 0 0.6rem; }

.tarjeta-racha { --giro: 2.2deg; width: 92%; margin-left: auto; padding: 1.9rem 1.5rem 1.5rem 1.7rem; }
.reloj-escena { position: relative; align-self: stretch; height: 9.5rem; margin-top: 1rem; }
.sticker-reloj { width: 6.6rem; right: -0.25rem; top: -0.5rem; --giro: 9deg; }
.etiqueta-recorte {
  position: absolute; left: 0; bottom: 0.4rem; rotate: -4deg; padding: 0.6rem 0.85rem 0.65rem;
  background: var(--firma); color: var(--tinta); font: 800 0.95rem/1.15 var(--f-display); max-width: 8.5rem;
  box-shadow: 0 3px 4px rgb(72 58 88 / 0.22);
  clip-path: polygon(0 5%, 97% 0, 100% 92%, 3% 100%);
}
.reloj-escena .flecha { left: 0.5rem; top: -0.25rem; width: 62px; height: 48px; }

.tarjeta-mascota { --giro: -1deg; width: 96%; padding-bottom: 0; }
.duo { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 0.25rem; margin: 1.25rem -0.5rem -1.6rem; }
.duo-zorro { width: 31%; translate: 0 -0.4rem; }
.duo-gato { width: 62%; }

/* ── 3 · Collages (banda ciruela) ─────────────────────────────── */
.collages { background: var(--ciruela); color: var(--blanco); padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; margin-top: 3.5rem; }
.collages::before, .collages::after { /* cantos rasgados */
  content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--ciruela);
}
.collages::before { top: -13px; clip-path: polygon(0 100%, 0 40%, 5% 70%, 11% 15%, 17% 60%, 24% 20%, 30% 65%, 37% 10%, 44% 55%, 50% 20%, 57% 70%, 63% 15%, 70% 50%, 77% 5%, 83% 60%, 90% 25%, 95% 65%, 100% 30%, 100% 100%); }
.collages::after { bottom: -13px; clip-path: polygon(0 0, 100% 0, 100% 60%, 94% 20%, 88% 75%, 81% 30%, 74% 85%, 67% 25%, 60% 70%, 53% 15%, 46% 80%, 39% 35%, 32% 90%, 25% 30%, 18% 75%, 11% 20%, 5% 70%, 0 35%); }
.collages .envoltura { position: relative; z-index: 1; }
.collages-rejilla, .social-rejilla { display: grid; gap: 3rem; align-items: center; }
.collages h2, .social h2 { font-size: clamp(1.9rem, 7vw, 3.2rem); margin-top: 1rem; max-width: 13ch; }
.collages p, .social-texto p { margin-top: 1rem; max-width: 30rem; font-size: 1.125rem; }
.collages p { color: var(--papel); }
.collages .celular { background: var(--papel); box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6); }
.collages .celular::before { display: none; } /* la captura trae su barra de estado */
.zorro-tijeras { width: 9.5rem; margin-top: 1.5rem; rotate: -5deg; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.35)); }

/* Stickers cortados por el borde de la sección */
.fuga { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fuga-cipres { display: none; }
.fuga-luna { width: 6rem; right: -2.4rem; top: -1.6rem; --giro: -12deg; }
.fuga-noche { width: 6.5rem; right: -2rem; bottom: -2.6rem; --giro: 9deg; }

.escena-collage { width: min(100%, 22rem); height: 31rem; margin-inline: auto; }
.escena-collage .celular { position: absolute; left: 50%; top: 2rem; width: 12rem; translate: -50% 0; rotate: -4deg; }
.papelito { position: absolute; z-index: 1; rotate: var(--giro, 0deg); }
.papelito::before { content: ""; position: absolute; inset: 0; background: center / cover no-repeat; filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0.3)); }
.papelito-rosa { width: 9rem; height: 11.5rem; right: -0.25rem; top: 0; --giro: 9deg; }
.papelito-rosa::before { background-image: url("/assets/stickers/papeles-papel-china-rosa.webp"); clip-path: polygon(0 3%, 9% 0, 20% 4%, 33% 1%, 47% 5%, 60% 1%, 74% 4%, 88% 0, 100% 3%, 100% 100%, 0 100%); }
.papelito-cuadros { width: 8.5rem; height: 10rem; left: -0.5rem; top: 12.5rem; --giro: -8deg; }
.papelito-cuadros::before { background-image: url("/assets/stickers/papeles-hoja-cuadriculada.webp"); clip-path: polygon(0 0, 100% 0, 100% 96%, 90% 100%, 78% 95%, 64% 100%, 50% 96%, 37% 100%, 23% 95%, 10% 100%, 0 96%); }
.papelito-kraft { width: 9rem; height: 8rem; right: -0.75rem; bottom: 1.5rem; --giro: 5deg; }
.papelito-kraft::before { background-image: url("/assets/stickers/papeles-kraft-arrugado.webp"); clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%, 4% 86%, 0 72%, 5% 58%, 1% 44%, 5% 30%, 0 15%); }
.papelito .cinta { top: -11px; left: 50%; translate: -50% 0; width: 70px; height: 22px; }
.papelito-kraft .cinta { --giro: -7deg; left: 62%; }
.sticker-cielo { width: 7.75rem; left: -0.75rem; top: -0.75rem; --giro: -12deg; }
.sticker-lirio { width: 4.6rem; right: 0.75rem; top: 7.5rem; --giro: 10deg; }
.sticker-girasoles { width: 5.6rem; left: 0; bottom: 2.75rem; --giro: -7deg; }
.sticker-vincent { width: 6.6rem; right: 1.25rem; bottom: -0.75rem; --giro: 7deg; }
.sticker-girasol { width: 3.9rem; left: 5.75rem; bottom: -1.1rem; --giro: 15deg; }

/* ── 4 · Comunidad ─────────────────────────────── */
.social { padding-block: clamp(4.5rem, 10vw, 6.5rem) 0; }
.social-texto { position: relative; z-index: 1; }
.social h2 { max-width: 15ch; }
.escena-social { order: 2; width: min(100%, 22rem); height: 24rem; margin-inline: auto; clip-path: inset(-6rem -6rem 0 -6rem); }
.escena-social .celular { position: absolute; left: 50%; top: 1.5rem; width: 13.5rem; translate: -50% 0; rotate: -3deg; }
.escena-social .celular::before { display: none; }
.abanico .sticker { z-index: 1; }
.ab-ola { width: 7.5rem; left: -0.25rem; top: 0; --giro: -8deg; }
.ab-david { width: 8.25rem; left: -1.5rem; top: 7.5rem; --giro: -15deg; }
.ab-terraza { width: 6.5rem; right: 0; top: 0.25rem; --giro: 9deg; }
.ab-trigo { width: 7.75rem; right: -1.5rem; top: 9.5rem; --giro: 16deg; }
.social-extra { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.nota-ovalo { position: relative; flex: none; padding: 1.5rem 1.6rem 1.5rem 2.2rem; rotate: -6deg; font-size: 1.4rem; }
.nota-ovalo .ovalo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--firma-fuerte); }
.gato-cafe { width: 6.25rem; flex: none; }

/* ── 5 · Preguntas: lista de cuaderno ─────────────────────────────── */
.preguntas { position: relative; z-index: 3; background: var(--arena); padding-block: clamp(3.25rem, 8vw, 5.5rem); border: 0; }
.preguntas::before, .preguntas::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--arena); }
.preguntas::before { top: -13px; clip-path: polygon(0 100%, 0 55%, 4% 20%, 10% 65%, 16% 10%, 23% 55%, 29% 25%, 36% 70%, 42% 15%, 49% 60%, 55% 5%, 62% 50%, 68% 20%, 75% 65%, 81% 10%, 88% 55%, 94% 25%, 100% 60%, 100% 100%); }
.preguntas::after { bottom: -13px; clip-path: polygon(0 0, 100% 0, 100% 45%, 95% 80%, 89% 30%, 82% 75%, 76% 25%, 69% 85%, 63% 35%, 56% 70%, 50% 20%, 43% 80%, 37% 30%, 30% 75%, 24% 25%, 17% 85%, 11% 35%, 5% 75%, 0 40%); }
.preguntas-rejilla { display: flex; flex-direction: column; }
.preguntas-lado { display: contents; }
.preguntas h2 { font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 1.25rem; }
.siesta { order: 3; position: relative; align-self: flex-end; margin-top: 2.25rem; padding-top: 2.4rem; }
.siesta img { width: 10.5rem; margin-left: 3.5rem; }
.siesta .nota-mano { left: 0; top: 0; rotate: -4deg; font-size: 1.4rem; }
.siesta .flecha { left: 0.4rem; top: 1.7rem; width: 56px; height: 44px; }

.preguntas .lista { max-width: 46rem; padding-bottom: 10px; background: var(--raya-b) left bottom / 100% 10px no-repeat; }
.preguntas details { border: 0; background: var(--raya-a) left top / 100% 10px no-repeat; }
.preguntas details:nth-child(even) { background-image: var(--raya-b); }
.preguntas details:first-of-type { border: 0; }
.preguntas summary { min-height: 4.5rem; padding-block: 1.2rem 1rem; font: 700 clamp(1.02rem, 4.1vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -0.01em; }
.preguntas summary::after { display: none; }
.mas { flex: none; width: 28px; height: 28px; overflow: visible; }
.mas path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.preguntas details[open] .mas { rotate: 45deg; }
.preguntas details .respuesta { color: var(--tinta); max-width: 38rem; padding-bottom: 1.5rem; }
.preguntas {
  /* Rayas a mano (dos trazos distintos para que no se repitan) */
  --raya-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C60 2.5 110 7.5 170 5S290 2.5 350 5.5 470 7.5 598 4' fill='none' stroke='%23483A58' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --raya-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cpath d='M3 4C70 7 130 3 200 5.5S330 7.5 400 4.5 520 3 597 6' fill='none' stroke='%23483A58' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ── 6 · Cierre: banda de papel lila con el zorro ─────────────────────────────── */
.cierre { padding-block: clamp(7.5rem, 15vw, 10rem) clamp(3rem, 7vw, 4.5rem); }
.cierre .envoltura { position: relative; }
.zorro { position: absolute; z-index: 0; right: clamp(1.25rem, 8vw, 6rem); top: -6.5rem; width: 8.75rem; }
.zorro img { width: 100%; }
.globo-zorro {
  position: absolute; right: 100%; top: 0.75rem; margin-right: 0.25rem; width: 11.5rem;
  background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 16px 16px 4px 16px;
  padding: 0.6rem 0.8rem; font: italic 400 1.2rem/1.15 var(--f-cita); rotate: -3deg;
}
.banda { position: relative; z-index: 1; isolation: isolate; color: var(--tinta); padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.75rem) 4.25rem; rotate: -0.6deg; }
.banda > :not(.papel-forma) { position: relative; z-index: 1; }
.banda > .cinta, .banda > .sticker-logo { position: absolute; }
.cinta-a { top: -11px; left: 7%; --giro: -7deg; }
.cinta-b { top: -9px; left: 32%; --giro: 5deg; }
.banda h2 { font-size: clamp(1.8rem, 6.5vw, 3rem); max-width: 15ch; }
.banda p { margin-top: 1rem; max-width: 34rem; font-size: 1.125rem; }
.botones { display: flex; flex-wrap: wrap; gap: 1rem 0.9rem; margin-top: 1.75rem; }
@media (min-width: 48rem) { .botones { max-width: calc(100% - 8rem); } }
.botones .boton { margin-top: 0; text-align: center; padding-block: 0.6rem; }
.boton-insta { gap: 0.55rem; background: var(--blanco); padding-inline: 1.15rem; }
.boton-insta .boleto { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
.boton-insta[aria-disabled="true"] { cursor: not-allowed; box-shadow: none; flex-wrap: wrap; padding-block: 0.55rem; }
.boton-insta[aria-disabled="true"]:hover, .boton-insta[aria-disabled="true"]:active { translate: none; box-shadow: none; }
.icono-insta { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.icono-insta .punto { fill: currentColor; }
/* El logo oficial pegado como un sticker más: borde blanco y giro leve */
.sticker-logo { z-index: 2; right: 1.25rem; bottom: -1.5rem; width: 5.25rem; padding: 5px; background: var(--blanco); border-radius: 16px; rotate: 9deg; box-shadow: 0 5px 8px rgb(72 58 88 / 0.3); }
.sticker-logo img { width: 100%; border-radius: 12px; }

/* ── Tableta y escritorio ─────────────────────────────── */
@media (min-width: 48rem) {
  .tarjetas { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; align-items: start; }
  .tarjeta-racha, .tarjeta-mascota { width: auto; margin-left: 0; }
  .tarjeta-racha { margin-top: 3rem; }
  .tarjeta-mascota { grid-column: 1 / -1; max-width: 30rem; justify-self: center; }

  .collages-rejilla { grid-template-columns: minmax(0, 1fr) 32rem; }
  .escena-collage { width: 32rem; height: 40rem; }
  .escena-collage .celular { width: 15.5rem; top: 2.5rem; }
  .papelito-rosa { width: 13rem; height: 16rem; right: 1rem; top: 0.25rem; }
  .papelito-cuadros { width: 12rem; height: 14rem; left: 0; top: 15rem; }
  .papelito-kraft { width: 13rem; height: 11rem; right: 0; bottom: 3rem; }
  .sticker-cielo { width: 11.5rem; left: -0.5rem; top: -1.25rem; }
  .sticker-lirio { width: 6.75rem; right: 2rem; top: 9.5rem; }
  .sticker-girasoles { width: 8.5rem; left: 0.75rem; bottom: 4rem; }
  .sticker-vincent { width: 10rem; right: 2.25rem; bottom: -1.25rem; }
  .sticker-girasol { width: 5.75rem; left: 9.5rem; bottom: -1.75rem; }
  .zorro-tijeras { width: 13rem; margin-top: 2rem; }
  .fuga-luna { width: 9.5rem; right: -3.5rem; top: -2.75rem; }
  .fuga-noche { width: 9.5rem; right: -2.5rem; bottom: -3.5rem; }

  .social-rejilla { grid-template-columns: 30rem minmax(0, 1fr); column-gap: 3.5rem; align-items: end; }
  .escena-social { order: 0; width: 30rem; height: 31rem; }
  .escena-social .celular { width: 17rem; top: 2rem; }
  .ab-ola { width: 11rem; left: 0; top: 0.25rem; }
  .ab-david { width: 12rem; left: -1.5rem; top: 11.5rem; }
  .ab-terraza { width: 9.5rem; right: 1rem; top: 0; }
  .ab-trigo { width: 11rem; right: -1.5rem; top: 13.5rem; }
  .social-texto { align-self: center; padding-bottom: 3rem; }
  .gato-cafe { width: 8.25rem; }
  .nota-ovalo { font-size: 1.6rem; }

  .zorro { width: 10rem; top: -7.4rem; }
  .sticker-logo { width: 7rem; right: 3rem; bottom: -2rem; padding: 6px; border-radius: 20px; }
  .sticker-logo img { border-radius: 15px; }
  .banda { padding-bottom: clamp(2.25rem, 6vw, 3.75rem); }
  .cinta-b { left: 46%; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .collages-rejilla, .social-rejilla { grid-template-columns: 1fr; }
  .escena-social { order: 2; }
  .social-texto { padding-bottom: 0; }
}
@media (min-width: 60rem) {
  .hero-rejilla { grid-template-columns: minmax(0, 1fr) 29rem; column-gap: 2rem; align-items: center; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.3rem); }
  .escena-hero { width: 29rem; height: 38rem; }
  .escena-hero .celular { width: 16.5rem; left: 56%; top: 1rem; }
  .gato-asoma { width: 12.5rem; left: calc(56% - 16.4rem); top: 2.25rem; }
  .zorro-presume { width: 11.5rem; right: -1.5rem; bottom: -0.5rem; }
  .chispas { width: 3.5rem; left: 0.25rem; top: -0.5rem; }

  .preguntas-rejilla { display: grid; grid-template-columns: 19rem minmax(0, 1fr); column-gap: 4.5rem; align-items: start; }
  .preguntas-lado { display: block; position: sticky; top: 2rem; }
  .siesta { margin-top: 2.75rem; padding-top: 3rem; }
  .siesta img { width: 14rem; margin-left: 3rem; }
  .siesta .nota-mano { font-size: 1.6rem; }
  .siesta .flecha { top: 2rem; left: 0.5rem; }
}
@media (min-width: 64rem) {
  .tarjetas { grid-template-columns: 1.2fr 0.9fr 1.08fr; gap: 2.25rem; }
  .tarjeta-racha { margin-top: 5.5rem; }
  .tarjeta-mascota { grid-column: auto; max-width: none; justify-self: stretch; margin-top: 1.75rem; }
  .duo { margin: 2rem -1.5rem -2.4rem; }
  .duo-zorro { width: 34%; }
  .duo-gato { width: 68%; }
  .asoma { height: 17rem; }
  .celular-chico { width: 13rem; }
}
@media (min-width: 80rem) {
  .fuga-cipres { display: block; width: 8.5rem; left: -3.4rem; top: 16%; --giro: 14deg; }
}
@media (max-width: 26rem) {
  .globo-zorro { width: 9.5rem; font-size: 1.05rem; }
  .zorro { width: 7.5rem; top: -5.6rem; }
}

/* ── Movimiento ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada escalonada al hacer scroll (solo con JS) */
  .js [data-revela] {
    opacity: 0; transform: translateY(26px) rotate(-1.5deg) scale(0.97);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js [data-revela].revelado { opacity: 1; transform: none; }
  .js .tarjeta[data-revela] {
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2,.8,.2,1), rotate 0.35s cubic-bezier(.2,.9,.3,1.2);
    transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s;
  }

  /* Trazos que se dibujan */
  .js .trazo path { stroke-dasharray: 4; stroke-dashoffset: 4; transition: stroke-dashoffset 0.9s ease 0.45s; }
  .js .revelado .trazo path, .js .revelado.trazo path { stroke-dashoffset: 0; }
  .js .flecha path:nth-child(2) { transition-delay: 1.2s; transition-duration: 0.3s; }
  .js .chispas path:nth-child(2) { transition-delay: 0.6s; }
  .js .chispas path:nth-child(3) { transition-delay: 0.75s; }
  .js .chispas path { transition-duration: 0.35s; }

  /* El texto del hero sube sin esconderse: nunca arranca en opacidad 0, para no retrasar el LCP */
  .hero-texto { animation: sube 0.7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes sube { from { transform: translateY(18px); } to { transform: none; } }

  /* El gato sale de detrás del celular */
  .gato-asoma { animation: asoma 0.9s cubic-bezier(.2,.9,.3,1.25) 0.5s both; }
  @keyframes asoma { from { translate: 62% 10%; rotate: 6deg; } to { translate: 0 0; rotate: -8deg; } }

  /* Stickers que flotan; meneo al pasar el cursor */
  .sticker { animation: flota 5.5s ease-in-out infinite alternate; }
  .sticker:nth-of-type(2n) { animation-duration: 6.5s; animation-delay: -2s; }
  .sticker:nth-of-type(3n) { animation-duration: 7.2s; animation-delay: -4s; }
  @keyframes flota { to { translate: 0 -9px; } }
  .sticker:hover img { animation: menea 0.5s ease-in-out; }
  @keyframes menea { 25% { rotate: -7deg; } 60% { rotate: 6deg; } 100% { rotate: 0deg; } }

  .zorro img { transform-origin: 50% 100%; animation: zorro 5s ease-in-out infinite; }
  @keyframes zorro { 0%, 70%, 100% { rotate: 0deg; } 80% { rotate: -4deg; } 90% { rotate: 3deg; } }

  .mas { transition: rotate 0.25s cubic-bezier(.2,.9,.3,1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .tarjeta { transition: none; }
}
