/* ==========================================================================
   WACCO STUDIO · sistema visual base
   Lo serio  = WE ARE CREATIVE & CO  → Unbounded, rejilla, etiquetas mono
   Lo loco   = wacco                 → Fredoka redonda, holográfico, rebote
   ========================================================================== */

@font-face { font-family: "Unbounded"; src: url(../assets/fonts/unbounded-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(../assets/fonts/unbounded-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(../assets/fonts/unbounded-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(../assets/fonts/unbounded-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(../assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(../assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pixel"; src: url(../assets/fonts/press-start-2p-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(../assets/fonts/fredoka-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(../assets/fonts/fredoka-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07070b;
  --bg-2: #0d0d15;
  --bg-3: #14141f;
  --ink: #f4f4f0;
  --ink-2: #b8b7c6;
  --ink-3: #7d7c8e;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);

  --lima: #d7f52a;
  --magenta: #e23baa;
  --violeta: #8b3dff;
  --cian: #2ee6ff;
  --amarillo: #ffc93c;
  --naranja: #ff7a2e;
  --holo: linear-gradient(100deg, #d7f52a 0%, #2ee6ff 22%, #8b3dff 45%, #e23baa 68%, #ffc93c 88%, #d7f52a 100%);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  --glass-strong: linear-gradient(180deg, rgba(30, 30, 44, .72), rgba(16, 16, 26, .62));
  --glass-blur: blur(22px) saturate(170%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 18px 50px rgba(0, 0, 0, .38);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --f-pixel: "Pixel", var(--f-mono);
  --f-round: "Fredoka", var(--f-display);

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --sec: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 clamp(15px, 1.05vw, 17px)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lima); color: #000; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- transiciones entre páginas (navegadores que las soportan) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px) scale(1.01); filter: blur(8px); } }
.nav { view-transition-name: nav; }

/* ---------- fondo vivo ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #15122a 0%, var(--bg) 55%); }
.bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .22; will-change: transform; }
.bg i:nth-child(1) { background: var(--violeta); top: -18vmax; left: -10vmax; animation: blob1 28s ease-in-out infinite alternate; }
.bg i:nth-child(2) { background: var(--magenta); top: 30vh; right: -18vmax; opacity: .16; animation: blob2 34s ease-in-out infinite alternate; }
.bg i:nth-child(3) { background: var(--lima); bottom: -26vmax; left: 20vw; opacity: .08; animation: blob3 30s ease-in-out infinite alternate; }
.bg i:nth-child(4) { background: var(--cian); top: 40vh; left: -20vmax; width: 30vmax; height: 30vmax; opacity: .1; animation: blob2 40s ease-in-out infinite alternate-reverse; }
.bg b { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; left: 0; top: 0; background: radial-gradient(closest-side, rgba(215, 245, 42, .09), transparent); transform: translate(calc(var(--px, 50vw) - 50%), calc(var(--py, 30vh) - 50%)); transition: transform .9s var(--ease); }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%); }
@keyframes blob1 { to { transform: translate(22vw, 18vh) scale(1.2); } }
@keyframes blob2 { to { transform: translate(-18vw, -12vh) scale(.85); } }
@keyframes blob3 { to { transform: translate(-16vw, -20vh) scale(1.15); } }

/* ---------- tipografía ---------- */
.display, h1, h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
h1 { font-size: clamp(44px, 8vw, 128px); }
h2 { font-size: clamp(34px, 5.4vw, 84px); }
h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.mono, .kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.kicker { display: inline-flex; align-items: center; gap: 12px; }
.kicker b { color: var(--lima); font-weight: 500; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.holo-text { background: var(--holo); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shift 7s linear infinite; }
@keyframes holo-shift { to { background-position: -250% 0; } }
/* la voz "wacco" dentro de un titular serio */
.wacky { font-family: var(--f-round); font-weight: 700; letter-spacing: -.01em; display: inline-block; transform: rotate(-2.5deg) translateY(.02em); padding: 0 .06em .08em; background: var(--holo); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shift 7s linear infinite, wobble 4.5s ease-in-out infinite; }
.wacky:nth-of-type(2n) { transform: rotate(2deg); animation-delay: -2s; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.5deg; scale: 1.02; } }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5); }
.boxed { display: inline-block; border: 2px solid currentColor; border-radius: .22em; padding: .05em .25em .08em; line-height: 1; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--sec); position: relative; }
.section + .section { padding-top: 0; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.idx { font-family: var(--f-mono); font-size: 12px; color: var(--lima); letter-spacing: .1em; }
main { padding-top: calc(var(--nav-h) + 32px); }

/* ---------- vidrio líquido ---------- */
.glass { position: relative; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: var(--r-lg); box-shadow: var(--glass-shadow); isolation: isolate; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,.5), rgba(255,255,255,.06) 28%, rgba(255,255,255,0) 60%, rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 0%), rgba(255, 255, 255, .13), transparent 65%); }
.glass:hover::after, .glass.lit::after { opacity: 1; }

/* ---------- navegación ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0; width: min(100% - 24px, 1180px); height: var(--nav-h); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 22px; border-radius: 999px; transition: translate .5s var(--ease), background .3s; }
.nav.hide { translate: -50% -130%; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-logo .wm { width: 86px; height: 20px; background: var(--ink); -webkit-mask: url(../assets/brand/wacco-wordmark-blanco.webp) center/contain no-repeat; mask: url(../assets/brand/wacco-wordmark-blanco.webp) center/contain no-repeat; transition: background .3s; }
.nav-logo:hover .wm { background: var(--holo); background-size: 250% 100%; animation: holo-shift 3s linear infinite; }
.nav-logo small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; line-height: 1.2; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 10px var(--lima); }
.nav-cta { margin-left: 6px; }
.mode { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mode .sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.mode .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .45s var(--spring), background .3s; }
html:not([data-mode="serio"]) .mode .sw { background: var(--holo); background-size: 200% 100%; animation: holo-shift 4s linear infinite; }
html:not([data-mode="serio"]) .mode .sw::after { transform: translateX(16px); background: #111; }
.mode .l-serio, .mode .l-wacco { transition: color .3s; }
html[data-mode="serio"] .mode .l-serio, html:not([data-mode="serio"]) .mode .l-wacco { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--spring); }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 48px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; background: rgba(7, 7, 11, .78); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); opacity: 0; pointer-events: none; transition: opacity .35s; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 9vw, 54px); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 14px; translate: 0 20px; opacity: 0; transition: translate .6s var(--ease), opacity .6s; }
.mobile-menu a small { font-family: var(--f-mono); font-size: 12px; color: var(--lima); font-weight: 400; letter-spacing: .1em; }
.menu-open .mobile-menu a { translate: 0 0; opacity: 1; }
.mobile-menu .mode { margin-top: auto; align-self: flex-start; }
@media (max-width: 1080px) { .nav-links, .nav .nav-cta, .nav .mode { display: none; } .burger { display: grid; } .nav-logo small { display: none; } }

/* ---------- botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: transform .45s var(--spring), background .25s, color .25s, box-shadow .3s; }
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.96, .92); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lima { background: var(--lima); color: #0a0a0a; box-shadow: 0 0 0 0 rgba(215, 245, 42, .5); }
.btn-lima:hover { box-shadow: 0 10px 40px -8px rgba(215, 245, 42, .6); }
.btn-glass { background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: gap .3s var(--spring), border-color .3s; }
.link-arrow:hover { gap: 14px; border-color: var(--lima); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- chips y pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--ink-2); white-space: nowrap; }
.chip-lima { background: rgba(215, 245, 42, .12); color: var(--lima); box-shadow: inset 0 0 0 1px rgba(215, 245, 42, .3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; width: max-content; max-width: 100%; }
.pills button { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s; display: inline-flex; align-items: center; gap: 8px; }
.pills button:hover { color: var(--ink); }
.pills button[aria-pressed="true"] { background: var(--ink); color: #000; }
.pills button sup { font-family: var(--f-mono); font-size: 10px; opacity: .6; }
@media (max-width: 640px) { .pills { border-radius: 24px; width: 100%; } }

/* ---------- aparición al hacer scroll ---------- */
[data-reveal] { opacity: 0; translate: 0 34px; filter: blur(6px); transition: opacity .9s var(--ease), translate .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; translate: 0 0; filter: blur(0); }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; translate: 0 105%; transition: translate 1s var(--ease); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { translate: 0 0; }

/* ---------- tarjetas genéricas ---------- */
.card { border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); }
.media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-3); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

/* ---------- íconos ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.ico-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ico-box .ico { width: 24px; height: 24px; }

/* ---------- marquesina ---------- */
.marquee { --speed: 40s; display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee > div { display: flex; flex: none; gap: var(--gap, 48px); padding-right: var(--gap, 48px); animation: marquee var(--speed) linear infinite; }
.marquee.rev > div { animation-direction: reverse; }
.marquee:hover > div { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: var(--sec); padding: clamp(56px, 8vw, 96px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; }
.footer li a { color: var(--ink-2); transition: color .2s; }
.footer li a:hover { color: var(--lima); }
.footer-claim { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; max-width: 16ch; }
.footer-big { margin: clamp(48px, 7vw, 96px) 0 18px; }
.footer-big .wm-big { width: 100%; aspect-ratio: 2000 / 335; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.02)); -webkit-mask: url(../assets/brand/wacco-wordmark-blanco.webp) center/contain no-repeat; mask: url(../assets/brand/wacco-wordmark-blanco.webp) center/contain no-repeat; transition: background .6s; }
.footer-big:hover .wm-big { background: var(--holo); background-size: 250% 100%; animation: holo-shift 5s linear infinite; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.footer-bottom .we { height: 22px; width: auto; opacity: .7; }
.arcade-btn { font-family: var(--f-pixel); font-size: 10px; letter-spacing: .05em; color: var(--lima); padding: 12px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(215, 245, 42, .35); display: inline-flex; gap: 10px; align-items: center; transition: background .2s, transform .3s var(--spring); }
.arcade-btn:hover { background: rgba(215, 245, 42, .1); transform: scale(1.05); }
.arcade-btn .blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- banners emergentes WACCO ---------- */
.pops { position: fixed; z-index: 60; left: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.pop { --acc: var(--lima); --acc-ink: #0a0a0a; pointer-events: auto; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 40px 12px 12px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(34, 34, 48, .72), rgba(14, 14, 22, .7)); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.5), 0 0 0 0 var(--acc);
  animation: pop-in .8s var(--spring) both; transform-origin: 0% 100%; cursor: pointer; }
.pop.out { animation: pop-out .45s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translate(-40px, 30px) scale(.8) rotate(-4deg); filter: blur(8px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px); } }
.pop-art { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); overflow: hidden; }
.pop-art .ico { width: 30px; height: 30px; position: relative; z-index: 1; animation: pop-ico 2.4s var(--spring) infinite; }
.pop-art::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.7) 80%, transparent 90%); animation: spin 2.6s linear infinite; opacity: .6; }
.pop-art::after { content: ""; position: absolute; inset: 3px; border-radius: 15px; background: var(--acc); }
@keyframes pop-ico { 0%, 100% { transform: scale(1) rotate(0); } 10% { transform: scale(1.25, .8) rotate(-8deg); } 20% { transform: scale(.9, 1.15) rotate(6deg); } 30% { transform: scale(1) rotate(0); } }
@keyframes spin { to { transform: rotate(1turn); } }
.pop-body { min-width: 0; }
.pop-tag { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.pop-tag i { width: 42px; height: 9px; background: var(--acc); -webkit-mask: url(../assets/brand/wacco-wordmark-blanco.webp) left/contain no-repeat; mask: url(../assets/brand/wacco-wordmark-blanco.webp) left/contain no-repeat; }
.pop-body strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.pop-body span { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-top: 3px; }
.pop-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background .2s, color .2s; }
.pop-x:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.pop-x svg { width: 14px; height: 14px; }
.pop-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--acc); transform-origin: left; animation: pop-timer var(--t, 7s) linear both; opacity: .8; }
.pop:hover .pop-timer { animation-play-state: paused; }
@keyframes pop-timer { to { transform: scaleX(0); } }
.pop--magenta { --acc: var(--magenta); --acc-ink: #fff; }
.pop--cian { --acc: var(--cian); }
.pop--violeta { --acc: var(--violeta); --acc-ink: #fff; }
.pop--holo { --acc: #fff; }
.pop--holo .pop-art, .pop--holo .pop-art::after { background: var(--holo); background-size: 250% 100%; animation: holo-shift 4s linear infinite; }
.pop--holo .pop-body strong { background: var(--holo); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shift 6s linear infinite; }
.pop--holo .pop-timer { background: var(--holo); }
.pop--serio { --acc: #fff; --acc-ink: #000; background: rgba(10,10,14,.82); }
.pop--serio .pop-art { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.pop--serio .pop-art::before, .pop--serio .pop-art::after { display: none; }
.pop--serio .pop-body strong { font-weight: 800; text-transform: uppercase; font-size: 13.5px; letter-spacing: -.01em; }
.pop--pixel { --acc: var(--lima); border-radius: 6px; background: #05050a; box-shadow: 0 0 0 3px #05050a, 0 0 0 6px var(--lima), 0 20px 50px rgba(0,0,0,.6); image-rendering: pixelated; }
.pop--pixel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.pop--pixel .pop-art { border-radius: 4px; }
.pop--pixel .pop-art::before { display: none; }
.pop--pixel .pop-body strong { font-family: var(--f-pixel); font-weight: 400; font-size: 10.5px; line-height: 1.6; color: var(--lima); }
.pop--pixel .pop-body span { font-family: var(--f-mono); font-size: 12px; }
.pop--pixel .pop-body strong::after { content: "_"; animation: blink 1s steps(2) infinite; }
@media (max-width: 640px) {
  .pops { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .pop { grid-template-columns: 48px 1fr; padding: 10px 36px 10px 10px; border-radius: 20px; }
  .pop-art { width: 48px; height: 48px; border-radius: 14px; }
  .pop-art .ico { width: 24px; height: 24px; }
  .pop-body span { display: none; }
}
html[data-mode="serio"] .pops, html.game-on .pops { display: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: 1fr auto; background: rgba(5, 5, 9, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: fade-in .35s var(--ease); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 64px clamp(12px, 6vw, 96px) 12px; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 16px; object-fit: contain; animation: lb-in .5s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter) 22px; color: var(--ink-2); font-size: 14px; }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb-btn svg, .lb-close svg { width: 22px; height: 22px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 640px) { .lb-btn { top: auto; bottom: 70px; translate: 0; } }

/* ---------- utilidades ---------- */
.muted { color: var(--ink-2); }
.center { text-align: center; }
.stack { display: grid; gap: var(--s, 16px); }
.flex { display: flex; gap: var(--s, 12px); flex-wrap: wrap; align-items: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.fun-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html[data-mode="serio"] .fun-layer { display: none; }
.hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; }
.hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 10px var(--lima); animation: blink 1.4s ease-in-out infinite; }
html[data-mode="serio"] .only-wacco { display: none !important; }
.noscript { padding: 140px 24px; text-align: center; }
