:root {
  --yellow: #FFC400;
  --yellow-soft: #FFE27A;
  --blue: #0B3D91;
  --blue-deep: #082C6B;
  --ink: #0B1A33;
  --paper: #FFF8E1;
  --white: #FFFFFF;
  --muted: #4A5A78;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip {
  position: absolute; left: 16px; top: -48px; background: var(--yellow); color: var(--blue);
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; z-index: 100;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .band :focus-visible { outline-color: var(--yellow); }

/* Navegación flotante */
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 12px 8px 16px; border-radius: 999px;
  background: rgba(11, 61, 145, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(8, 44, 107, 0.25);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 20px; line-height: 28px; }
.brand img { height: 32px; width: auto; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--white); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; opacity: 0.9; transition: opacity 300ms var(--ease); }
.nav ul a:hover { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border: 0; border-radius: var(--radius-md); cursor: pointer;
  font: 600 16px/24px "Poppins", system-ui, sans-serif; text-decoration: none;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-yellow { background: var(--yellow); color: var(--blue); box-shadow: 0 6px 0 var(--blue-deep); }
.btn-yellow:hover { background: var(--yellow-soft); box-shadow: 0 8px 0 var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.nav .btn { padding: 8px 16px; font-size: 14px; line-height: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--blue); color: var(--white);
  padding: 64px 0 96px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--yellow); color: var(--blue); font-weight: 600;
  font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: 36px; line-height: 40px; max-width: 680px; color: var(--white);
}
.hero h1 .hl { color: var(--yellow); }
.hero .sub { font-size: 18px; line-height: 28px; max-width: 680px; margin-top: 24px; color: rgba(255,255,255,0.88); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero .note { margin-top: 24px; font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.75); }
.ticket-art { position: relative; width: 100%; max-width: 420px; justify-self: center; }
.ticket-art svg { width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

/* Buscador */
.finder { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 24px 48px rgba(8,44,107,0.22); }
.finder h2 { font-size: 24px; line-height: 32px; color: var(--blue); }
.finder p.help { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 8px; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field select {
  width: 100%; font: 400 16px/24px "Poppins", system-ui, sans-serif; color: var(--ink);
  padding: 8px 12px; border: 2px solid #D9E2F2; border-radius: var(--radius-md); background: var(--white);
  transition: border-color 300ms var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field .err { color: #B42318; font-size: 14px; line-height: 20px; min-height: 20px; }
.finder .btn { width: 100%; margin-top: 16px; }
.results {
  margin-top: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--paper);
  font-size: 14px; line-height: 20px; color: var(--muted);
}
.results strong { color: var(--ink); }

/* Banda de tagline */
.band { background: var(--blue); color: var(--white); padding: 96px 0; }
.band .reveal-text { font-size: 48px; line-height: 56px; font-weight: 700; max-width: 680px; margin: 0 auto; text-align: left; }
.band .w { opacity: 0.28; transition: opacity 500ms var(--ease); }
.band .w.on { opacity: 1; }

/* Secciones */
section.block { padding: 96px 0; }
.kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.title { font-size: 36px; line-height: 40px; color: var(--ink); margin-top: 8px; max-width: 680px; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); margin-top: 16px; max-width: 680px; }

.games { display: grid; gap: 24px; margin-top: 48px; }
.ticket-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: 0 1px 0 #E6DCC0, 0 12px 24px rgba(11,26,51,0.08);
}
.ticket-card::before, .ticket-card::after {
  content: ""; position: absolute; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  background: var(--paper); border-radius: 50%;
}
.ticket-card::before { left: -12px; }
.ticket-card::after { right: -12px; }
.ticket-card .tag { display: inline-block; background: var(--yellow); color: var(--blue); font-weight: 600; font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 999px; }
.ticket-card h3 { font-size: 24px; line-height: 32px; margin-top: 16px; color: var(--blue); }
.ticket-card p { margin-top: 12px; color: var(--muted); }
.ticket-card ul { margin: 16px 0 0; padding: 0 0 0 20px; color: var(--ink); }
.ticket-card li { margin-top: 8px; }
.ticket-card .perf { border-top: 2px dashed #D9E2F2; margin: 24px 0 0; padding-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }

.steps { display: grid; gap: 24px; margin-top: 48px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 2px solid #E8EEF8; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--radius-md); background: var(--blue); color: var(--yellow); font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 20px; line-height: 28px; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--muted); }

.owner { background: var(--yellow); color: var(--blue); border-radius: var(--radius-lg); padding: 40px 24px; display: grid; gap: 24px; align-items: center; }
.owner h2 { font-size: 36px; line-height: 40px; max-width: 680px; }
.owner p { margin-top: 16px; font-size: 18px; line-height: 28px; max-width: 680px; color: var(--ink); }

.faq { margin-top: 48px; display: grid; gap: 12px; max-width: 820px; }
details { background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; border: 2px solid #E8EEF8; }
details[open] { border-color: var(--blue); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; line-height: 24px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 24px; transition: transform 300ms var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); }

.final { background: var(--blue); color: var(--white); padding: 96px 0; text-align: center; }
.final h2 { font-size: 36px; line-height: 40px; max-width: 680px; margin: 0 auto; color: var(--white); }
.final p { margin: 16px auto 0; max-width: 680px; color: rgba(255,255,255,0.85); font-size: 18px; line-height: 28px; }
.final .btn { margin-top: 32px; }

footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 48px 0; font-size: 14px; line-height: 20px; }
footer .row { display: grid; gap: 16px; }
footer img { height: 32px; width: auto; }
footer .rg { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; }

/* Entradas al hacer scroll */
.rv { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.rv.on { opacity: 1; transform: none; }

/* Resultados */
.res-tabs { display: inline-flex; gap: 8px; margin-top: 32px; padding: 4px; background: var(--white); border-radius: var(--radius-md); box-shadow: inset 0 0 0 2px #E8EEF8; }
.res-tab {
  font: 600 16px/24px "Poppins", system-ui, sans-serif; color: var(--blue); background: transparent;
  border: 0; border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.res-tab[aria-selected="true"] { background: var(--blue); color: var(--white); }
.res-tab:hover:not([aria-selected="true"]) { background: #FFF1BF; }
.res-meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.res-empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--white); border-radius: var(--radius-lg); }
.res-empty strong { display: block; color: var(--ink); font-size: 18px; line-height: 28px; }
.res-empty p { margin-top: 8px; }

.rs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rs-bar .res-tabs { margin-top: 0; }
.rs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 16px 8px; margin: 0 -16px; scrollbar-width: thin; }
.rs-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 14px/20px "Poppins", system-ui, sans-serif; color: var(--ink); background: var(--white);
  border: 2px solid #E8EEF8; border-radius: 999px; padding: 4px 12px;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.rs-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--blue)); }
.rs-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.rs-chip:hover:not([aria-pressed="true"]) { border-color: var(--blue); }

.rs-grid { display: grid; gap: 24px; margin-top: 16px; grid-template-columns: 1fr; }
.rs-card { --c: var(--blue); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 24px rgba(11,26,51,0.08); }
.rs-head { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--c); color: var(--white); border-bottom: 3px dashed rgba(255,255,255,0.55); }
.rs-emblem {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: rgba(255,255,255,0.18); box-shadow: 0 0 0 3px rgba(255,255,255,0.9); font-weight: 700; font-size: 24px; line-height: 32px;
}
.rs-emblem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-title { font-size: 18px; line-height: 24px; font-weight: 700; text-wrap: balance; }
.rs-count { font-size: 12px; line-height: 16px; opacity: 0.88; margin-top: 2px; }
.rs-body { position: relative; padding: 24px 16px 16px; }
.rs-body::before, .rs-body::after {
  content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper);
}
.rs-body::before { left: -12px; }
.rs-body::after { right: -12px; }

.rs-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 8px; }
.rs-medal { text-align: center; }
.rs-disc { --ring: var(--ink); position: relative; width: 84px; height: 84px; margin: 0 auto; padding: 4px; border-radius: 50%; background: var(--ring); }
.rs-disc.rojo { --ring: #D0201C; }
.rs-disc.negro { --ring: #0B1A33; }
.rs-disc.verde { --ring: #15803D; }
.rs-art { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #FFE27A; display: grid; place-items: center; }
.rs-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-art.sin { background: var(--paper); color: var(--ring); font-weight: 700; font-size: 24px; line-height: 32px; }
.rs-num {
  position: absolute; left: -6px; top: -6px; min-width: 32px; height: 32px; padding: 0 4px; border-radius: 16px;
  background: var(--ring); color: var(--white); font-weight: 700; font-size: 14px; line-height: 32px; text-align: center; box-shadow: 0 0 0 2px var(--white);
}
.rs-name { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
.rs-hora { font-size: 12px; line-height: 16px; color: var(--muted); }
.rs-last .rs-disc { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--yellow); }
.rs-tag { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: var(--yellow); color: var(--blue); font-weight: 600; font-size: 12px; line-height: 16px; }

.rs-rows { display: grid; gap: 8px; }
.rs-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; background: var(--paper); border-radius: var(--radius-md); }
.rs-row.rs-last { box-shadow: inset 0 0 0 2px var(--yellow); }
.rs-hour { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
.rs-label { display: block; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--muted); }
.rs-balls { display: flex; gap: 6px; }
.rs-ball { width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: var(--white); font-weight: 700; font-size: 18px; line-height: 36px; text-align: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22); }
.rs-sign { display: flex; flex-direction: column; align-items: center; font-size: 12px; line-height: 16px; color: var(--ink); }
.rs-sign b { font-weight: 700; font-size: 24px; line-height: 24px; color: var(--c); }
@media (min-width: 900px) {
  .rs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .rs-emblem { width: 64px; height: 64px; font-size: 20px; line-height: 28px; }
}

/* Escritorio */
@media (min-width: 768px) {
  .hero h1 { font-size: 60px; line-height: 64px; }
  .hero .sub { font-size: 20px; line-height: 32px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .games { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .owner { grid-template-columns: 1fr auto; padding: 48px; }
  .band .reveal-text { font-size: 60px; line-height: 68px; }
  .title { font-size: 48px; line-height: 52px; }
  .owner h2 { font-size: 48px; line-height: 52px; }
  .final h2 { font-size: 48px; line-height: 52px; }
  footer .row { grid-template-columns: auto 1fr; align-items: center; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .band .w { opacity: 1; }
}

/* Pagina de resultados */
.nav ul a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--yellow); }
.page-head { background: var(--blue); color: var(--white); padding: 40px 0 20px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: 24px; line-height: 32px; color: var(--white); }
.page-head h1 .hl { color: var(--yellow); }
.page-head .sub { font-size: 16px; line-height: 24px; max-width: 680px; margin-top: 8px; color: rgba(255,255,255,0.88); }
@media (min-width: 768px) {
  .page-head h1 { font-size: 30px; line-height: 36px; }
}
