/* Archivo generado al dividir styles.css en bloques. */
@font-face {
  font-family: "SportzanJornada";
  src: url("../recursos/Sportzan.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BisonJornada";
  src: url("../recursos/Bison-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Alias opcional para el resto de la app */
@font-face {
  font-family: "Bison";
  src: url("../recursos/Bison-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* =========================================================
     BLOQUE EDITABLE DE COLORES
     Opción 3 · Más CBAT + jerarquía shell
     ========================================================= */

  --brand-primary: #44699D;
  --brand-primary-strong: #2F507B;
  --brand-primary-deep: #243F66;
  --brand-primary-soft: #DCE8F6;

  --accent-primary: #FDE07F;
  --accent-primary-soft: #FFF3C8;

  --shell-header-bg: linear-gradient(180deg, #35577F 0%, #2B486A 100%);
  --shell-header-border: rgba(255, 255, 255, 0.14);
  --shell-header-text: #F8FBFF;
  --shell-header-text-soft: rgba(248, 251, 255, 0.80);
  --shell-header-logo-bg: rgba(255, 255, 255, 0.14);
  --shell-header-logo-border: rgba(255, 255, 255, 0.18);

  --shell-nav-bg: linear-gradient(180deg, #3D628F 0%, #2F507B 100%);
  --shell-nav-border: rgba(255, 255, 255, 0.12);
  --shell-nav-text: rgba(248, 251, 255, 0.80);
  --shell-nav-text-active: #FFFFFF;
  --shell-nav-separator: rgba(255, 255, 255, 0.10);
  --shell-nav-hover: rgba(255, 255, 255, 0.08);
  --shell-nav-active-bg: rgba(255, 255, 255, 0.12);
  --shell-nav-active-border: rgba(255, 255, 255, 0.82);

  --bg: #EEF3F8;
  --bg-2: #F7F9FC;
  --surface: #FFFFFF;
  --surface-soft: #F8FBFF;
  --surface-muted: #F2F6FB;
  --surface-strong: #EDF3FA;

  --text: #162033;
  --text-soft: #5F7088;
  --text-faint: #7C8CA3;

  --blue: var(--brand-primary);
  --blue-strong: var(--brand-primary-strong);
  --blue-soft: var(--brand-primary-soft);
  --yellow: var(--accent-primary);
  --yellow-soft: var(--accent-primary-soft);

  --border: #D7E1EE;
  --border-strong: #C7D5E7;
  --success: #198754;
  --danger: #B42318;

  --shadow-sm: 0 6px 18px rgba(40, 66, 112, 0.06);
  --shadow-md: 0 10px 30px rgba(40, 66, 112, 0.09);
  --shadow-lg: 0 18px 44px rgba(40, 66, 112, 0.12);
  --shadow-header: 0 10px 26px rgba(31, 56, 92, 0.22);
  --shadow-nav: 0 -10px 30px rgba(26, 45, 74, 0.24);

  --radius-panel: 22px;
  --radius-card: 20px;
  --radius-control: 16px;
}

/* =========================================================
   CBAT APP
   BLOQUE 1 — BASE + LAYOUT
   ========================================================= */

/* ===== RESET BÁSICO ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, #edf2f7 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(68, 105, 157, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(253, 224, 127, 0.12), transparent 24%),
    radial-gradient(circle at bottom center, rgba(68, 105, 157, 0.06), transparent 30%);
}

/* ===== APP SHELL ===== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ===== CONTENIDO PRINCIPAL ===== */

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 92px; /* espacio para bottom nav */
}

/* ===== PANEL GENÉRICO ===== */

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

/* ===== HEADER PANEL ===== */

.panel-header {
  margin-bottom: 12px;
}

.panel-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--blue-strong);
}

/* ===== SEPARACIÓN BLOQUES ===== */

.section {
  margin-bottom: 16px;
}

.section-block {
  margin-bottom: 18px;
}

.section-block:last-child {
  margin-bottom: 0;
}

