:root {
  --h: 355;
  --bg: hsl(var(--h) 55% 10%);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.15);
  --accent: hsl(var(--h) 92% 62%);
  --accent2: hsl(calc(var(--h) + 40) 95% 60%);
  --ok: #2ee59d;
  --bad: #ff5470;
  --r: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.9s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* Fondo animado */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
  transition: background 0.9s ease;
  animation: float 18s ease-in-out infinite;
}
.blobs span:nth-child(1) { background: hsl(var(--h) 90% 50%); top: -14vmax; left: -10vmax; }
.blobs span:nth-child(2) { background: hsl(calc(var(--h) + 60) 90% 52%); bottom: -18vmax; right: -12vmax; animation-delay: -6s; }
.blobs span:nth-child(3) { background: hsl(calc(var(--h) - 50) 90% 48%); top: 38%; left: 48%; width: 30vmax; height: 30vmax; opacity: 0.35; animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5vmax, 4vmax) scale(1.08); }
  66% { transform: translate(-4vmax, 6vmax) scale(0.95); }
}

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Cabecera */
/* Barra superior amarilla con el logo (mismo amarillo del logo: #ffde32) */
.top {
  position: sticky; top: 0; z-index: 50;
  background-color: #ffde32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M20 10 L23 21 L34 24 L23 27 L20 38 L17 27 L6 24 L17 21Z'/%3E%3Cpath d='M110 6 L112 13 L119 15 L112 17 L110 24 L108 17 L101 15 L108 13Z'/%3E%3Cpath d='M70 60 L74 74 L88 78 L74 82 L70 96 L66 82 L52 78 L66 74Z'/%3E%3Cpath d='M140 70 L142 77 L149 79 L142 81 L140 88 L138 81 L131 79 L138 77Z'/%3E%3Cpath d='M30 92 L32 99 L39 101 L32 103 L30 110 L28 103 L21 101 L28 99Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 120px;
  border-bottom: 4px solid #1a1a1a;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
/* Altura fija: el logo no cambia de tamaño al hacer scroll (evita el temblor) */
.top-in { display: flex; align-items: center; gap: 18px; padding: 8px 0; }
.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { height: 80px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.12)); transition: transform 0.2s; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.top-in .chips { flex: 1 1 auto; min-width: 0; padding: 4px 2px 7px; }
.yt-btn {
  margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 0.9rem;
  background: #ff2d2d; color: #fff; white-space: nowrap;
  border: 2px solid #1a1a1a; box-shadow: 0 3px 0 #1a1a1a;
  transition: transform 0.2s, box-shadow 0.2s;
}
.yt-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #1a1a1a; }
.yt-btn svg { width: 18px; height: 18px; fill: currentColor; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 800;
  background: #ffffff; border: 2px solid #1a1a1a; color: #1a1a1a; box-shadow: 0 3px 0 #1a1a1a;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.15s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #1a1a1a; }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a1a1a; }
.chip.on { background: #40b4f9; color: #ffffff; }
.chips { padding: 2px 2px 12px; }

/* Hero */
.hero { padding: clamp(44px, 9vw, 96px) 0 34px; text-align: center; }
.hero .kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.82rem;
  background: var(--card); border: 1px solid var(--line); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 7.5vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 900;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slide 6s linear infinite;
}
@keyframes slide { to { background-position: 220% 0; } }
.hero p { max-width: 620px; margin: 18px auto 26px; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 16px; font-weight: 900; font-size: 1.02rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #12121f;
  box-shadow: 0 10px 30px hsl(var(--h) 90% 50% / 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--card); color: #fff; border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: 0.92rem; border-radius: 12px; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.55); } 50% { box-shadow: 0 0 0 16px rgba(255, 45, 45, 0); } }

/* Categorias y tarjetas */
.cat { padding: 34px 0 6px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  background: hsl(var(--ch) 85% 55% / 0.25); border: 1px solid hsl(var(--ch) 85% 60% / 0.6);
}
.cat-head h2 { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.cat-head p { color: var(--muted); font-size: 0.95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  position: relative; display: block; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
}
.card:hover { border-color: hsl(var(--ch) 90% 62%); box-shadow: 0 16px 40px hsl(var(--ch) 90% 45% / 0.3); }
.card .cover {
  height: 120px; display: grid; place-items: center; font-size: 3.2rem;
  background: linear-gradient(135deg, hsl(var(--ch) 85% 48%), hsl(calc(var(--ch) + 50) 85% 38%));
  position: relative; overflow: hidden;
}
.card .cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s;
}
.card:hover .cover::after { transform: translateX(120%); }
.card .body { padding: 16px 18px 18px; }
.card h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; background: rgba(255, 255, 255, 0.12); }
.card.soon { border-style: dashed; opacity: 0.7; }
.card.soon .cover { background: rgba(255, 255, 255, 0.05); filter: grayscale(0.6); }

/* Aparicion al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Trivia */
.crumbs { padding: 18px 0 4px; font-size: 0.86rem; color: var(--muted); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.t-head { text-align: center; padding: 14px 0 20px; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.t-head h1 { font-size: clamp(1.8rem, 5.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.t-head p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }

.quiz {
  position: relative; max-width: 720px; margin: 8px auto 0; padding: clamp(18px, 4vw, 30px);
  border-radius: 28px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); min-height: 420px;
}
.screen { display: none; }
.screen.on { display: block; animation: pop 0.45s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }

.start { text-align: center; padding: 18px 0; }
.start .big { font-size: 4.4rem; animation: bob 2.6s ease-in-out infinite; display: inline-block; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.start h2 { font-size: 1.7rem; margin: 6px 0 8px; }
.start p { color: var(--muted); margin-bottom: 22px; }
.rules { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rules .tag { font-size: 0.85rem; padding: 6px 14px; }
.best { margin-top: 14px; font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }

.hud { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 800; }
.hud .count { min-width: 56px; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.5s ease; }
.score { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); min-width: 64px; justify-content: center; }
.score.bump { animation: bump 0.4s; }
@keyframes bump { 50% { transform: scale(1.3); background: var(--ok); color: #0b2b1f; } }
.streak { height: 26px; font-size: 0.9rem; text-align: center; color: #ffd166; font-weight: 800; }

.stage { text-align: center; }
.logo-box {
  width: min(78vw, 300px); aspect-ratio: 1; margin: 6px auto 18px; border-radius: 26px; display: grid; place-items: center;
  background: #ffffff; padding: 18px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; animation: logoIn 0.55s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes logoIn { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.qtext { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }

/* Fotos, banderas y pistas */
.photo-box, .flag-box {
  margin: 6px auto 8px; border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.photo-box { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; background: rgba(255, 255, 255, 0.08); }
.photo-box img { width: 100%; height: 100%; object-fit: cover; animation: photoIn 0.7s ease; }
@keyframes photoIn { from { opacity: 0; transform: scale(1.12); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.flag-box { width: min(78vw, 320px); aspect-ratio: 4 / 3; background: #fff; }
.flag-box img { width: 100%; height: 100%; object-fit: cover; animation: logoIn 0.55s cubic-bezier(0.2, 1.3, 0.4, 1); }
.flag-box.small { width: 120px; margin-bottom: 14px; border-radius: 12px; }
.quiz.shake .photo-box, .quiz.shake .flag-box { animation: shake 0.45s; }
.fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; }
.hint-box { padding: 20px; color: #12121f; text-align: center; }
.hint-box b { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.hint-box span { font-size: 1.3rem; font-weight: 900; }
.mwrap { position: relative; width: 100%; height: 100%; }
.mwrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mask { position: absolute; transition: opacity 0.6s ease 0.2s; }
.mask.off { opacity: 0; }
.credit { font-size: 0.72rem; color: var(--muted); margin: 0 0 12px; opacity: 0.8; }
.credit a { text-decoration: underline; }

/* Equipos (futbolista por 3 equipos) */
.chips-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 18px; flex-wrap: nowrap; }
.club {
  flex: 1 1 0; max-width: 150px; padding: 12px 8px; border-radius: 18px; background: #fff; color: #1a1a2e;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 0.82rem; line-height: 1.15;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); animation: clubIn 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
.club img { width: 64px; height: 64px; object-fit: contain; }
.arrow { font-style: normal; font-weight: 900; color: var(--accent); font-size: 1.2rem; }
@keyframes clubIn { from { opacity: 0; transform: translateY(18px) scale(0.8); } to { opacity: 1; transform: none; } }

/* Niveles de dificultad */
.stage { position: relative; }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.02em; color: #fff; border: 2px solid rgba(0, 0, 0, 0.35); }
.stage > .lvl { position: absolute; top: -4px; right: 0; z-index: 3; text-transform: uppercase; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); animation: optIn 0.4s both; }
.lvl-facil { background: #1fbf6a; }
.lvl-medio { background: #f29b17; }
.lvl-dificil { background: #e5304f; }
.lvl-tmr { background: #4b5bd6; }
.rules .lvl { border-width: 0; padding: 6px 14px; }
.r-levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -6px 0 16px; }
.r-levels:empty { display: none; }

/* Cronómetro */
.tmr-toggle { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; margin: 0 auto 22px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); font-weight: 800; cursor: pointer; user-select: none; }
.tmr-toggle small { font-weight: 600; color: var(--muted); }
.tmr-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tmr-toggle .sw { width: 44px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); position: relative; flex: 0 0 auto; transition: background 0.2s; }
.tmr-toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.tmr-toggle input:checked + .sw { background: var(--ok); }
.tmr-toggle input:checked + .sw::after { transform: translateX(18px); }
.tmr-toggle input:focus-visible + .sw { outline: 2px solid #fff; outline-offset: 2px; }
.tbar { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; margin: 2px 0 6px; }
.tbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 999px; background: hsl(120 85% 50%); }
.tbar b { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; font-weight: 900; color: #10131f; }
.tbar.urgent { animation: tpulse 0.5s ease-in-out infinite alternate; }
@keyframes tpulse { from { box-shadow: 0 0 0 0 rgba(255, 60, 80, 0.0); } to { box-shadow: 0 0 0 4px rgba(255, 60, 80, 0.45); } }
.tbar.hidden { display: none; }
.snd { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 1.05rem; display: grid; place-items: center; flex: 0 0 auto; }
.snd:hover { background: rgba(255, 255, 255, 0.22); }

/* Dato curioso */
.explain { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); animation: optIn 0.4s both; }
.explain p { margin-bottom: 10px; font-size: 0.98rem; }
.series-head { width: 92px; height: 92px; margin: 4px auto 14px; border-radius: 26px; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); animation: logoIn 0.5s; }
.quiz.shake .logo-box { animation: shake 0.45s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-12px) rotate(-2deg); } 40% { transform: translateX(12px) rotate(2deg); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 14px 14px; border-radius: 16px; font-weight: 800; font-size: 1.02rem;
  background: rgba(255, 255, 255, 0.1); border: 2px solid var(--line);
  transition: transform 0.18s, background 0.2s, border-color 0.2s;
  animation: optIn 0.4s both;
}
.opt:nth-child(2) { animation-delay: 0.05s; } .opt:nth-child(3) { animation-delay: 0.1s; } .opt:nth-child(4) { animation-delay: 0.15s; }
@keyframes optIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.opt .k { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 0.85rem; background: rgba(255, 255, 255, 0.18); }
.opt:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); background: rgba(255, 255, 255, 0.16); }
.opt:disabled { cursor: default; }
.opt.ok { background: rgba(46, 229, 157, 0.28); border-color: var(--ok); animation: okPop 0.5s; }
.opt.bad { background: rgba(255, 84, 112, 0.28); border-color: var(--bad); }
.opt.dim { opacity: 0.45; }
@keyframes okPop { 40% { transform: scale(1.06); } }
.feedback { height: 30px; margin-top: 14px; font-weight: 900; font-size: 1.05rem; }
.feedback.ok { color: var(--ok); }
.feedback.bad { color: var(--bad); }

/* Resultado */
.result { text-align: center; }
.ring {
  --p: 0; width: 190px; height: 190px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
}
.ring div { width: 158px; height: 158px; border-radius: 50%; background: hsl(var(--h) 45% 14%); display: grid; place-items: center; align-content: center; }
.ring b { font-size: 2.8rem; line-height: 1; }
.ring small { color: var(--muted); font-weight: 700; }
.r-emoji { font-size: 3.4rem; animation: bob 2.6s ease-in-out infinite; display: inline-block; }
.r-name { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; margin: 2px 0 6px; }
.r-text { color: var(--muted); max-width: 480px; margin: 0 auto 18px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* Video */
.section { max-width: 720px; margin: 34px auto 0; }
.section h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.short { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.card .cover img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); transition: transform 0.35s; }
.card .cover img.ph { width: 100%; height: 100%; object-fit: cover; filter: none; }
.card:hover .cover img { transform: scale(1.1) rotate(-3deg); }
.card .cover .cv { background: #fff; border-radius: 18px; padding: 10px; display: grid; place-items: center; }
.credits-list { font-size: 0.8rem; color: var(--muted); columns: 2 240px; }
.credits-list a { text-decoration: underline; }
@media (max-width: 520px) { .club { padding: 10px 4px; font-size: 0.72rem; } .club img { width: 48px; height: 48px; } .chips-row { gap: 4px; } }
.yt-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 45, 45, 0.3), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 90, 90, 0.5);
}
.yt-cta p { color: var(--muted); max-width: 420px; }
.yt-cta strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 2px; }
.prose { color: var(--muted); }
.prose p { margin-bottom: 10px; }

footer { margin-top: 64px; padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }
footer a { text-decoration: underline; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

@media (max-width: 520px) {
  .opts { gap: 10px; }
  .opt { padding: 12px 10px; font-size: 0.95rem; }
  .yt-btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Celular y tablet: logo y botón arriba, categorías en una segunda fila */
@media (max-width: 999px) {
  .top-in { flex-wrap: wrap; row-gap: 4px; padding-bottom: 4px; }
  .brand img { height: 60px; }
  .top-in .chips { order: 3; flex: 0 0 100%; padding-bottom: 8px; }
}

/* PC: aprovechar todo el ancho */
@media (min-width: 1000px) {
  .wrap { width: min(1680px, 100% - 64px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
  .hero { padding: 64px 0 28px; }
}
@media (min-width: 1200px) {
  .t-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 460px); gap: 32px; align-items: start; margin-top: 8px; }
  .t-layout .quiz { max-width: none; margin: 0; min-height: 560px; }
  .t-side { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
  .t-side .section { max-width: none; margin: 0 0 24px; }
  .t-layout .photo-box { max-width: 820px; }
  .t-layout .logo-box { width: 340px; }
  .t-layout .flag-box { width: 400px; }
  .t-layout .opts { max-width: 900px; margin: 0 auto; }
  .t-layout .qtext { font-size: 1.45rem; }
  .t-head { padding-bottom: 12px; }
  .more-wide { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
