/* ============================================================
   ASADAZOS — hoja de estilos única.
   Base neutra (gris/carbón) + el verde reservado como acento
   de marca (botones, iconos, estados). Cambiando estas
   variables cambia el color de TODA la aplicación.
   ============================================================ */
:root {
  --fondo-950: #0B0D11;
  --fondo-900: #111319;
  --gris-850: #161920;
  --gris-800: #1B1F27;
  --gris-700: #242933;

  --verde-marca: #1FA262;
  --verde-brillo: #34D399;

  --panel: #14161C;
  --panel-alto: #1A1D24;
  --borde: rgba(255, 255, 255, 0.07);
  --borde-fuerte: rgba(255, 255, 255, 0.14);

  --texto: #ECEEF1;
  --texto-tenue: #98A0AB;
  --texto-suave: #626973;

  --amarillo: #FACC15;
  --naranja: #F97316;
  --rojo: #E9584F;
  --azul: #38BDF8;
  --rosa: #F472B6;

  --radio: 14px;
  --radio-sm: 9px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.4);
  --ancho: 1180px;
  --fuente: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background:
    radial-gradient(1000px 520px at 18% -10%, rgba(31, 162, 98, 0.07) 0%, transparent 60%),
    radial-gradient(800px 460px at 100% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 55%),
    var(--fondo-950);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--verde-brillo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.2; letter-spacing: .2px; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.text-tenue { color: var(--texto-tenue); }
.text-chico { font-size: .82rem; }
.centrado { text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ iconos SVG */
.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.btn .ic, button .ic { vertical-align: -2px; }
.panel-header > .ic:first-child { color: var(--verde-brillo); }

/* ------------------------------------------------------------ navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 11, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.navbar-inner {
  display: flex; align-items: center; gap: 14px;
  height: 60px; max-width: var(--ancho); margin: 0 auto; padding: 0 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-weight: 800; font-size: 1.2rem; letter-spacing: 1px;
  color: #fff; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .fuego { color: var(--verde-brillo); display: flex; flex: 0 0 auto; }
.logo b { color: var(--verde-brillo); }
.logo .palabra {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--texto-tenue); padding: 8px 12px; border-radius: var(--radio-sm);
  font-size: .9rem; font-weight: 600;
}
.nav-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-links a.activo { background: var(--verde-marca); color: #fff; }
.nav-user {
  display: flex; align-items: center; gap: 8px; padding-left: 10px;
  border-left: 1px solid var(--borde);
}
.nav-user a[title="Salir"] { color: var(--texto-tenue); display: flex; padding: 4px; }
.nav-user a[title="Salir"]:hover { color: var(--rojo); }

/* ------------------------------------------------------------ avatar */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--verde-marca), #12703F);
  color: #fff; font-weight: 700; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--borde-fuerte); flex: 0 0 auto;
}
.avatar.chico { width: 26px; height: 26px; font-size: .66rem; }
.avatar.grande { width: 64px; height: 64px; font-size: 1.3rem; }

/* ------------------------------------------------------------ paneles */
.panel {
  background: linear-gradient(180deg, var(--panel-alto), var(--panel));
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--borde);
  background: rgba(0, 0, 0, .18);
  font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .8px;
}
.panel-header .der { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.panel-body { padding: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-principal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--radio-sm); border: 1px solid transparent;
  background: var(--verde-marca); color: #fff; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: filter .15s ease, transform .05s ease;
  font-family: inherit; text-decoration: none;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-fantasma { background: transparent; border-color: var(--borde-fuerte); color: var(--texto); }
.btn-fantasma:hover { background: rgba(255, 255, 255, .07); }
.btn-rojo { background: var(--rojo); }
.btn-amarillo { background: var(--amarillo); color: #3B2A00; }
.btn-bloque { width: 100%; }
.btn-chico { padding: 6px 11px; font-size: .8rem; }
.btn[disabled], .btn.deshabilitado { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------ formularios */
.campo { margin-bottom: 14px; }
.campo label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--texto-tenue); margin-bottom: 6px;
}
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 11px 13px; font-size: .95rem; font-family: inherit;
  color: var(--texto); background: rgba(0, 0, 0, .28);
  border: 1px solid var(--borde-fuerte); border-radius: var(--radio-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--verde-brillo);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-suave); }
.campo .ayuda { font-size: .78rem; color: var(--texto-suave); margin-top: 5px; }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
select option { background: var(--gris-850); color: var(--texto); }

.codigo-input {
  letter-spacing: 12px; font-size: 1.7rem; text-align: center;
  font-weight: 700; font-family: "Consolas", monospace;
}

/* ------------------------------------------------------------ flashes */
.flashes { margin: 16px auto 0; max-width: var(--ancho); padding: 0 16px; }
.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radio-sm); margin-bottom: 9px;
  border-left: 4px solid var(--verde-brillo); background: rgba(31, 162, 98, .14);
  font-size: .9rem;
}
.flash.error { border-color: var(--rojo); background: rgba(233, 88, 79, .14); }
.flash.warning { border-color: var(--naranja); background: rgba(249, 115, 22, .14); }
.flash.info { border-color: var(--azul); background: rgba(56, 189, 248, .12); }

/* ------------------------------------------------------------ auth */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center; padding: 30px 16px;
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card .panel-body { padding: 24px; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo .marca {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 2rem; font-weight: 800; letter-spacing: 1.5px; line-height: 1.25;
}
.auth-logo .marca .ic { color: var(--verde-brillo); vertical-align: -4px; }
.auth-logo .marca b { color: var(--verde-brillo); }
.auth-logo p { color: var(--texto-tenue); margin: 4px 0 0; font-size: .9rem; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: .86rem; }

/* ------------------------------------------------------------ tabla de posiciones */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.tabla thead th {
  background: var(--panel-alto); color: var(--texto-tenue);
  font-size: .72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 12px 10px; text-align: center; white-space: nowrap;
  border-bottom: 2px solid var(--verde-marca);
  border-right: 1px solid var(--borde);
}
table.tabla thead th:last-child { border-right: none; }
table.tabla thead th.izq { text-align: left; }
table.tabla tbody td {
  padding: 10px; border-bottom: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  text-align: center; font-size: .93rem;
}
table.tabla tbody td:last-child { border-right: none; }
table.tabla tbody td.izq { text-align: left; }
table.tabla tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
table.tabla tbody tr:hover { background: rgba(255, 255, 255, .05); }

.fila-verde { background: rgba(52, 211, 153, .16) !important; box-shadow: inset 4px 0 0 var(--verde-brillo); }
.fila-verde:hover { background: rgba(52, 211, 153, .22) !important; }
.fila-roja { background: rgba(233, 88, 79, .14) !important; box-shadow: inset 4px 0 0 var(--rojo); }
.fila-roja:hover { background: rgba(233, 88, 79, .2) !important; }
.fila-yo td { font-weight: 700; }

.pos {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px;
  background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .82rem;
}
.pos.oro { background: linear-gradient(160deg, #FDE047, #EAB308); color: #3B2A00; }
.pos.rojo { background: linear-gradient(160deg, #EF4444, #B91C1C); color: #fff; }

.celda-usuario { display: flex; align-items: center; gap: 9px; text-align: left; }
.celda-usuario .nombre { font-weight: 600; color: var(--texto); }
.celda-usuario .arroba { color: var(--texto-suave); font-size: .78rem; }
.estrellas { color: var(--amarillo); font-size: .78rem; letter-spacing: -1px; }

.barra-pct { position: relative; height: 6px; border-radius: 4px; background: rgba(255,255,255,.09); margin-top: 5px; }
.barra-pct span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--verde-brillo); }

.referencias { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--borde); }
.referencia { display: flex; align-items: center; gap: 9px; padding: 9px 16px; font-size: .84rem; }
.referencia + .referencia { border-top: 1px solid var(--borde); }
.punto { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.punto.verde { background: var(--verde-brillo); }
.punto.rojo { background: var(--rojo); }
.punto.amarillo { background: var(--amarillo); }
.punto.rosa { background: var(--rosa); }

/* ------------------------------------------------------------ tabs de grupo */
.grupo-header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px 0 14px;
}
.grupo-header .escudo {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(52, 211, 153, .16), rgba(52, 211, 153, .05));
  border: 1px solid var(--borde-fuerte); color: var(--verde-brillo);
}
.grupo-header h1 { margin: 0; }
.grupo-header .sub { color: var(--texto-tenue); font-size: .86rem; }
.grupo-header .acciones { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.tabs {
  display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--borde);
  margin-bottom: 18px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px; color: var(--texto-tenue); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .7px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.activo { color: var(--verde-brillo); border-bottom-color: var(--verde-brillo); }

.selector-anio {
  background: rgba(0,0,0,.3); border: 1px solid var(--borde-fuerte); color: var(--texto);
  border-radius: var(--radio-sm); padding: 8px 10px; font-weight: 700; font-family: inherit;
}

/* ------------------------------------------------------------ alertas */
.alerta {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radio-sm);
  background: rgba(255, 255, 255, .035); border-left: 4px solid var(--texto-suave);
  margin-bottom: 9px;
}
.alerta .icono { flex: 0 0 auto; margin-top: 1px; color: var(--texto-tenue); }
.alerta .titulo { font-weight: 700; font-size: .88rem; }
.alerta .detalle { font-size: .83rem; color: var(--texto-tenue); }
.alerta .acciones { margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; }
.alerta-roja { border-left-color: var(--rojo); background: rgba(233, 88, 79, .1); }
.alerta-roja .icono { color: var(--rojo); }
.alerta-amarilla { border-left-color: var(--amarillo); background: rgba(250, 204, 21, .09); }
.alerta-amarilla .icono { color: var(--amarillo); }
.alerta-naranja { border-left-color: var(--naranja); background: rgba(249, 115, 22, .1); }
.alerta-naranja .icono { color: var(--naranja); }
.alerta-verde { border-left-color: var(--verde-brillo); background: rgba(52, 211, 153, .1); }
.alerta-verde .icono { color: var(--verde-brillo); }
.sin-alertas { color: var(--texto-tenue); font-size: .88rem; text-align: center; padding: 18px 8px; }

/* ------------------------------------------------------------ calendario */
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav .mes { font-weight: 800; letter-spacing: .5px; min-width: 150px; text-align: center; }
.calendario { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendario th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--texto-tenue); padding: 8px 4px; font-weight: 700;
}
.calendario td {
  border: 1px solid var(--borde); vertical-align: top;
  height: 96px; padding: 5px; position: relative;
}
.calendario td.otro-mes { opacity: .32; }
.calendario td.hoy { box-shadow: inset 0 0 0 2px var(--verde-brillo); }
.cal-dia { font-size: .8rem; font-weight: 700; color: var(--texto-tenue); }
.cal-add {
  position: absolute; right: 4px; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  display: none; align-items: center; justify-content: center;
  background: var(--verde-marca); color: #fff; line-height: 1;
}
.calendario td:hover .cal-add { display: flex; }
.cal-evento {
  display: block; margin-top: 4px; padding: 4px 6px; border-radius: 6px;
  font-size: .72rem; font-weight: 700; color: #06210F;
  background: var(--amarillo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-evento.finalizada { background: var(--verde-brillo); }
.cal-evento.pendiente { background: var(--naranja); color: #2A1000; }
.cal-evento.cumple { background: var(--rosa); color: #3B0A28; display: flex; align-items: center; gap: 3px; }
.cal-evento.cumple .ic { flex: 0 0 auto; }
.cal-evento:hover { text-decoration: none; filter: brightness(1.08); }

/* lista mobile del calendario */
.cal-lista { display: none; }

/* ------------------------------------------------------------ juntadas */
.juntada-item {
  display: flex; gap: 14px; align-items: center; padding: 13px 16px;
  border-bottom: 1px solid var(--borde);
}
.juntada-item:hover { background: rgba(255, 255, 255, .035); }
.fecha-chip {
  width: 54px; flex: 0 0 auto; text-align: center; border-radius: 10px; padding: 6px 0;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--borde);
}
.fecha-chip .d { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.fecha-chip .m { font-size: .66rem; text-transform: uppercase; color: var(--texto-tenue); letter-spacing: 1px; }
.juntada-info { min-width: 0; flex: 1; }
.juntada-info .tit { font-weight: 700; }
.juntada-info .meta { font-size: .82rem; color: var(--texto-tenue); }
.juntada-item .der { margin-left: auto; text-align: right; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
  background: rgba(255, 255, 255, .09); color: var(--texto-tenue);
}
.chip.programada { background: rgba(250, 204, 21, .16); color: var(--amarillo); }
.chip.pendiente { background: rgba(249, 115, 22, .18); color: #FDBA74; }
.chip.finalizada { background: rgba(52, 211, 153, .16); color: var(--verde-brillo); }
.chip.cancelada { background: rgba(233, 88, 79, .16); color: #FCA5A5; }
.chip.voy { background: rgba(52, 211, 153, .16); color: var(--verde-brillo); }
.chip.no-voy { background: rgba(233, 88, 79, .16); color: #FCA5A5; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: rgba(0, 0, 0, .22); border: 1px solid var(--borde);
  border-radius: var(--radio-sm); padding: 12px;
}
.stat .valor { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.stat .etiqueta { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--texto-tenue); }

.votacion { display: flex; gap: 10px; }
.votacion .btn { flex: 1; padding: 14px; font-size: 1rem; }
.btn-voy { background: var(--verde-marca); }
.btn-no-voy { background: rgba(233, 88, 79, .85); }
.btn-voy.inactivo, .btn-no-voy.inactivo { background: transparent; border: 1px solid var(--borde-fuerte); color: var(--texto-tenue); }

/* ------------------------------------------------------------ chat de grupo */
.chat-cuerpo { display: flex; flex-direction: column; height: 340px; }
.chat-mensajes {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.chat-msg-mio { flex-direction: row-reverse; margin-left: auto; }
.chat-burbuja {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--borde);
  border-radius: var(--radio-sm); padding: 7px 11px; min-width: 0;
}
.chat-msg-mio .chat-burbuja { background: rgba(31, 162, 98, .22); border-color: rgba(31, 162, 98, .35); }
.chat-autor { font-size: .72rem; font-weight: 700; color: var(--verde-brillo); margin-bottom: 2px; }
.chat-texto { font-size: .88rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-hora { font-size: .66rem; color: var(--texto-tenue); margin-top: 2px; text-align: right; }
.chat-form {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borde);
  background: rgba(0, 0, 0, .18);
}
.chat-form input {
  flex: 1; background: rgba(0, 0, 0, .3); border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio-sm); color: var(--texto); padding: 8px 12px; font: inherit;
}
.chat-form input:focus { outline: none; border-color: var(--verde-marca); }

.lista-personas { display: flex; flex-wrap: wrap; gap: 8px; }
.persona {
  display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--borde); border-radius: 999px;
  font-size: .84rem;
}

.check-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-persona {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--borde-fuerte); border-radius: var(--radio-sm);
  background: rgba(0, 0, 0, .2); cursor: pointer; user-select: none;
}
.check-persona:hover { border-color: var(--verde-brillo); }
.check-persona input { width: 17px; height: 17px; accent-color: var(--verde-brillo); }
.check-persona.marcado { background: rgba(52, 211, 153, .14); border-color: var(--verde-brillo); }

/* ------------------------------------------------------------ dashboard */
.tarjetas-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tarjeta-accion {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  border-radius: var(--radio); border: 1px dashed var(--borde-fuerte);
  background: rgba(255, 255, 255, .025); color: var(--texto);
  transition: border-color .15s ease, background .15s ease;
}
.tarjeta-accion:hover { border-color: var(--verde-brillo); background: rgba(52, 211, 153, .06); text-decoration: none; }
.tarjeta-accion .ico { color: var(--verde-brillo); }
.tarjeta-accion .tit { font-weight: 800; font-size: 1.05rem; }
.tarjeta-accion .desc { font-size: .85rem; color: var(--texto-tenue); }
.tarjeta-accion.beta { border-style: solid; opacity: .75; }
.badge-beta {
  align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--amarillo); color: #3B2A00; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
}

.grupo-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border-bottom: 1px solid var(--borde); color: var(--texto);
}
.grupo-card:hover { background: rgba(255, 255, 255, .04); text-decoration: none; }

.link-copiar {
  display: flex; gap: 8px; align-items: center;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio-sm); padding: 9px 11px;
}
.link-copiar input {
  flex: 1; background: transparent; border: none; color: var(--texto);
  font-family: Consolas, monospace; font-size: .82rem; outline: none; min-width: 0;
}

/* ------------------------------------------------------------ podio campeones */
.podio { display: flex; gap: 12px; align-items: flex-end; justify-content: center; padding: 10px 0 4px; }
.podio .lugar { text-align: center; flex: 1; max-width: 150px; }
.podio .barra {
  border-radius: 10px 10px 0 0; margin-top: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  font-weight: 800;
}
.podio .lugar.p1 .barra { height: 92px; background: linear-gradient(180deg, #FDE047, #CA8A04); color: #3B2A00; }
.podio .lugar.p2 .barra { height: 68px; }
.podio .lugar.p3 .barra { height: 52px; }

.tabla-admin td, .tabla-admin th { font-size: .85rem; }
.pill-root { background: var(--amarillo); color: #3B2A00; padding: 1px 7px; border-radius: 999px; font-size: .7rem; font-weight: 800; }

.vacio { text-align: center; padding: 34px 16px; color: var(--texto-tenue); }
.vacio .ico { display: flex; justify-content: center; margin-bottom: 8px; color: var(--texto-suave); }

footer.pie {
  text-align: center; color: var(--texto-suave); font-size: .78rem;
  padding: 30px 16px 40px;
}
footer.pie .ic { color: var(--verde-brillo); vertical-align: -2px; }

/* ============================================================ MOBILE */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-principal { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .navbar-inner { height: 54px; gap: 8px; }
  .logo { font-size: 1.02rem; }
  .nav-links a { padding: 7px 9px; font-size: .82rem; }
  .nav-links a .txt { display: none; }
  .tarjetas-acciones { grid-template-columns: 1fr; }
  .campos-2 { grid-template-columns: 1fr; }
  .check-lista { grid-template-columns: 1fr; }
  .grupo-header { padding: 14px 0 10px; }
  .grupo-header .acciones { margin-left: 0; width: 100%; }
  .grupo-header .acciones .btn { flex: 1; }

  /* la tabla mantiene POS y NOMBRE fijos; el resto scrollea */
  table.tabla thead th:nth-child(1), table.tabla tbody td:nth-child(1) {
    position: sticky; left: 0; z-index: 2; background: var(--gris-800);
  }
  table.tabla thead th:nth-child(1) { background: var(--panel-alto); }
  table.tabla tbody td { padding: 9px 7px; font-size: .88rem; }
  .celda-usuario .arroba { display: none; }

  /* calendario en modo lista */
  .calendario { display: none; }
  .cal-lista { display: block; }

  .podio .lugar { font-size: .82rem; }
  footer.pie { padding-bottom: 26px; }
}
