/* ================================================================
   Quiniela Mundial FIFA 2026 - Estilos Principales
   ================================================================ */

:root {
  --azul:    #003366;
  --azul-dark: #001e3c;
  --celeste: #00AEEF;
  --verde:   #00B140;
  --amarillo:#FFD700;
  --blanco:  #FFFFFF;
  --gris-bg: #f0f4f8;
  --gris-card:#ffffff;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 0px;
  --header-h: 64px;
  --border-radius: 12px;
  --shadow: 0 2px 12px rgba(0,51,102,.10);
  --shadow-lg: 0 8px 32px rgba(0,51,102,.16);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--gris-bg);
  color: #222;
  overflow-x: hidden;
  /* Compatibilidad cross-browser */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cross-browser: scroll suave en iOS */
.sidebar-nav,
.page-content { -webkit-overflow-scrolling: touch; overflow-y: auto; }

/* Cross-browser: focus visible (Firefox/Safari) */
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 2px; }

/* Cross-browser: select nativo */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* Cross-browser: ocultar flechas number input (Firefox) */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ----------------------------------------------------------------
   AUTH LAYOUT
   ---------------------------------------------------------------- */
.auth-body { background: linear-gradient(135deg, var(--azul) 0%, #0a1628 100%); }

.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-hero {
  flex: 1;
  background: linear-gradient(160deg, var(--azul) 0%, #0a1628 40%, #003366 70%, #00205c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,174,239,.15) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

.auth-hero::after {
  content: '⚽';
  position: absolute;
  font-size: 300px;
  opacity: .04;
  bottom: -80px;
  right: -60px;
  animation: spin 20s linear infinite;
}

@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
@keyframes spin  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.auth-hero-content { position:relative; z-index:1; text-align:center; color:white; }

.trophy-icon {
  font-size: 64px;
  color: var(--amarillo);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(255,215,0,.5));
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.auth-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.text-gold { color: var(--amarillo); }

.auth-hero-sub { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 20px; }

/* ---- Secciones de info en hero ---- */
.info-section {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: left;
}
.info-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.1);
}
.info-card:last-child { margin-bottom: 0; }
.info-card.gold-card  { border-color: rgba(255,215,0,.35); background: rgba(255,215,0,.08); }
.info-card.grey-card  { opacity: .6; }
.info-pts {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  min-width: 48px;
  text-align: center;
}
.gold-card .info-pts { color: var(--amarillo); }
.info-card strong { color: white; font-size: 14px; display: block; line-height: 1.2; }
.info-desc { color: rgba(255,255,255,.6); font-size: 12px; margin-top: 1px; }

/* ---- Steps list ---- */
.steps-list { display: flex; flex-direction: column; gap: 7px; }
.step-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: 13px;
}
.step-item strong { color: white; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--celeste);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- Fechas torneo ---- */
.tournament-dates {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65); font-size: 13px; margin-top: 14px;
}
.tournament-dates strong { color: rgba(255,255,255,.9); }

/* ---- Form Panel ---- */
.auth-form-panel {
  width: 460px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}
.auth-form-wrapper { width: 100%; max-width: 380px; }

.auth-form-header { text-align: center; margin-bottom: 4px; }
.auth-company-logo {
  display: block;
  margin: 0 auto 16px;
  max-height: 90px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}

.auth-form-title { font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:800; color:var(--azul); margin-bottom:4px; }
.auth-form-sub   { color:#666; font-size:14px; margin-bottom:24px; }

/* ---- Cuadro bancario BAC (login y registro) ---- */
.bank-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(227,6,19,.12);
  border: 2px solid rgba(227,6,19,.5);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.bank-logo { height: 38px; width: auto; flex-shrink: 0; border-radius: 5px; }
.bank-details { flex: 1; }
.bank-label   { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }
.bank-account { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: white; line-height: 1.1; }
.bank-account strong { color: #ff6b6b; font-size: 22px; }
.bank-amount  { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.bank-amount strong { color: #FFD700; }

/* Register - cuadro bancario */
.reg-bank-info {
  display: flex; align-items: center; gap: 12px;
  background: #fff0f0; border: 1.5px solid #E30613;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.reg-bank-logo { height: 36px; width: auto; flex-shrink: 0; border-radius: 4px; }
.reg-bank-data { flex: 1; }
.reg-bank-cuenta { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .5px; }
.reg-bank-num  { font-size: 18px; font-weight: 900; color: #E30613; font-family: 'Barlow Condensed', sans-serif; line-height: 1.2; }
.reg-bank-num strong { font-size: 20px; }

/* ---- Premios en login ---- */
.prizes-section {
  background: linear-gradient(135deg, rgba(255,215,0,.12) 0%, rgba(255,215,0,.04) 100%);
  border: 1.5px solid rgba(255,215,0,.45);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.prizes-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800;
  color: var(--amarillo);
  text-align: center; letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.prizes-subtitle {
  text-align: center; font-size: 12px;
  color: rgba(255,255,255,.65); margin-bottom: 12px;
}
.prizes-subtitle strong { color: var(--amarillo); }
.prizes-subtitle span   { opacity: .7; }

.prizes-podium {
  display: flex; align-items: flex-end;
  justify-content: center; gap: 8px; margin-bottom: 10px;
}
.prize-block {
  flex: 1; max-width: 100px;
  border-radius: 12px; padding: 10px 6px 8px;
  text-align: center; position: relative;
  transition: transform .2s;
}
.prize-block:hover { transform: translateY(-3px); }

.prize-gold   { background:linear-gradient(160deg,#b8860b,#ffd700); min-height:130px; border:1.5px solid rgba(255,215,0,.6); }
.prize-silver { background:linear-gradient(160deg,#555,#aaa);       min-height:108px; border:1.5px solid rgba(180,180,180,.5); }
.prize-bronze { background:linear-gradient(160deg,#7a4000,#cd7f32); min-height:95px;  border:1.5px solid rgba(205,127,50,.5); }

.prize-shine  { position:absolute; top:-8px; left:50%; transform:translateX(-50%); font-size:16px; animation:float 2s ease-in-out infinite; }
.prize-medal  { font-size: 24px; line-height: 1; margin-bottom: 2px; }
.prize-place  { font-size: 10px; font-weight: 700; color: rgba(0,0,0,.7); text-transform: uppercase; letter-spacing: .5px; }
.prize-pct    { font-family:'Barlow Condensed',sans-serif; font-size: 22px; font-weight: 900; color: white; text-shadow: 0 1px 4px rgba(0,0,0,.3); line-height: 1.1; }
.prize-amount { font-family:'Barlow Condensed',sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); margin-top: 2px; }

.prize-gold   .prize-place { color: rgba(0,0,0,.65); }
.prize-gold   .prize-pct   { font-size: 26px; }
.prize-gold   .prize-amount{ font-size: 14px; }

.prizes-nota {
  font-size: 11px; color: rgba(255,255,255,.55);
  text-align: center; line-height: 1.5; padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.prize-pool-block {
  border: 1.5px solid; border-radius: 10px;
  padding: 10px 10px 6px; margin-bottom: 8px;
}
.prize-pool-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-align: center; margin-bottom: 2px;
}
.prize-pool-sub {
  font-size: 11px; color: rgba(255,255,255,.6);
  text-align: center; margin-bottom: 8px;
}
.prize-pool-sub strong { color: rgba(255,255,255,.9); }
.prizes-podium-sm .prize-block  { min-height: 90px; }
.prizes-podium-sm .prize-gold   { min-height: 108px; }
.prizes-podium-sm .prize-pct    { font-size: 20px; }
.prizes-podium-sm .prize-amount { font-size: 11px; }

/* ---- Sección de pago en registro ---- */
.reg-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: #888; margin: 12px 0 8px;
}
.reg-payment-box {
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 1.5px solid #ffe082; border-radius: 12px;
  padding: 14px 16px; margin: 4px 0 14px;
}
.reg-payment-title {
  font-size: 15px; font-weight: 700; color: #5d4037; margin-bottom: 6px;
}
.reg-payment-title strong { color: #c8520a; font-size: 17px; }
.reg-payment-desc { font-size: 13px; color: #6d4c41; line-height: 1.5; }
.reg-payment-nota { display: block; margin-top: 6px; font-size: 12px; color: #8d6e63; }

/* ---- Resumen de puntos para móvil ---- */
.mobile-points-hint {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #888;
}
.mpb {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; color: var(--azul);
}
.mpb.gold { color: #c8a000; }

.auth-input {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  transition: var(--transition);
}
.auth-input:focus {
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(0,174,239,.15);
}

.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
}
.btn-eye:hover { color: var(--azul); }

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--azul) 0%, var(--celeste) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}
.btn-auth-submit:hover { transform:translateY(-2px); box-shadow: 0 8px 24px rgba(0,51,102,.3); }

.auth-divider { text-align:center; color:#999; font-size:13px; margin:8px 0; }

.btn-auth-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-auth-secondary:hover { background:var(--azul); color:white; }

.alert-sm { font-size: 13px; padding: 10px 14px; border-radius: 8px; }
.pass-requirements { font-size:12px; color:#888; }

/* ----------------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, var(--azul-dark) 0%, var(--azul) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo { display:flex; align-items:center; gap:10px; }
.sidebar-logo img { height:36px; width:36px; object-fit:contain; border-radius:6px; }

.sidebar-brand .brand-main {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.sidebar-brand .brand-sub {
  display: block;
  font-size: 10px;
  color: var(--amarillo);
  font-weight: 700;
  letter-spacing: 2px;
}

.sidebar-toggle { background:none; border:none; color:rgba(255,255,255,.6); font-size:18px; cursor:pointer; display:none; }

.sidebar-user {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--celeste), var(--verde));
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 16px; color: white; flex-shrink:0;
}
.user-name  { font-size:13px; font-weight:600; color:white; }
.user-role  { font-size:10px; text-transform:uppercase; letter-spacing:1px; }
.badge-role-admin        { color:var(--amarillo); }
.badge-role-participante { color:rgba(255,255,255,.6); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  list-style: none;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,.2); border-radius:4px; }

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 12px 20px 4px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 24px 24px 0;
  margin-right: 12px;
  transition: var(--transition);
}
.nav-item a:hover   { color:white; background:rgba(255,255,255,.1); }
.nav-item.active a  { color:white; background:rgba(0,174,239,.25); border-left:3px solid var(--celeste); padding-left:17px; }
.nav-item a i       { font-size: 18px; min-width: 20px; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.logout-btn:hover { color:white; background:rgba(255,0,0,.2); }
.logout-btn i { font-size:18px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}

/* ----------------------------------------------------------------
   MAIN WRAPPER & TOP NAVBAR
   ---------------------------------------------------------------- */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin var(--transition);
}

.top-navbar {
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.navbar-left { display:flex; align-items:center; gap:16px; }
.navbar-toggler { background:none; border:none; font-size:24px; cursor:pointer; color:var(--azul); display:none; }
.navbar-brand-area { gap: 8px; }
.navbar-brand-logo  { height: 32px; width: auto; object-fit: contain; filter: brightness(0); }
.navbar-title   { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:700; color:var(--azul); }

.navbar-right { display:flex; align-items:center; gap:16px; }
.navbar-date  { font-size:13px; color:#888; }

.navbar-notif {
  position: relative;
  cursor: pointer;
  color: #888;
  font-size: 22px;
  padding: 4px;
}
.navbar-notif:hover { color:var(--azul); }
.notif-badge {
  position:absolute; top:-4px; right:-4px;
  background:red; color:white; font-size:10px;
  width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

.navbar-user-btn {
  background:none; border:none; display:flex; align-items:center; gap:8px;
  cursor:pointer; padding:4px 8px; border-radius:8px;
}
.navbar-user-btn:hover { background:#f5f5f5; }
.navbar-avatar {
  width:36px; height:36px; border-radius:50%;
  background: linear-gradient(135deg, var(--azul), var(--celeste));
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:white;
}

/* ----------------------------------------------------------------
   PAGE CONTENT
   ---------------------------------------------------------------- */
.page-content {
  flex: 1;
  padding: 0;
}

.page-header {
  background: linear-gradient(135deg, var(--azul) 0%, #005fa3 100%);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-bottom: 24px;
}
.page-title { font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:800; margin:0; }
.page-sub   { font-size:14px; color:rgba(255,255,255,.7); margin:4px 0 0; }
.page-header-badge img { filter:drop-shadow(0 4px 12px rgba(0,0,0,.3)); }

.admin-header { background:linear-gradient(135deg, #1a0035 0%, #6200ea 100%); }

/* ----------------------------------------------------------------
   STATS GRID
   ---------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px 16px;
}

.stat-card {
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-blue   { background:linear-gradient(135deg, #003366, #0056b3); color:white; }
.stat-green  { background:linear-gradient(135deg, #006627, #00B140); color:white; }
.stat-yellow { background:linear-gradient(135deg, #7d5a00, #FFD700); color:white; }
.stat-teal   { background:linear-gradient(135deg, #00627d, #00AEEF); color:white; }

.stat-icon  { font-size:36px; opacity:.9; }
.stat-num   { font-family:'Barlow Condensed',sans-serif; font-size:42px; font-weight:800; line-height:1; }
.stat-label { font-size:13px; opacity:.85; font-weight:500; }
.stat-bg-icon {
  position:absolute; right:-10px; bottom:-10px;
  font-size:80px; opacity:.12; line-height:1;
}

/* ----------------------------------------------------------------
   MY STATS
   ---------------------------------------------------------------- */
.my-stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 0 12px 0 0;
}
.my-stat-card:last-child { margin-right: 0; }

.my-stat-icon { font-size: 28px; margin-bottom: 6px; }
.my-stat-val  { font-family:'Barlow Condensed',sans-serif; font-size:36px; font-weight:800; color:var(--azul); }
.my-stat-lbl  { font-size:12px; color:#888; text-transform:uppercase; letter-spacing:1px; }

/* ----------------------------------------------------------------
   CARD PANEL
   ---------------------------------------------------------------- */
.card-panel {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 0 24px 16px;
}

.card-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.card-panel-header h2 {
  font-family:'Barlow Condensed',sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--azul);
  margin: 0;
}
.btn-link-sm { font-size:13px; color:var(--celeste); text-decoration:none; font-weight:600; }
.btn-link-sm:hover { color:var(--azul); }

/* ----------------------------------------------------------------
   RANKING TABLE
   ---------------------------------------------------------------- */
.table-ranking { font-size: 14px; }
.table-ranking thead th { background:var(--azul); color:white; font-weight:600; border:none; }

.row-highlight { background: rgba(0,174,239,.06); }
.row-top3      { font-weight: 600; }

.medal { font-size:20px; }
.pos-num { display:inline-flex; width:24px; height:24px; align-items:center; justify-content:center;
  background:#f0f0f0; border-radius:50%; font-size:12px; font-weight:700; }

.participant-info { display:flex; align-items:center; gap:10px; }
.participant-avatar {
  width:32px; height:32px; border-radius:50%;
  background:linear-gradient(135deg, var(--azul), var(--celeste));
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:white; flex-shrink:0;
}
.participant-name { font-weight:600; font-size:13px; }
.participant-dept { font-size:11px; color:#888; }

.badge-exacto   { background:#FFF3CD; color:#856404; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-resultado{ background:#D1F2EB; color:#145a32; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-pts      { background:var(--azul); color:white;   padding:2px 10px; border-radius:20px; font-size:13px; font-weight:800; }

/* ----------------------------------------------------------------
   CHART CONTAINER
   ---------------------------------------------------------------- */
.chart-container { position:relative; }

/* ----------------------------------------------------------------
   MATCH MINI CARD
   ---------------------------------------------------------------- */
.match-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
}
.match-mini-card:last-child { border-bottom:none; }
.match-mini-date { font-size:11px; color:#888; min-width:50px; }
.match-mini-teams { display:flex; align-items:center; gap:8px; flex:1; }
.match-mini-team  { display:flex; align-items:center; gap:4px; font-size:12px; }
.match-mini-vs    { font-weight:800; color:#ccc; font-size:11px; }
.match-mini-score { font-family:'Barlow Condensed',sans-serif; font-size:18px; font-weight:800; }
.mini-flag        { width:20px; height:auto; border-radius:2px; }
.score-result     { color:var(--verde); font-size:16px; font-weight:800; }

/* ----------------------------------------------------------------
   MATCHES GRID (partidos/index.php)
   ---------------------------------------------------------------- */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.match-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.match-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.match-card.en_juego { border: 2px solid #dc3545; }

.match-card-header {
  padding: 10px 14px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.match-badge-fase  { font-size:11px; background:#e8f4fd; color:var(--azul); border-radius:20px; padding:2px 8px; font-weight:600; }
.match-badge-grupo { font-size:11px; background:#f0fff0; color:var(--verde); border-radius:20px; padding:2px 8px; font-weight:600; }

.match-status { margin-left:auto; font-size:11px; font-weight:700; padding:2px 8px; border-radius:20px; }
.status-pendiente  { background:#fff3cd; color:#856404; }
.status-en_juego   { background:#fdecea; color:#c0392b; animation:blink-bg 1.5s ease-in-out infinite; }
.status-finalizado { background:#d4edda; color:#155724; }
@keyframes blink-bg { 0%,100%{opacity:1} 50%{opacity:.7} }

.match-datetime { font-size:12px; color:#888; padding:6px 14px; }

.match-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
}

.match-team       { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.match-team-visit { align-items:center; }
.team-flag        { width:56px; height:auto; border-radius:4px; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.team-name        { font-weight:700; font-size:13px; color:var(--azul); }
.team-code        { font-size:11px; color:#888; }

.match-score-center { text-align:center; }

.match-final-score  { display:flex; align-items:center; gap:4px; justify-content:center; }
.score-num          { font-family:'Barlow Condensed',sans-serif; font-size:36px; font-weight:800; color:var(--azul); }
.score-sep          { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:400; color:#ccc; }
.score-label        { font-size:10px; color:#888; text-transform:uppercase; letter-spacing:2px; }

.match-live-score   { display:flex; align-items:center; gap:4px; justify-content:center; }
.live-sep           { color:#dc3545; animation:blink-bg 1s infinite; }
.live-indicator     { display:flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:#dc3545; justify-content:center; }
.live-dot           { width:8px; height:8px; border-radius:50%; background:#dc3545; animation:blink-bg .8s infinite; }

.match-vs { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:800; color:#ccc; }

.match-venue { font-size:11px; color:#888; padding:6px 14px 10px; display:flex; align-items:center; gap:4px; }

.match-card-footer { padding:0 14px 14px; }
.btn-pronosticar {
  display:block; text-align:center; padding:8px;
  background:linear-gradient(135deg, var(--azul), var(--celeste));
  color:white; border-radius:8px; text-decoration:none;
  font-size:13px; font-weight:600; transition:var(--transition);
}
.btn-pronosticar:hover { opacity:.9; color:white; }

.filter-badge { padding:6px 14px; border-radius:20px; font-size:13px; font-weight:600; }
.badge-pending  { background:#fff3cd; color:#856404; }
.badge-playing  { background:#fdecea; color:#c0392b; }
.badge-finished { background:#d4edda; color:#155724; }

.empty-state { text-align:center; padding:60px 24px; color:#888; }
.empty-state i { font-size:64px; display:block; margin-bottom:16px; color:#ccc; }

/* ----------------------------------------------------------------
   PREDICTIONS (pronósticos)
   ---------------------------------------------------------------- */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.prediction-card {
  background: linear-gradient(160deg, #f8fbff 0%, white 100%);
  border-radius: var(--border-radius);
  border: 1.5px solid #e0ecf8;
  padding: 16px;
  transition: var(--transition);
}
.prediction-card:hover { border-color:var(--celeste); box-shadow:0 4px 16px rgba(0,174,239,.15); }
.prediction-closed { background:#f9f9f9; opacity:.8; }

.pred-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.pred-date   { font-size:12px; color:var(--azul); font-weight:600; }
.pred-venue  { font-size:11px; color:#888; }

.pred-teams-row { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; }
.pred-team       { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.pred-team-right { align-items:center; }
.pred-flag       { width:44px; height:auto; border-radius:3px; box-shadow:0 2px 6px rgba(0,0,0,.12); }
.pred-team-name  { font-size:12px; font-weight:700; color:var(--azul); }

.pred-inputs { display:flex; align-items:center; gap:8px; }
.pred-vs     { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:800; color:#ccc; }

.score-input {
  width: 52px; height: 52px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  border: 2px solid #e0ecf8;
  border-radius: 10px;
  color: var(--azul);
  transition: var(--transition);
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.score-input:focus { border-color:var(--celeste); box-shadow:0 0 0 3px rgba(0,174,239,.15); outline:none; }

.score-locked {
  width:52px; height:52px; display:flex; align-items:center; justify-content:center;
  background:#f0f0f0; border-radius:10px;
  font-family:'Barlow Condensed',sans-serif; font-size:28px; font-weight:800; color:#999;
}

.pred-saved-badge {
  margin-top:10px; background:#d4edda; color:#155724;
  border-radius:6px; padding:4px 10px; font-size:11px; font-weight:600;
  display:flex; align-items:center;
}

.btn-guardar-prons {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--verde), #00d44d);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-guardar-prons:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,177,64,.4); }

.alert-info-custom {
  background:#e8f4fd; color:var(--azul); border-radius:10px;
  padding:14px 18px; font-size:14px; margin:0 24px 16px;
}

/* Banners cierre/deadline de pronósticos */
.alert-deadline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: linear-gradient(135deg,#fff8e1,#fffde7);
  border: 1.5px solid #ffe082; border-radius: 10px;
  padding: 12px 18px; margin: 0 24px 16px;
  font-size: 14px; color: #5d4037;
}
.alert-deadline strong { color: #c8520a; }
.deadline-timer { font-family:'Barlow Condensed',sans-serif; font-size:15px; font-weight:700; color:#c8520a; }

.alert-cierre {
  display: flex; align-items: center;
  background: linear-gradient(135deg,#fce4e4,#fdecea);
  border: 1.5px solid #ef9a9a; border-radius: 10px;
  padding: 12px 18px; margin: 0 24px 16px;
  font-size: 14px; color: #b71c1c;
}

/* History badges */
.score-badge { background:#f0f4f8; padding:2px 8px; border-radius:20px; font-weight:700; font-size:13px; }
.score-real  { background:#d4edda; color:#155724; }
.badge-pts-exact  { background:#fff3cd; color:#856404; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-pts-result { background:#d1f2eb; color:#145a32; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-pts-none   { background:#f0f0f0; color:#888;   padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }

/* ----------------------------------------------------------------
   POSICIONES - PODIUM
   ---------------------------------------------------------------- */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  padding: 0 24px;
}
.podium-place { display:flex; flex-direction:column; align-items:center; gap:4px; }
.podium-avatar {
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(135deg, var(--azul), var(--celeste));
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; color:white; border:2px solid white;
  box-shadow:0 4px 16px rgba(0,51,102,.2);
}
.podium-avatar-1 {
  width:64px; height:64px; font-size:26px;
  background:linear-gradient(135deg, #FFD700, #FFA500); color:var(--azul);
  border:3px solid #FFD700;
}
.podium-crown { font-size:28px; }
.podium-name  { font-size:13px; font-weight:700; color:var(--azul); }
.podium-pts   { font-size:12px; color:#888; }
.podium-block {
  display:flex; align-items:center; justify-content:center;
  border-radius:8px 8px 0 0; font-weight:800; color:white; font-size:13px;
}
.podium-block-1 { width:100px; height:80px; background:linear-gradient(180deg, #FFD700, #FFA500); color:var(--azul); }
.podium-block-2 { width:90px; height:60px; background:linear-gradient(180deg, #a8a8a8, #787878); }
.podium-block-3 { width:90px; height:48px; background:linear-gradient(180deg, #cd7f32, #8B4513); }

.pos-medal  { font-size:22px; }
.pos-number { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center;
  background:#f0f0f0; border-radius:50%; font-weight:700; font-size:13px; }
.pts-big    { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:800; color:var(--azul); }
.pts-leader { color:var(--amarillo); text-shadow:0 0 12px rgba(255,215,0,.5); }

/* ----------------------------------------------------------------
   ADMIN QUICK ACTIONS
   ---------------------------------------------------------------- */
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f5f8ff;
  border: 1.5px solid #e0ecf8;
  border-radius: 10px;
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.quick-action-btn:hover  { background:var(--azul); color:white; border-color:var(--azul); }
.quick-action-btn.success:hover { background:var(--verde); border-color:var(--verde); }
.quick-action-btn.info:hover    { background:var(--celeste); border-color:var(--celeste); }
.quick-action-btn.secondary:hover { background:#6c757d; border-color:#6c757d; }

.mini-rank-row {
  display:flex; align-items:center; gap:10px; padding:8px 0;
  border-bottom:1px solid #f5f5f5;
}
.mini-rank-row:last-child { border-bottom:none; }
.mini-pos { font-size:20px; min-width:28px; }
.mini-rank-avatar { width:32px; height:32px; border-radius:50%;
  background:linear-gradient(135deg, var(--azul),var(--celeste));
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:white; }
.mini-rank-info { flex:1; }
.mini-rank-name { font-size:13px; font-weight:600; }
.mini-rank-dept { font-size:11px; color:#888; }
.mini-pts { font-family:'Barlow Condensed',sans-serif; font-size:18px; font-weight:800; color:var(--azul); }

/* ----------------------------------------------------------------
   REPORT EXPORT CARDS
   ---------------------------------------------------------------- */
.report-export-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
  min-height: 100px;
}
.report-export-card i    { font-size: 32px; }
.report-export-card span { font-size: 14px; }
.report-export-card small{ font-size: 11px; opacity:.8; }
.report-export-card.excel{ background:#e8f5e9; color:#1b5e20; border:1.5px solid #a5d6a7; }
.report-export-card.excel:hover { background:#1b5e20; color:white; }
.report-export-card.pdf  { background:#fdecea; color:#b71c1c; border:1.5px solid #ef9a9a; }
.report-export-card.pdf:hover   { background:#b71c1c; color:white; }

/* ----------------------------------------------------------------
   STATUS BADGES (admin table)
   ---------------------------------------------------------------- */
.status-badge-pendiente  { background:#fff3cd; color:#856404; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.status-badge-en_juego   { background:#fdecea; color:#c0392b; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.status-badge-finalizado { background:#d4edda; color:#155724; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.blink { animation:blink-bg 1s ease-in-out infinite; }

/* ----------------------------------------------------------------
   TRANSPARENCIA
   ---------------------------------------------------------------- */
.transp-banner {
  display:flex; align-items:flex-start; gap:14px;
  background:linear-gradient(135deg,#e8f5e9,#f1f8e9);
  border:1.5px solid #a5d6a7; border-radius:12px;
  padding:14px 18px; margin:0 24px 16px; color:#1b5e20;
}
.transp-banner-icon { font-size:28px; color:#2e7d32; flex-shrink:0; margin-top:2px; }
.transp-banner-title { font-weight:700; font-size:15px; margin-bottom:4px; }
.transp-banner-sub   { font-size:13px; opacity:.8; }

.transp-leyenda {
  display:flex; flex-wrap:wrap; gap:10px 18px;
  padding:8px 24px 14px; font-size:12px; color:#555;
}
.leyenda-item { display:flex; align-items:center; gap:6px; }

/* Celdas de pronóstico */
.tc-exact   { background:#c8e6c9; color:#1b5e20; border-radius:6px; padding:2px 6px; font-weight:700; font-size:13px; }
.tc-result  { background:#fff9c4; color:#f57f17; border-radius:6px; padding:2px 6px; font-weight:700; font-size:13px; }
.tc-wrong   { background:#ffcdd2; color:#b71c1c; border-radius:6px; padding:2px 6px; font-weight:700; font-size:13px; }
.tc-pending { background:#e3f2fd; color:#1565c0; border-radius:6px; padding:2px 6px; font-weight:700; font-size:13px; }
.tc-live    { background:#fff3e0; color:#e65100; border-radius:6px; padding:2px 6px; font-weight:700; font-size:13px; animation:pulse 1.5s ease-in-out infinite; }
.tc-none    { color:#bbb; font-size:14px; }

/* Tabla matriz */
.transp-table-wrap {
  overflow-x:auto; overflow-y:visible;
  margin:0 24px 12px;
  border:1px solid #e0e0e0; border-radius:12px;
  max-height:70vh; overflow-y:auto;
}
.transp-table {
  width:max-content; min-width:100%;
  border-collapse:separate; border-spacing:0;
  font-size:12px;
}
.transp-table thead th { position:sticky; top:0; background:white; z-index:10; }
.transp-table thead tr:nth-child(2) th { top:56px; }

/* Columna sticky de participante */
.th-sticky, .td-sticky {
  position:sticky; left:0; z-index:8; background:white;
  border-right:2px solid #e0e0e0;
  min-width:160px;
}
.th-sticky { z-index:12 !important; }

.th-participante { padding:8px 12px; font-size:13px; }
.th-partido-grupo {
  text-align:center; padding:4px 6px; min-width:72px; max-width:80px;
  border-left:1px solid #f0f0f0;
}
.th-grupo-badge {
  display:inline-block; background:var(--azul); color:white;
  border-radius:4px; padding:1px 5px; font-size:10px; font-weight:700; margin-bottom:2px;
}
.th-fecha { font-size:10px; color:#555; line-height:1.2; }
.th-hora  { font-size:11px; font-weight:700; color:var(--azul); }

.th-partido-teams { text-align:center; padding:4px 2px; border-left:1px solid #f0f0f0; vertical-align:middle; }
.th-teams-row { display:flex; align-items:center; justify-content:center; gap:3px; margin-bottom:3px; }
.th-flag { width:18px; height:auto; border-radius:2px; }
.th-vs   { font-size:9px; color:#999; }
.th-result-real { font-size:11px; font-weight:800; color:var(--azul); }
.badge-final-sm { background:#d4edda; color:#155724; font-size:9px; padding:1px 4px; border-radius:4px; font-weight:600; }
.live-text { color:#e65100 !important; }
.live-dot-sm { display:inline-block; width:6px; height:6px; background:#e65100; border-radius:50%; animation:pulse 1s ease-in-out infinite; }

.th-total { text-align:center; padding:6px 8px; min-width:50px; background:#f9f9f9; border-left:2px solid #e0e0e0; font-size:11px; }

/* Filas */
.transp-row:nth-child(even) td { background:#fafafa; }
.transp-row:nth-child(even) .td-sticky { background:#fafafa; }
.transp-row-me td { background:#e8f4fd !important; }
.transp-row-me .td-sticky { background:#e8f4fd !important; }

.td-sticky { padding:6px 10px; }
.td-part-inner { display:flex; align-items:center; gap:8px; }
.td-avatar {
  width:28px; height:28px; border-radius:50%; background:var(--azul);
  color:white; font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.td-nombre  { font-weight:600; font-size:12px; line-height:1.2; }
.td-empresa { font-size:10px; color:#888; }
.badge-yo   { background:var(--celeste); color:white; font-size:9px; padding:1px 5px; border-radius:8px; font-weight:700; margin-left:4px; }

.td-pred {
  text-align:center; padding:5px 3px; min-width:72px;
  border-left:1px solid #f0f0f0; vertical-align:middle;
}
.has-pred { }
.pts-mini { display:block; font-size:9px; color:#888; margin-top:1px; }

.td-total {
  text-align:center; font-weight:700; font-size:14px;
  border-left:2px solid #e0e0e0; min-width:50px;
  background:#f9f9f9;
}
.pts-positivo .td-total, td.td-total.pts-positivo { color:var(--azul); }
.cap-completo { color:#2e7d32; font-weight:700; font-size:12px; }
.cap-parcial  { color:#888; font-size:12px; }

/* Barra de búsqueda */
.transp-search-bar {
  display:flex; align-items:center;
  margin:8px 24px 20px; gap:6px;
}

/* ----------------------------------------------------------------
   PROFILE
   ---------------------------------------------------------------- */
.profile-card       { text-align:center; }
.profile-avatar-big {
  width:80px; height:80px; border-radius:50%;
  background:linear-gradient(135deg, var(--azul), var(--celeste));
  display:flex; align-items:center; justify-content:center;
  font-size:36px; font-weight:800; color:white;
  margin:0 auto 12px; box-shadow:0 4px 16px rgba(0,51,102,.25);
}
.profile-name      { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:800; color:var(--azul); margin-bottom:4px; }
.profile-meta      { font-size:13px; color:#666; margin-bottom:4px; }
.profile-stats-row { display:flex; justify-content:space-around; padding-top:8px; }
.profile-stat span { font-family:'Barlow Condensed',sans-serif; font-size:28px; font-weight:800; color:var(--azul); display:block; }
.profile-stat small{ font-size:11px; color:#888; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.page-footer {
  background:white; border-top:1px solid #e8ecf0;
  padding:12px 24px; font-size:12px; color:#888;
  display:flex; align-items:center;
}

/* ----------------------------------------------------------------
   DATATABLES OVERRIDES
   ---------------------------------------------------------------- */
.dataTables_wrapper .dataTables_filter input { border-radius:8px; border:1.5px solid #e0e0e0; }
.dataTables_wrapper .dataTables_length select { border-radius:8px; border:1.5px solid #e0e0e0; }
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active .page-link { background:var(--azul); border-color:var(--azul); }
.page-link { color:var(--azul); }

/* ----------------------------------------------------------------
   SMTP CONFIG (admin)
   ---------------------------------------------------------------- */
.smtp-guide {
  background: #f0f8ff; border: 1.5px solid #b3d7f0;
  border-radius: 10px; padding: 14px 18px;
}
.smtp-guide-title {
  font-weight: 700; font-size: 14px; color: #003366; margin-bottom: 10px;
}
.smtp-guide-steps {
  margin: 0; padding-left: 20px;
  font-size: 13px; color: #444; line-height: 1.8;
}
.smtp-guide-steps li strong { color: #003366; }

.smtp-status {
  font-size: 13px; padding: 10px 14px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.smtp-status-ok   { background:#e8f5e9; color:#1b5e20; }
.smtp-status-warn { background:#fff8e1; color:#5d4037; }

/* ================================================================
   RESPONSIVE — 5 BREAKPOINTS
   1024 · 900 · 768 · 600 · 480 · 360
   ================================================================ */

/* ── Base global: touch-friendly scrolling ──────────────────── */
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: rgba(0,0,0,.08); }
.table-responsive,
.transp-table-wrap,
.dataTables_wrapper { -webkit-overflow-scrolling: touch; }

/* Inputs y botones: mínimo 44px de altura (WCAG / Apple HIG) */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select.form-select,
.form-control,
.score-input,
.btn,
.btn-auth-submit,
.btn-auth-secondary,
.btn-guardar-prons { min-height: 44px; }

/* Inputs numéricos: evitar zoom en iOS (font-size < 16px lo provoca) */
input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
.form-control,
select.form-select { font-size: 16px !important; }

/* ── 1024px — Laptops / tablets horizontales ────────────────── */
@media (max-width: 1024px) {
  .stats-grid           { grid-template-columns: repeat(2, 1fr); }
  .matches-grid         { grid-template-columns: repeat(2, 1fr); }
  .predictions-grid     { grid-template-columns: repeat(2, 1fr); }
  .auth-form-panel      { width: 420px; }
  .navbar-brand-area .navbar-title { font-size: 17px; }
}

/* ── 900px — Tablet intermedio ──────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 240px; }
  .main-wrapper { margin-left: var(--sidebar-w); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .matches-grid     { grid-template-columns: 1fr; }
  .predictions-grid { grid-template-columns: 1fr; }
  .row.g-3 > .col-lg-7,
  .row.g-3 > .col-lg-5 { flex: 0 0 100%; max-width: 100%; }
  .podium-container { transform: scale(.9); transform-origin: center bottom; }
}

/* ── 768px — Tablet portrait / móvil grande ────────────────── */
@media (max-width: 768px) {
  /* Sidebar */
  .sidebar          { transform: translateX(-100%); width: var(--sidebar-w); }
  .sidebar.open     { transform: translateX(0); }
  .sidebar-toggle   { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main-wrapper     { margin-left: 0; }

  /* Navbar */
  .navbar-toggler       { display: flex; }
  .navbar-brand-area    { gap: 6px; }
  .navbar-brand-logo    { height: 26px; }
  .navbar-brand-area .navbar-title { font-size: 15px; }
  .navbar-date          { display: none !important; }

  /* Page header */
  .page-header          { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .page-title           { font-size: 22px; }
  .page-sub             { font-size: 13px; }
  .page-header-badge    { display: none; }

  /* Cards y paneles */
  .card-panel           { margin: 0 12px 12px; }
  .card-panel-header h2 { font-size: 16px; }

  /* Stats */
  .stats-grid           { grid-template-columns: repeat(2, 1fr); padding: 0 12px 12px; gap: 10px; }
  .stat-card            { padding: 14px; gap: 10px; }
  .stat-num             { font-size: 28px !important; }
  .stat-label           { font-size: 11px; }
  .my-stat-card         { padding: 14px 10px; }

  /* Partidos / Calendario */
  .matches-grid         { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .match-card           { padding: 14px; }
  .team-flag            { width: 40px; }
  .team-name            { font-size: 12px; }
  .match-score-center .match-final-score .score-num,
  .match-score-center .match-live-score  .score-num { font-size: 28px; }

  /* Pronósticos */
  .predictions-grid     { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .prediction-card      { padding: 14px; }
  .score-input          { width: 52px; height: 52px; font-size: 22px; }
  .btn-guardar-prons    { font-size: 16px; padding: 14px 20px; }
  .alert-deadline,
  .alert-cierre         { margin: 0 12px 12px; }
  .alert-info-custom    { margin: 0 12px 12px; }

  /* Auth */
  .auth-container       { flex-direction: column; }
  .auth-hero            { min-height: auto; padding: 20px 16px; }
  .auth-hero-title      { font-size: 36px; margin-bottom: 6px; }
  .auth-hero-sub        { font-size: 14px; margin-bottom: 12px; }
  .info-section         { padding: 10px 12px; }
  .auth-form-panel      { width: 100%; padding: 24px 16px; }
  .auth-form-wrapper    { max-width: 100%; }
  .auth-company-logo    { max-height: 65px; max-width: 180px; }
}

/* ── Transparencia: módulo bloqueado ──────────────────────────────── */
.nav-item-locked a,
.nav-link-locked {
  opacity: .42;
  cursor: not-allowed !important;
  pointer-events: none;
}
.nav-item-locked .nav-lock-hint {
  display: block;
  font-size: 10px;
  opacity: .8;
  margin-top: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

.transp-locked-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  padding: 32px 16px;
}
.transp-locked-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.transp-locked-icon {
  font-size: 52px;
  color: #6c757d;
  margin-bottom: 16px;
}
.transp-locked-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.transp-locked-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.transp-locked-date {
  background: rgba(255,193,7,.12);
  border: 1px solid rgba(255,193,7,.35);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #ffc107;
  margin-bottom: 8px;
}
.transp-locked-countdown {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
  .mobile-points-hint   { display: block; }

  /* Posiciones / podio */
  .podium-container     { transform: scale(.8); transform-origin: center bottom; margin-bottom: -20px; }
  .podium-block-1       { height: 100px; }
  .podium-block-2, .podium-block-3 { height: 70px; }

  /* Tablas — scroll horizontal */
  .table-responsive     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table               { min-width: 520px; }
  .dataTables_wrapper  { overflow-x: auto; }

  /* Transparencia */
  .transp-banner        { margin: 0 12px 12px; padding: 12px 14px; }
  .transp-leyenda       { padding: 6px 12px 12px; gap: 8px 12px; font-size: 11px; }
  .transp-table-wrap    { margin: 0 12px 12px; max-height: 60vh; }
  .transp-search-bar    { margin: 6px 12px 16px; }
  .th-sticky, .td-sticky { min-width: 130px; }

  /* Formularios admin */
  .row.g-2 > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
  .card-panel form .row.g-2 > .col-md-2,
  .card-panel form .row.g-2 > .col-md-3,
  .card-panel form .row.g-2 > .col-md-4 { flex: 0 0 100%; max-width: 100%; }

  /* Filtros */
  .filter-badge { font-size: 11px; padding: 4px 10px; }
}

/* ── 600px — Móvil mediano ──────────────────────────────────── */
@media (max-width: 600px) {
  /* Stats: 2 columnas compactas */
  .stats-grid           { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 10px 10px; }
  .stat-card            { padding: 12px; gap: 8px; }
  .stat-bg-icon         { display: none; }

  /* Mis estadísticas: 2×2 */
  .col-md-3.col-6       { flex: 0 0 50%; max-width: 50%; }
  .my-stat-card         { padding: 12px 8px; }
  .my-stat-val          { font-size: 26px; }

  /* Navbar más compacto */
  .top-navbar           { height: 52px; padding: 0 12px; }
  .navbar-brand-logo    { height: 22px; }
  .navbar-brand-area .navbar-title { display: none; }

  /* Match cards: layout compacto */
  .match-card           { padding: 12px; }
  .match-datetime       { font-size: 11px; }
  .match-venue          { font-size: 11px; }
  .team-flag            { width: 36px; }
  .team-name            { font-size: 11px; }
  .team-code            { font-size: 9px; }

  /* Prediction cards */
  .pred-teams-row       { gap: 6px; }
  .pred-flag            { width: 36px; height: 36px; }
  .pred-team-name       { font-size: 11px; }
  .score-input          { width: 48px; height: 48px; font-size: 20px; }

  /* Auth: hero mínimo */
  .auth-hero-title      { font-size: 30px; }
  .info-section         { font-size: 12px; }
  .step-num             { width: 20px; height: 20px; font-size: 12px; }
  .auth-flags           { gap: 4px; }
  .auth-flag            { width: 22px; }

  /* Podio: más pequeño */
  .podium-container     { transform: scale(.7); transform-origin: center bottom; margin-bottom: -40px; }

  /* Transparencia: ajuste de columnas */
  .th-sticky, .td-sticky { min-width: 110px; }
  .td-pred              { min-width: 60px; }
  .tc-exact, .tc-result, .tc-wrong,
  .tc-pending, .tc-live { font-size: 11px; padding: 1px 4px; }

  /* Posiciones: tabla con scroll */
  #tablaRanking,
  .table-ranking-full   { min-width: 600px; }
  .participant-info     { gap: 6px; }
  .participant-avatar   { width: 28px; height: 28px; font-size: 12px; }
  .participant-name     { font-size: 12px; }
  .participant-dept     { font-size: 10px; }

  /* Page */
  .page-title           { font-size: 20px; }
  .card-panel           { margin: 0 10px 10px; border-radius: 10px; }

  /* Botones de acción */
  .btn-pronosticar      { font-size: 13px; padding: 8px 16px; }
}

/* ── 480px — Móvil pequeño ──────────────────────────────────── */
@media (max-width: 480px) {
  /* Layout general */
  .page-header          { padding: 12px; }
  .page-title           { font-size: 18px; }
  .card-panel           { margin: 0 8px 10px; padding: 0; border-radius: 8px; }
  .card-panel-header    { padding: 12px 14px; }
  .card-panel-header h2 { font-size: 14px; }

  /* Stats: full 2 cols */
  .stats-grid           { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 8px 8px; }
  .stat-num             { font-size: 24px !important; }

  /* Navbar */
  .top-navbar           { height: 48px; padding: 0 10px; }
  .navbar-user .dropdown-toggle span { display: none; }

  /* Score inputs grandes para dedos */
  .score-input          { width: 44px; height: 44px; font-size: 18px; border-radius: 8px; }
  .pred-vs              { font-size: 18px; }

  /* Auth */
  .auth-hero            { padding: 16px 12px; }
  .auth-hero-title      { font-size: 28px; }
  .auth-form-panel      { padding: 20px 12px; }
  .btn-auth-submit,
  .btn-auth-secondary   { font-size: 16px; padding: 13px; }
  .info-card            { padding: 7px 10px; gap: 10px; }
  .info-pts             { font-size: 18px; min-width: 38px; }

  /* Partidos */
  .match-card-header    { flex-wrap: wrap; gap: 4px; }
  .match-status         { font-size: 10px; }
  .match-badge-fase,
  .match-badge-grupo    { font-size: 10px; }

  /* Posiciones: podio muy compacto */
  .podium-container     { transform: scale(.65); transform-origin: center bottom; margin-bottom: -55px; }
  .podium-name          { font-size: 11px; }
  .podium-pts           { font-size: 12px; }

  /* Transparencia */
  .transp-banner        { margin: 0 8px 10px; flex-direction: column; gap: 8px; }
  .transp-banner-icon   { font-size: 22px; }
  .transp-banner-title  { font-size: 13px; }
  .transp-table-wrap    { margin: 0 8px 10px; max-height: 55vh; border-radius: 8px; }
  .th-sticky, .td-sticky { min-width: 100px; }
  .th-partido-grupo     { min-width: 62px; }
  .td-pred              { min-width: 54px; padding: 4px 2px; }
  .transp-leyenda       { padding: 4px 8px 10px; }

  /* Formularios: full width en todos */
  .row.g-3 > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .form-floating label  { font-size: 14px; }

  /* Botones */
  .btn, .btn-sm         { font-size: 13px; }
  .btn-guardar-prons    { font-size: 15px; padding: 13px; }
}

/* ── 360px — Móviles muy pequeños (Galaxy, iPhone SE) ──────── */
@media (max-width: 360px) {
  .stats-grid           { grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 6px 6px; }
  .stat-card            { padding: 10px 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .stat-num             { font-size: 22px !important; }
  .stat-label           { font-size: 10px; }
  .match-teams-row      { gap: 4px; }
  .team-flag            { width: 30px; }
  .team-name            { font-size: 10px; }
  .score-input          { width: 40px; height: 40px; font-size: 16px; }
  .auth-hero-title      { font-size: 26px; }
  .page-title           { font-size: 17px; }
  .card-panel           { margin: 0 6px 8px; }
  .podium-container     { transform: scale(.6); transform-origin: center bottom; margin-bottom: -65px; }
  .navbar-brand-area    { display: none !important; }
  .th-sticky, .td-sticky { min-width: 88px; }
}
