/* ==========================================================================
   LOTERÍA OFICIAL - STYLESHEET
   Dark navy theme · Gold & crimson accents · 3D lottery balls
   Fonts: 'Outfit' (headings) & 'Inter' (body) — loaded via <link> in each page

   INDEX
   1.  Design tokens
   2.  Reset & base
   3.  Layout & utilities
   4.  Buttons
   5.  Animations
   6.  Top utility bar
   7.  Header & navigation
   8.  Hero (home) + countdown
   9.  Page banner (sub-pages)
   10. Lottery balls
   11. Draw cards (home + results)
   12. Tables
   13. Home sections (quick access, steps, promo)
   14. Como jugar / Premios
   15. Results filter & forms
   16. Contacto
   17. FAQ
   18. Ganadores
   19. Footer
   20. Back to top
   21. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces (White Background Theme) */
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-surface-3: #f1f5f9;
  --color-footer: #040817;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  /* Text */
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-dim: #64748b;
  --color-text-dark: #0b1230;

  /* Brand */
  --color-accent: #d97706;
  --color-accent-light: #b45309;
  --color-accent-dark: #92400e;
  --color-red: #e63946;
  --color-red-dark: #b3202e;
  --color-green: #10b981;
  --color-green-dark: #059669;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-teal: #0d9488;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #ffe08a 0%, #f5b82e 50%, #d98e04 100%);
  --gradient-red: linear-gradient(135deg, #ff5a69 0%, #e63946 55%, #b3202e 100%);
  --gradient-blue: linear-gradient(135deg, #5b9cff 0%, #3b82f6 50%, #1d4ed8 100%);
  --gradient-green: linear-gradient(135deg, #34d399 0%, #10b981 55%, #047857 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --gradient-page: none;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-gold: 0 10px 28px rgba(245, 184, 46, 0.32);
  --shadow-red: 0 10px 28px rgba(230, 57, 70, 0.35);

  /* Type */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1240px;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
  background-color: #ffffff;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: #ffffff;
  background-image: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; width: 100%; background-color: #ffffff; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--color-accent-dark); }

ul, ol { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
  font-weight: 700;
}

p { color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }
small { font-size: 0.82em; }

::selection { background: #f5b82e; color: var(--color-text-dark); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT & UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section,
.winning-numbers-section,
.quick-access-section,
.recent-results-section,
.how-to-play-preview,
.promo-banner-section,
.stats-section {
  padding: 5rem 0;
  position: relative;
  background-color: #ffffff;
}

.section-darker,
.section-bg-alt,
.quick-access-section,
.how-to-play-preview {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.section-subtitle,
.section-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.section-header[style*="text-align: left"] { max-width: none; margin-left: 0; }
.section-header[style*="text-align: left"] .section-subtitle { margin-left: 0; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-dim); }
.text-accent { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient-red);
  box-shadow: var(--shadow-red);
  color: #fff;
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(230, 57, 70, 0.5); }

.btn-accent,
.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-gold);
}
.btn-accent:hover,
.btn-gold:hover { color: var(--color-text-dark); box-shadow: 0 14px 34px rgba(245, 184, 46, 0.5); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: #1e293b;
  color: #0f172a;
}
.btn-outline:hover { background: #0f172a; color: #fff; border-color: #0f172a; }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-outline-white:hover { background: #fff; color: #0f172a; border-color: #fff; }

.btn-outline-red {
  background: transparent;
  border-color: var(--color-red);
  color: var(--color-red);
}
.btn-outline-red:hover { background: var(--color-red); color: #fff; box-shadow: var(--shadow-red); }

.btn-outline-blue {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.btn-outline-blue:hover { background: var(--color-blue); color: #fff; box-shadow: 0 10px 28px rgba(59, 130, 246, 0.4); }

.btn-outline-gold {
  background: transparent;
  border-color: #f5b82e;
  color: #ffd97a;
}
.btn-outline-gold:hover { background: #f5b82e; color: #0b1230; }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.86rem; }
.btn-large, .btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* --------------------------------------------------------------------------
   5. ANIMATIONS
   -------------------------------------------------------------------------- */
/* Scroll reveal. The fallback animation guarantees content shows even if JS fails. */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  animation: fadeFallback 0.6s ease 2.5s forwards;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes fadeFallback {
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   6. TOP UTILITY BAR
   -------------------------------------------------------------------------- */
.top-bar,
.top-utility-bar {
  background: #030615;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #cbd5e1;
}
.top-bar strong,
.top-utility-bar strong {
  color: #ffffff;
}

.top-bar-container,
.top-bar-content,
.utility-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.top-bar-left,
.top-bar-right,
.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.top-bar-item,
.top-bar-text,
.utility-info,
.utility-label { color: #cbd5e1; white-space: nowrap; }

.top-bar-item i { color: #f5b82e; margin-right: 0.25rem; }

.top-bar-badge,
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(230, 57, 70, 0.18);
  border: 1px solid rgba(230, 57, 70, 0.55);
  border-radius: var(--radius-full);
}
.badge-live { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.55); }

.top-link,
.utility-link {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.top-link:hover,
.utility-link:hover { color: #ffd97a; }
.top-link i { margin-right: 0.3rem; color: #f5b82e; }

.separator,
.utility-separator { color: rgba(255, 255, 255, 0.25); }

.social-links-small { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.social-icon-sm { color: #cbd5e1; font-size: 0.78rem; }
.social-icon-sm:hover { color: #ffd97a; }

/* --------------------------------------------------------------------------
   7. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-red), #f5b82e, var(--color-blue)) 1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.logo { display: block; flex-shrink: 0; }
.logo img,
.logo-img {
  width: 145px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  border-radius: 6px;
  transition: transform 0.3s var(--ease);
}
.logo:hover img,
.logo:hover .logo-img { transform: scale(1.04); }

.main-nav,
.nav { margin-left: auto; }

.nav-menu,
.nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link,
.nav ul li a {
  position: relative;
  display: block;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2550;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link::after,
.nav ul li a::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.18rem;
  height: 2px;
  background: var(--gradient-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav ul li a:hover { color: var(--color-red); background: rgba(230, 57, 70, 0.07); }
.nav-link:hover::after,
.nav ul li a:hover::after,
.nav-link.active::after,
.nav ul li a.active::after { transform: scaleX(1); }
.nav-link.active,
.nav ul li a.active { color: var(--color-red); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.25rem; }

/* Hamburger */
.hamburger-btn,
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  background: #eef1fb;
  flex-shrink: 0;
}
.hamburger-line,
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a2550;
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3),
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. HERO (HOME) + COUNTDOWN
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 5rem 0;
  background-color: #08123a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section strong {
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 30, 0.94) 0%, rgba(6, 14, 50, 0.78) 55%, rgba(6, 14, 50, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd97a;
  background: rgba(245, 184, 46, 0.14);
  border: 1px solid rgba(245, 184, 46, 0.5);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #ffd97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: #cbd6f5;
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-countdown-box {
  padding: 2rem 1.75rem;
  text-align: center;
  background: rgba(10, 20, 62, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.countdown-heading { font-size: 1.4rem; margin-bottom: 0.25rem; color: #fff; }
.countdown-sub { font-size: 0.9rem; color: #ffd97a; margin-bottom: 1.5rem; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  padding: 0.85rem 0.5rem;
  background: linear-gradient(180deg, #1a2a66, #0c1740);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: #f5b82e;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(245, 184, 46, 0.5);
}

.countdown-label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.countdown-footnote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   9. PAGE BANNER (SUB-PAGES)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 4.5rem 0;
  background-color: #08123a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
.page-banner h1,
.page-banner h2,
.page-banner strong {
  color: #ffffff;
}

/* Dark gradient overlay (works whether or not the page includes .banner-overlay) */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 8, 30, 0.92) 0%, rgba(6, 14, 50, 0.72) 60%, rgba(6, 14, 50, 0.45) 100%);
}
.banner-overlay { display: none; }

.banner-content,
.page-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffd97a;
  background: rgba(245, 184, 46, 0.14);
  border: 1px solid rgba(245, 184, 46, 0.5);
  border-radius: var(--radius-full);
}

.banner-title,
.page-banner-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: #ffffff;
}
.banner-title span,
.page-banner-content h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner-subtitle,
.page-banner-content > p {
  max-width: 640px;
  font-size: 1.1rem;
  color: #cbd6f5;
  margin-bottom: 1.5rem;
}

.breadcrumb,
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.breadcrumb a,
.breadcrumbs a { color: #cbd5e1; font-weight: 500; }
.breadcrumb a:hover,
.breadcrumbs a:hover { color: #ffd97a; }
.breadcrumb-separator { font-size: 0.65rem; color: #94a3b8; }
.breadcrumbs .current,
.breadcrumb > span:last-child { color: #ffd97a; font-weight: 600; }
.breadcrumbs { margin: 0; }

/* --------------------------------------------------------------------------
   10. LOTTERY BALLS (3D SPHERES)
   -------------------------------------------------------------------------- */
.ball {
  --ball-size: 60px;
  --ball-light: #ff7a85;
  --ball-mid: #e63946;
  --ball-dark: #7d0f1a;
  --ball-text: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ball-size);
  height: var(--ball-size);
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: calc(var(--ball-size) * 0.4);
  font-weight: 800;
  line-height: 1;
  color: var(--ball-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--ball-light) 0%, var(--ball-mid) 48%, var(--ball-dark) 100%);
  box-shadow:
    inset -4px -6px 12px rgba(0, 0, 0, 0.4),
    inset 3px 4px 8px rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(15, 23, 42, 0.25);
  cursor: default;
  user-select: none;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
}

/* Specular glare */
.ball::before {
  content: '';
  position: absolute;
  top: 9%;
  left: 18%;
  width: 38%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  transform: rotate(-28deg);
  pointer-events: none;
}

.ball:hover { transform: translateY(-5px) scale(1.08); }

.ball-red   { --ball-light: #ff8a94; --ball-mid: #e63946; --ball-dark: #7d0f1a; }
.ball-blue  { --ball-light: #8fbaff; --ball-mid: #2f6fe0; --ball-dark: #0e2f7a; }
.ball-green { --ball-light: #5eead4; --ball-mid: #10b981; --ball-dark: #045a41; }
.ball-gold  { --ball-light: #fff1b0; --ball-mid: #f5b82e; --ball-dark: #8a5a00; --ball-text: #3d2700; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }

.ball-sm { --ball-size: 38px; box-shadow: inset -3px -4px 8px rgba(0, 0, 0, 0.4), inset 2px 3px 5px rgba(255, 255, 255, 0.35), 0 3px 8px rgba(15, 23, 42, 0.22); }
.ball-lg { --ball-size: 76px; }

/* Super balota: golden ring */
.ball-super {
  outline: 3px solid #f5b82e;
  outline-offset: 3px;
}

.ball-plus {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  padding: 0 0.1rem;
}

.balls-container,
.ball-group,
.table-balls,
.table-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.balls-container,
.ball-group { justify-content: center; }
.table-balls,
.table-numbers { gap: 0.4rem; }
.table-numbers .ball-plus { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   11. DRAW CARDS (HOME + RESULTS)
   -------------------------------------------------------------------------- */
.draw-cards-grid,
.latest-draws-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.draw-cards-grid:has(> :only-child),
.latest-draws-wrapper:has(> :only-child) {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.latest-draws-wrapper { gap: 2.5rem; padding-top: 0.75rem; }

.draw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: visible;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.draw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gradient-red);
}
.draw-card-revancha::before { background: var(--gradient-blue); }
.latest-draws-wrapper .draw-card-revancha::before { background: var(--gradient-green); }
.draw-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }

/* Home card parts */
.draw-badge {
  align-self: flex-start;
  margin: 1.75rem 1.75rem 0;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--radius-full);
}
.draw-badge-red  { background: var(--gradient-red); box-shadow: var(--shadow-red); }
.draw-badge-blue { background: var(--gradient-blue); box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35); }

.draw-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.draw-meta .draw-date { font-weight: 600; color: var(--color-text); }

.draw-body { padding: 1.25rem 1.75rem 1.5rem; text-align: center; }
.draw-name { font-size: 1.7rem; margin-bottom: 0.35rem; color: var(--color-text); }
.draw-instruction { font-size: 0.92rem; margin-bottom: 1.5rem; }
.draw-footer { padding: 0 1.75rem 1.75rem; margin-top: auto; }

.jackpot-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-md);
}
.jackpot-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.jackpot-box .jackpot-amount {
  margin: 0.2rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 900;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jackpot-note { font-size: 0.82rem; color: #b45309; font-weight: 600; }

/* Results card parts */
.draw-badge-ribbon {
  position: absolute;
  top: 0;
  left: 1.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: var(--radius-full);
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}
.ribbon-principal { background: var(--gradient-red); }
.ribbon-revancha  { background: var(--gradient-green); }

.draw-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.25rem 1.75rem 1rem;
}
.draw-card-header .draw-name { font-size: 1.65rem; margin-bottom: 0.15rem; color: var(--color-text); }
.draw-number { font-size: 0.85rem; color: var(--color-text-muted); }

.draw-card-header .draw-date {
  text-align: right;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.draw-card-header .draw-date span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.draw-card-header .draw-date strong { font-size: 1.05rem; color: var(--color-text); }

.draw-balls-area { padding: 1.25rem 1.75rem 1.5rem; }
.draw-balls-area .ball-group { gap: 0.5rem; }
.draw-balls-area .ball-lg { --ball-size: 58px; }
.draw-balls-area .ball-plus { font-size: 1.3rem; }

.balls-label-sub {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.draw-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.draw-accumulated > span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.draw-accumulated-amount {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge tags (tables / cards) */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.badge-principal,
.badge-tag-principal { color: #be123c; background: #ffe4e6; border-color: #fda4af; }
.badge-revancha { color: #047857; background: #d1fae5; border-color: #6ee7b7; }
.badge-tag-revancha { color: #1d4ed8; background: #dbeafe; border-color: #93c5fd; }

/* --------------------------------------------------------------------------
   12. TABLES
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.lottery-table,
.results-table,
.winners-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.lottery-table thead th,
.results-table thead th,
.winners-table thead th {
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd97a;
  white-space: nowrap;
  background: linear-gradient(90deg, #14246a, #0d1a4d);
  border-bottom: 2px solid #f5b82e;
}
.lottery-table thead th i { margin-right: 0.45rem; color: #f5b82e; }

.lottery-table tbody td,
.results-table tbody td,
.winners-table tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}
.lottery-table tbody tr:last-child td,
.results-table tbody tr:last-child td,
.winners-table tbody tr:last-child td { border-bottom: 0; }

.lottery-table tbody tr,
.results-table tbody tr,
.winners-table tbody tr { transition: background 0.2s var(--ease); }
.lottery-table tbody tr:hover,
.results-table tbody tr:hover,
.winners-table tbody tr:hover { background: #f8fafc; }

.table-date strong { color: var(--color-text); }
.table-accumulated,
.table-jackpot,
.table-prize-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem !important;
  white-space: nowrap;
  color: #b45309 !important;
}

.table-action { margin-top: 2.25rem; }

/* Prize tiers */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  background: #f1f5f9;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
}
.category-first {
  color: var(--color-text-dark);
  background: var(--gradient-gold);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.table-prize-row-first { background: #fffbeb; }
.table-prize-row-first td { border-bottom-color: #fcd34d !important; }

/* --------------------------------------------------------------------------
   13. HOME SECTIONS (QUICK ACCESS, STEPS, PROMO)
   -------------------------------------------------------------------------- */
.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.quick-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.quick-card:hover {
  transform: translateY(-8px);
  border-color: #f59e0b;
  box-shadow: var(--shadow-lg);
}
.quick-card:hover::after { transform: scaleX(1); }

.quick-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #090e1c;
}
.quick-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  display: block;
}
.quick-card:hover .quick-card-media img {
  transform: scale(1.08);
  filter: brightness(1.06);
}
.quick-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.05) 0%, rgba(16, 26, 54, 0.25) 70%, rgba(16, 26, 54, 0.55) 100%);
  pointer-events: none;
}

.quick-card-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd97a;
  background: rgba(9, 14, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 184, 46, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.quick-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem 1.6rem 1.75rem;
  position: relative;
  z-index: 1;
}

.quick-card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  font-size: 1.9rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease-bounce);
}
.quick-card:hover .quick-card-icon { transform: scale(1.12) rotate(-6deg); }
.quick-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.quick-card:hover .quick-card-title { color: var(--color-accent); }
.quick-card-text {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.quick-card-arrow {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s ease, color 0.3s ease;
}
.quick-card:hover .quick-card-arrow { gap: 0.7rem; }

/* Steps (home + como-jugar) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  position: relative;
  padding: 2.25rem 1.75rem 1.9rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step-card:hover { transform: translateY(-6px); border-color: #f59e0b; box-shadow: var(--shadow-md); }

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 23, 42, 0.06);
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.step-header .step-number {
  position: static;
  font-size: 2.6rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.1rem;
  font-size: 1.8rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 50%;
}
.step-header .step-icon { margin-bottom: 0; }
.step-title { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--color-text); }
.step-desc { font-size: 0.95rem; }
.step-highlight {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.step-highlight i { margin-right: 0.35rem; color: #d97706; }
.steps-cta { margin-top: 3rem; }

/* Promo banner */
.promo-banner-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(135deg, #b3202e 0%, #7d1a8c 55%, #1d3fb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.promo-banner-card h3,
.promo-banner-card .promo-title { color: #ffffff; }
.promo-banner-card p,
.promo-banner-card .promo-description { color: #ffe9ec; }
.promo-banner-card strong { color: #ffd97a; }
.promo-banner-card .promo-tag {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd97a;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
}
.promo-badge-gold {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #ffd97a;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.promo-badge-gold i { font-size: 3rem; }
.promo-content { position: relative; z-index: 2; max-width: 680px; }
.promo-badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}
.promo-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; margin-bottom: 0.75rem; color: #ffffff; }
.promo-subtitle { font-size: 1.1rem; color: #ffe9ec; margin-bottom: 1.75rem; }
.promo-subtitle strong { color: #ffd97a; }
.promo-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.promo-decoration { position: relative; flex: 0 0 220px; height: 200px; }
.floating-coin { position: absolute; font-size: 3.4rem; animation: floatY 5s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.coin-1 { top: 0; left: 20px; }
.coin-2 { top: 70px; right: 10px; font-size: 2.6rem; animation-delay: -1.5s; }
.coin-3 { bottom: 0; left: 70px; font-size: 3rem; animation-delay: -3s; }

/* --------------------------------------------------------------------------
   14. COMO JUGAR / PREMIOS
   -------------------------------------------------------------------------- */
.tips-grid,
.calc-grid,
.claim-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.tip-card,
.calc-card,
.claim-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tip-card:hover,
.calc-card:hover,
.claim-card:hover { transform: translateY(-6px); border-color: #f59e0b; box-shadow: var(--shadow-md); }
.tip-card h3,
.calc-card h3,
.claim-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--color-text); }
.tip-card p,
.calc-card p,
.claim-card p { font-size: 0.95rem; }

.tip-icon-wrapper,
.calc-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
}

.claim-step-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-dark);
  background: var(--gradient-gold);
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
}
.claim-card ul { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.claim-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.claim-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-green);
}

.cta-banner {
  padding: 3.5rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(245, 184, 46, 0.22), transparent 70%),
    linear-gradient(160deg, #162766 0%, #0b1438 100%);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.75rem; color: #ffffff; }
.cta-banner p { max-width: 620px; margin: 0 auto 1.75rem; color: #cbd6f5; }
.cta-banner strong { color: #ffd97a; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Premios jackpot hero */
.jackpot-hero {
  position: relative;
  margin-bottom: 5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(245, 184, 46, 0.22), transparent 70%),
    linear-gradient(160deg, #162766 0%, #0b1438 100%);
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.jackpot-hero p,
.jackpot-hero small { color: #cbd5e1 !important; }
.jackpot-hero strong { color: #ffffff; }
.jackpot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--gradient-red);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-red);
}
.jackpot-badge i { color: #ffd97a; }
.jackpot-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #e2e8f0; font-weight: 600; margin-bottom: 0.5rem; }
.jackpot-hero .jackpot-amount {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffe08a, #f5b82e, #ffe08a, #f5b82e);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  filter: drop-shadow(0 4px 24px rgba(245, 184, 46, 0.35));
}
.jackpot-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}
.jackpot-dual-item {
  padding: 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.jackpot-dual-label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 600; color: #cbd5e1; }
.jackpot-dual-val {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffd97a;
}
.revancha-val { color: #34d399; }

.notice-box {
  display: flex;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-md);
}
.notice-icon { font-size: 1.8rem; color: #d97706; flex-shrink: 0; }
.notice-content h4 { font-size: 1.15rem; margin-bottom: 0.6rem; color: #92400e; }
.notice-content p { font-size: 0.95rem; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   15. RESULTS FILTER & FORMS
   -------------------------------------------------------------------------- */
.filter-card {
  margin-bottom: 3.5rem;
  padding: 1.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.filter-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: end;
}
.filter-form .btn { width: 100%; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-group label i { margin-right: 0.35rem; color: var(--color-accent); }
.required { color: var(--color-red); }

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #f8fafc;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color-scheme: light;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.form-control::placeholder { color: var(--color-text-dim); }
.form-control:hover { border-color: #94a3b8; }
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.18);
}
.form-control.invalid { border-color: var(--color-red); box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18); }
select.form-control option { background: #ffffff; color: var(--color-text); }
input.form-control, select.form-control { height: 50px; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* --------------------------------------------------------------------------
   16. CONTACTO
   -------------------------------------------------------------------------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.contact-card {
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(245, 184, 46, 0.4); box-shadow: var(--shadow-md); }
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 1.1rem;
  font-size: 1.9rem;
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: 50%;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.contact-card p { font-size: 0.95rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-container,
.sidebar-card {
  padding: 2.25rem;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.contact-form-subtitle { margin-bottom: 1.75rem; font-size: 0.95rem; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.form-status {
  display: none;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
}
.form-status.success,
.form-status.error { display: block; }
.form-status.success { color: #065f46; background: #d1fae5; border: 1px solid #6ee7b7; }
.form-status.error { color: #991b1b; background: #fee2e2; border: 1px solid #fca5a5; }

.contact-sidebar { display: grid; gap: 1.5rem; }
.sidebar-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.sidebar-card p { font-size: 0.92rem; }

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-full);
}

.hours-list { display: grid; gap: 0.2rem; }
.hours-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
}
.hours-item.highlight { background: #fffbeb; }
.hours-day { font-weight: 600; font-size: 0.92rem; color: var(--color-text); }
.hours-time { font-size: 0.88rem; color: var(--color-text-muted); text-align: right; }
.hours-item.highlight .hours-time { color: var(--color-accent); font-weight: 600; }

/* Map mock */
.map-placeholder-section { margin: 4rem 0 3rem; }
.map-card {
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
}
.map-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-text); }

.map-canvas-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(160deg, #0f1f55, #081030);
}
.map-canvas-mock h3,
.map-canvas-mock .map-title-tag { color: #ffffff; }
.map-canvas-mock p,
.map-canvas-mock .map-subtitle-tag { color: #cbd6f5; }
.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
}
.map-pin-glow {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 1rem;
  font-size: 2.3rem;
  background: rgba(230, 57, 70, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(230, 57, 70, 0.1), 0 0 40px rgba(230, 57, 70, 0.5);
  animation: floatY 4s ease-in-out infinite;
}
.map-title-tag,
.map-subtitle-tag,
.map-coords-badge { position: relative; z-index: 2; }
.map-title-tag { font-size: 1.5rem; margin-bottom: 0.4rem; }
.map-subtitle-tag { max-width: 520px; font-size: 0.95rem; }
.map-coords-badge {
  margin-top: 1.1rem;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffd97a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: var(--radius-full);
}

/* Social channels */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.social-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.social-channel-card:hover { transform: translateY(-6px); border-color: rgba(245, 184, 46, 0.5); box-shadow: var(--shadow-md); }
.social-channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.social-channel-card:hover .social-channel-icon { background: var(--color-accent); color: #ffffff; }
.social-channel-name { font-family: var(--font-heading); font-weight: 700; color: var(--color-text); }
.social-channel-handle { font-size: 0.8rem; color: var(--color-text-dim); }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq-categories-wrapper { display: grid; gap: 3rem; max-width: 900px; margin: 0 auto; }

.faq-category-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.faq-cat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: var(--radius-md);
}
.faq-cat-title { font-size: 1.6rem; }

.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item.active,
.faq-item.open { border-color: rgba(245, 184, 46, 0.65); box-shadow: var(--shadow-md); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-question:hover { background: #f8fafc; color: var(--color-accent); }
.faq-item.active .faq-question,
.faq-item.open .faq-question { color: var(--color-accent); }

.faq-toggle-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
  color: var(--color-accent);
  background: rgba(245, 184, 46, 0.14);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.faq-item.active .faq-toggle-icon,
.faq-item.open .faq-toggle-icon { transform: rotate(180deg); background: rgba(245, 184, 46, 0.28); }

.faq-answer {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.35s var(--ease);
}
.faq-item.active .faq-answer,
.faq-item.open .faq-answer { max-height: 1400px; padding-bottom: 1.5rem; }
.faq-answer p { font-size: 0.97rem; margin-bottom: 0.85rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { display: grid; gap: 0.6rem; margin: 0.25rem 0 0.9rem; }
.faq-answer ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

.faq-support-box {
  padding: 2.75rem 2rem;
  text-align: center;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(245, 184, 46, 0.14), transparent 70%),
    #ffffff;
  border: 1px solid rgba(245, 184, 46, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.faq-support-box h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--color-text); }

/* --------------------------------------------------------------------------
   18. GANADORES
   -------------------------------------------------------------------------- */
.stats-section { padding: 3.5rem 0; margin-top: -2.5rem; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.stat-card {
  padding: 2.25rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(300px 160px at 50% 0%, rgba(245, 184, 46, 0.14), transparent 70%),
    #ffffff;
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-icon { display: block; margin-bottom: 0.5rem; font-size: 2.4rem; }
.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-accent);
  word-break: break-all;
}
.stat-prefix,
.stat-suffix { color: var(--color-accent-light); }
.stat-label { margin-top: 0.4rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
.stat-sublabel { margin-top: 0.2rem; font-size: 0.85rem; color: var(--color-text-dim); }

.winners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.winner-card {
  position: relative;
  padding: 1.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.winner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.winner-card:hover { transform: translateY(-8px); border-color: rgba(245, 184, 46, 0.5); box-shadow: var(--shadow-lg); }
.winner-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.winner-trophy-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.7rem;
  background: rgba(245, 184, 46, 0.14);
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: 50%;
}
.winner-category-tag {
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background: #fffbeb;
  border: 1px solid rgba(245, 184, 46, 0.5);
  border-radius: var(--radius-full);
}
.winner-identifier { font-size: 1.6rem; letter-spacing: 0.04em; color: var(--color-text); }
.winner-identifier small { display: block; margin-top: 0.1rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0; color: var(--color-text-dim); }
.winner-city { margin: 0.5rem 0 1.1rem; font-size: 0.92rem; color: var(--color-text-muted); }
.winner-prize-box {
  padding: 1rem;
  text-align: center;
  background: #fffbeb;
  border: 1px dashed rgba(245, 184, 46, 0.65);
  border-radius: var(--radius-md);
}
.winner-prize-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.winner-prize-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.winner-card-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
}

.winners-table-wrapper { max-width: 1100px; margin: 0 auto; }
.table-winner-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--color-text); }
.table-badge-ticket {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-accent-light);
  background: #fffbeb;
  border: 1px solid rgba(245, 184, 46, 0.45);
  border-radius: var(--radius-sm);
}

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 1.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(245, 184, 46, 0.4); }
.quote-icon {
  position: absolute;
  top: 0.4rem;
  left: 1.4rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(245, 184, 46, 0.35);
}
.testimonial-text { position: relative; margin-bottom: 1.5rem; font-size: 0.95rem; font-style: italic; color: var(--color-text-muted); }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--color-border); }
.author-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text-dark);
  background: var(--gradient-gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.author-info h4 { font-size: 1rem; color: var(--color-text); }
.author-info p { font-size: 0.8rem; color: var(--color-text-dim); }

.cta-section {
  padding: 5.5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(245, 184, 46, 0.2), transparent 70%),
    linear-gradient(135deg, #14246a 0%, #0b1438 100%);
  border-top: 1px solid rgba(245, 184, 46, 0.3);
}
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; color: #ffffff; }
.cta-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-text { max-width: 620px; margin: 0 auto 2rem; font-size: 1.08rem; color: #cbd6f5; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  color: #94a3b8;
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(59, 130, 246, 0.1), transparent 60%),
    var(--color-footer);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-red), #f5b82e, var(--color-blue)) 1;
}
.site-footer > .container,
.footer-top { padding-top: 4rem; }
.footer-top { padding-bottom: 1rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 76px;
  padding: 4px 8px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-md);
}
.footer-logo img,
.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.footer-heading,
.footer-title,
.social-heading {
  position: relative;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}
.footer-heading::after,
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 3px;
}
.footer-col-about .footer-heading { margin-top: 0; }
.social-heading { margin: 1.5rem 0 0.9rem; padding: 0; font-size: 0.9rem; }

.footer-text,
.footer-desc { font-size: 0.92rem; line-height: 1.7; color: #94a3b8; }

.footer-links { display: grid; gap: 0.65rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #94a3b8;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-links a i { font-size: 0.6rem; color: #f5b82e; }
.footer-links a:hover { color: #ffd97a; transform: translateX(5px); }

.footer-info-list { display: grid; gap: 1rem; }
.footer-info-list strong { display: block; font-size: 0.92rem; color: #fff; }
.footer-info-list p { font-size: 0.85rem; color: #94a3b8; }

.footer-contact-list { display: grid; gap: 0.9rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: #94a3b8; }
.footer-contact-list i,
.contact-icon { flex-shrink: 0; width: 1.2rem; margin-top: 0.15rem; text-align: center; color: #f5b82e; }

.responsible-gambling {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}
.responsible-gambling p,
.responsible-gambling strong { color: #cbd5e1; }
.badge-18 {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-red);
  border-radius: 50%;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.badge-pill {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffd97a;
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: var(--radius-full);
}

/* Social buttons */
.social-links,
.footer-social,
.social-icons { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.social-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-bounce), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-icon:hover { color: var(--color-text-dark); background: #f5b82e; border-color: #f5b82e; transform: translateY(-4px); }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.social-btn:hover { color: var(--color-text-dark); background: #f5b82e; transform: translateY(-3px); }

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-social-title { font-size: 0.92rem; font-weight: 600; color: #fff; }

.footer-legal-disclaimer {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
  background: rgba(245, 184, 46, 0.06);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: var(--radius-md);
}
.footer-legal-disclaimer p,
.footer-legal-disclaimer strong { color: #cbd5e1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom > .container { flex: 1 1 100%; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.footer-bottom p,
.copyright { font-size: 0.82rem; color: #64748b; }

.footer-bottom-links,
.legal-links,
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.footer-bottom-links a,
.legal-links a,
.footer-legal a { font-size: 0.82rem; color: #94a3b8; }
.footer-bottom-links a:hover,
.legal-links a:hover,
.footer-legal a:hover { color: #ffd97a; }
.footer-bottom-links span,
.legal-links span,
.footer-legal span { color: #64748b; }

.btn-access-request {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.btn-access-request:hover {
  color: #ffd97a !important;
  border-color: rgba(245, 184, 46, 0.45);
  background: rgba(245, 184, 46, 0.1);
}

/* --------------------------------------------------------------------------
   20. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  background: var(--gradient-gold);
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.show,
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .social-channels-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-link, .nav ul li a { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
}

@media (max-width: 992px) {
  /* Mobile navigation */
  .hamburger-btn,
  .nav-toggle { display: flex; }

  .main-nav,
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
    transition: max-height 0.4s var(--ease), visibility 0.4s;
  }
  .main-nav.show, .main-nav.active,
  .nav.show, .nav.active { max-height: 560px; visibility: visible; }

  .nav-menu,
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem 1.25rem 1.25rem; }
  .nav-link,
  .nav ul li a { padding: 0.9rem 0.5rem; font-size: 1rem; border-bottom: 1px solid #edf0f8; border-radius: 0; }
  .nav-link::after,
  .nav ul li a::after { display: none; }
  .nav-link.active,
  .nav ul li a.active { color: var(--color-red); background: rgba(230, 57, 70, 0.06); }

  .header-actions { margin-left: auto; }
  .header-actions .hamburger-btn,
  .header-actions .nav-toggle { margin-left: 0; }

  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-section { min-height: auto; padding: 4rem 0; }

  .quick-cards-grid,
  .steps-grid,
  .tips-grid,
  .calc-grid,
  .claim-steps-grid,
  .winners-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .filter-form { grid-template-columns: repeat(2, 1fr); }
  .promo-banner-card { flex-direction: column; text-align: center; padding: 3rem 1.75rem; }
  .promo-buttons { justify-content: center; }
  .promo-decoration { display: none; }
}

@media (max-width: 768px) {
  .section,
  .winning-numbers-section,
  .quick-access-section,
  .recent-results-section,
  .how-to-play-preview,
  .promo-banner-section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.25rem; }

  .top-bar-left .top-bar-item:nth-child(2),
  .top-bar-badge,
  .utility-left .utility-info,
  .utility-right .utility-label { display: none; }
  .top-bar-container, .top-bar-content, .utility-content { justify-content: center; }
  .top-bar-right, .utility-right { display: none; }

  .draw-cards-grid,
  .latest-draws-wrapper,
  .jackpot-dual,
  .contact-cards-grid,
  .stats-grid,
  .form-row { grid-template-columns: 1fr; }

  .page-banner { min-height: 280px; padding: 3.5rem 0; }

  .stats-section { margin-top: 0; }
  .ball { --ball-size: 52px; }
  .ball-lg { --ball-size: 58px; }
  .ball-sm { --ball-size: 34px; }

  .footer-social-row { flex-direction: column; align-items: flex-start; }
  .social-channels-grid { grid-template-columns: repeat(2, 1fr); }
  .logo img, .logo-img { width: 180px; height: 56px; }
}

@media (max-width: 600px) {
  .quick-cards-grid,
  .steps-grid,
  .tips-grid,
  .calc-grid,
  .claim-steps-grid,
  .winners-grid,
  .testimonials-grid,
  .filter-form,
  .footer-grid { grid-template-columns: 1fr; }

  .container { padding: 0 1.1rem; }
  .hero-actions,
  .cta-actions,
  .cta-buttons,
  .promo-buttons { flex-direction: column; align-items: stretch; }

  .countdown-card { min-width: 58px; }
  .countdown-number { font-size: 1.7rem; }
  .hero-countdown-box { padding: 1.5rem 1rem; }

  .contact-form-container,
  .sidebar-card { padding: 1.5rem 1.25rem; }
  .faq-question { padding: 1rem 1.1rem; font-size: 0.98rem; }
  .faq-answer { padding-left: 1.1rem; padding-right: 1.1rem; }
  .notice-box { flex-direction: column; }
  .footer-bottom, .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}

@media (max-width: 420px) {
  .social-channels-grid { grid-template-columns: 1fr; }
  .jackpot-hero { padding: 2.5rem 1.1rem; }
  .ball, .ball-lg, .draw-balls-area .ball-lg { --ball-size: 42px; }
  .ball-sm { --ball-size: 32px; }
  .balls-container, .draw-balls-area .ball-group { gap: 0.4rem; }
  .draw-balls-area { padding-left: 1rem; padding-right: 1rem; }
  .draw-body { padding-left: 1rem; padding-right: 1rem; }
  .ball-super { outline-width: 2px; outline-offset: 2px; }
}

/* --------------------------------------------------------------------------
   17. SECCIÓN SOBRE NOSOTROS (nosotros.html)
   -------------------------------------------------------------------------- */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.about-stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about-stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 184, 46, 0.45);
}
.about-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.about-stat-label {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.mission-vision-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mv-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.mv-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.mv-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Timeline */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 1rem 0;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(245, 184, 46, 0.2) 100%);
  transform: translateX(-50%);
}
.timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  padding-right: 2.5rem;
}
.timeline-node:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 2.5rem;
}
.timeline-dot {
  position: absolute;
  right: -9px;
  top: 1.25rem;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
}
.timeline-node:nth-child(even) .timeline-dot {
  right: auto;
  left: -9px;
}
.timeline-box {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline-box:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 184, 46, 0.4);
}
.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  background: #fffbeb;
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.timeline-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Transparencia y Auditoría */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.transparency-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.transparency-card:hover { transform: translateY(-5px); border-color: rgba(245, 184, 46, 0.4); }
.transparency-badge-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.12);
  border: 2px solid rgba(46, 196, 182, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #0d9488;
  margin: 0 auto 1.25rem;
}
.transparency-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.transparency-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   18. SECCIÓN PUNTOS DE VENTA (puntos-de-venta.html)
   -------------------------------------------------------------------------- */
.locator-search-container {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}
.locator-controls {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 1rem;
  align-items: center;
}
.locator-input-wrap {
  position: relative;
}
.locator-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}
.locator-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: #f8fafc;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.locator-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent);
}
.locator-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
}
.locator-select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent);
}

.locator-quick-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.locator-quick-filter-tag {
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  transition: all 0.25s var(--ease);
}
.locator-quick-filter-tag:hover,
.locator-quick-filter-tag.active {
  background: #fffbeb;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.locator-view-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.locator-outlets-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.outlet-item-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.outlet-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 184, 46, 0.45);
}
.outlet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.outlet-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}
.outlet-network-badge {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.12);
  color: var(--color-red);
  border: 1px solid rgba(230, 57, 70, 0.3);
  white-space: nowrap;
}
.outlet-network-badge.pagatodo { background: #fffbeb; color: var(--color-accent); border-color: rgba(245, 184, 46, 0.45); }
.outlet-network-badge.supergiros { background: rgba(59, 130, 246, 0.12); color: #2563eb; border-color: rgba(59, 130, 246, 0.35); }
.outlet-network-badge.propio { background: rgba(46, 196, 182, 0.12); color: #0d9488; border-color: rgba(46, 196, 182, 0.35); }
.outlet-address {
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.outlet-hours {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.outlet-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-copy-addr {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-copy-addr:hover {
  background: #fffbeb;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Simulated Map */
.simulated-map-card {
  background: #090e1c;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.map-canvas-mock {
  flex-grow: 1;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #152244 0%, #090e1c 100%);
  overflow: hidden;
  min-height: 420px;
}
.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}
.map-road-1 { top: 35%; left: 0; right: 0; height: 6px; transform: rotate(-5deg); }
.map-road-2 { top: 0; bottom: 0; left: 45%; width: 6px; }
.map-road-3 { bottom: 25%; left: 0; right: 0; height: 4px; transform: rotate(10deg); }
.map-pin {
  position: absolute;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce);
  z-index: 5;
}
.map-pin:hover, .map-pin.active {
  transform: scale(1.3) translateY(-4px);
  z-index: 10;
}
.map-pin-inner {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-red);
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.6);
}
.map-pin.gold .map-pin-inner {
  background: #f5b82e;
  box-shadow: 0 4px 10px rgba(245, 184, 46, 0.6);
}
.map-pin-inner i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.8rem;
}
.map-legend {
  padding: 1rem 1.5rem;
  background: rgba(11, 17, 36, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   19. SECCIÓN ESTADÍSTICAS Y ANALIZADOR (estadisticas.html)
   -------------------------------------------------------------------------- */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.stats-summary-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stats-summary-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.stats-summary-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
}
.stats-summary-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Hot / Cold Balls Section */
.hot-cold-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.stats-panel-box {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.stats-panel-box.hot-box {
  border-top: 3px solid #f5b82e;
}
.stats-panel-box.cold-box {
  border-top: 3px solid #3b82f6;
}
.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.stats-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stats-ball-row {
  display: grid;
  grid-template-columns: 50px 1fr 70px 80px;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.stats-ball-row:last-child { border-bottom: none; }
.stats-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.stats-bar-fill-gold {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 999px;
  transition: width 1s var(--ease);
}
.stats-bar-fill-blue {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 1s var(--ease);
}
.stats-count-num {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  text-align: right;
}
.stats-pct-num {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Combination Analyzer */
.combo-analyzer-box {
  background: linear-gradient(145deg, #121c3b 0%, #0a1023 100%);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}
.combo-analyzer-box .section-title,
.combo-analyzer-box h2,
.combo-analyzer-box h3,
.combo-analyzer-box h4 { color: #ffffff; }
.combo-analyzer-box .section-subtitle,
.combo-analyzer-box p { color: #cbd5e1; }
.combo-analyzer-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}
.analyzer-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.analyzer-ball-input {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #090e1c;
  border: 2px solid rgba(245, 184, 46, 0.4);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  transition: all 0.25s var(--ease);
}
.analyzer-ball-input:focus {
  outline: none;
  border-color: #f5b82e;
  box-shadow: 0 0 15px rgba(245, 184, 46, 0.4);
  transform: scale(1.08);
}
.analyzer-ball-input.super {
  border-color: rgba(230, 57, 70, 0.6);
  background: rgba(230, 57, 70, 0.1);
}
.analyzer-ball-input.super:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}
.analyzer-verdict-card {
  display: none;
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid rgba(245, 184, 46, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}
.analyzer-verdict-card.show {
  display: block;
}
.verdict-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.verdict-metric-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}
.verdict-metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd97a;
}
.verdict-metric-label {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Frequency Matrix Table */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.matrix-cell {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}
.matrix-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 184, 46, 0.45);
}
.matrix-cell.top-freq {
  border-color: rgba(245, 184, 46, 0.65);
  background: #fffbeb;
}
.matrix-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}
.matrix-count {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE HOOKS FOR NEW SECTIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-stats-grid,
  .stats-summary-grid,
  .verdict-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-vision-grid,
  .transparency-grid,
  .locator-view-layout,
  .hot-cold-container { grid-template-columns: 1fr; }
  .locator-controls { grid-template-columns: 1fr 1fr; }
  .matrix-grid { grid-template-columns: repeat(5, 1fr); }
  .timeline-wrap::before { left: 18px; }
  .timeline-node { width: 100%; padding-left: 3.5rem; padding-right: 0; }
  .timeline-node:nth-child(even) { padding-left: 3.5rem; }
  .timeline-dot { left: 9px; right: auto; }
  .timeline-node:nth-child(even) .timeline-dot { left: 9px; }
}

@media (max-width: 768px) {
  .about-stats-grid,
  .stats-summary-grid,
  .verdict-metrics-grid,
  .locator-controls { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   PRINT
   -------------------------------------------------------------------------- */
@media print {
  .top-bar, .top-utility-bar, .main-header, .site-header, .back-to-top, .hero-countdown-box { display: none !important; }
  body { background: #fff; color: #000; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
