/* El Golpe de Suerte — web pública (tema oscuro premium)
   Paleta: negro #0A0A0C, rojo #CE1126, oro #F5D76E, navy acento #002D62 */

:root {
  --gold: #C5A059;
  --gold-light: #F5D76E;
  --gold-dark: #8B6B23;
  --red: #E11B2E;
  --red-deep: #9E0D1E;
  --navy: #1A4A8F;
  --bg: #08080B;
  --bg-2: #0E0E12;
  --surface: #15151B;
  --surface-2: #1C1C24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(245, 215, 110, 0.25);
  --text: #F4F4F6;
  --muted: #9AA0AA;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(225, 27, 46, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(245, 215, 110, 0.10), transparent 55%),
    linear-gradient(180deg, #0B0B0F 0%, var(--bg) 45%, #060608 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, strong { font-family: var(--font-display); }

/* —— App download strip —— */
.app-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #000, #14060a 55%, #1c0509);
  color: #fff;
  border-bottom: 1px solid rgba(245, 215, 110, 0.35);
}
.app-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-strip__brand { display: flex; align-items: center; gap: 0.7rem; }
.app-strip__icon { border-radius: 10px; box-shadow: 0 4px 14px rgba(225,27,46,0.4); }
.app-strip__brand strong { display: block; font-size: 0.9rem; }
.app-strip__brand span { display: block; font-size: 0.7rem; opacity: 0.7; font-family: var(--font-body); }
.app-strip__stores { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.8rem; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff; transition: transform .2s, border-color .2s, background .2s;
}
.store-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.05; font-size: 0.78rem; font-weight: 600; }
.store-btn small { font-size: 0.53rem; font-weight: 500; letter-spacing: 0.04em; opacity: 0.7; text-transform: uppercase; }
.store-btn--play:hover { border-color: #3DDC84; }
.store-btn--ios:hover { border-color: var(--gold-light); }

/* —— Header brand —— */
.site-header {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 150px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.site-header__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate; z-index: -2;
}
.site-header__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,6,8,0.55) 0%, rgba(6,6,8,0.72) 45%, rgba(6,6,8,0.95) 100%);
}
.site-header__content { padding: 1.5rem 1rem 1.35rem; animation: fadeUp .7s ease both; }
.brand__logo { margin: 0 auto; width: min(260px, 74vw); filter: drop-shadow(0 8px 26px rgba(0,0,0,0.6)); }
.brand__tag {
  margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--gold-light);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }

/* —— Nav —— */
.main-nav {
  position: sticky; top: 57px; z-index: 40;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.main-nav__inner {
  max-width: var(--max); margin: 0 auto; display: flex; gap: 0.25rem;
  padding: 0.35rem 0.75rem; overflow-x: auto; scrollbar-width: none;
}
.main-nav__inner::-webkit-scrollbar { display: none; }
.main-nav__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.95rem; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav__link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.main-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 6px 16px rgba(225,27,46,0.35);
}
.nav-flag { border-radius: 3px; }

/* —— Page shell —— */
.page { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1rem 3rem; }

/* —— Page title (h1 SEO) —— */
.page-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
  animation: fadeUp .45s ease both;
}
.page-title--simple {
  flex-direction: column; align-items: center; text-align: center;
  justify-content: center; gap: 0.35rem;
  margin: 0.25rem 0 1.25rem; padding: 0.35rem 0 1rem;
}
.page-title h1 {
  margin: 0.25rem 0 0; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 35%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-title--simple h1 { margin: 0; }
.page-title__sub { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.92rem; }
.page-title__meta { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.page-title__meta strong { color: var(--gold-light); font-size: 1.05rem; }

.eyebrow {
  margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--red);
}
.page-title--global .eyebrow { color: #6aa4ff; }

/* —— HERO banner imagen (con hotspots Play / App Store) —— */
.hero-banner {
  position: relative; margin-bottom: 1.1rem; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(245,215,110,0.22); box-shadow: var(--shadow);
  animation: fadeUp .55s ease both; background: #0b0506;
}
.hero-banner__img {
  display: block; width: 100%; height: auto; vertical-align: middle;
}
.hero-banner__hotspot {
  position: absolute; top: 22%; bottom: 22%; z-index: 2;
  border-radius: 8px;
}
.hero-banner__hotspot--play { left: 64%; width: 16.5%; }
.hero-banner__hotspot--apple { left: 81.5%; width: 16.5%; }
.hero-banner__hotspot:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 2px;
}

.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.1rem; border-radius: 12px; min-width: 190px;
  background: #000; border: 1px solid rgba(255,255,255,0.25); color: #fff;
  transition: transform .2s, border-color .2s;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--gold-light); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.store-badge small { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.04em; opacity: 0.8; text-transform: uppercase; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(225,27,46,0.4); transition: transform .2s;
}
.btn-primary:hover { transform: translateY(-2px); }

/* —— Filters —— */
.filters { margin-bottom: 1.25rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.55rem; }
.filter-group--dates { justify-content: center; }
.filter-group--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: thin; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-display);
  color: var(--muted); white-space: nowrap; transition: all .2s;
}
.chip:hover { border-color: var(--line-strong); color: #fff; }
.chip.is-active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border-color: transparent; }
.chip--soft.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #1a1a1a; }
.chip--date { position: relative; cursor: pointer; }
.chip--date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* —— Filtro móvil por compañía —— */
.mobile-company-bar { display: none; margin-top: 0.75rem; }
.mobile-company-bar__select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 0.75rem 2.5rem 0.75rem 0.95rem; border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F5D76E' d='M6 8L0 0h12z'/%3E%3C/svg%3E") right 0.9rem center / 10px no-repeat;
  border: 1px solid var(--line-strong); color: #fff; font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; margin-bottom: 0.55rem;
}
.mobile-company-chips { margin-bottom: 0; }

/* —— Back to top —— */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1.25rem; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245,215,110,0.35);
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  color: #fff; box-shadow: 0 10px 28px rgba(225,27,46,0.45);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}
.back-to-top.is-visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.back-to-top:hover { border-color: var(--gold-light); }

/* —— Sections —— */
.section { margin-bottom: 1.75rem; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.section__head h2 {
  margin: 0; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.section__count { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.live-dot, .pending-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
}
.live-dot { background: var(--red); box-shadow: 0 0 0 0 rgba(225,27,46,0.6); animation: pulse 1.8s infinite; }
.pending-dot { background: var(--gold); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,27,46,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(225,27,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,27,46,0); }
}

/* —— Card grid (mobile-first: SIEMPRE 1 col en teléfonos) —— */
.card-grid,
.card-grid--featured {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 900px) {
  .card-grid,
  .card-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem;
  }
}
@media (min-width: 1200px) {
  .card-grid,
  .card-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem;
  }
}

.lot-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-width: 0;
  width: 100%;
}
.lot-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.lot-card--updated { border-color: rgba(225,27,46,0.28); }
.lot-card--previous { border-color: rgba(245,215,110,0.22); }
.lot-card--ad {
  justify-content: center; align-items: stretch; min-height: 140px;
  border-style: dashed; border-color: rgba(245,215,110,0.28);
  background: rgba(255,255,255,0.02); cursor: default;
}
.lot-card--ad:hover { transform: none; box-shadow: none; }

.lot-badge {
  flex-shrink: 0; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.3rem 0.55rem; border-radius: 999px; white-space: nowrap;
  width: fit-content;
}
.lot-badge--updated { background: rgba(225,27,46,0.2); color: #ff8a95; border: 1px solid rgba(225,27,46,0.45); }
.lot-badge--previous { background: rgba(245,215,110,0.12); color: var(--gold-light); border: 1px solid rgba(245,215,110,0.35); }
.lot-badge--pred { background: rgba(106,164,255,0.15); color: #9ec3ff; border: 1px solid rgba(106,164,255,0.4); }
.lot-badge--ad { align-self: flex-start; background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--line); }

.lot-card__top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "logo id"
    "badge badge";
  gap: 0.35rem 0.7rem;
  align-items: center;
}
.lot-card__logo { grid-area: logo; }
.lot-card__id { grid-area: id; min-width: 0; }
.lot-card__top .lot-badge { grid-area: badge; margin-top: 0.15rem; }
@media (min-width: 900px) {
  .lot-card__top {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "logo id badge";
    align-items: start;
  }
  .lot-card__top .lot-badge { margin-top: 0.15rem; }
}
.lot-card__logo {
  width: 48px; height: 48px; object-fit: contain; border-radius: 11px;
  background: #fff; padding: 4px; flex-shrink: 0;
}
.lot-card__name {
  margin: 0; font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.25;
  white-space: normal; overflow: visible; word-break: break-word;
  hyphens: auto;
}
.lot-card__company { font-size: 0.72rem; color: var(--muted); display: block; margin-top: 0.1rem; }
.lot-card__flag {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--gold-light); background: rgba(245,215,110,0.12);
  padding: 0.2rem 0.45rem; border-radius: 6px; white-space: nowrap;
}
.lot-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.lot-card__date {
  font-size: 0.85rem; font-weight: 700; color: #fff;
}
.lot-card__time {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.05); padding: 0.25rem 0.55rem; border-radius: 6px; white-space: nowrap;
}
.lot-card__next {
  font-size: 0.78rem; font-weight: 600; color: var(--gold-light);
  background: rgba(245,215,110,0.08); border: 1px solid rgba(245,215,110,0.2);
  border-radius: 8px; padding: 0.5rem 0.65rem;
}
.lot-card__balls { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.2rem 0; }
.ad-placeholder--card {
  flex: 1; min-height: 100px; width: 100%; border: none; background: transparent;
}

/* Ocultar placeholders AdSense (revisión / sin slots configurados) */
.ad-placeholder,
.ad-placeholder--card {
  display: none !important;
}
.lot-card--ad:has(.ad-placeholder),
.ad-slot:has(.ad-placeholder) {
  display: none !important;
}

.ball {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 0.35rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: #fff;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.28), inset 0 -3px 7px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.45);
}
.ball small {
  position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.5rem; font-weight: 700; color: var(--gold-light); white-space: nowrap;
}
.ball--red { background: radial-gradient(circle at 32% 28%, #ff6473, var(--red) 45%, var(--red-deep)); }
.ball--gold { background: radial-gradient(circle at 32% 28%, #FFFACD, #FFD700 40%, #B8860B); color: #3a2a00; }
.ball--silver { background: radial-gradient(circle at 32% 28%, #fff, #dcdcdc 45%, #8a8a8a); color: #222; }
.ball--lg { min-width: 58px; height: 58px; font-size: 1.25rem; }

.lot-card__pending {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted);
  padding: 0.6rem 0; min-height: 40px;
}
.lot-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.6rem;
}
.lot-card__more { color: var(--gold-light); font-weight: 600; }

/* —— Company tiles (por compañía, no por país) —— */
.company-picker { margin-top: 0.5rem; }
.company-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.85rem;
}
.company-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.55rem; padding: 1rem 0.65rem 0.9rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.company-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.company-tile.is-active {
  border-color: rgba(225,27,46,0.55);
  box-shadow: 0 0 0 1px rgba(225,27,46,0.35), 0 12px 28px rgba(225,27,46,0.2);
}
.company-tile__logo {
  width: 64px; height: 64px; object-fit: contain; border-radius: 50%;
  background: #fff; padding: 8px;
  border: 2px solid rgba(245,215,110,0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.company-tile__logo--all {
  display: grid; place-items: center;
  font-size: 1.4rem; color: var(--gold-light);
  background: linear-gradient(145deg, #2a1a08, #1a1208);
  border-color: rgba(245,215,110,0.5);
}
.company-tile strong {
  font-size: 0.78rem; font-weight: 700; color: #fff; line-height: 1.2;
  max-width: 100%; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.company-tile span { font-size: 0.68rem; color: var(--muted); }

/* —— Lottery detail —— */
.lottery-page { animation: fadeUp .4s ease both; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--gold-light); }
.lottery-hero {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1.15rem;
  border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lottery-hero__logo { width: 84px; height: 84px; object-fit: contain; border-radius: 18px; background: #fff; padding: 8px; }
.lottery-hero h1 { margin: 0; font-size: clamp(1.35rem, 3.5vw, 1.9rem); color: #fff; }
.latest-panel {
  padding: 1.75rem 1rem; margin-bottom: 1.5rem; border-radius: var(--radius); text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(225,27,46,0.18), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.result-row__balls { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.result-row__balls--lg { justify-content: center; gap: 0.55rem; }
.history-section h2 { margin: 0 0 0.75rem; font-size: 1.1rem; color: #fff; }
.history-list { display: flex; flex-direction: column; gap: 0.45rem; }
.history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.9rem; background: var(--surface); border-radius: 12px; border: 1px solid var(--line);
}
.history-item time { font-size: 0.8rem; font-weight: 600; color: var(--muted); min-width: 4.5rem; }

/* —— Schedules —— */
.schedule-region { margin-bottom: 2rem; }
.schedule-region__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; font-size: 1.2rem; color: #fff; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.5rem; }
.schedule-item {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.75rem; background: var(--surface); border-radius: 12px; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.schedule-item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.schedule-item img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.schedule-item span { font-size: 0.8rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.schedule-item strong { font-size: 0.75rem; color: var(--gold-light); white-space: nowrap; }

/* —— Ads / empty / footer —— */
.ad-slot { max-width: var(--max); margin: 1rem auto; padding: 0 1rem; }
.ad-placeholder {
  display: none !important;
  min-height: 0;
  border: none;
  background: transparent;
}
.empty {
  text-align: center; padding: 2.5rem 1.25rem; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.empty h2 { margin: 0 0 0.5rem; color: #fff; }
.empty p { margin: 0 0 1.25rem; color: var(--muted); }

.seo-copy {
  margin-top: 2rem; padding: 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  line-height: 1.65;
}
.seo-copy--rich { max-width: var(--max); margin-left: auto; margin-right: auto; }
.seo-copy h2 { margin: 1.15rem 0 0.5rem; font-size: 1.05rem; color: #fff; }
.seo-copy h2:first-child { margin-top: 0; }
.seo-copy a { color: var(--gold-light); font-weight: 600; }
.seo-copy ul, .legal-prose ul, .legal-prose ol { margin: 0.75rem 0 1rem 1.2rem; color: var(--muted); }
.seo-copy li, .legal-prose li { margin: 0.4rem 0; }
.legal-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}
.legal-page .page-title--simple {
  text-align: left;
  margin-bottom: 1.25rem;
}
.legal-prose {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-prose h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin: 0 0 1rem; }
.legal-prose strong { color: #f3f0e8; }
.legal-prose a { color: var(--gold-light); font-weight: 600; }
.notice-box {
  max-width: var(--max); margin: 0 auto 1.25rem; padding: 0.9rem 1.1rem;
  border-radius: 12px; border: 1px solid rgba(245,215,110,0.28);
  background: rgba(245,215,110,0.08); color: var(--muted); font-size: 0.88rem; line-height: 1.55;
}
.notice-box a { color: var(--gold-light); font-weight: 600; }
.guides-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin: 1.25rem 0;
}
@media (min-width: 700px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.guide-card {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.15rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.guide-card h2 { margin: 0; font-size: 1.02rem; color: #fff; }
.guide-card p { margin: 0; color: var(--muted); font-size: 0.88rem; flex: 1; }
.guide-card span { color: var(--gold-light); font-size: 0.82rem; font-weight: 700; }
.guides-foot { margin-top: 1.25rem; }
.guide-hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.guide-body h2 { margin-top: 1.4rem; }
.site-footer__legal a { color: var(--gold-light); }
.lede-center { text-align: center; color: var(--muted); margin: -0.5rem 0 1.25rem; font-size: 0.92rem; }

/* Número del día */
.numero-dia {
  text-align: center; margin: 0 0 1.5rem; padding: 1.35rem 1rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(245,215,110,0.22), transparent 55%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(245,215,110,0.35);
  box-shadow: var(--shadow);
}
.numero-dia__label {
  margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-light);
}
.numero-dia__num {
  margin: 0.35rem 0 0; font-family: var(--font-display); font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.numero-dia__meta { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.85rem; }

/* Tablas */
.tables-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem;
}
@media (min-width: 700px) {
  .tables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.table-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.15rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.table-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.table-card__emoji { font-size: 1.5rem; }
.table-card h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.table-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.num-table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: 12px; border: 1px solid var(--line); }
.num-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; table-layout: fixed; }
.num-table--pairs { min-width: 320px; }
.num-table th, .num-table td {
  padding: 0.7rem 0.5rem; text-align: center; border-bottom: 1px solid var(--line);
  width: 25%;
}
.num-table th {
  background: rgba(245,215,110,0.08); color: var(--gold-light);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.num-table td { color: #fff; font-weight: 700; font-family: var(--font-display); }
.num-table__accent { color: var(--gold-light); }
.num-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.num-table tr:hover td { background: rgba(225,27,46,0.08); }
.table-intro { white-space: normal; line-height: 1.55; }
.table-intro h2 { white-space: pre-line; }
.table-back { margin-top: 1.25rem; }
.table-back a { color: var(--gold-light); font-weight: 600; }
.table-intro { margin-bottom: 1.25rem; }

.site-footer { margin-top: 1rem; background: linear-gradient(180deg, #050507, #000); color: var(--muted); padding: 2.5rem 1rem 2rem; border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; }
.site-footer__brand { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.5rem; }
.site-footer__brand img { border-radius: 12px; }
.site-footer__brand strong { color: var(--gold-light); display: block; margin-bottom: 0.25rem; }
.site-footer__brand p { margin: 0; font-size: 0.85rem; max-width: 46ch; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.site-footer__col { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer__col h3 {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.site-footer__col a {
  color: #d7d2c8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--gold-light); }
.site-footer__links { display: none; }
.site-footer__legal { margin: 0; font-size: 0.75rem; opacity: 0.65; border-top: 1px solid var(--line); padding-top: 1rem; }
.site-footer__legal a { color: var(--gold-light); }

@media (max-width: 860px) {
  .hero-banner { display: none; }
  .company-picker--desktop { display: none; }
  .mobile-company-bar { display: block; }
  .mobile-company-chips { display: none; }
  .ad-slot--top { display: none; }
  .page { padding-top: 0.75rem; }
  .filter-group--dates { justify-content: center; width: 100%; }
  .app-strip__inner { justify-content: center; text-align: center; flex-direction: column; }
  .app-strip__brand { justify-content: center; width: 100%; }
  .app-strip__icon { display: none; } /* móvil: solo texto + botones tienda */
  .app-strip__stores { justify-content: center; width: 100%; }
}

@media (max-width: 720px) {
  .app-strip__inner { justify-content: center; }
  .page-title:not(.page-title--simple) { flex-direction: column; align-items: flex-start; }
  .page-title__meta { gap: 1rem; }
  .main-nav { top: auto; position: relative; }
  .company-tiles { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.55rem; }
  .company-tile { padding: 0.75rem 0.4rem; }
  .company-tile__logo { width: 52px; height: 52px; }
  .ball { min-width: 38px; height: 38px; font-size: 0.85rem; }
  .history-item { flex-direction: column; align-items: flex-start; }
  .lot-card__foot { font-size: 0.75rem; }
  .back-to-top { right: 0.85rem; bottom: 1rem; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
