.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .4rem var(--gutter);
  background: rgba(10, 10, 10, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 96px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}

.site-nav a {
  padding: .55rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--silver);
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.site-nav a[aria-current="page"] {
  color: #120d00;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--silver);
  margin: 6px 0;
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    margin: 0;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: .9rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }
}

/* 2 · Hero  */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 184, 0, .16), transparent 70%);
}

.hero h1 {
  margin-bottom: .35em;
}

.hero-lead {
  font-size: var(--step-1);
  color: var(--silver);
  max-width: 34ch;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 1.75rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--step--1);
}

.facts li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), var(--shadow-gold);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    width: min(100%, 380px);
  }
}

/* Franja "sorteo abierto ahora" */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto 1rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(245, 184, 0, .08), transparent 60%), var(--coal);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--maxw) - 2 * var(--gutter));
}

.live-strip .live-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(56, 210, 124, .6);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(56, 210, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 210, 124, 0);
  }
}

.live-strip dl {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 2rem;
  margin: 0;
}

.live-strip dt {
  font-size: .78rem;
  color: var(--muted);
}

.live-strip dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
}

.live-strip .btn {
  margin-left: auto;
}

/* 3 · Secciones  */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.section-head p {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.4;
}

.band-light {
  background: var(--silver-soft);
  color: #101114;
}

.band-light .section-head p {
  color: #4b4f58;
}

.band-coal {
  background: var(--coal);
  border-block: 1px solid var(--line);
}

/* 4 · Tablero  */
.board {
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1rem, 3vw, 2rem);
}

.board-bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
  gap: .75rem 1rem;
  align-items: end;
}

.raffle-info {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.25rem 0 .25rem;
  align-items: center;
}

.raffle-info h3 {
  flex-basis: 100%;
  margin: 0 0 .25rem;
  font-size: var(--step-2);
}

.info-chip {
  display: inline-flex;
  flex-direction: column;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  border: 1px solid var(--line);
  line-height: 1.2;
}

.info-chip small {
  color: var(--muted);
  font-size: .72rem;
}

.info-chip b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.info-chip.is-gold {
  border-color: var(--gold);
}

.info-chip.is-gold b {
  color: var(--gold-bright);
}

.board-status {
  color: var(--muted);
  font-size: var(--step--1);
  margin: .75rem 0;
}

.legend {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  color: var(--silver);
}

.legend li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.sw {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-block;
  border: 1.5px solid var(--silver);
}

.sw-taken {
  background: #000 url("../img/brand/logo-sm.webp") center / 80% no-repeat;
  border-color: var(--line);
}

.sw-win {
  background: var(--gold);
  border-color: var(--gold-bright);
}

.number-grid {
  --side: 10;
  display: grid;
  grid-template-columns: repeat(var(--side), minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
  max-width: 760px;
  margin-inline: auto;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 clamp(.8rem, 2.6vw, 1.7rem)/1 var(--font-display);
  letter-spacing: .02em;
  background: #fff;
  border: 1.5px solid #d9dce1;
  color: #101114;
  transition: border-color .15s, transform .15s, background-color .15s;
}

.cell.is-free:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.cell.is-taken {
  background: #000 url("../img/brand/logo-sm.webp") center / 86% no-repeat;
  border-color: #242424;
  color: transparent;
}

.cell.is-winner {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  border-color: var(--gold-bright);
  color: #120d00;
  box-shadow: 0 0 0 3px rgba(255, 210, 63, .25), 0 0 28px rgba(245, 184, 0, .5);
  z-index: 1;
}

.cell.is-winner::after {
  content: "★";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: .55em;
}

.cell.is-closed {
  opacity: .55;
}

.board-count {
  margin: 1rem 0 .25rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}

.board-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
  max-width: none;
}

.board.is-loading .number-grid {
  opacity: .35;
}

@media (max-width: 720px) {
  .board-bar {
    grid-template-columns: 1fr 1fr;
  }

  .board-bar .field:first-child {
    grid-column: 1 / -1;
  }
}

/* 5 · Pasos  */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 1.25rem 1rem 0;
  border-top: 3px solid #101114;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1.35rem;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: #101114;
  color: var(--gold-bright);
  border-radius: 50%;
  font: 900 1.4rem/1 var(--font-display);
}

.steps h3 {
  margin: .9rem 0 .35rem;
}

.steps p {
  color: #4b4f58;
  font-size: .98rem;
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .steps li {
    padding: 0 0 0 3.4rem;
    border-top: 0;
  }

  .steps li::before {
    top: 0;
  }

  .steps h3 {
    margin-top: .1rem;
  }
}

/* 6 · Formas de ganar  */
.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  border: 1px solid var(--line);
  justify-self: center;
}

.ways {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .75rem;
}

.ways li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ways b {
  font-weight: 600;
}

.digits {
  display: inline-flex;
  gap: 4px;
}

.digits span {
  width: 2rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--graphite);
  color: var(--muted);
  font: 800 1.35rem/1 var(--font-display);
  border: 1px solid var(--line);
}

.digits span.on {
  background: var(--gold);
  color: #120d00;
  border-color: var(--gold-bright);
}

.example-note {
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .ways li {
    grid-template-columns: 1fr;
  }
}

/* 7 · Fidelidad - */
.loyalty {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.loyalty img {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  justify-self: center;
  border: 1px solid var(--line);
}

.loyalty strong {
  display: block;
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  .loyalty {
    grid-template-columns: 1fr;
  }

  .loyalty img {
    order: -1;
  }
}

/* 8 · Ganadores - */
.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.winner-card {
  display: grid;
  gap: .35rem;
  padding: 1.25rem;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.winner-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.winner-card .num {
  font: 900 4.2rem/1 var(--font-display);
  color: var(--gold-bright);
}

.winner-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.winner-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

.winner-card .prize {
  color: var(--text);
  font-weight: 600;
}

.empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty h2 {
  font-size: var(--step-2);
  color: var(--text);
}

.empty p {
  margin-inline: auto;
}

/* 9 · Galería  */
.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tabs button {
  min-height: 44px;
  padding: .4rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--silver);
  font-weight: 700;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--gold);
  color: #120d00;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--coal);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
}

.media-card.is-landscape {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}

.media-card video,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-open {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.photo-open:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: -3px;
}

.media-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
  }

  .media-card.is-landscape {
    grid-column: span 2;
  }
}

/* 10 · Nosotros - */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.about p {
  color: var(--silver);
}

.about-cta {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.about-cta h3 {
  font-size: var(--step-2);
  margin: 0;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* 11 · FAQ  */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: var(--step-1);
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font: 400 1.8rem/1 var(--font-body);
  color: var(--gold);
  transition: transform .2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  color: var(--silver);
  padding-bottom: 1.1rem;
  margin: 0;
}

/* 12 · CTA final  */
.cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: radial-gradient(60% 120% at 50% 0, rgba(245, 184, 0, .18), transparent 70%), var(--coal);
  border-top: 1px solid var(--line);
}

.cta p {
  margin-inline: auto;
  color: var(--silver);
  font-size: var(--step-1);
}

.cta .hero-actions {
  justify-content: center;
}

/* 13 · Pie  */
.site-footer {
  padding: 3rem var(--gutter) 6rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .75rem;
  letter-spacing: 0;
}

.site-footer nav,
.site-footer .footer-grid>div {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: flex-start;
}

.site-footer a {
  text-decoration: none;
  color: var(--silver);
  padding: .2rem 0;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-legal {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 14 · Botones flotantes  */
.float-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: transform .15s;
}

.float-btn:hover {
  transform: translateY(-3px);
}

.float-btn svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 720px) {
  .float-stack {
    display: none;
  }

  .site-footer {
    padding-bottom: 3rem;
  }
}

.float-wa {
  background: #25d366;
}

.float-tg {
  background: #229ed9;
}

/* 15 · Páginas internas  */
.inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 5rem;
}

.inner-wide {
  max-width: var(--maxw);
}

.inner-head {
  margin-bottom: 2rem;
}

.inner-head h1 {
  font-size: var(--step-3);
}

.inner-head p {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.4;
}

.lookup {
  padding: 1.5rem;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.lookup label {
  display: block;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.lookup-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.lookup-row input {
  flex: 1 1 220px;
}

.form-error {
  margin: .75rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

.my-raffle {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.my-raffle h2 {
  font-size: var(--step-2);
  margin-bottom: .25rem;
}

.my-raffle header p {
  color: var(--muted);
  margin-bottom: .75rem;
}

.chip {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.chip-live {
  background: rgba(56, 210, 124, .15);
  color: var(--ok);
}

.chip-done {
  background: rgba(163, 166, 173, .15);
  color: var(--silver);
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.ball {
  min-width: 3.6rem;
  height: 3.6rem;
  padding: 0 .6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 900 1.7rem/1 var(--font-display);
  background: radial-gradient(circle at 30% 25%, #fff, var(--silver) 60%, #9a9ea6);
  color: #101114;
}

.ball-win {
  background: radial-gradient(circle at 30% 25%, #fff3b0, var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 0 24px rgba(245, 184, 0, .5);
}

.note {
  margin: 1rem 0 0;
  color: var(--silver);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h2 {
  font-size: var(--step-2);
  margin: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--graphite);
}

.contact-list a:hover {
  border-color: var(--gold);
}

.contact-list small {
  display: block;
  color: var(--muted);
}

.contact-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 1.25rem;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 16 · Lightbox - */
dialog#photo-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  overflow: visible;
}

dialog#photo-dialog::backdrop {
  background: rgba(0, 0, 0, .88);
}

dialog#photo-dialog img {
  max-height: 88vh;
  width: auto;
  margin: auto;
  border-radius: var(--radius);
}

dialog#photo-dialog button {
  position: absolute;
  top: -3rem;
  right: 0;
  min-height: 44px;
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--silver);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  font-weight: 700;
}