/* ============================================
   MUNDIAL 2026 - Estilos
   ============================================ */

:root {
  --rojo:    #b01e15;
  --rojo2:   #DA291C;
  --verde:   #006e70;
  --verde2:  #009698;
  --dorado:  #F4B324;
  --dorado2: #f0a020;
  --azul:    #023e8a;
  --oscuro:  #0F172A;
  --oscuro2: #1E293B;
  --gris:    #64748b;
  --fondo:   #0F172A;
  --tarjeta: #1E293B;
  --tarjeta2:#2d3d52;
  --borde:   rgba(255,255,255,0.08);
  --texto:   #edf2f4;
  --texto2:  #94a3b8;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            ellipse 80% 60% at 20% 10%,
            rgba(218, 41, 28, 0.14) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 90%,
            rgba(0, 150, 152, 0.12) 0%,
            transparent 60%
        ),
        linear-gradient(
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.75)
        ),
        url('../images/BUHO1.webp');

    background-repeat: no-repeat;
    
    /* Ajusta el enfoque de la imagen */
    background-position:
        center,
        center,
        center,
        35% center;

    background-size:
        auto,
        auto,
        auto,
        cover;

    z-index: -1;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { font-size: 22px; }
.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--texto);
}
.brand-text em {
  font-style: normal;
  color: var(--dorado);
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--texto2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--texto);
  background: rgba(255,255,255,0.08);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-nombre {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout {
  color: var(--texto2);
  text-decoration: none;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-logout:hover { color: var(--rojo2); }

/* ---- LAYOUT ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: 3px;
  color: var(--texto);
  line-height: 1;
}
.page-header h1 span { color: var(--dorado); }
.page-header p {
  margin-top: 8px;
  color: var(--texto2);
  font-size: 15px;
}

/* ---- TARJETAS ---- */
.card {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- FILTROS DE GRUPO ---- */
.filtros {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}
.filtro-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--borde);
  background: transparent;
  color: var(--texto2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.filtro-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--texto);
}
.filtro-btn.active {
  background: var(--rojo2);
  border-color: var(--rojo2);
  color: #fff;
}

/* ---- GRUPO LABEL ---- */
.grupo-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--dorado);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grupo-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--dorado), transparent);
  opacity: 0.3;
}

/* ---- PARTIDO CARD ---- */
.partido {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.partido:hover { border-color: rgba(255,255,255,0.15); }

.partido-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.partido-fecha {
  font-size: 12px;
  color: var(--texto2);
}
.partido-estadio {
  font-size: 12px;
  color: var(--texto2);
  text-align: right;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}
.badge-grupo { background: rgba(244,179,36,0.15); color: var(--dorado); border: 1px solid rgba(244,179,36,0.25); }
.badge-jugado { background: rgba(0,150,152,0.2); color: #22d3d4; border: 1px solid rgba(0,150,152,0.3); }

/* Equipos */
.partido-cuerpo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.equipo-local { text-align: right; }
.equipo-visitante { text-align: left; }
.equipo-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: 0.3px;
}
.equipo-bandera {
  font-size: 28px;
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}
.equipo-local .equipo-bandera { text-align: right; }

.marcador-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}
.marcador-real {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--dorado);
  line-height: 1;
}
.marcador-vs {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gris);
}

/* Pronósticos de todos */
.pronosticos-todos {
  margin-top: 14px;
  border-top: 1px solid var(--borde);
  padding-top: 12px;
}
.pron-titulo {
  font-size: 11px;
  font-weight: 600;
  color: var(--texto2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pron-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pron-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--tarjeta2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid var(--borde);
}
.pron-item.exacto { border-color: rgba(116,198,157,0.5); background: rgba(0,150,152,0.15); }
.pron-item.ganador { border-color: rgba(233,196,106,0.4); background: rgba(244,179,36,0.08); }
.pron-item.fallado { opacity: 0.5; }
.pron-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pron-usuario { color: var(--texto2); font-size: 12px; }
.pron-score { font-weight: 700; color: var(--texto); }

/* Formulario de pronóstico */
.pron-form {
  margin-top: 12px;
  border-top: 1px solid var(--borde);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pron-form-label {
  font-size: 13px;
  color: var(--texto2);
  white-space: nowrap;
}
.score-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-input {
  width: 50px;
  height: 38px;
  background: var(--tarjeta2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--texto);
  font-size: 18px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  letter-spacing: 1px;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.score-input:focus {
  outline: none;
  border-color: var(--rojo2);
}
.score-sep {
  font-size: 20px;
  color: var(--gris);
  font-weight: 700;
}
.btn {
  border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  padding: 8px 18px;
}
.btn-pron {
  background: var(--rojo2);
  color: #fff;
}
.btn-pron:hover { background: var(--rojo); transform: translateY(-1px); }
.btn-pron:active { transform: translateY(0); }
.btn-pron.guardado {
  background: var(--verde2);
  cursor: default;
}
.pron-yo {
  font-size: 13px;
  color: #22d3d4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Resultado real (admin) */
.resultado-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.resultado-form label {
  font-size: 12px;
  color: var(--texto2);
  white-space: nowrap;
}
.btn-resultado {
  background: rgba(244,179,36,0.2);
  color: var(--dorado);
  border: 1px solid rgba(244,179,36,0.35);
  font-size: 13px;
  padding: 6px 14px;
}
.btn-resultado:hover { background: rgba(244,179,36,0.3); }

/* ---- STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-align: center;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 2px;
  color: var(--dorado);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--texto2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ---- LEADERBOARD ---- */
.leaderboard {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  overflow: hidden;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 1.5rem;
  border-bottom: 1px solid var(--borde);
  transition: background 0.15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-row.top1 { background: rgba(244,179,36,0.07); }
.lb-row.top2 { background: rgba(173,181,189,0.05); }
.lb-row.top3 { background: rgba(174,94,44,0.05); }
.lb-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  width: 30px;
  text-align: center;
  color: var(--gris);
}
.lb-pos.p1 { color: #FFD700; font-size: 24px; }
.lb-pos.p2 { color: #C0C0C0; font-size: 22px; }
.lb-pos.p3 { color: #CD7F32; font-size: 21px; }
.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.lb-nombre {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: var(--texto);
}
.lb-detalle {
  font-size: 12px;
  color: var(--texto2);
  text-align: right;
}
.lb-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--dorado);
  min-width: 55px;
  text-align: right;
}
.lb-pts-label {
  font-size: 10px;
  color: var(--texto2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- AUTH ---- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .icon { font-size: 48px; margin-bottom: 8px; display: block; }
.auth-logo h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--texto);
}
.auth-logo h1 span { color: var(--dorado); }
.auth-logo p { font-size: 14px; color: var(--texto2); margin-top: 4px; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input {
  width: 100%;
  background: var(--tarjeta2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--texto);
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--rojo2);
}
.form-group input::placeholder { color: var(--gris); }
.btn-auth {
  width: 100%;
  background: var(--rojo2);
  color: #fff;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}
.btn-auth:hover { background: var(--rojo); }
.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--texto2);
}
.auth-link a { color: var(--dorado); text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 1.2rem;
}
.alert-error { background: rgba(218,41,28,0.15); border: 1px solid rgba(218,41,28,0.35); color: #ff8a8a; }
.alert-success { background: rgba(0,150,152,0.15); border: 1px solid rgba(0,150,152,0.35); color: #22d3d4; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--borde);
  margin-top: 4rem;
  padding: 1.5rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 13px;
  color: var(--gris);
  flex-wrap: wrap;
}

/* ---- TOAST ---- */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--tarjeta2);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.ok { border-left: 4px solid #22d3d4; }
#toast.err { border-left: 4px solid var(--rojo2); }

/* ---- EMPTY STATE ---- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--gris); font-size: 15px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .nav-nombre { display: none; }
  .partido-cuerpo { gap: 8px; }
  .equipo-nombre { font-size: 14px; }
  .equipo-bandera { font-size: 22px; }
  .marcador-real { font-size: 26px; }
  .partido { padding: 1rem; }
  .lb-detalle { display: none; }
  .auth-card { padding: 1.8rem 1.4rem; }
}

/* ---- CONTADOR REGRESIVO ---- */
.contador {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.contador-alerta {
  background: rgba(244,179,36,0.12);
  color: var(--dorado);
  border: 1px solid rgba(244,179,36,0.3);
}
.contador-cerrado {
  background: rgba(218,41,28,0.12);
  color: #ff8a8a;
  border: 1px solid rgba(218,41,28,0.3);
}
.badge-cerrado {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(218,41,28,0.15);
  color: #ff8a8a;
  border: 1px solid rgba(218,41,28,0.3);
}


/* ============================================
   TABLA DE PRONÓSTICOS POR PARTIDO
   ============================================ */

/* Tabs de grupo */
.ptabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--borde);
}
.ptab {
  padding: 8px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--texto2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
}
.ptab:hover { color: var(--texto); }
.ptab.active { color: var(--dorado); border-bottom-color: var(--dorado); }

/* Wrapper */
.pron-table-wrap { margin-top: 0.5rem; }
.ptable-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--borde);
}

/* Tabla */
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ptable thead {
  background: var(--tarjeta2);
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Cabecera: columna de participante */
.ptable th.th-participante {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  white-space: nowrap;
  min-width: 160px;
  position: sticky;
  left: 0;
  background: var(--tarjeta2);
  z-index: 3;
}

/* Cabecera: columna de partido */
.ptable th.th-partido-col {
  text-align: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  min-width: 90px;
  max-width: 110px;
  vertical-align: bottom;
}
.ptable th.th-partido-col:last-child { border-right: none; }
.ptable th.th-jugado { background: rgba(0,150,152,0.08); }

.th-banderas { font-size: 18px; line-height: 1.3; }
.th-vs { font-size: 10px; color: var(--gris); vertical-align: middle; margin: 0 2px; }

.th-equipos {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.4;
  margin-top: 2px;
  gap: 1px;
}
.th-vs-text { font-size: 9px; color: var(--gris); }

.th-partido-meta {
  font-size: 10px;
  color: var(--gris);
  margin-top: 3px;
  white-space: nowrap;
}

.th-resultado {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--borde);
}

/* Filas */
.ptable tbody tr {
  border-bottom: 1px solid var(--borde);
  background: var(--tarjeta);
  transition: background 0.15s;
}
.ptable tbody tr:last-child { border-bottom: none; }
.ptable tbody tr:hover { background: rgba(255,255,255,0.03); }

/* Celda participante (fija a la izquierda) */
.ptable td.td-participante {
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
  border-right: 1px solid var(--borde);
  padding: 10px 14px;
  min-width: 160px;
}
.td-participante-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-participante-nombre {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Celda pronóstico */
.ptable td.td-pron {
  text-align: center;
  padding: 8px 6px;
  border-right: 1px solid var(--borde);
  vertical-align: middle;
}
.ptable td.td-pron:last-child { border-right: none; }

.pron-pill {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--texto);
  display: block;
  line-height: 1.2;
}
.pron-pts  { font-size: 12px; display: block; margin-top: 1px; }
.pron-vacio { color: var(--gris); font-size: 16px; }

/* Marcador y pills */
.marcador-pill {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--dorado);
  white-space: nowrap;
  display: block;
}
.pill-cerrado  { font-size: 14px; display: block; }
.pill-pendiente { font-size: 14px; color: var(--gris); display: block; }

/* Colores resultado */
.cel-exacto  { background: rgba(0,150,152,0.18) !important; }
.cel-ganador { background: rgba(244,179,36,0.12) !important; }
.cel-fallado { background: rgba(218,41,28,0.09) !important; }

/* Leyenda */
.color-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1rem;
  font-size: 12px;
}
.cl-item  { display: flex; align-items: center; gap: 5px; }
.cl-exacto  { color: #22d3d4; }
.cl-ganador { color: var(--dorado); }
.cl-fallado { color: #ff8a8a; }

/* ---- LOGOS DUO (Avianca + Consolidate) ---- */
.logos-duo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.logo-avianca {
  max-width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
}
.logo-consolidate {
  max-width: 150px;
  height: auto;
  display: block;
  opacity: 0.88;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
/* Separador visual entre los dos logos */
.logos-duo::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  order: 1; /* entre avianca y consolidate */
}
.logo-avianca { order: 0; }
.logo-consolidate { order: 2; }

.auth-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--dorado);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---- HOME LOGO ---- */
.home-logo-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}
.logos-duo-home .logo-avianca    { max-width: 280px; }
.logos-duo-home .logo-consolidate { max-width: 175px; }
.home-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--dorado);
  margin-top: 6px;
}

/* ---- FORM SELECT ---- */
.form-group select {
  width: 100%;
  background: var(--tarjeta2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--texto);
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  padding: 10px 14px;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d99ae' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select:focus {
  outline: none;
  border-color: var(--rojo2);
}
.form-group select option {
  background: #1E293B;
  color: var(--texto);
}

/* ---- NAV AVATAR LINK ---- */
.nav-avatar-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.nav-avatar-link:hover { opacity: 0.8; }

/* ---- NAV AGENCIA ---- */
.nav-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.nav-agencia {
  font-size: 11px;
  color: var(--gris);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .nav-user-info { display: none; }
}

/* ---- AUTOCOMPLETE AGENCIAS ---- */
.ac-wrap {
  position: relative;
}
.ac-wrap input[type="text"] {
  width: 100%;
  background: var(--tarjeta2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--texto);
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.ac-wrap input[type="text"]:focus {
  outline: none;
  border-color: var(--rojo2);
}
.ac-wrap input[type="text"]::placeholder { color: var(--gris); }
.ac-wrap input[type="text"].ac-ok  { border-color: var(--verde2); }
.ac-wrap input[type="text"].ac-err { border-color: var(--rojo2); }
.ac-lista {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--tarjeta2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  max-height: 210px;
  overflow-y: auto;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ac-lista.show { display: block; }
.ac-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--texto);
  cursor: pointer;
  border-bottom: 1px solid var(--borde);
  transition: background 0.12s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: rgba(244,179,36,0.1); }
.ac-item mark {
  background: transparent;
  color: var(--dorado);
  font-weight: 700;
}
.ac-vacio { color: var(--gris); cursor: default; font-style: italic; }
.ac-vacio:hover { background: transparent; }
.ac-hint {
  font-size: 12px;
  color: var(--gris);
  margin-top: 5px;
  display: block;
}
.ac-hint-ok  { color: var(--verde2) !important; }
.ac-hint-err { color: var(--rojo2)  !important; }

/* ---- LEADERBOARD AGENCIA ---- */
.lb-agencia {
  font-size: 11px;
  color: var(--gris);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}
