/* Home only. Paleta oficial navy + oro. No toca app.css ni la grilla. */
body.home-skin {
  --ink: #071422;
  --navy: #0a2344;
  --wine: #123a6b;
  --blood: #e23b4a;
  --gold: #f5c518;
  --gold-dim: #d4a40f;
  --cream: #eef4ff;
  --paper: #f6f8fc;
  --muted: #8ea0b8;
  --line: rgba(245, 197, 24, 0.26);
  --ok: #1f9d6a;
  --shadow: 0 24px 56px rgba(2, 10, 24, 0.5);
  --font-serif: "Outfit", "Manrope", "Segoe UI", sans-serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(980px 520px at 12% -12%, rgba(245, 197, 24, 0.2), transparent 52%),
    radial-gradient(820px 480px at 100% 0%, rgba(47, 140, 255, 0.2), transparent 46%),
    linear-gradient(180deg, #0c2344 0%, #071422 46%, #040d18 100%);
}

body.home-skin .app-header {
  background: rgba(7, 20, 34, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.home-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}
.home-skip:focus { top: 12px; }

a.brand { color: inherit; }
a.brand:hover { text-decoration: none; color: inherit; }
a.brand strong { color: #fff; font-family: var(--font-serif); }

.home-nav-link {
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.home-nav-link:hover { color: var(--gold); text-decoration: none; }

body.home-skin .btn {
  min-height: 44px;
  padding: 12px 18px;
  font-weight: 800;
}
body.home-skin .btn-solid {
  background: var(--gold);
  color: #071422;
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.28);
}
body.home-skin [hidden] { display: none !important; }
body.home-skin .lede { color: #e7eef8; }

.home { padding: 8px 0 48px; }

.home-spotlight {
  margin: 8px 0 22px;
}
.home-spotlight[hidden] { display: none; }
.home-spotlight-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  margin: 4px 0 12px;
  color: #fff;
}
.home-spotlight-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #06101f;
}
.home-slides { position: relative; }
.home-slide {
  display: block;
  color: #fff;
  text-decoration: none;
}
.home-slide[hidden] { display: none; }
.home-slide:hover { text-decoration: none; color: #fff; }
.home-slide-frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #06101f;
}
.home-slide-frame img,
.home-ticket-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.home-slide-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px 16px 16px;
}
.home-slide-copy strong {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.05;
}
.home-slide-copy em {
  font-style: normal;
  color: #d7e3f5;
  font-weight: 700;
}
.home-slide-copy .btn { text-decoration: none; }
.home-slide-nav {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.home-slide-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.62);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.home-slide-dots {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.45);
}
.home-slide-dots button {
  border: 0;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.45);
}
.home-slide-dots button[aria-selected="true"] { background: var(--gold); }

body.has-spotlight .home-hero h1 { font-size: clamp(32px, 6vw, 54px); }

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 18px 0 6px;
}
.home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
  color: #fff;
}
.home-hero .lede { max-width: 42ch; font-size: 17px; color: #c5d4ea; }
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.home-cta-row .btn { text-decoration: none; }
.home-cta-row .btn:hover { text-decoration: none; filter: brightness(1.06); }

.home-modes { display: grid; gap: 12px; }
.home-mode {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 20px 20px 18px;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    #0c2a4d;
}
.home-mode::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.28), transparent 68%);
  pointer-events: none;
}
.home-mode.is-rifa {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    #1a1430;
}
.home-mode.is-rifa::after {
  background: radial-gradient(circle, rgba(226, 59, 74, 0.32), transparent 68%);
}
.home-mode:hover { transform: translateY(-3px); border-color: rgba(245, 197, 24, 0.45); }
.home-mode:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.home-mode small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 4px;
}
.home-mode.is-rifa small { color: #ff8a93; }
.home-mode strong {
  font-family: var(--font-serif);
  font-size: 30px;
  display: block;
  margin-bottom: 4px;
}
.home-mode span { color: #c5d4ea; font-size: 14px; }

.home-balls { display: flex; gap: 6px; margin-top: 14px; }
.home-balls i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 28%, #ffe38a, var(--gold) 55%, #c4920d);
  color: #071422;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.home-chip {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  margin-top: 14px;
  border-radius: 10px;
  background: #e23b4a;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.home-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.home-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 12px 10px 10px;
}
.home-trust b {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #071422;
  font-size: 13px;
}
.home-trust span { color: #d7e3f5; font-size: 13px; font-weight: 700; }

.home-results { margin-top: 28px; }
.home-results[hidden] { display: none; }
.home-results .muted { margin: 0; }
.home-results-label {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 16px;
}
.home-results-note { color: #f0d48a; margin: 0 0 12px; }
.home-loading { color: #d5e2f2; margin: 0; }
.home-result {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  color: var(--cream);
}
.home-result h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 10px 0 6px;
  color: #fff;
}
.home-result .home-meta { color: #b7c7dc; }
.home-result-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.home-result-nums i {
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f6f8fc;
  color: #071422;
  font-style: normal;
  font-weight: 800;
}

.home-lobby {
  margin-top: 22px;
  background: rgba(8, 24, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.home-lobby-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.home-lobby-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  margin: 4px 0 0;
  color: #fff;
}
.home-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.home-filters .btn[aria-pressed="true"],
.home-filters .btn.is-on {
  background: var(--gold);
  color: #071422;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.home-ticket {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-ticket-banner,
.home-ticket-prize {
  background: #0a2344;
}
.home-ticket-banner {
  aspect-ratio: 16 / 9;
}
.home-ticket-prize {
  padding: 10px 12px 0;
}
.home-ticket-prize img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
.home-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, #fff, #eef3fb);
  border-bottom: 1px dashed #c9d4e6;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0a2344;
  color: var(--gold);
}
.home-badge.is-rifa { background: #e23b4a; color: #fff; }
.home-price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}
.home-ticket-body { padding: 14px 16px 8px; flex: 1; }
.home-ticket-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.1;
}
.home-meta { margin: 0 0 10px; color: #5d7190; font-size: 13px; }
.home-pozo { font-weight: 800; color: #0a2344; margin: 0 0 10px; }
.home-rules {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.home-rules li {
  position: relative;
  padding-left: 14px;
  color: #1c3354;
  font-size: 12px;
  line-height: 1.35;
}
.home-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5c518;
}
.home-hold {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0a2344;
}
.home-slide-copy .home-hold { color: var(--gold); }
.home-bar {
  height: 8px;
  border-radius: 999px;
  background: #dce5f2;
  overflow: hidden;
}
.home-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffe07a);
}
.home-stock { margin: 6px 0 0; font-size: 12px; color: #5d7190; }
.home-ticket-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px;
}
.home-ticket-cta .btn { text-decoration: none; }
.home-wait {
  color: #243044;
  font-size: 13px;
  font-weight: 700;
}
.home-ticket-notes { padding: 0 16px 14px; }
.home-ticket-notes .home-rules { margin-bottom: 0; }
.home-ticket-cta .btn:hover { text-decoration: none; }

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px 12px;
}
.home-empty .home-balls { justify-content: center; }
.home-empty h3 {
  font-family: var(--font-serif);
  color: #fff;
  margin: 12px 0 8px;
}
.home-empty .btn { margin-top: 14px; text-decoration: none; }

.home-steps { margin-top: 36px; }
.home-steps h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 16px;
  color: #fff;
}
.home-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.home-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
}
.home-step em {
  font-style: normal;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 28px;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.home-step h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.home-step p { margin: 0; color: #c5d4ea; font-size: 14px; }
.home-step a { font-weight: 800; }

.home-foot {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #93a6c0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}
.home-foot p:first-child { display: flex; align-items: center; gap: 10px; }
.home-age {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
}

.home-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7, 20, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.home-dock a {
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border-radius: 12px;
}
.home-dock a:hover { text-decoration: none; color: var(--gold); }
.home-dock .is-main {
  background: var(--gold);
  color: #071422;
}
.home-dock .is-main:hover { color: #071422; filter: brightness(1.05); }

@media (max-width: 860px) {
  .home-hero,
  .home-trust,
  .home-step-grid { grid-template-columns: 1fr; }
  .home-trust { grid-template-columns: 1fr 1fr; }
  .home-hero { gap: 16px; }
  .home { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .home-dock { display: grid; }
  .home-nav-link,
  body.home-skin .nav > a.btn-solid { display: none; }
}
@media (max-width: 520px) {
  .home-trust { grid-template-columns: 1fr; }
  body.home-skin .app-header { padding: 12px 4vw; }
}
