/* ===== Vista pública de Sanciones — estilo broadcast ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

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

html, body {
  min-height: 100%;
  background: #1a1a2e;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
}

body { padding: 24px 16px; }

/* Nombres siempre en MAYÚSCULAS (solo visual) */
.sanction-pilot { text-transform: uppercase; }

.home-btn {
  position: fixed; top: 14px; left: 14px; z-index: 30;
  color: #8a8aa0; text-decoration: none; font-size: 13px; font-weight: 700;
  background: #16213e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 7px 14px;
}
.home-btn:hover { color: #fff; }

.page-title {
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  color: #e0e0e0; margin: 30px 0 6px; text-align: center;
}
.page-sub {
  text-align: center; font-size: 13px; color: #8a8aa0; margin-bottom: 26px;
}

.content { max-width: 700px; margin: 0 auto; }

/* Estado vacío */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: #8a8aa0; }

/* Grupo por sesión */
.session-group { margin-bottom: 26px; }
.session-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.session-type {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; background: #2a2e3f; color: #c9ceda;
}
.session-type.carrera { background: rgba(226,37,59,.16); color: #ff6b6b; }
.session-type.qualy { background: rgba(77,171,247,.16); color: #4dabf7; }
.session-type.timeattack { background: rgba(245,159,0,.16); color: #ffd43b; }
.session-name { font-size: 14px; font-weight: 800; }
.session-count {
  margin-left: auto; background: #2a2e3f; color: #8a8aa0;
  border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 9px;
}

/* Tarjeta de sanción */
.sanction-card {
  background: #16213e; border-radius: 10px; padding: 12px 14px;
  margin-bottom: 8px;
}
.sanction-row { display: flex; justify-content: space-between; align-items: center; }
.sanction-pilot { font-weight: 800; font-size: 15px; }
.sanction-secs { color: #ff6b6b; font-weight: 900; font-size: 15px; }
.sanction-secs.bonus { color: #2ee66d; }
.sanction-motivo { font-size: 13px; color: #c9ceda; margin-top: 5px; }
.sanction-date { font-size: 11px; color: #55596b; margin-top: 5px; }

/* Descalificación (DSQ aprobada) */
.dsq-card { border: 1px solid rgba(226,37,59,.45); background: linear-gradient(180deg, rgba(226,37,59,.12), #16213e); }
.dsq-card .sanction-pilot { text-decoration: line-through; opacity: .85; }
.dsq-badge {
  display: inline-block; background: #e2253b; color: #fff;
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 900; letter-spacing: .5px; white-space: nowrap;
}

/* ===================== MODO CLARO ===================== */
:root[data-theme="light"] body { background: #eef1f6; color: #1f2733; }
:root[data-theme="light"] .home-btn { background: #ffffff; color: #5a6472; border-color: rgba(0,0,0,.12); }
:root[data-theme="light"] .home-btn:hover { color: #1f2733; }
:root[data-theme="light"] .page-title { color: #24303f; }
:root[data-theme="light"] .page-sub,
:root[data-theme="light"] .empty-sub,
:root[data-theme="light"] .empty-title { color: #5a6472; }
:root[data-theme="light"] .session-header { border-bottom-color: rgba(0,0,0,.10); }
:root[data-theme="light"] .session-name { color: #24303f; }
:root[data-theme="light"] .session-type { background: #e4e8f0; color: #45506a; }
:root[data-theme="light"] .session-count { background: #e4e8f0; color: #5a6472; }
:root[data-theme="light"] .sanction-card {
  background: #ffffff; box-shadow: 0 6px 18px rgba(20,30,50,.08);
}
:root[data-theme="light"] .sanction-pilot { color: #1f2733; }
:root[data-theme="light"] .sanction-motivo { color: #45505f; }
:root[data-theme="light"] .sanction-date { color: #8b93a1; }
:root[data-theme="light"] .dsq-card {
  border-color: rgba(226,37,59,.45);
  background: linear-gradient(180deg, rgba(226,37,59,.10), #ffffff);
}
