@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --rojo: #142AC0;
  --rojo-vivo: #5470FF;
  --rojo-dark: #0E1A55;
  --amarillo: #FFD600;
  --amarillo2: #FFC107;
  --oro-claro: #FFF066;
  --oro-vivo: #FFC400;
  --azul-bg: #050B28;
  --azul-dark: #060D2A;
  --azul-card: #0A1240;
  --azul-mid: #0E1A55;
  --azul-vivo: #2A45F0;
  --azul-vivo2: #5470FF;
  --azul-royal: #142AC0;
  --blanco: #FFFFFF;
  --gris: #8B96B5;
  --gris-claro: #C5CCE0;

  --gradiente-oro: linear-gradient(135deg, #FFF066 0%, #FFC400 55%, #FF8F00 100%);
  --gradiente-rojo: linear-gradient(135deg, #5470FF 0%, #2A45F0 55%, #142AC0 100%);
  --gradiente-azul: linear-gradient(135deg, #5470FF 0%, #2A45F0 55%, #142AC0 100%);

  --sombra-rojo: 0 8px 34px rgba(42, 69, 240, .6);
  --sombra-amarillo: 0 8px 34px rgba(255, 196, 0, .48);
  --sombra-azul: 0 8px 34px rgba(42, 69, 240, .55);
  --sombra-card: 0 12px 48px rgba(0, 0, 0, .55);
  --radio: 16px;
  --radio-lg: 24px;
  --trans: all .24s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--azul-bg);
  color: var(--blanco);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%
}

/* ─── HELPERS ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px
}

.text-center {
  text-align: center
}

.montserrat {
  font-family: 'Montserrat', sans-serif
}

/* ════════════════════════════════════════════════════════════════════════
   BARRA SUPERIOR
════════════════════════════════════════════════════════════════════════ */
.top-bar {
  background: linear-gradient(90deg, #2B0008 0%, #6B0018 45%, #2B0008 100%);
  border-bottom: 2px solid rgba(42, 69, 240, .5);
  text-align: center;
  padding: 9px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 196, 0, .08) 50%, transparent 100%);
  animation: bar-shine 4s ease-in-out infinite;
}

@keyframes bar-shine {

  0%,
  100% {
    transform: translateX(-100%)
  }

  50% {
    transform: translateX(100%)
  }
}

.top-bar strong {
  color: var(--amarillo)
}

/* ════════════════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(5, 11, 40, .97);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(42, 69, 240, .35);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 250px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.5px;
  text-transform: uppercase;
}

.logo-pill {
  background: var(--gradiente-rojo);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--sombra-rojo);
  position: relative;
  overflow: hidden;
}

.logo-pill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.logo-nombre em {
  color: var(--amarillo);
  font-style: normal
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none
}

.navbar-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .65);
  transition: var(--trans);
}

.navbar-nav a:hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, .07)
}

.navbar-nav a.active {
  color: var(--amarillo)
}

.nav-cta {
  background: var(--gradiente-rojo) !important;
  color: var(--blanco) !important;
  padding: 9px 22px !important;
  border-radius: 10px !important;
  box-shadow: var(--sombra-rojo) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(42, 69, 240, .7) !important
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.4rem;
  padding: 4px
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(42, 69, 240, .22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 80% 30%, rgba(42, 69, 240, .55) 0%, transparent 65%),
    linear-gradient(170deg, #050B28 0%, #081240 40%, #0E1A66 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Malla de puntos */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.floating-balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1
}

.fb {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(108vh) rotate(0deg);
    opacity: 0
  }

  8% {
    opacity: 1
  }

  90% {
    opacity: .7
  }

  100% {
    transform: translateY(-12vh) rotate(600deg);
    opacity: 0
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ── Texto izquierda ── */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 69, 240, .15);
  border: 1px solid rgba(42, 69, 240, .5);
  color: #B9C8FF;
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-tag::before {
  content: '●';
  font-size: .45rem;
  animation: pulso 1.5s infinite
}

@keyframes pulso {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .15
  }
}

.hero-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.h1-rojo {
  color: var(--rojo-vivo);
  text-shadow: 0 0 56px rgba(84, 112, 255, .65), 0 4px 24px rgba(42, 69, 240, .5);
}

.h1-amarillo {
  background: var(--gradiente-oro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(255, 196, 0, .55));
}

.hero-desc {
  color: rgba(255, 255, 255, .65);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: var(--trans);
}

.btn-rojo {
  background: var(--gradiente-rojo);
  color: white;
  box-shadow: var(--sombra-rojo);
}

.btn-rojo:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(42, 69, 240, .7)
}

.btn-amarillo {
  background: var(--gradiente-oro);
  color: #1A0800;
  box-shadow: var(--sombra-amarillo);
}

.btn-amarillo:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(255, 196, 0, .65)
}

.btn-azul {
  background: var(--gradiente-azul);
  color: white;
  box-shadow: var(--sombra-azul);
}

.btn-azul:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(42, 69, 240, .7)
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, .25);
}

.btn-outline:hover {
  border-color: var(--oro-vivo);
  color: var(--oro-vivo);
  transform: translateY(-3px)
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

/* ── Card acumulado ── */
.acu-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(42, 69, 240, .05));
  border: 1px solid rgba(255, 196, 0, .3);
  border-radius: var(--radio-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--sombra-card), 0 0 110px rgba(255, 196, 0, .12);
  overflow: hidden;
}

.acu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #142AC0, #FFC400, #2A45F0, #FFC400, #142AC0);
  background-size: 200%;
  animation: mover-grad 3s linear infinite;
}

@keyframes mover-grad {
  to {
    background-position: 200%
  }
}

/* brillo esquina */
.acu-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .12), transparent 70%);
}

.acu-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 8px;
}

.acu-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.acu-monto {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 900;
  background: var(--gradiente-oro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -3px;
  filter: drop-shadow(0 0 50px rgba(255, 196, 0, .55));
  margin-bottom: 4px;
}

.acu-millones {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--oro-vivo);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.acu-cop {
  font-size: .78rem;
  color: var(--gris);
  margin-bottom: 26px
}

.acu-prox {
  background: rgba(0, 0, 0, .35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.acu-prox-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 5px;
}

.acu-prox-fecha {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blanco);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════════
   COUNTDOWN STRIP
════════════════════════════════════════════════════════════════════════ */
.cd-strip {
  background:
    linear-gradient(90deg, #050B28 0%, #142AC0 50%, #050B28 100%);
  border-top: 1px solid rgba(255, 196, 0, .2);
  border-bottom: 1px solid rgba(255, 196, 0, .2);
  /*padding: 34px 24px;  */
  padding: 34px 24px;  
  
}

.cd-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center
}

.cd-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 10px;
}

.cd-eyebrow-fecha {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--oro-vivo);
  text-shadow: 0 0 22px rgba(255, 196, 0, .5);
  margin-bottom: 26px;
}

.cd-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap
}

.cd-box {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 196, 0, .3);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 88px;
  position: relative;
}

.cd-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--oro-vivo);
  line-height: 1;
  text-shadow: 0 0 26px rgba(255, 196, 0, .6);
}

.cd-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-top: 6px;
}

.cd-dos {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--rojo-vivo);
  animation: pulso 1s infinite;
  padding-bottom: 10px;
}

/* ── Estado vacío: no hay sorteo programado ni publicado ── */
.cd-empty {
  text-align: center;
}

.cd-empty .cd-empty-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
  animation: cd-empty-bounce 2s ease-in-out infinite;
}

@keyframes cd-empty-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cd-empty-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  text-shadow: 0 0 26px rgba(255, 196, 0, .5);
}

.cd-empty-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  /*color: var(--oro-vivo);  */
  color: #fff;
  font-weight: 700;
  margin-bottom: 26px;
}

.cd-empty-sub strong {
  color: white;
}

/* ════════════════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════════════════ */
.stats-bar {
  background: rgba(0, 0, 0, .5);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 36px 24px;
}

.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-it {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.stat-it:last-child {
  border-right: none
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 7px;
}

.stat-num.am {
  color: var(--oro-vivo);
  text-shadow: 0 0 22px rgba(255, 196, 0, .45)
}

.stat-num.ro {
  color: var(--rojo-vivo);
  text-shadow: 0 0 22px rgba(42, 69, 240, .45)
}

.stat-num.bl {
  color: var(--azul-vivo2);
  text-shadow: 0 0 22px rgba(84, 112, 255, .5)
}

.stat-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gris);
}

/* ════════════════════════════════════════════════════════════════════════
   SECTIONS GENÉRICAS
════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 80px 24px   
  /*padding: 10px 24px  */
}

.sec-eye {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
}

.sec-eye::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rojo);
  flex-shrink: 0
}

.sec-eye.az {
  color: var(--azul-vivo2)
}

.sec-eye.az::before {
  background: var(--azul-vivo2)
}

.sec-eye.am {
  color: var(--oro-vivo)
}

.sec-eye.am::before {
  background: var(--oro-vivo)
}

.sec-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1.08;
}

.sec-title .am {
  background: var(--gradiente-oro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ════════════════════════════════════════════════════════════════════════
   CARD RESULTADO
════════════════════════════════════════════════════════════════════════ */
.res-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #101B52 0%, #070D30 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radio-lg);
  padding: 48px;
  box-shadow: var(--sombra-card);
}

.res-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #142AC0 0%, #FFC400 35%, #2A45F0 65%, #142AC0 100%);
  background-size: 200%;
  animation: mover-grad 4s linear infinite;
}

/* Resplandor balota fondo */
.res-card-glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 69, 240, .14), transparent 70%);
  pointer-events: none;
}

.res-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.badge-sorteo {
  font-family: 'Montserrat', sans-serif;
  background: var(--gradiente-rojo);
  color: white;
  padding: 7px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--sombra-rojo);
}

.badge-fecha {
  font-family: 'Montserrat', sans-serif;
  color: var(--gris);
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* ── BALOTAS GRANDES ── */
.balotas-row {
  display: flex;
  gap: clamp(14px, 2.4vw, 26px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.balota-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px
}

.bn-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris);
}

.balota {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  position: relative;
  cursor: default;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.balota:hover {
  transform: scale(1.2) rotate(-6deg)
}

.balota-roja {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .8) 0%, transparent 28%),
    radial-gradient(circle at 66% 74%, rgba(0, 0, 0, .4) 0%, transparent 36%),
    radial-gradient(circle, #5D89FF 0%, #2A45F0 45%, #0B1A6B 100%);
  box-shadow:
    0 0 0 2px rgba(140, 170, 255, .3),
    0 8px 24px rgba(42, 69, 240, .75),
    0 20px 50px rgba(42, 69, 240, .35),
    inset 0 -8px 14px rgba(0, 0, 0, .45),
    inset 0 6px 10px rgba(220, 230, 255, .2);
  color: white;
}

.balota-amarilla {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .9) 0%, transparent 28%),
    radial-gradient(circle at 66% 74%, rgba(0, 0, 0, .28) 0%, transparent 36%),
    radial-gradient(circle, #FFF066 0%, #FFC400 45%, #995500 100%);
  box-shadow:
    0 0 0 2px rgba(255, 236, 140, .4),
    0 8px 24px rgba(255, 196, 0, .75),
    0 20px 50px rgba(255, 196, 0, .35),
    inset 0 -8px 14px rgba(0, 0, 0, .3),
    inset 0 6px 10px rgba(255, 255, 200, .28);
  color: #3D1F00;
}

.bonus-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  height: 74px;
}

.bsep-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .2), transparent);
}

.bsep-text {
  font-family: 'Montserrat', sans-serif;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.res-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.rf-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 5px;
}

.rf-valor {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--oro-vivo);
  text-shadow: 0 0 30px rgba(255, 196, 0, .55);
}

/* ════════════════════════════════════════════════════════════════════════
   HISTÓRICO TABLE
════════════════════════════════════════════════════════════════════════ */
.hist-wrap {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-card);
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.hist-table th,
.hist-table td {
  border: none;
}

.hist-table thead {
  background: rgba(0, 0, 0, .5);
  border-bottom: 1px solid rgba(42, 69, 240, .3);
}

.hist-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  padding: 18px 20px;
  text-align: left;
}

.hist-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .15s;
}

.hist-table tbody tr td {
  border-bottom: 1px solid rgba(255, 255, 255, .04) !important;
}

.hist-table tbody tr:hover {
  background: rgba(255, 255, 255, .04)
}

.hist-table tbody tr:last-child td {
  border-bottom: none !important;
}

.hist-table td {
  padding: 16px 20px;
  vertical-align: middle
}

/* Mini balotas */
.bm-row {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap
}

.bm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 900;
}

.bm-r {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .65) 0%, transparent 32%),
    radial-gradient(circle, #5D89FF 0%, #2A45F0 55%, #0B1A6B 100%);
  box-shadow: 0 2px 8px rgba(42, 69, 240, .6), inset 0 -2px 5px rgba(0, 0, 0, .4);
  color: white;
}

.bm-y {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .75) 0%, transparent 32%),
    radial-gradient(circle, #FFF066 0%, #FFC400 55%, #995500 100%);
  box-shadow: 0 2px 8px rgba(255, 196, 0, .6), inset 0 -2px 5px rgba(0, 0, 0, .3);
  color: #3D1F00;
}

.bm-sep {
  color: var(--gris);
  font-size: .6rem;
  font-weight: 700;
  margin: 0 2px
}

/* ════════════════════════════════════════════════════════════════════════
   STEPS (¿Cómo jugar?)
════════════════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radio);
  padding: 32px 24px;
  text-align: center;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #142AC0, #FFC400);
  opacity: 0;
  transition: opacity .3s;
}

.step-card:hover {
  transform: translateY(-7px);
  border-color: rgba(42, 69, 240, .3)
}

.step-card:hover::before {
  opacity: 1
}

.step-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  margin: 0 auto 20px;
  background: rgba(42, 69, 240, .12);
  border: 1px solid rgba(42, 69, 240, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.step-card:nth-child(2) .step-icon {
  background: rgba(255, 196, 0, .12);
  border-color: rgba(255, 196, 0, .28)
}

.step-card:nth-child(3) .step-icon {
  background: rgba(42, 69, 240, .16);
  border-color: rgba(42, 69, 240, .32)
}

.step-card:nth-child(4) .step-icon {
  background: rgba(42, 69, 240, .12);
  border-color: rgba(42, 69, 240, .25)
}

.step-paso {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
}

.step-card:nth-child(2) .step-paso {
  color: var(--oro-vivo)
}

.step-card:nth-child(3) .step-paso {
  color: var(--azul-vivo2)
}

.step-tit {
  font-family: 'Montserrat', sans-serif;
  font-size: .98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--gris);
  font-size: .87rem;
  line-height: 1.65
}

/* ════════════════════════════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════════════════════════════ */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1568 0%, #050B28 50%, #0A1568 100%);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 196, 0, .15);
  border-bottom: 1px solid rgba(255, 196, 0, .15);
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42, 69, 240, .16), transparent 70%);
}

.cta-strip::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .12), transparent 70%);
  pointer-events: none;
}

.cta-tit {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
}

.cta-sub {
  color: rgba(255, 255, 255, .65);
  font-size: .98rem;
  margin-bottom: 36px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════════ */
.footer {
  background: #020410;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--rojo-vivo), var(--oro-vivo), var(--azul-vivo2)) 1;
  padding: 60px 24px 28px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 30px;
}

.ft-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ft-logo em {
  color: var(--amarillo);
  font-style: normal
}

.ft-desc {
  color: var(--gris);
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: 24px
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 69, 240, .08);
  border: 1px solid rgba(42, 69, 240, .22);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B9C8FF;
}

.ft-col-tit {
  font-family: 'Montserrat', sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 18px;
}

.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ft-links a {
  color: var(--gris);
  font-size: .88rem;
  transition: color .2s
}

.ft-links a:hover {
  color: var(--amarillo)
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-copy {
  font-size: .76rem;
  color: rgba(255, 255, 255, .28)
}

.ft-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ════════════════════════════════════════════════════════════════════════
   ADMIN
════════════════════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh
}

.admin-sidebar {
  background: #00020F;
  border-right: 1px solid rgba(255, 255, 255, .06)
}

.sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo em {
  color: var(--amarillo);
  font-style: normal
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: .87rem;
  color: var(--gris);
  transition: var(--trans);
  border-left: 3px solid transparent;
  font-weight: 500;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: white;
  background: linear-gradient(90deg, rgba(42, 69, 240, .1), rgba(42, 69, 240, .06));
  border-left-color: var(--rojo);
}

.admin-main {
  background: #010518;
  padding: 40px
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px
}

.admin-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px
}

.stat-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radio);
  padding: 22px;
}

.stat-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--oro-vivo);
}

.stat-card .lbl {
  color: var(--gris);
  font-size: .78rem;
  margin-top: 4px
}

.admin-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radio);
  padding: 26px;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gris);
  margin-bottom: 7px
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  color: white;
  font-size: .9rem;
  transition: border .2s;
}

.form-control:focus {
  outline: none;
  border-color: rgba(42, 69, 240, .5);
  background: rgba(255, 255, 255, .07)
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px
}

.btn-submit {
  background: linear-gradient(135deg, #2A45F0, #142AC0);
  color: white;
  padding: 11px 26px;
  border-radius: 9px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: var(--sombra-rojo);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(42, 69, 240, .55)
}

.alert {
  padding: 13px 17px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: .88rem
}

.alert-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #4ade80
}

.alert-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .28);
  color: #f87171
}

/* ═══════════════════════════════════════════════════════════════════════
   TABLA CRUD DE SORTEOS (panel admin) — diseño propio con buen estilo
   ═══════════════════════════════════════════════════════════════════════ */

/* Encabezado de la tarjeta: título + conteo */
.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-table-toolbar h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table-toolbar .count-pill {
  background: rgba(255, 255, 255, .06);
  color: var(--gris-claro);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .08);
}

/* Pestañas de filtro por estado */
.admin-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gris);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: var(--trans);
  white-space: nowrap;
}

.admin-filter-tabs a:hover {
  background: rgba(255, 255, 255, .08);
  color: white;
}

.admin-filter-tabs a.active {
  background: var(--gradiente-azul);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(42, 69, 240, .4);
}

/* Buscador rápido por número de sorteo */
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  color: white;
  padding: 9px 14px;
  font-size: .82rem;
  width: 160px;
}

.admin-search input:focus {
  outline: none;
  border-color: rgba(42, 69, 240, .5);
}

/* Contenedor + tabla */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 880px;
  border: none;
}

.admin-table th,
.admin-table td {
  border: none;
}

.admin-table thead th {
  background: rgba(255, 255, 255, .035);
  color: var(--gris);
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  transition: background .15s ease;
}

.admin-table tbody tr td {
  border-bottom: 1px solid rgba(255, 255, 255, .045) !important;
}

.admin-table tbody tr:last-child td {
  border-bottom: none !important;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .015);
}

.admin-table tbody tr:hover {
  background: rgba(42, 69, 240, .07);
}

.admin-table tbody tr.row-editing {
  background: rgba(255, 196, 0, .07);
  box-shadow: inset 3px 0 0 var(--oro-vivo);
}

.admin-table td {
  padding: 13px 16px;
  font-size: .85rem;
  color: var(--gris-claro);
  vertical-align: middle;
}

.admin-table .numero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .78rem;
}

.admin-table .fecha-cell {
  color: var(--gris);
  font-size: .8rem;
  white-space: nowrap;
}

.admin-table .balotas-mini-row {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.admin-table .balota-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .68rem;
  color: white;
  flex-shrink: 0;
}

.admin-table .balota-chip.principal {
  background: linear-gradient(145deg, #2A45F0, #142AC0);
}

.admin-table .balota-chip.bonus {
  background: linear-gradient(145deg, #FFC400, #FF8F00);
  color: #1A1200;
}

.admin-table .sin-numeros {
  color: var(--gris);
  font-size: .78rem;
  font-style: italic;
}

.admin-table .acumulado-cell {
  color: var(--oro-vivo);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  white-space: nowrap;
}

.admin-table .acumulado-cell .gano-tag {
  display: block;
  margin-top: 3px;
  font-size: .62rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.status-badge.PUBLICADO {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, .35);
}

.status-badge.PROGRAMADO {
  background: rgba(42, 69, 240, .14);
  color: #8FA0FF;
  border-color: rgba(42, 69, 240, .4);
}

.status-badge.ARCHIVADO {
  background: rgba(255, 255, 255, .06);
  color: var(--gris-claro);
  border-color: rgba(255, 255, 255, .14);
}

/* Botones de acción (editar / eliminar) */
.admin-table .action-cell {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--trans);
  border: 1px solid transparent;
  cursor: pointer;
}

.action-btn.edit {
  background: rgba(42, 69, 240, .12);
  color: #8FA0FF;
  border-color: rgba(42, 69, 240, .3);
}

.action-btn.edit:hover {
  background: rgba(42, 69, 240, .22);
  color: white;
}

.action-btn.delete {
  background: rgba(239, 68, 68, .1);
  color: #f87171;
  border-color: rgba(239, 68, 68, .28);
}

.action-btn.delete:hover {
  background: rgba(239, 68, 68, .2);
  color: white;
}

.admin-table-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--gris);
}

.admin-table-empty .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

/* Paginación del admin */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.admin-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--gris-claro);
  font-size: .8rem;
  font-weight: 700;
  transition: var(--trans);
}

.admin-pagination a:hover {
  background: rgba(255, 255, 255, .09);
  color: white;
}

.admin-pagination a.active {
  background: var(--gradiente-azul);
  color: white;
  border-color: transparent;
}

@media (max-width: 700px) {
  .admin-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search input {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media(max-width:1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center
  }

  .hero-desc {
    text-align: center
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat-it:nth-child(2) {
    border-right: none
  }

  .stat-it {
    border-right: 1px solid rgba(255, 255, 255, .07);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
  }

  .stat-it:nth-child(3) {
    border-right: none
  }
}

@media(max-width:768px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
   /* background: rgba(3, 8, 28, .99);   */
     background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid rgba(42, 69, 240, .2)
  }

  .navbar-nav.open {
    display: flex
  }

  .hamburger {
    display: block
  }

  .balota {
    width: 56px;
    height: 56px;
    font-size: 1.15rem
  }

  .res-card {
    padding: 24px 18px
  }

  .admin-layout {
    grid-template-columns: 1fr
  }

  .admin-sidebar {
    display: none
  }

  .admin-main {
    padding: 20px 16px
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .cd-num {
    font-size: 1.9rem
  }
}

/* ─── LOGO IMAGES ───────────────────────────────────────────────────────── */
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain
}

.hero-logo-img {
  width: clamp(260px, 40vw, 440px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 196, 0, .35)) drop-shadow(0 4px 20px rgba(0, 0, 0, .5));
  margin-bottom: 28px;
  display: block;
}

.ft-logo-img img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(255, 196, 0, .2))
}

/* ─── HERO overlay ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(42, 69, 240, .24) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(42, 69, 240, .6) 0%, transparent 65%),
    linear-gradient(170deg, rgba(5, 11, 40, .9) 0%, rgba(8, 18, 64, .85) 40%, rgba(14, 26, 102, .78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

/* ─── CARD top line animada ──────────────────────────────────────────────── */
.acu-card-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #142AC0, #FFC400, #2A45F0, #FFC400, #142AC0);
  background-size: 300%;
  animation: mover-grad 4s linear infinite;
}

/* ─── PAGE HERO MINI ─────────────────────────────────────────────────────── */
.page-hero-mini {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(220, 10, 30, .25);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 28, .88) 0%, rgba(6, 13, 42, .92) 100%);
}

/* ─── PRÓXIMO CARD ───────────────────────────────────────────────────────── */
.prox-card {
  background: linear-gradient(145deg, rgba(42, 69, 240, .28), rgba(10, 21, 104, .5));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radio-lg);
  padding: 36px;
  text-align: center;
}

.prox-fecha {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* ─── HELPERS TABLA ──────────────────────────────────────────────────────── */
.num-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .7)
}

.fecha-cell {
  color: var(--gris);
  font-size: .98rem;
  white-space: nowrap
}

.acu-cell {
  font-family: 'Montserrat', sans-serif;
  color: var(--oro-vivo);
  font-weight: 800;
  white-space: nowrap;
  font-size: 1.05rem
}

.nums-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 24px;
  text-align: center;
}

/* ─── SECTION HEADER ROW ─────────────────────────────────────────────────── */
.sec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px
}

.btn-sm {
  padding: 12px 22px !important;
  font-size: .78rem !important
}

/* ─── EMPTY CARD ─────────────────────────────────────────────────────────── */
.empty-card {
  text-align: center;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center
}

/* ─── PAGINACIÓN ─────────────────────────────────────────────────────────── */
.paginacion {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center
}

.pag-btn {
  padding: 10px 18px;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  background: rgba(255, 255, 255, .06);
  color: white;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: var(--trans);
}

.pag-btn.active {
  background: var(--rojo);
  border-color: var(--rojo);
  box-shadow: var(--sombra-rojo)
}

.pag-btn:hover:not(.active) {
  background: rgba(255, 255, 255, .12)
}

/* ─── RESPONSIVE EXTRAS ──────────────────────────────────────────────────── */
@media(max-width:1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px
  }

  .hero-left {
    align-items: center
  }

  .hero-logo-img {
    margin: 0 auto 28px
  }

  .hero-desc {
    text-align: center
  }
}

@media(max-width:768px) {
  .hero-logo-img {
    width: 220px
  }

  .logo-img {
    height: 38px
  }

  .sec-header-row {
    flex-direction: column;
    align-items: flex-start
  }
}

/* === badge histórico === */
.am-total-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  font-family: 'Space Grotesk', sans-serif;
  align-self: center;
}


table,
th,
td {
  border: 1px solid #FF8F00;
  border-collapse: collapse;
}