/* Base: collage de papel recortado. Fondo gris cálido, pegatinas con borde blanco, rotulador rojo. */
:root {
  --papel: #e8e6e1;
  --blanco: #fbfaf6;
  --tinta: #1c1a18;
  --tenue: #6a655d;
  --linea: #cfcbc2;
  --rojo: #c63a2c;
  --rojo-osc: #9f2e22;
  --cobalto: #233a7b;
  --mostaza: #e8b82e;
  --melocoton: #e8ad8c;
  --malva: #9d92b8;
  --kraft: #d5b98a;
  --oliva: #6f7f3b;
  --f-marcador: "Permanent Marker", "Rock Salt", "Comic Sans MS", cursive;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-maquina: "Special Elite", "Courier New", Courier, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  /* borde de pegatina troquelada: contorno blanco + sombra suave */
  --pegatina: drop-shadow(1.6px 0 0 #fff) drop-shadow(-1.6px 0 0 #fff) drop-shadow(0 1.6px 0 #fff) drop-shadow(0 -1.6px 0 #fff) drop-shadow(0 6px 8px rgba(40, 30, 20, .24));
  /* borde rasgado de papel */
  --rasgado: polygon(0 1.4%, 4% 0, 9% 1.3%, 15% .2%, 22% 1.5%, 30% .3%, 38% 1.2%, 46% 0, 54% 1.4%, 62% .4%, 70% 1.5%, 78% .1%, 86% 1.3%, 93% .3%, 100% 1.1%, 99.4% 12%, 100% 28%, 99.5% 45%, 100% 63%, 99.3% 80%, 100% 98.4%, 94% 99.8%, 88% 98.6%, 80% 100%, 72% 98.6%, 64% 99.8%, 55% 98.5%, 47% 100%, 39% 98.7%, 30% 99.9%, 22% 98.5%, 13% 100%, 6% 98.7%, 0 99.6%, .6% 85%, 0 66%, .7% 48%, 0 30%, .5% 14%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--f-texto); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Textura de papel y capa de confeti */
.grano {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .17  0 0 0 0 .14  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
#particulas { display: none; }
#confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* Estructura */
.acto { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 56px var(--gutter-r) 64px var(--gutter); }
.nota { margin: 14px 0 0; font: 400 13px/1.6 var(--f-maquina); color: var(--tenue); }
.pegatina { filter: var(--pegatina); }
.deco { position: absolute; pointer-events: none; display: block; }

/* Botones: redondeados como los de un tablón */
.boton {
  appearance: none; border: 0; cursor: pointer; min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--rojo); color: #fff; font: 600 15px/1 var(--f-texto); letter-spacing: .01em;
  box-shadow: 0 3px 0 var(--rojo-osc);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.boton:hover { background: #d4453a; }
.boton:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rojo-osc); }
.boton-sec { background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta), 0 3px 0 rgba(28, 26, 24, .25); }
.boton-sec:hover { background: #fff; }
.boton:focus-visible, .enlace:focus-visible, .disco:focus-visible, .vinilo-abrir:focus-visible, .visor button:focus-visible, .foto:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; }
.enlace { appearance: none; background: none; border: 0; cursor: pointer; padding: 12px 0; min-height: 44px; color: var(--tinta); font: 600 14px/1 var(--f-texto); text-decoration: underline; text-underline-offset: 4px; }

/* Revelado al hacer scroll */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rev.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rev { opacity: 1; transform: none; transition: none; }
}
