/* ─── IMPORTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;900&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  /* Argentina */
  --arg-celeste:       #74ACDF;
  --arg-celeste-dark:  #4E8EC4;
  --arg-celeste-light: #A0C8EF;
  --arg-celeste-pale:  #E4F2FB;

  /* Universidad de Morón */
  --um-red:            #a6191a;
  --um-red-light:      #c41f20;
  --um-red-dark:       #7d1213;

  /* Acento */
  --gold:              #060D1E;
  --gold-dark:         #060D1E;
  --green:             #27AE60;
  --error:             #E63946;
  --error-dark:        #C0303B;

  /* Backward-compat */
  --um-blue:           #74ACDF;
  --um-blue-light:     #A0C8EF;
  --um-blue-dark:      #4E8EC4;
  --fifa-red:          #E63946;
  --fifa-red-dark:     #C0303B;

  /* Fondos claros */
  --bg:                #FFFFFF;
  --bg-2:              #F2F8FF;
  --surface:           #E8F3FB;
  --surface-2:         #D4E8F5;
  --surface-3:         #BDD9EF;

  --border:            rgba(116,172,223,0.3);
  --border-active:     rgba(78,142,196,0.6);
  --text:              #070D1C;
  --text-muted:        #1E4A7A;
  --text-dim:          #4A7A9B;
  --white:             #FFFFFF;

  --shadow-sm:         0 2px 8px rgba(74,122,155,0.12);
  --shadow-md:         0 8px 24px rgba(74,122,155,0.16);
  --shadow-lg:         0 16px 48px rgba(74,122,155,0.22);
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-xl:         32px;
  --transition:        all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Cinta Argentina */
  --arg-ribbon: linear-gradient(90deg,
    #74ACDF, #A0C8EF, #FFFFFF, #F6B40E, #FFFFFF, #A0C8EF, #74ACDF);
  --arg-ribbon-blue: linear-gradient(90deg,
    #74ACDF, #A0C8EF, #FFFFFF, #4E8EC4, #FFFFFF, #A0C8EF, #74ACDF);
}

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── TIPOGRAFÍA ──────────────────────────────────────────────────────────── */
.bebas { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; line-height: 1.1; }

/* ─── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.navbar.transparent {
  background: rgba(0,0,0,0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  color: white;
}
.navbar.transparent .navbar-links a { color: rgba(255,255,255,0.9); }
.navbar.transparent .navbar-links a:hover { color: var(--arg-celeste-dark); }
.navbar.transparent .navbar-logo { color: white; }
.navbar.transparent .um-tag { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.3); }
.navbar.transparent .navbar-cta { background: var(--um-red); color: white; }
.navbar.transparent::after { opacity: 0; }
.navbar.transparent .navbar-toggle span { background: white; }
.navbar:has(.navbar-toggle.open) {
  background: #060D1E !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
}
.navbar:has(.navbar-toggle.open) .navbar-logo { color: white; }
.navbar:has(.navbar-toggle.open) .navbar-toggle span { background: white; }
.navbar:has(.navbar-toggle.open) .um-tag { background: white !important; color: #060D1E !important; border-color: transparent !important; }
.navbar-links.nav-open a { color: rgba(255,255,255,0.85) !important; }
.navbar-links.nav-open a:hover { color: white !important; background: rgba(255,255,255,0.1) !important; }
/* Ítem activo dentro del menú mobile: fondo translúcido oscuro + texto blanco
   (antes heredaba fondo claro con texto blanco forzado = sin contraste). */
.navbar-links.nav-open a.active { color: white !important; background: rgba(255,255,255,0.14) !important; }
.navbar-links.nav-open .navbar-cta { background: white !important; color: #060D1E !important; }
.navbar::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--arg-ribbon-blue);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.navbar-logo .ball { font-size: 1.2rem; }
.navbar-logo .um-tag {
  background: var(--um-red);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.navbar-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--arg-celeste-dark);
  background: var(--surface);
}
.navbar-cta {
  background: var(--um-red) !important;
  color: white !important;
  font-weight: 600 !important;
}
.navbar-cta:hover { background: var(--um-red-light) !important; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  padding: 80px 4% 2rem 4%;
  --text-muted: rgba(255,255,255,0.75);
}
/* Logo de la UM, abajo a la derecha del hero */
.hero-logo {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  width: clamp(90px, 11vw, 170px);
  height: auto;
  z-index: 6;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
@media (max-width: 768px) {
  .hero-logo { width: 72px; bottom: 1rem; right: 1rem; opacity: 0.9; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: translate(-50%, -50%);
  filter: brightness(1.25);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(7,13,28,0.72) 0%,
    rgba(7,13,28,0.45) 20%,
    rgba(7,13,28,0.25) 55%,
    rgba(7,13,28,0.6) 100%);
  z-index: 1;
}
.hero-grid { display: none; }
.hero-ball-deco {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 380px;
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: spin-ball 14s linear infinite;
  transform-origin: center center;
  filter:
    drop-shadow(0 24px 32px rgba(0,0,0,0.5))
    drop-shadow(0 4px 12px rgba(0,0,0,0.4))
    brightness(1.1)
    contrast(1.08);
}
@keyframes spin-ball {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 4% 0 1.5%;
}
.hero-left { flex: 0 0 auto; max-width: 380px; text-align: left; }
.hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.hero-title .line-1 {
  color: var(--white);
  display: block;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.12em;
}
.hero-title .line-2 {
  color: #FFFFFF;
  display: block;
}
.hero-title .line-2-al { color: #FFFFFF; }

/* ─── 2026 en línea separada ─────────────────────────────────────────────── */
.hero-title .line-2-year {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
}
/* "con la" — mismo tamaño que la línea 1 ("Viví el") */
.hero-title .line-2-conla {
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.12em;
}

/* ─── MUN FLIP (easter egg hover) ────────────────────────────────────────── */
.mun-flip {
  display: inline-block;
  position: relative;
  cursor: default;
}
.mun-front {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mun-back {
  position: absolute;
  left: 0; top: 0;
  display: inline-block;
  color: var(--um-red);
  white-space: nowrap;
  z-index: 10;
  transform: rotateY(180deg);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.line-2-rest { transition: opacity 0.3s ease; }

@media (hover: hover) {
  .mun-flip:hover .mun-front { transform: rotateY(180deg); opacity: 0; }
  .mun-flip:hover .mun-back  { transform: rotateY(0deg);   opacity: 1; }
}
.hero-title .line-3 {
  color: var(--um-red);
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.12em;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin: 1.5rem auto 2.5rem;
  max-width: 580px;
}

/* ─── COUNTDOWN (dentro del hero, sobre fondo celeste) ────────────────────── */
.countdown {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  min-width: 90px;
}
.countdown-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ─── BOTONES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--arg-celeste);
  color: #1A3050;
  box-shadow: 0 0 24px rgba(116,172,223,0.4);
}
.btn-primary:hover {
  background: var(--arg-celeste-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(78,142,196,0.5);
}
.btn-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 0 24px rgba(6,13,30,0.25);
}
.btn-gold:hover {
  background: #0D1A3A;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(6,13,30,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--arg-celeste);
  color: var(--arg-celeste-dark);
}
.btn-outline:hover {
  background: var(--arg-celeste-pale);
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  border: 2px solid white;
  color: var(--arg-celeste-dark);
  font-weight: 700;
}
.btn-white:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
}
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: var(--error-dark); }
.btn-sm    { padding: 8px 20px; font-size: 0.88rem; }
.btn-lg    { padding: 18px 44px; font-size: 1.15rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── SECCIONES ───────────────────────────────────────────────────────────── */
.section      { padding: 100px 2rem; }
.section-sm   { padding: 60px 2rem; }
.container    { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-title span { color: var(--arg-celeste-dark); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
}
.section-header { margin-bottom: 3rem; }
.section-sep {
  height: 5px;
  background: linear-gradient(90deg,
    var(--surface) 0%,
    var(--arg-celeste) 30%,
    var(--arg-celeste-dark) 50%,
    var(--arg-celeste) 70%,
    var(--surface) 100%);
  opacity: 0.6;
}
.divider {
  width: 80px;
  height: 4px;
  background: var(--arg-ribbon);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ─── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── PASOS ───────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--arg-ribbon-blue);
}
.step-card:hover {
  border-color: var(--arg-celeste);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: rgba(116,172,223,0.2);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.step-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ─── PUNTOS INFO ─────────────────────────────────────────────────────────── */
.points-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.points-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.points-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.points-table tr:hover td { background: var(--surface); }
.pts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--arg-celeste-pale);
  color: var(--arg-celeste-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 6px;
  min-width: 36px;
}

/* ─── FORMULARIOS ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-label .required { color: var(--um-red); margin-left: 3px; }
.form-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--arg-celeste);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(116,172,223,0.2);
}
.form-input.error { border-color: var(--error); }
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.4rem;
  display: none;
}
.form-error.visible { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ─── PROGRESS BAR ────────────────────────────────────────────────────────── */
.progress-wrap {
  background: var(--surface-2);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar {
  height: 100%;
  background: var(--arg-ribbon);
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-label { font-size: 0.8rem; color: var(--text-muted); text-align: right; }

/* ─── STEPPER ─────────────────────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 3rem; }
.step-item { display: flex; align-items: center; flex: 1; }
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  flex-shrink: 0;
  transition: var(--transition);
}
.step-circle.active { border-color: var(--arg-celeste); background: var(--arg-celeste); color: white; }
.step-circle.done   { border-color: var(--green);       background: var(--green);       color: white; }
.step-line      { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step-line.done { background: var(--green); }
.step-info { margin-left: 10px; }
.step-info .step-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.step-info .step-desc { font-size: 0.72rem; color: var(--text-muted); }

/* ─── RANKING TABLE ───────────────────────────────────────────────────────── */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th {
  padding: 12px 16px;
  background: var(--surface);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
}
.ranking-table th:last-child, .ranking-table td:last-child { text-align: right; }
.ranking-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.ranking-table tr:hover td { background: var(--surface); }
.ranking-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  width: 40px;
  text-align: center;
  color: var(--text-muted);
}
.ranking-pos.pos-1 { color: #F6B40E; }
.ranking-pos.pos-2 { color: #888; }
.ranking-pos.pos-3 { color: #CD7F32; }
.ranking-name { font-weight: 600; }
.ranking-pts  { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--arg-celeste-dark); }
.ranking-sub  { font-size: 0.78rem; color: var(--text-muted); }

/* Contenedor de tablas (ranking público, rankings/usuarios/auditoría del admin,
   terceros del prode). Global para que TODAS scrolleen en horizontal en mobile
   (antes estaba inline solo en ranking.html y las tablas anchas del admin se
   cortaban en pantallas chicas). */
.ranking-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── PODIO ───────────────────────────────────────────────────────────────── */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-bottom: 4rem; }
.podium-item { flex: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border: 3px solid var(--border);
}
.podium-item.pos-1 .podium-avatar { border-color: #F6B40E; box-shadow: 0 0 20px rgba(246,180,14,0.4); }
.podium-item.pos-2 .podium-avatar { border-color: #C0C0C0; }
.podium-item.pos-3 .podium-avatar { border-color: #CD7F32; }
.podium-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--text); }
.podium-pts  { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--text); }
.podium-item.pos-1 .podium-pts { color: #F6B40E; }
.podium-base {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}
.podium-item.pos-1 .podium-base { height: 120px; background: linear-gradient(180deg, rgba(246,180,14,0.25), rgba(246,180,14,0.05)); border: 1px solid rgba(246,180,14,0.4); }
.podium-item.pos-2 .podium-base { height: 90px;  background: linear-gradient(180deg, rgba(192,192,192,0.2), transparent);          border: 1px solid rgba(192,192,192,0.3); }
.podium-item.pos-3 .podium-base { height: 70px;  background: linear-gradient(180deg, rgba(205,127,50,0.2), transparent);           border: 1px solid rgba(205,127,50,0.3); }

/* ─── ALERTAS ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #EDFAF3; border: 1px solid rgba(39,174,96,0.4);    color: #1A7A40; }
.alert-error   { background: #FEF0F0; border: 1px solid rgba(230,57,70,0.4);    color: #C0303B; }
.alert-info    { background: var(--arg-celeste-pale); border: 1px solid rgba(116,172,223,0.4); color: var(--arg-celeste-dark); }
.alert-warn    { background: #FFFBEA; border: 1px solid rgba(246,180,14,0.4);   color: #A07010; }

/* ─── TOAST ───────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
}
.toast-success { background: #EDFAF3; border: 1px solid rgba(39,174,96,0.4);  color: #1A7A40; }
.toast-error   { background: #FEF0F0; border: 1px solid rgba(230,57,70,0.4);  color: #C0303B; }
.toast-info    { background: var(--white); border: 1px solid var(--border);   color: var(--text); }
.toast-warn    { background: #FFFBEA; border: 1px solid rgba(246,180,14,0.4);  color: #A07010; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

/* ─── ADMIN ───────────────────────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; padding-top: 64px; }
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.admin-sidebar h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-item.active { background: var(--arg-celeste-pale); color: var(--arg-celeste-dark); border-left: 3px solid var(--arg-celeste); }
.admin-content  { padding: 2.5rem; overflow-y: auto; }
.admin-panel        { display: none; }
.admin-panel.active { display: block; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.stat-num   { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--arg-celeste-dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

/* ─── LOGIN ADMIN ─────────────────────────────────────────────────────────── */
#admin-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-2);
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text); }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--arg-celeste);
  border-top: 1px solid var(--arg-celeste-dark);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; color: white; }
.footer p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: white; }

/* ─── BADGE / CHIPS ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue  { background: var(--arg-celeste-pale); color: var(--arg-celeste-dark); border: 1px solid rgba(116,172,223,0.4); }
.badge-gold  { background: #FFFBEA;                 color: var(--gold-dark);        border: 1px solid rgba(246,180,14,0.4); }
.badge-green { background: #EDFAF3;                 color: #1A7A40;                 border: 1px solid rgba(39,174,96,0.4); }
.badge-red   { background: #FEF0F0;                 color: var(--um-red);           border: 1px solid rgba(204,0,0,0.3); }

/* ─── SELECT ──────────────────────────────────────────────────────────────── */
.form-select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234A7A9B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.form-select:focus { border-color: var(--arg-celeste); box-shadow: 0 0 0 3px rgba(116,172,223,0.2); }
.form-select option { background: var(--white); color: var(--text); }

/* ─── LOADING ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(116,172,223,0.3);
  border-top-color: var(--arg-celeste);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LOGOUT BUTTON (navbar) ─────────────────────────────────────────────── */
.navbar-logout {
  background: var(--um-red);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-logout:hover { background: var(--um-red-light); }
.navbar.transparent .navbar-logout { background: rgba(166,25,26,0.85); }
.navbar.transparent .navbar-logout:hover { background: var(--um-red); }

/* ─── HAMBURGER BUTTON ────────────────────────────────────────────────────── */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIVE 768px ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-toggle { display: flex; }
  .navbar-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: #060D1E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .navbar-links.nav-open { display: flex; }
  .navbar-links li { width: 100%; }
  .navbar-links a { display: block; padding: 12px 16px; font-size: 1rem; }
  .navbar-cta { text-align: center !important; margin-top: 4px; }
  .navbar-logout {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 4px;
  }

  /* Layout */
  .form-grid     { grid-template-columns: 1fr; }
  .admin-grid    { grid-template-columns: 1fr; }
  /* En mobile el menú lateral pasa a ser una barra horizontal scrolleable
     (antes estaba display:none y no se podía navegar fuera del Dashboard). */
  .admin-sidebar {
    flex-direction: row;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    padding: 0.6rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 40;
  }
  .admin-sidebar h2 { display: none; }
  .admin-nav-item { flex: 0 0 auto; white-space: nowrap; margin-bottom: 0; font-size: 0.82rem; padding: 8px 12px; }
  .section       { padding: 60px 1.25rem; }
  .section-sm    { padding: 40px 1.25rem; }
  .card          { padding: 1.5rem; }

  /* Countdown */
  .countdown-item { min-width: 72px; padding: 0.75rem 1rem; }
  .countdown-num  { font-size: 2.2rem; }

  /* Podio */
  .podium        { gap: 0.5rem; }
  .podium-item   { max-width: 120px; }
  .podium-avatar { width: 44px; height: 44px; font-size: 1.1rem; }

  /* Pelota - se mantiene oculta en mobile */
  .hero-ball-deco { display: none; }

  /* Group matches — touch-friendly ──────────────────────── */
  .gc-matches .gc-score     { height: 44px; width: 48px; font-size: 1.1rem; }
  .gc-matches .gc-team .fi  { width: 22px !important; height: 16px !important; }
  .gc-matches .gc-team-name { font-size: 0.95rem; }
  .gc-matches .gc-team      { gap: 6px; }
  .group-card .gc-matches   { gap: 8px; padding: 0.75rem; }
  .gc-matches .gc-match     { padding: 6px 0; gap: 6px; }

  /* Terceros clasificados — ocultar columnas en mobile */
  #sim-panel-terceros .ranking-table th:nth-child(3),
  #sim-panel-terceros .ranking-table td:nth-child(3),
  #sim-panel-terceros .ranking-table th:nth-child(5),
  #sim-panel-terceros .ranking-table td:nth-child(5),
  #sim-panel-terceros .ranking-table th:nth-child(6),
  #sim-panel-terceros .ranking-table td:nth-child(6),
  #sim-panel-terceros .ranking-table th:nth-child(7),
  #sim-panel-terceros .ranking-table td:nth-child(7),
  #sim-panel-terceros .ranking-table th:nth-child(8),
  #sim-panel-terceros .ranking-table td:nth-child(8) { display: none; }
  #sim-panel-terceros .ranking-table td:nth-child(2) { width: 100%; }
  #sim-panel-terceros .ranking-table td:nth-child(2) .ranking-name {
    font-size: clamp(0.75rem, 2.8vw, 0.9rem);
    white-space: nowrap;
  }

  /* Group standings — bigger in mobile */
  .group-card .gc-standings th { font-size: 0.85rem; }
  .group-card .gc-standings td { font-size: 1rem; padding: 10px 6px; }
  .group-card .gc-pos           { font-size: 1rem; width: 22px; height: 22px; }
  .group-card .gc-standings .fi { width: 22px !important; height: 15px !important; }

  /* Save bar (prode) */
  .save-bar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .save-bar .flex { flex-wrap: wrap; gap: 0.5rem; }
  .save-bar .btn  { flex: 1; min-width: 0; justify-content: center; }

  /* Stepper */
  .step-info .step-desc { display: none; }
  .step-info .step-name { font-size: 0.72rem; }

  /* Toast */
  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { min-width: unset; max-width: 100%; width: 100%; }

  /* Hero two-column → single column */
  .hero { padding-top: 80px; padding-bottom: 5rem; }
  .hero-content { flex-direction: column; padding: 0 1.25rem; gap: 2rem; }
  .hero-left  { max-width: 100%; width: 100%; text-align: center; }
  .hero-right { align-items: center; width: 100%; }
  .countdown  { justify-content: center; gap: 0.75rem; }
  .countdown-item { width: calc(50% - 0.375rem); min-width: 0; padding: 0.75rem 0.5rem; }
  .hero-bg img { object-position: center center; filter: brightness(1.05); }
  .hero-title .line-1 { color: #FFFFFF; }
  .hero-title .line-2 { color: #FFFFFF !important; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
  .hero-title .line-2-al { color: #FFFFFF; }
  .hero-title .line-3 { font-size: 0.72em; color: var(--um-red); }
  .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(7,13,28,0.82) 0%,
      rgba(7,13,28,0.65) 30%,
      rgba(7,13,28,0.55) 60%,
      rgba(7,13,28,0.75) 100%);
  }

  /* CTA buttons stack vertically */
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
  .cta-group .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ─── RESPONSIVE 480px ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .steps-grid   { grid-template-columns: 1fr; }
  .card         { padding: 1.25rem; }
  .step-info    { display: none; }
  .stepper      { margin-bottom: 1.5rem; }

  /* Ranking público: ahora son 3 columnas (#, Participante, Puntos), todas visibles */
  #ranking-body { overflow-x: auto; }

  /* Prode layout compacto */
  .prode-layout { padding: 1rem; }
}

/* ─── ANIMACIONES ─────────────────────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { opacity: 0; animation: fadeIn 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s;  }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s;  }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s;  }

/* ─── MISC ────────────────────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-gold    { color: var(--gold-dark); }
.text-red     { color: var(--um-red); }
.text-green   { color: var(--green); }
.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }
.page    { padding-top: 64px; min-height: 100vh; }

/* ─── MODAL TÉRMINOS Y CONDICIONES ─────────────────────────────────────────── */
.tyc-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 13, 30, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.tyc-overlay.open { display: flex; }
.tyc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: tycPop 0.22s ease;
}
@keyframes tycPop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ─── POP-UP DIARIO DE LA RULETA / TRIVIA ─────────────────────────────────── */
.ruleta-pop-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 13, 30, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.ruleta-pop-overlay.open { display: flex; }
.ruleta-pop-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  animation: tycPop 0.22s ease;
}
.ruleta-pop-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}
.ruleta-pop-close:hover { color: var(--text); }
.ruleta-pop-emoji { font-size: 3rem; line-height: 1; margin-bottom: 0.75rem; }
.ruleta-pop-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.ruleta-pop-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.ruleta-pop-text strong { color: var(--um-red); }
.ruleta-pop-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.ruleta-pop-actions .btn { width: 100%; justify-content: center; }
.tyc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tyc-header h3 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
}
.tyc-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.tyc-close:hover { background: var(--surface-2); color: var(--text); }
.tyc-body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
.tyc-body p { margin: 0 0 0.9rem; font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); }
.tyc-body p:last-child { margin-bottom: 0; }
.tyc-body a { color: var(--um-blue-dark); font-weight: 600; }
.tyc-actions {
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: right;
}

/* Link disparador del modal (footer + checkbox de registro) */
.tyc-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.tyc-trigger:hover { opacity: 0.85; }
