/* =====================================================
   CICLISMO JUNIOR Y CADETE — Design System
   Stylesheet propio (sin dependencia de Bootstrap).
   Implementa el look limpio estilo FirstCycling / PCS
   y da estilo a las clases de utilidad (btn, badge,
   row, col-*, d-flex, table-striped, nav-tabs...) que
   las plantillas ya usaban.
   ===================================================== */

:root {
    --c-bg: #f4f5f7;
    --c-surface: #ffffff;
    --c-border: #e3e6ea;
    --c-text: #1b1f24;
    --c-muted: #6b7280;
    --c-primary: #c8102e;      /* rojo ciclismo */
    --c-primary-dark: #9c0c23;
    --c-accent: #0a3d62;       /* azul profundo */
    --c-dark: #16202b;
    --c-gold: #d4a200;
    --c-silver: #9aa0a6;
    --c-bronze: #b07b46;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --shadow-md: 0 4px 16px rgba(16,24,40,.08);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-primary); text-decoration: none; }

h1, h2, h3, h4, h5 { font-weight: 700; margin: 0 0 .6rem; line-height: 1.25; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

/* =====================================================
   CABECERA / NAV
   ===================================================== */
.fc-header {
    background: var(--c-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}
.fc-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 8px 18px;
    min-height: 58px;
}
.fc-logo {
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-logo .fc-logo-badge {
    background: var(--c-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
}
.fc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}
.fc-nav a {
    color: #cfd6dd;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
}
.fc-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.fc-nav a.active { color: #fff; background: var(--c-primary); }

/* Buscador de la cabecera */
.fc-search { flex: 0 1 260px; }
.fc-search input {
    width: 100%;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .85rem;
    font-family: var(--font);
    outline: none;
    transition: background .15s, border-color .15s;
}
.fc-search input::placeholder { color: #9aa4ad; }
.fc-search input:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }

/* Selector de idioma */
.fc-lang select {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .82rem;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
}
.fc-lang select option { color: #1b1f24; background: #fff; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1080px;
    margin: 22px auto;
    padding: 0 18px;
}
section { margin-bottom: 26px; }

.page-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* grid utilitaria estilo bootstrap */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
@media (max-width: 820px) {
    .col-md-4, .col-md-8, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* =====================================================
   UTILIDADES (compat. con clases tipo bootstrap)
   ===================================================== */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.text-center { text-align: center; }
.text-dark { color: var(--c-text) !important; }
.text-muted { color: var(--c-muted); }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--radius); }
.shadow-sm { box-shadow: var(--shadow); }
.w-100 { width: 100%; }
.display-4 { font-size: 2rem; font-weight: 800; }

.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:1rem}.mt-4{margin-top:1.5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:1rem}.mb-4{margin-bottom:1.5rem}
.me-3{margin-right:1rem}.ms-2{margin-left:.5rem}

/* =====================================================
   BOTONES (pills modernos)
   ===================================================== */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: .85rem;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    cursor: pointer;
    transition: all .15s;
    margin: 0 4px 6px 0;
    line-height: 1.2;
}
.btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-sm { padding: 5px 11px; font-size: .8rem; }

.btn-dark, .btn-primary { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.btn-dark:hover, .btn-primary:hover { background: #000; color: #fff; }
.btn-outline-dark { background: #fff; color: var(--c-text); border-color: #cfd4da; }
.btn-outline-dark:hover { background: var(--c-dark); color: #fff; }
.btn-outline-primary { background: #fff; color: var(--c-accent); border-color: var(--c-accent); }
.btn-outline-primary:hover { background: var(--c-accent); color: #fff; }
.btn-outline-secondary { background: #fff; color: var(--c-muted); }
.btn-outline-secondary:hover { background: #eef0f2; color: var(--c-text); }
.btn-outline-danger { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline-danger:hover { background: var(--c-primary); color: #fff; }
.btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1.4;
    color: #fff;
    vertical-align: middle;
}
.bg-dark { background: var(--c-dark); }
.bg-secondary { background: var(--c-muted); }
.bg-primary { background: var(--c-accent); }
.bg-success { background: #1c8a4a; }
.bg-warning { background: #e8a400; }
.bg-warning.text-dark { color: #3a2c00 !important; }
.live-badge {
    background: var(--c-primary);
    color: #fff;
    font-weight: 800;
    animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

/* =====================================================
   TABLAS
   ===================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-surface);
    font-size: .9rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table thead th {
    background: #f0f2f5;
    text-align: left;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--c-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}
.table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #eef0f2;
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc; }
.table tbody tr:hover { background: #fff5f6; }
.table-bordered, .table-bordered td, .table-bordered th { border: 1px solid var(--c-border); }
.table-light th { background: #f0f2f5; }

.col-pos { width: 42px; text-align: center; font-weight: 700; }
.col-bib { width: 56px; text-align: center; color: var(--c-muted); }
.col-time { width: 90px; text-align: right; }
.col-points { width: 60px; text-align: right; font-weight: 700; }

.fc-pos { font-weight: 700; }
.fc-time { color: var(--c-muted); font-size: .85rem; }
.fc-team { color: var(--c-muted); font-size: .85rem; }

/* ===== MEDALLAS TOP-3 (filas oro / plata / bronce) ===== */
.table tbody tr.row-gold td   { background: #fff4c2; }
.table tbody tr.row-silver td { background: #eef0f3; }
.table tbody tr.row-bronze td { background: #f7e3d0; }
.table tbody tr.row-gold:hover td   { background: #ffeda3; }
.table tbody tr.row-silver:hover td { background: #e4e7eb; }
.table tbody tr.row-bronze:hover td { background: #f2d7bd; }
.row-gold .col-pos   { color: #a37d00; }
.row-silver .col-pos { color: #6b7280; }
.row-bronze .col-pos { color: #8c5a2b; }

/* ===== FOTO MINI EN TABLAS (clasificación / startlist / ranking) ===== */
.fc-rider-cell { display: flex; align-items: center; gap: 9px; }
.fc-mini-photo {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: #e8eaed;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.fc-photo-placeholder {
    display: inline-block;
    background: #e8eaed url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23aab0b7"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>') center/60% no-repeat;
}

/* =====================================================
   TABS (controladas por JS propio, sin Bootstrap)
   ===================================================== */
.nav-tabs, .fc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    border-bottom: 2px solid var(--c-border);
    gap: 4px;
    flex-wrap: wrap;
}
.nav-tabs .nav-item, .fc-tabs .nav-item { margin: 0; }
.nav-link {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: .9rem;
    color: var(--c-muted);
    padding: 9px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--c-text); }
.nav-link.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

/* =====================================================
   CABECERA DE CARRERA / FICHA DE ETAPA
   ===================================================== */
.race-header {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-primary);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.race-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.race-subtitle { font-size: .85rem; color: var(--c-muted); }
.race-meta { font-size: .85rem; color: var(--c-muted); margin-top: 8px; display:flex; flex-wrap:wrap; gap: 14px; }
.race-meta span strong { color: var(--c-text); }

.stage-card, .stage-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.stage-info { display: flex; flex-wrap: wrap; gap: 18px; }
.stage-profile img, .stage-box img { width: 100%; object-fit: contain; border-radius: var(--radius-sm); }

/* =====================================================
   TARJETA DE CARRERA (home / calendario)
   ===================================================== */
.race-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
}
.race-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.race-card-header { display: flex; align-items: center; gap: 8px; }
.race-name { font-weight: 700; color: var(--c-text); font-size: 1rem; }
.race-name:hover { color: var(--c-primary); }
.race-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.race-flag, .fc-flag {
    width: 22px; height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    flex-shrink: 0;
}

/* =====================================================
   FILTROS (calendario / equipos)
   ===================================================== */
.fc-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.fc-filter-row > strong {
    min-width: 92px;
    color: var(--c-muted);
    font-size: .85rem;
}

/* Selector de meses: fila de pills que envuelve limpio (sin descolgar Dic.) */
.fc-month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-border);
}
.fc-month {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all .15s;
}
.fc-month:hover { color: var(--c-text); background: #eef0f2; }
.fc-month.active { color: #fff; background: var(--c-primary); border-color: var(--c-primary); }

/* =====================================================
   CALENDARIO
   ===================================================== */
.fc-date-header {
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: capitalize;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.fc-race-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 6px;
    transition: box-shadow .15s;
}
.fc-race-row:hover { box-shadow: var(--shadow); }
.fc-race-name { font-weight: 600; color: var(--c-text); }
.fc-race-name:hover { color: var(--c-primary); }
.fc-race-meta { margin-left: auto; font-size: .8rem; color: var(--c-muted); }

/* =====================================================
   LISTADO DE CORREDORES
   ===================================================== */
.fc-rider-row {
    display: flex;
    align-items: center;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 6px;
}
.fc-rider-photo {
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 14px;
    background: #eef0f2;
    flex-shrink: 0;
}
.fc-rider-name { font-size: 1rem; font-weight: 700; }
.fc-rider-name a { color: var(--c-text); }
.fc-rider-name a:hover { color: var(--c-primary); }
.fc-rider-info { font-size: .85rem; color: var(--c-muted); }
.fc-rider-points { margin-left: auto; font-weight: 800; color: var(--c-primary); }

/* equipos */
.fc-team-row { display:flex; align-items:center; gap:12px; padding:10px 14px; background:var(--c-surface); border:1px solid var(--c-border); border-radius:var(--radius-sm); margin-bottom:6px; }
.fc-team-row.fc-team-active { border-color: var(--c-primary); background:#fff5f6; }
.fc-team-rank { width:28px; font-weight:800; color:var(--c-muted); text-align:center; }
.fc-team-logo { width:34px; height:34px; object-fit:contain; }
.fc-team-name { font-weight:600; }
.fc-team-points { margin-left:auto; font-weight:800; color:var(--c-primary); }

/* =====================================================
   TOP-3 / PALMARÉS
   ===================================================== */
.top-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
}
.top-box .gold { color: var(--c-gold); }
.top-box .silver { color: var(--c-silver); }
.top-box .bronze { color: var(--c-bronze); }

.flag { width: 22px; height: auto; vertical-align: middle; border-radius: 2px; }

/* =====================================================
   BANNERS PUBLICITARIOS REALES
   ===================================================== */
.ad-container-top { margin-bottom: 0; }

.ad-banner {
    display: block;
    margin: 16px 0;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;                 /* elimina el hueco bajo la imagen */
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
}
.ad-banner:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.ad-banner img {
    display: block;
    width: 100%;
    height: auto;                   /* mantiene la proporción al reducirse */
}

/* Contenedor del banner secundario al pie: discreto y separado del contenido */
.ad-container-bottom { margin-top: 28px; }

/* El secundario no debe competir con el principal: más pequeño y centrado */
.ad-banner--innovatap {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    opacity: .92;
}
.ad-banner--innovatap:hover { opacity: 1; }

/* En móvil los banners tan alargados se leerían diminutos:
   se muestran a ancho completo y sin sombra para que no estorben. */
@media (max-width: 600px) {
    .ad-banner { margin: 12px 0; border-radius: var(--radius-sm); }
    .ad-banner--innovatap { max-width: 100%; }
}

/* =====================================================
   ESPACIOS PUBLICITARIOS LIBRES (demo con ?ads=demo)
   ===================================================== */
.ad-slot {
    border: 2px dashed var(--c-primary);
    border-radius: var(--radius);
    background: repeating-linear-gradient(
        45deg,
        #fff5f6, #fff5f6 14px,
        #ffeceb 14px, #ffeceb 28px
    );
    color: var(--c-primary);
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .06em;
    padding: 26px 12px;
    margin: 16px 0;
}
.ad-slot span {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .02em;
    color: #a05560;
}

/* =====================================================
   PANEL DE GESTIÓN
   ===================================================== */
.nav-panel { background: rgba(255,255,255,.12); }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}
.panel-head .page-title { margin-bottom: 0; }

.panel-help ol { margin: 8px 0 0; padding-left: 20px; }
.panel-help li { margin-bottom: 5px; }

.panel-form .form-row { margin-bottom: 16px; display: flex; flex-direction: column; }
.panel-form label { font-weight: 700; font-size: .85rem; margin-bottom: 5px; }
.panel-form input[type="text"],
.panel-form input[type="number"],
.panel-form input[type="date"],
.panel-form select,
.panel-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-family: var(--font);
    background: #fff;
    color: var(--c-text);
    outline: none;
}
.panel-form textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(10,61,98,.10); }
.panel-form small { margin-top: 4px; }

.field-error { color: var(--c-primary); font-size: .82rem; margin-top: 4px; font-weight: 600; }
.detected {
    margin-top: 8px;
    font-size: .85rem;
    color: #1c8a4a;
    background: #eaf7ef;
    border-radius: var(--radius-sm);
    padding: 7px 11px;
}

/* Avisos */
.alert {
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: .9rem;
    border: 1px solid transparent;
}
.alert-success { background: #eaf7ef; border-color: #b9e3c8; color: #14683a; }
.alert-info    { background: #eaf1f8; border-color: #bcd4ea; color: #14496e; }
.alert-warning { background: #fdf4e3; border-color: #f0dcae; color: #7a5a12; }
.alert-error   { background: #fdecee; border-color: #f5c2c9; color: #8c1c2b; }

/* =====================================================
   AVISO DE COOKIES
   ===================================================== */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 780px;
    background: var(--c-dark);
    color: #e7eaee;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .85rem;
    z-index: 200;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { flex: 1 1 320px; line-height: 1.45; }
.cookie-text a { color: #9fd0ff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-actions .btn { margin: 0; }
.cookie-actions .btn-dark { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.cookie-actions .btn-dark:hover { background: var(--c-primary-dark); }

/* =====================================================
   PANEL DE VISITAS
   ===================================================== */
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

.chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 160px;
    margin-top: 12px;
    padding-top: 8px;
}
.chart-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--c-primary), #e0566c);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: opacity .15s;
}
.chart-bar-wrap:hover .chart-bar { opacity: .7; }
.chart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--c-muted); margin-top: 6px; }

/* =====================================================
   PÁGINAS LEGALES
   ===================================================== */
.legal-page { line-height: 1.65; }
.legal-page h2 { font-size: 1.05rem; margin-top: 22px; margin-bottom: 6px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }

/* =====================================================
   FOOTER
   ===================================================== */
.fc-footer {
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 22px 18px;
    border-top: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: .8rem;
    text-align: center;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
    .fc-header-inner { height: auto; flex-direction: column; align-items: flex-start; padding: 10px 14px; gap: 8px; }
    .fc-nav { margin-left: 0; }
    /* En columna, flex-basis se convierte en altura: anularlo */
    .fc-search { flex: 0 0 auto; width: 100%; }
    .table { font-size: .82rem; }
    .table thead th, .table tbody td { padding: 8px 8px; }
    h1, .page-title { font-size: 1.3rem; }
}
