﻿/* =========================================================================
   Estilo público "RFEA Live" (versión lite)
   Paleta, tipografías y componentes tomados de rfealive2025 (rama UI-Recolor):
   wwwroot/css/colors.css, Layout/MainLayout, Results/Schedule.razor,
   Results/ResultsTable.razor, Results/Podium.razor, General/Status.razor
   ========================================================================= */

:root {
    /* Colores principales */
    --color-primary-db: #0F1932;   /* Azul marino */
    --color-primary-db-a: #0f1932a1;
    --color-primary-mb: #5A8CBE;   /* Azul claro medio */
    --color-primary-lb: #A4C0DB;   /* Azul claro */
    --color-accent-y: #E2B200;     /* Amarillo cálido */
    --custom-red: #8A0005;
    /* Paleta Pantone */
    --pantone-7409-c: #E2B200;
    --pantone-158-c: #EE7402;
    --pantone-warm-red-c: #E73337;
    --pantone-214-c: #CB007C;
    --pantone-2603-c: #752483;
    --pantone-293-c: #0F56A4;
    --pantone-black-c: #262626;
    --rl-gradient: linear-gradient(90deg, #E2B200 29.44%, #EE7402 50.51%, #E73337 72.09%, #CB007C 100%);
    --rl-gradient-v: linear-gradient(180deg, #E2B200 29.44%, #EE7402 50.51%, #E73337 72.09%, #CB007C 100%);
    --rl-gold-gradient: linear-gradient(135deg, var(--color-accent-y) 60%, #FF8C00);
    --rl-active-gradient: linear-gradient(135deg, #CB007C 0%, #752483 100%);
    /* Básicos */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #707070;
    --text-muted-light: #94A3B8;
    --surface-btn: rgba(15, 25, 50, 0.85);
    --surface-chip: rgba(21, 34, 68, 0.75);
    --overlay-dark-30: rgba(0, 0, 0, 0.3);
    --overlay-dark-50: rgba(0, 0, 0, 0.5);
    --overlay-blue-15: rgba(90, 140, 190, 0.15);
    --header-height: 65px;
}

/* ---------- Base ---------- */
html, body {
    font-family: 'Roboto', sans-serif;
    background: #080e1d;
    color: var(--color-white);
    min-height: 100%;
}

html { scrollbar-width: thin; scrollbar-color: #EE7402 transparent; }
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: var(--rl-gradient-v); border-radius: 5px; min-height: 150px; }

h1:focus { outline: none; }
a { color: inherit; }

.lato { font-family: "Lato", sans-serif; }
.poppins { font-family: "Poppins", sans-serif; }

.text-accent-y { color: var(--color-accent-y) !important; }
.text-primary-lb { color: var(--color-primary-lb) !important; }
.text-primary-mb { color: var(--color-primary-mb) !important; }
.text-muted-light { color: var(--text-muted-light) !important; }
.bg-primary-db { background-color: var(--color-primary-db) !important; }
.bg-accent-y { background-color: var(--color-accent-y) !important; }
.phase-g { color: #CA007D !important; }

/* Fondo animado (js/sportBg.js) */
#dinamic-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 80%;
}

/* ---------- Cabecera ---------- */
.rl-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: var(--color-primary-db);
    display: flex;
    align-items: center;
}

/* Línea inferior con el degradado de la marca */
.rl-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--rl-gradient);
    pointer-events: none;
}

.rl-header-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
#header-bg { position: absolute; top: -200px; left: 0; width: 100%; height: 275px; pointer-events: none; }
.rl-header > .container-fluid { position: relative; z-index: 1; }

.rl-header-logo { width: 200px; height: 60px; display: flex; align-items: center; flex-shrink: 0; }
.rl-header-logo img { max-height: 46px; max-width: 100%; }

.header-divider {
    width: 3px; height: 40px; flex-shrink: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.08) 25%, rgba(230,230,240,0.35) 50%, rgba(255,255,255,0.08) 75%, transparent 100%);
}

.rl-header-title { font-family: "Lato", sans-serif; font-weight: 700; font-size: 16px; color: white; margin: 0; line-height: 1.25; }
.rl-header-info { font-family: "Lato", sans-serif; font-weight: 500; font-size: 13px; color: white; margin: 0; }
.rl-header-info i { color: #CB007C; margin-right: 4px; }

.rl-social { gap: .5rem; }
.rl-social .header-action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; line-height: 1;
    text-decoration: none; padding: 6px; border-radius: 5px;
    background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .2s ease;
}
.rl-social .header-action-btn:hover { background: rgba(21, 34, 68, 0.95); border-color: rgba(255, 255, 255, 0.2); color: var(--color-white); transform: translateY(-1px); }
.social-divider { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, #ffc107, transparent); flex-shrink: 0; }

.rl-main { position: relative; z-index: 1; padding-top: var(--header-height); min-height: 100vh; }
.rl-content { padding: 0 1rem 4rem 1rem; max-width: 1680px; margin: 0 auto; }

.rl-mobile-title { padding: 12px .75rem 0 .75rem; }

@media (max-width: 991.98px) {
    .rl-header-logo { width: 150px; height: 46px; }
    .rl-header-logo img { max-height: 36px; }
    .rl-social .header-action-btn { font-size: .95rem; padding: 5px; }
    .rl-content { padding: 0 .5rem 4rem .5rem; }
}

/* Botón volver arriba: círculo con borde degradado */
#rlScrollTop {
    position: fixed; bottom: 30px; right: 15px; z-index: 1000;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #E2B200 20%, #EE7402 45%, #E73337 70%, #CB007C 100%);
    font-size: 18px; cursor: pointer; transition: all .25s ease;
    opacity: 0; visibility: hidden;
}
#rlScrollTop::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--color-primary-db); z-index: 0; }
#rlScrollTop i { position: relative; z-index: 1; color: #fff; }
#rlScrollTop:hover { transform: scale(1.12); }
#rlScrollTop.show { opacity: 1; visibility: visible; }
@media (max-width: 575.98px) {
    #rlScrollTop { width: 30px; height: 30px; bottom: 16px; right: 10px; font-size: 13px; }
}

/* ---------- Títulos de sección ---------- */
.th-title {
    display: flex; align-items: center; gap: 8px;
    font-family: "Lato", sans-serif; font-weight: 700; font-size: 20px;
    color: var(--color-primary-lb); margin: 0;
}

.rl-section-bar {
    margin-top: 1rem; padding: 1rem 1.25rem;
    background: var(--color-primary-db-a);
    border-radius: 5px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.12);
}

/* ---------- Toolbar / filtros ---------- */
.rl-toolbar {
    display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: var(--header-height); z-index: 100;
    background: rgba(8, 16, 35, 1);
    padding: 12px .5rem 8px .5rem;
    margin: 0 -.5rem;
    border-bottom: 1px solid rgba(226, 178, 0, 0.15);
}
.toolbar-actions-row { display: flex; align-items: center; gap: 5px; width: 100%; justify-content: space-between; }

.btn-group-sessions {
    display: flex; flex-wrap: nowrap; gap: 2px; padding: 2px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-radius: 6px; background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 1; min-width: 0;
}
.btn-group-sessions::-webkit-scrollbar { display: none; }

.session-btn, .filter-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    height: 30px; padding: 5px 12px;
    background: transparent; color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 5px;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: .78rem; font-weight: 600;
    white-space: nowrap; cursor: pointer; transition: all .2s ease;
}
.filter-btn { border-radius: 4px; }
.session-btn:hover, .filter-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.session-btn.active, .filter-btn.active { background: var(--rl-active-gradient); color: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.session-btn.active:hover, .filter-btn.active:hover { filter: brightness(1.15); }

.filter-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.filter-section-title {
    font-size: .85rem; font-weight: 600; color: var(--color-primary-mb);
    text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 10px;
}
.filter-section-icon { font-size: .8rem; color: var(--color-accent-y); }
.filter-buttons-group { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.back-btn {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--surface-btn); color: var(--color-primary-lb);
    border: 1px solid rgba(238, 116, 2, 0.3); border-radius: 5px;
    padding: 8px 14px; font-size: .85rem; cursor: pointer; white-space: nowrap;
    text-decoration: none; transition: all .2s ease;
}
.back-btn:hover { background: rgba(238, 116, 2, 0.12); border-color: var(--color-accent-y); color: var(--color-accent-y); transform: translateY(-1px); }

.filters-toggle-btn {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    background: var(--surface-btn); color: var(--color-accent-y);
    border: 1px solid rgba(249, 217, 73, 0.3); border-radius: 5px;
    padding: 8px 18px; font-size: .78rem; font-weight: 700; letter-spacing: .3px;
    white-space: nowrap; cursor: pointer; transition: all .2s ease;
}
.filters-toggle-btn:hover { border-color: var(--color-accent-y); transform: translateY(-1px); }
.filters-toggle-btn.clear { border-color: rgba(220, 53, 69, 0.3); color: #dc3545; padding: 8px 12px; }

.live-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--surface-btn); color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 5px;
    padding: 8px 18px; font-size: .78rem; font-weight: 800; letter-spacing: .3px;
    white-space: nowrap; cursor: pointer; transition: all .2s ease;
    animation: liveBtnPulse 2s ease-in-out infinite;
}
.live-toggle-btn:hover { border-color: #EF4444; transform: translateY(-1px); animation: none; }
.live-toggle-btn.active { background: rgba(239, 68, 68, 0.15); border-color: #EF4444; animation: none; }
@keyframes liveBtnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } 50% { box-shadow: 0 0 12px 2px rgba(239, 68, 68, 0.3); } }
.live-badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #EF4444; color: #fff; font-size: .65rem; font-weight: 800; line-height: 1;
}
.live-dot-sm { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: liveDotPulse 1.5s ease-in-out infinite; }
@keyframes liveDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.btn-icon-sm, .refresh-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 15px;
    background: rgba(15, 25, 50, 0.7); color: var(--color-primary-lb);
    border: 1px solid rgba(226, 178, 0, 0.25); transition: all .2s ease; position: relative;
}
.btn-icon-sm:hover, .btn-icon-sm.active { background: rgba(226, 178, 0, 0.12); border-color: var(--color-accent-y); color: var(--color-accent-y); }
.btn-icon-sm.live { border-color: rgba(239, 68, 68, 0.3); color: #EF4444; }
.btn-icon-sm.live.active { background: rgba(239, 68, 68, 0.15); border-color: #EF4444; }
.btn-icon-sm.clear { border-color: rgba(220, 53, 69, 0.3); color: #dc3545; }
.btn-icon-sm .live-badge-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; font-size: .55rem; padding: 0 4px; }

.refresh-btn { border-radius: 5px; background: var(--surface-btn); border-color: rgba(255, 255, 255, 0.1); color: var(--text-muted-light); }
.refresh-btn:hover { border-color: var(--color-accent-y); color: var(--color-accent-y); }
.refresh-btn:disabled { opacity: .5; cursor: not-allowed; }
.spin { display: inline-block; animation: refreshSpin .8s linear infinite; }
@keyframes refreshSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.mobile-search-area { overflow: hidden; transition: max-height .25s ease, opacity .2s ease; max-height: 0; opacity: 0; }
.mobile-search-area.open { max-height: 60px; margin-top: 4px; opacity: 1; }

.search-container { position: relative; width: 100%; display: flex; align-items: center; }
.search-input {
    display: block; width: 100%;
    padding: .375rem 40px; font-size: 1rem; line-height: 1.5;
    color: var(--color-white); background: rgba(0, 0, 0, .3);
    border: 1px solid var(--color-primary-mb); border-radius: 5px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.search-input.sm { font-size: .9rem; padding-top: .45rem; padding-bottom: .45rem; }
.search-input:focus { outline: none; border-color: var(--color-accent-y); box-shadow: 0 0 0 .25rem rgba(249, 217, 73, .25); }
.search-input::placeholder { color: rgba(255, 255, 255, .6); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .6); font-size: .85rem; pointer-events: none; }
.search-clear-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: var(--color-accent-y); color: var(--color-primary-db);
    border: none; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .75rem;
    transition: all .2s ease;
}
.search-clear-btn:hover { background: var(--color-primary-mb); color: var(--color-white); transform: translateY(-50%) scale(1.1); }

/* Modal de filtros */
.filters-modal {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 8, 20, 0.95); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 10px;
}
.filters-modal-content {
    background: #121e36; width: 100%; max-width: 650px; max-height: 85vh; overflow-y: auto;
    border-radius: 16px; padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
}
.filters-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.filters-header h5 { color: white; margin: 0; font-size: 1.1rem; font-weight: 600; }
.filters-header .close-icon { color: white; cursor: pointer; font-size: 1.3rem; transition: all .2s ease; }
.filters-header .close-icon:hover { color: var(--color-accent-y); transform: scale(1.1); }
.close-modal-btn {
    background: var(--color-accent-y); color: var(--color-primary-db); border: none;
    padding: 12px 16px; font-size: .85rem; font-weight: 700; border-radius: 6px; width: 100%;
    text-transform: uppercase; cursor: pointer; transition: all .2s ease;
}
.close-modal-btn:hover { background: var(--color-primary-mb); color: black; }

/* ---------- Estado (status-widget) ---------- */
.status-widget {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 6px 14px; min-height: 32px;
    font-family: "Poppins", sans-serif; font-weight: 400; font-size: .875rem;
    color: #fff; text-align: center;
    background: rgba(25, 48, 81, 0.35);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(192, 192, 192, 0.25); border-radius: 5px;
}
.status-widget.live { color: #000; border: none; font-weight: 800; background: #27ad27; }
@media (max-width: 768px) {
    .status-widget { padding: 1px 4px; gap: 2px; min-height: 24px; font-size: 11px; white-space: normal; word-break: break-word; }
}

/* ---------- Horario: tarjetas ---------- */
.sch-cards { padding-bottom: 40px; }
.sch-item { padding-top: .5rem; }

.sch-card {
    position: relative;
    background: var(--color-primary-db-a);
    border-radius: 5px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.12);
    transition: background-color .2s ease;
}
.sch-card.clickable:hover { background: rgba(21, 34, 68, 0.85); }

.sch-container {
    display: flex; align-items: stretch; flex-wrap: nowrap;
    min-height: 82px; padding: 4px 18px;
    color: inherit; text-decoration: none;
}
a.sch-container:hover { color: inherit; }
.sch-container.disabled { cursor: default; }

.dateHour-box { width: 120px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.date-modern { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 70px; gap: 4px; }
.date-day { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1; font-family: "Poppins", sans-serif; letter-spacing: .5px; text-align: center; }
.date-weekday { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; letter-spacing: .8px; font-family: "Poppins", sans-serif; margin-top: 1px; text-align: center; }
.hour-glow { font-size: 22px; font-weight: 700; color: var(--color-accent-y); text-shadow: 0 0 6px rgba(225, 255, 0, 0.12); font-family: "Poppins", sans-serif; line-height: 1.2; }

/* Separador vertical con degradado */
.sch-separator { width: 1px; height: 80%; align-self: center; flex-shrink: 0; margin: 0 14px; background: linear-gradient(180deg, transparent, #ffc107, transparent); }
.sch-separator-g { background: linear-gradient(180deg, transparent, #be167e, #e3534a, #eab020, transparent); }

.description-box { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 4px; overflow-wrap: break-word; }
.titleText { font-family: "Lato", sans-serif; font-weight: 700; font-size: 22px; color: white; margin: 0 0 4px 0; line-height: 1.1; white-space: normal; word-break: break-word; }
.phaseText { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 16px; margin: 0; line-height: 1.1; color: var(--color-accent-y); }

/* Top 3 */
.tops { width: 400px; flex-shrink: 0; flex-direction: column; justify-content: center; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 500; gap: 1px; padding: 6px 0; }
.top-item {
    display: flex; align-items: center; flex: 1 1 0; min-height: 30px; overflow: hidden;
    background: rgba(225, 255, 0, 0.06);
    border-bottom: 1px solid rgba(225, 255, 0, 0.08);
}
.top-item:last-child { border-bottom: none; }
.top-item .name-record { flex: 1 1 0; min-width: 0; padding: 0 8px; color: white; font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item .top-mark { min-width: 50px; padding: 0 6px; text-align: right; }

.rank-modern {
    background: linear-gradient(135deg, var(--color-accent-y), #FF8C00); padding: 2px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    display: flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; flex-shrink: 0; margin: 0 .5rem;
}
.rank-modern-inner {
    background: #0A1226;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-weight: 800; font-size: 13px; font-family: 'Lato', sans-serif; color: var(--color-accent-y);
}

.number-gradient {
    background: linear-gradient(135deg, var(--color-accent-y), #FFC107);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-weight: 800; font-family: 'Lato', sans-serif;
}

.record-value {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; padding: 0 6px; margin-right: 4px;
    font-size: 12px; font-family: "Poppins", sans-serif; font-weight: 800; color: #000;
    border-radius: 4px; background: var(--rl-gold-gradient);
}

.status-box { min-width: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.btn-details { min-width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn_open {
    width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--rl-gold-gradient); color: #000; font-size: 15px; font-weight: 900;
    transition: all .2s ease;
}
a.sch-container:hover .btn_open { filter: brightness(1.15); transform: translateX(2px); }

@media (max-width: 1599.98px) {
    .btn-details { display: none; }
    /* Sin botón: la tarjeta pulsable lleva una línea dorada abajo, como en RFEA Live */
    .sch-card.clickable::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
        background: linear-gradient(135deg, var(--color-accent-y), #FF8C00);
        border-radius: 0 0 5px 5px; pointer-events: none;
    }
}
@media (max-width: 1024px) {
    .sch-container { min-height: 72px; padding: 2px 12px; }
    .sch-separator { margin: 0 6px; }
    .dateHour-box { width: 90px; }
    .hour-glow { font-size: 18px; }
    .date-weekday { font-size: 9px; }
    .titleText { font-size: 16px; }
    .phaseText { font-size: 12px; }
    .status-box { min-width: 110px; }
    .rank-modern { min-width: 24px; height: 24px; }
    .rank-modern-inner { font-size: 10px; }
}
@media (max-width: 768px) {
    .sch-container { min-height: 64px; padding: 2px 8px; }
    .sch-separator { margin: 0 8px; }
    .dateHour-box { width: 50px; }
    .date-modern { min-width: 50px; }
    .date-day { font-size: 14px; }
    .hour-glow { font-size: 13px; }
    .date-weekday { font-size: 8px; }
    .titleText { font-size: 13px; }
    .status-box { min-width: 60px; max-width: 110px; }
}

.rl-empty { padding: 2rem 1rem; color: var(--color-primary-lb); font-family: "Lato", sans-serif; font-size: 1.1rem; }

/* ---------- Loader ---------- */
.load-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 2rem; position: relative; z-index: 1; }
.load-text { margin-bottom: 1.5rem; color: var(--color-primary-lb); font-weight: 500; letter-spacing: .5px; animation: rlFade 2s ease-in-out infinite; }
.load-svg { width: 50px; height: 50px; animation: rlRotate 1.5s linear infinite; }
.load-svg circle { stroke: var(--color-accent-y); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: rlDash 1.5s ease-in-out infinite; }
@keyframes rlRotate { to { transform: rotate(360deg); } }
@keyframes rlDash { 0% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes rlFade { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* ---------- Resultados: cabecera del evento (como la tarjeta del horario abierta) ---------- */
.ev-header {
    position: sticky; top: var(--header-height); z-index: 50;
    margin-top: 1rem;
    display: flex; align-items: center; flex-wrap: nowrap;
    min-height: 82px; padding: 4px 18px;
    background: rgba(8, 16, 35, 1);
    border-radius: 5px 5px 0 0;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.ev-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: linear-gradient(135deg, var(--color-accent-y), #FF8C00); pointer-events: none;
}
.ev-header .back-btn { margin-right: 14px; }
.ev-title { font-family: "Lato", sans-serif; font-weight: 700; font-size: 22px; color: white; margin: 0 0 4px 0; line-height: 1.1; }
.ev-phase { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 16px; color: var(--color-accent-y); margin: 0; line-height: 1.1; }

@media (max-width: 768px) {
    .ev-header { padding: 2px 8px; min-height: 64px; }
    .ev-header .back-btn { padding: 6px 9px; margin-right: 0; }
    .ev-title { font-size: 15px; }
    .ev-phase { font-size: 12px; }
}

.ev-body {
    background: var(--color-primary-db-a);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 1rem .75rem;
}
@media (max-width: 768px) { .ev-body { padding: .75rem .25rem; } }

/* Récords del evento */
.record-card {
    position: relative; height: 100%;
    display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 14px;
    background: #03060e61; backdrop-filter: blur(8px);
    border-radius: 5px; border: 1px solid var(--color-accent-y);
    box-shadow: 0 0 8px rgba(226, 178, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.12);
    transition: all .2s ease;
}
.record-card:hover { transform: scale(1.02); box-shadow: 0 0 16px rgba(226, 178, 0, 0.35), 0 6px 30px rgba(0, 0, 0, 0.3); }
.record-code {
    width: 52px; height: 52px; min-width: 52px; border-radius: 4px;
    background: var(--color-accent-y); color: #000;
    font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 15px;
    display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.05;
}
.record-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.record-name { font-weight: 600; font-size: 14px; text-transform: uppercase; line-height: 1.3; color: white; }
.record-location { font-size: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.3; }
.record-location .sep { color: var(--color-accent-y); margin: 0 6px; }
.record-mark { font-size: 20px; font-weight: 700; color: #fff; white-space: nowrap; }

/* Horas y viento */
.info-times-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.info-time-item {
    display: flex; align-items: flex-start; gap: 6px;
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 6px;
    padding: 8px; min-width: 0;
}
.info-time-item i { font-size: 1.1rem; color: var(--color-accent-y); margin-top: 1px; }
.info-time-label { font-size: .65rem; font-weight: 600; color: var(--text-muted-light); text-transform: uppercase; letter-spacing: .3px; line-height: 1.2; }
.info-time-value { font-size: .95rem; font-weight: 800; color: #F8FAFC; line-height: 1.3; }

/* Interruptor Lista de salida / Resultados */
.fancy-toggle { display: flex; width: fit-content; background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; }
.fancy-option {
    padding: 4px 8px; min-width: 110px; text-align: center; cursor: pointer; user-select: none;
    color: rgba(255, 255, 255, 0.7); border: 1px solid transparent; border-radius: 4px;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: .78rem; font-weight: 600;
    transition: all .2s ease;
}
.fancy-option:not(.active):hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.fancy-option.active { color: #fff; background: rgba(226, 178, 0, 0.25); border-color: rgba(226, 178, 0, 0.35); }
@media (max-width: 768px) { .fancy-option { min-width: 0; font-size: 11px; } }

.rst-search-wrapper { position: relative; flex: 1; min-width: 140px; }
.rst-search-wrapper .search-icon { left: 10px; color: rgba(255, 255, 255, 0.35); font-size: .8rem; }
.rst-search-input {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff;
    padding: 6px 30px 6px 28px; border-radius: 5px; font-size: .85rem; width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rst-search-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.rst-search-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15); background: rgba(0, 0, 0, 0.4); }
.rst-search-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255, 255, 255, 0.5); font-size: .75rem; padding: 4px; cursor: pointer;
}
.rst-search-clear:hover { color: #fff; }

/* Tarjeta de resultados */
.results-card {
    background: #03060e61; border-radius: 14px;
    border: 1px solid rgba(200, 200, 200, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.08);
    overflow: hidden;
}
.results-card-header { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.results-card-body { padding: 8px 4px; overflow-x: auto; }

.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.results-table thead th {
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7);
    padding: 8px 6px; font-weight: 600; text-align: center; white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.results-table thead th.name-th { text-align: left; }
.results-table tbody tr { transition: background .15s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.results-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.results-table tbody tr:last-child { border-bottom: none; }
@media (max-width: 991.98px) { .results-table tbody tr.clickable-sm { cursor: pointer; } }
.results-table td.attempts-cell { text-align: left; width: 1%; white-space: nowrap; }
.attempts-cell .attempts-row { flex-wrap: nowrap; gap: 5px; }
.results-table td { padding: 8px 6px; vertical-align: middle; text-align: center; color: white; }
.results-table td.name-cell { text-align: left; }

.rank-cell { font-size: 25px; font-weight: 900; min-width: 40px; font-family: "Lato", sans-serif; }
.rank-cell.lane { color: var(--color-accent-y); font-size: 20px; }

/* Medallas (estilo Podium) */
.medal-gold { background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%) !important; border-left: 4px solid #FFD700; }
.medal-gold .rank-cell { color: #FFD700; }
.medal-silver { background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%) !important; border-left: 4px solid #C0C0C0; }
.medal-silver .rank-cell { color: #C0C0C0; }
.medal-bronze { background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%) !important; border-left: 4px solid #CD7F32; }
.medal-bronze .rank-cell { color: #CD7F32; }

.bib-badge {
    display: inline-block; background: #E73337; color: white; font-weight: 700;
    padding: 2px 8px; border-radius: 3px; font-size: 12px; min-width: 30px; text-align: center;
    font-family: "Lato", sans-serif;
}
.ath-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 200px; color: #fff; text-transform: uppercase; font-size: 13px; line-height: 1.3; font-family: 'Lato', 'Arial Narrow', sans-serif; }
.ath-guest { color: #FF8D8D; }
.ath-club { color: rgb(155 155 155); font-size: 12px; line-height: 1.3; font-weight: 400; font-family: "Montserrat", "Poppins", sans-serif; }
.ath-members { color: rgba(255, 255, 255, 0.55); font-size: 11px; line-height: 1.3; }

.result-mark { color: var(--color-accent-y); font-weight: 900; font-size: 18px; font-family: "Lato", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-irm {
    display: inline-block; background: rgba(244, 67, 54, 0.2); color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3); border-radius: 4px;
    font-weight: 800; padding: 2px 8px; min-width: 50px; text-align: center; cursor: help;
}
.qualitative-badge { display: inline-block; background: #CB007C; color: white; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 2px; text-align: center; min-width: 26px; }
.record-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rl-gold-gradient); color: #000; font-weight: 800;
    padding: 2px 6px; border-radius: 3px; font-size: 11px; font-family: "Poppins", sans-serif; white-space: nowrap;
}
.points-text { color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 13px; font-family: "Lato", sans-serif; }
.secondary-info { font-size: 13px; color: rgba(255, 255, 255, 0.8); font-family: "Lato", sans-serif; }
.pbsb-value { font-size: 12px; color: white; font-family: "Lato", sans-serif; font-weight: 700; white-space: nowrap; }
.chevron-icon { color: rgba(255, 255, 255, 0.5); font-size: 14px; transition: transform .2s ease; display: inline-block; }
.chevron-icon.expanded { transform: rotate(180deg); }

/* Fila de detalle: intentos */
.detail-row td { padding: 12px 16px; background: rgba(0, 0, 0, 0.2); }
.detail-row-inner { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.attempt-pill {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px;
    padding: 2px 8px; min-width: 52px; min-height: 35px; line-height: 1.2;
    font-size: 12px; font-family: "Lato", sans-serif; color: #ddd; white-space: nowrap;
}
.attempt-pill .att-desc { font-size: 10px; color: var(--text-muted-light); }
.attempt-pill .att-mark { font-weight: 700; color: #fff; }
.attempt-pill .att-wind { font-size: 10px; color: var(--color-primary-lb); }
.attempt-pill.attempt-x { background: rgba(244, 67, 54, 0.2); border-color: rgba(244, 67, 54, 0.3); }
.attempt-pill.attempt-x .att-mark { color: #f44336; }
.attempt-pill.attempt-main { border-color: #ffc107; box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2); }
.ref-box-large {
    background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
    padding: 4px 10px; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; min-width: 110px;
}
.mark-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mark-lbl { font-size: .75rem; font-weight: 800; letter-spacing: .5px; color: var(--color-accent-y); }
.mark-val { font-size: 14px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
    .results-card-header { padding: 8px 10px; }
    .results-card-body { padding: 4px 2px; }
    .results-table { font-size: 11px; }
    .results-table td, .results-table th { padding: 6px 4px; }
    .rank-cell { font-size: 15px; min-width: 30px; }
    .rank-cell.lane { font-size: 14px; }
    .result-mark { font-size: 13px; }
    .ath-name { min-width: 0; font-size: 12px; }
    .ath-club { font-size: 11px; }
    .bib-badge { padding: 1px 4px; font-size: 10px; min-width: 24px; }
    .info-time-value { font-size: .85rem; }
    .detail-row td { padding: 8px; }
}
@media (min-width: 992px) {
    .results-table { font-size: 14px; }
    .results-table td, .results-table th { padding: 8px 10px; }
    .ath-name { font-size: 15px; }
    .ath-club { font-size: 14px; }
    .result-mark { font-size: 23px; }
    .bib-badge { font-size: 13px; }
    .points-text { font-size: 15px; }
    .qualitative-badge { font-size: 13px; }
    .chevron-icon { font-size: 18px; }
}

/* Puntuación */
.standings-title { margin: 0; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; color: white; }
.standings-progress { color: var(--text-muted-light); font-size: .8rem; font-family: "Poppins", sans-serif; }
.standings-progress i { color: var(--color-accent-y); }

.points-btn {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--surface-btn); color: var(--color-accent-y);
    border: 1px solid rgba(226, 178, 0, 0.35); border-radius: 5px;
    padding: 8px 14px; font-size: .78rem; font-weight: 700; white-space: nowrap; text-decoration: none;
    transition: all .2s ease;
}
.points-btn:hover { border-color: var(--color-accent-y); color: var(--color-accent-y); transform: translateY(-1px); }

/* ---------- Paneles de información (columna derecha) ---------- */
.results-sidebar-card {
    background: #03060e61; border-radius: 14px;
    border: 1px solid rgba(200, 200, 200, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.08);
    padding: 2px 12px 14px 12px;
}

.info-card {
    background: rgba(15, 28, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px; overflow: hidden; margin-top: .75rem;
}
.info-card-header { padding: 1rem 1rem .5rem 1rem; display: flex; align-items: center; gap: 8px; }
.info-card-header i { color: var(--color-accent-y); font-size: 1.1rem; }
.info-card-header h6 {
    margin: 0; color: white; font-family: "Poppins", sans-serif; font-weight: 600;
    font-size: .9rem; text-transform: uppercase; letter-spacing: .5px;
}
.info-card-header .header-line { flex: 1; height: 1px; margin-left: 12px; background: linear-gradient(90deg, rgba(255, 215, 0, 0.3) 0%, transparent 100%); }
.info-card-body { padding: 0 1rem 1rem 1rem; font-family: "Poppins", sans-serif; font-size: .88rem; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--text-muted-light); }
.info-list .v { color: white; font-weight: 600; text-align: right; }

/* Podio */
.podium-list { display: flex; flex-direction: column; gap: .5rem; }
.podium-item {
    display: flex; align-items: center; gap: 12px; min-height: 50px; padding: .55rem .75rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px;
    transition: all .2s ease;
}
.podium-item:hover { transform: translateX(4px); }
.podium-item.rank-1 { border-left: 4px solid #FFD700; background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%); }
.podium-item.rank-2 { border-left: 4px solid #C0C0C0; background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%); }
.podium-item.rank-3 { border-left: 4px solid #CD7F32; background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%); }
.podium-rank { font-family: "Poppins", sans-serif; font-size: 1.3rem; font-weight: 800; width: 26px; text-align: center; flex-shrink: 0; }
.rank-1 .podium-rank { color: #FFD700; }
.rank-2 .podium-rank { color: #C0C0C0; }
.rank-3 .podium-rank { color: #CD7F32; }
.podium-info { flex: 1; min-width: 0; }
.podium-name { font-family: "Lato", sans-serif; font-weight: 700; font-size: 14px; color: white; margin: 0; text-transform: uppercase; }
.podium-category { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, 0.6); margin: 2px 0 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-result-badge {
    background: rgba(0, 0, 0, 0.3); color: white; padding: 4px 10px; border-radius: 4px;
    font-family: "Poppins", sans-serif; font-weight: 700; font-size: 14px; border: 1px solid rgba(255, 255, 255, 0.15);
}
.rank-1 .podium-result-badge { border-color: rgba(255, 215, 0, 0.4); color: #FFD700; }

/* Parciales */
.split-table { width: 100%; font-size: .85rem; }
.split-table th { color: var(--text-muted-light); font-weight: 600; text-transform: uppercase; font-size: .7rem; padding: 4px 6px; }
.split-table td { color: white; padding: 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.split-table td.split-mark { color: var(--color-accent-y); font-weight: 800; text-align: right; font-family: "Lato", sans-serif; }

/* Documentos */
.report-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px;
    color: white; text-decoration: none; border-radius: 5px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .2s ease;
}
.report-link:last-child { margin-bottom: 0; }
.report-link i { color: #E73337; font-size: 1.2rem; }
.report-link:hover { color: var(--color-accent-y); border-color: rgba(226, 178, 0, 0.35); }

.legend-code { display: inline-block; min-width: 46px; text-align: center; font-weight: 800; padding: 1px 6px; margin-right: 8px; border-radius: 3px; }

/* ---------- Home / campeonatos ---------- */
.rl-card {
    display: block; height: 100%;
    background: var(--color-primary-db-a);
    border-radius: 5px; border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.12);
    padding: 1.25rem; color: white; text-decoration: none; cursor: pointer;
    transition: all .2s ease;
}
.rl-card:hover { background: rgba(21, 34, 68, 0.85); color: white; transform: translateY(-2px); }
.rl-card .code {
    display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; padding: 0 8px;
    border-radius: 4px; background: var(--rl-gold-gradient); color: #000;
    font-family: "Poppins", sans-serif; font-weight: 900;
}
.rl-card h5 { font-family: "Lato", sans-serif; font-weight: 700; margin: 1rem 0 .25rem 0; }
.rl-card p { color: var(--text-muted-light); margin: 0; font-size: .9rem; }

/* Federaciones con logo */
.org-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--color-primary-db-a); border-radius: 5px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px -3px rgba(210, 210, 210, 0.12);
    padding: .75rem; color: white; text-decoration: none; transition: all .2s ease;
}
.org-card:hover { background: rgba(21, 34, 68, 0.85); color: white; transform: translateY(-2px); }
.org-card:hover .org-logo { box-shadow: 0 0 0 2px var(--color-accent-y); }
.org-logo {
    height: 120px; border-radius: 4px; background: #fff; padding: 10px;
    display: flex; align-items: center; justify-content: center; transition: box-shadow .2s ease;
}
.org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-logo .code, .featured-logo .code { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 1.4rem; color: var(--color-primary-db); }
.org-name { font-family: "Lato", sans-serif; font-weight: 700; font-size: 1rem; margin-top: .6rem; line-height: 1.2; }
.org-long { color: var(--text-muted-light); font-size: .75rem; line-height: 1.3; margin-top: 2px; }
@media (max-width: 575.98px) { .org-logo { height: 90px; } }

/* Eventos destacados */
.featured-card {
    position: relative; display: flex; align-items: center; gap: 14px; height: 100%;
    padding: 12px 14px; border-radius: 5px; color: white; text-decoration: none;
    background: linear-gradient(135deg, rgba(203, 0, 124, 0.18) 0%, var(--color-primary-db-a) 55%);
    border: 1px solid rgba(226, 178, 0, 0.35);
    box-shadow: 0 0 8px rgba(226, 178, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all .2s ease;
}
.featured-card::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--rl-gradient); border-radius: 0 0 5px 5px;
}
.featured-card:hover { color: white; transform: translateY(-2px); box-shadow: 0 0 16px rgba(226, 178, 0, 0.3), 0 6px 30px rgba(0, 0, 0, 0.3); }
.featured-card:hover .btn_open { filter: brightness(1.15); }
.featured-logo {
    width: 84px; height: 84px; flex-shrink: 0; border-radius: 4px; background: #fff; padding: 6px;
    display: flex; align-items: center; justify-content: center;
}
.featured-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.featured-body { flex: 1; min-width: 0; }
.featured-body h5 { font-family: "Lato", sans-serif; font-weight: 700; font-size: 1.1rem; margin: 4px 0; line-height: 1.2; }
.featured-body p { margin: 0; color: var(--text-muted-light); font-size: .85rem; }
.featured-body p i { color: #CB007C; }
.featured-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-weight: 700; font-size: .85rem; }
.featured-live { display: inline-flex; align-items: center; gap: 5px; color: #EF4444; font-size: .72rem; font-weight: 800; border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 575.98px) {
    .featured-logo { width: 64px; height: 64px; }
    .featured-body h5 { font-size: .95rem; }
}

.news-card {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: var(--color-primary-db-a); border-radius: 5px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card .body { padding: 1rem; flex: 1; }
.news-card .date { color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-size: .8rem; }
.news-card h6 { font-family: "Lato", sans-serif; font-weight: 700; color: white; margin: .35rem 0; font-size: 1.05rem; }
.news-card p { color: var(--text-muted-light); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Errores Blazor ---------- */
#blazor-error-ui {
    color-scheme: light only; background: lightyellow; color: black;
    bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); box-sizing: border-box;
    display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* =====================================================================
   Federación, noticias, cabecera con logo de la organización
   ===================================================================== */
.rl-header-org {
    width: 46px; height: 46px; flex-shrink: 0; margin-right: .75rem;
    background: #fff; border-radius: 8px; padding: 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px rgba(226, 178, 0, 0.35);
}
.rl-header-org img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 991.98px) {
    .rl-header-org { width: 38px; height: 38px; margin-right: auto; }
}

.org-hero { display: flex; align-items: center; gap: 16px; padding: 1.25rem 0 .5rem; flex-wrap: wrap; }
.org-hero-logo {
    width: 84px; height: 84px; background: #fff; border-radius: 12px; padding: 8px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.org-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-hero-text { flex: 1; min-width: 200px; }
.org-hero-text h1 { font-family: "Lato", sans-serif; font-weight: 900; font-size: 1.6rem; margin: 0; color: #fff; }
.org-hero-text span { color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem; }
@media (max-width: 576px) {
    .org-hero-logo { width: 60px; height: 60px; }
    .org-hero-text h1 { font-size: 1.15rem; }
}

/* Meses del calendario */
.month-bar { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.month-bar::-webkit-scrollbar { display: none; }
.month-btn { display: inline-flex; align-items: center; gap: 6px; }
.month-btn.empty { opacity: .55; }
.month-count {
    background: rgba(226, 178, 0, 0.18); color: var(--color-accent-y); border-radius: 10px;
    font-size: .7rem; font-weight: 800; padding: 0 6px; line-height: 1.5;
}
.session-btn.active .month-count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.sch-card.is-featured { box-shadow: inset 3px 0 0 var(--color-accent-y); }

/* Noticias */
.news-date { color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-size: .8rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.news-lead, .news-item {
    display: flex; overflow: hidden; text-decoration: none; color: #fff;
    background: var(--color-primary-db-a); border-radius: 8px; border-top: 1px solid rgba(200, 200, 200, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); transition: transform .2s ease, box-shadow .2s ease;
}
.news-lead:hover, .news-item:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 16px rgba(226, 178, 0, 0.25), 0 6px 30px rgba(0, 0, 0, 0.3); }
.news-lead { flex-direction: column; height: 100%; }
.news-lead-img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #0A1124; }
.news-lead-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-lead:hover .news-lead-img > img, .news-item:hover .news-item-img > img { transform: scale(1.04); }
.news-lead-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rl-gradient); }
.news-lead-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.news-lead-body h3 { font-family: "Lato", sans-serif; font-weight: 900; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.news-lead-body p { color: #CBD5E1; font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { color: var(--color-accent-y); font-weight: 700; font-size: .85rem; margin-top: auto; padding-top: .4rem; }
.news-item { flex: 1; min-height: 120px; }
.news-item-img { width: 38%; max-width: 220px; flex-shrink: 0; overflow: hidden; background: #0A1124; }
.news-item-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-item-body { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.news-item-body h6 { font-family: "Lato", sans-serif; font-weight: 800; font-size: 1.02rem; margin: 0; line-height: 1.25; }
.news-item-body p { color: var(--text-muted-light); font-size: .85rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-img-placeholder {
    width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 70% 30%, rgba(203, 0, 124, 0.35), transparent 60%), linear-gradient(135deg, #0F1932, #152244);
}
.news-img-placeholder img { max-width: 40%; max-height: 60%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); background: #fff; border-radius: 8px; padding: 6px; }
@media (max-width: 576px) {
    .news-lead-body h3 { font-size: 1.15rem; }
    .news-item-img { width: 34%; }
}

.news-article { max-width: 920px; margin: 1rem auto 0; background: var(--color-primary-db-a); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35); }
.news-article-top { padding: 12px; }
.news-article-cover { position: relative; max-height: 480px; overflow: hidden; }
.news-article-cover img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.news-article-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rl-gradient); }
.news-article-body { padding: 1.5rem 1.75rem 2rem; }
.news-article-body h1 { font-family: "Lato", sans-serif; font-weight: 900; font-size: 2rem; line-height: 1.2; margin: .5rem 0 1rem; color: #fff; }
.news-article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-size: .85rem; font-weight: 600; }
.news-article-meta i { margin-right: 4px; }
.news-article-lead { font-size: 1.15rem; color: #E2E8F0; font-weight: 500; border-left: 3px solid var(--color-accent-y); padding-left: 12px; }
.news-article-html { color: #CBD5E1; font-size: 1rem; line-height: 1.7; }
.news-article-html img { max-width: 100%; height: auto; border-radius: 6px; }
.news-article-html a { color: var(--color-accent-y); }
.news-article-html h2, .news-article-html h3 { color: #fff; font-family: "Lato", sans-serif; font-weight: 800; margin-top: 1.5rem; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1.5rem; }
.news-tag { background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--color-primary-lb); border-radius: 14px; padding: 2px 10px; font-size: .8rem; }
@media (max-width: 576px) {
    .news-article-body { padding: 1rem; }
    .news-article-body h1 { font-size: 1.4rem; }
}

/* =====================================================================
   Compartir
   ===================================================================== */
.share-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; flex-shrink: 0;
    border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--surface-btn);
    color: var(--color-accent-y); font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.share-btn:hover { border-color: var(--color-accent-y); transform: translateY(-1px); }
.share-modal {
    position: fixed; inset: 0; z-index: 10000; background: rgba(0, 8, 20, 0.92); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 10px;
}
.share-modal-content {
    background: #121e36; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
    border-radius: 16px; padding: 20px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
}
.share-modal-content.image { max-width: 520px; }
.share-title { color: var(--text-muted-light); font-size: .9rem; margin: 12px 0; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-net {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600;
    transition: all .2s ease;
}
.share-net i { font-size: 1.5rem; }
.share-net:hover { color: #fff; transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.share-net.whatsapp i { color: #25D366; }
.share-net.facebook i { color: #1877F2; }
.share-net.telegram i { color: #29A9EB; }
.share-net.linkedin i { color: #0A66C2; }
.share-net.mail i { color: var(--color-accent-y); }
.share-link-row { display: flex; gap: 6px; margin-top: 14px; }
.share-link-input { flex: 1; min-width: 0; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: var(--color-primary-lb); padding: 6px 10px; font-size: .8rem; }
.share-copy-btn { border: none; border-radius: 6px; background: var(--color-accent-y); color: var(--color-primary-db); font-weight: 700; font-size: .8rem; padding: 0 12px; white-space: nowrap; }
.close-modal-btn.alt { background: var(--rl-active-gradient); color: #fff; }
.close-modal-btn:disabled { opacity: .5; cursor: not-allowed; }
.result-image-preview { margin-top: 14px; border-radius: 10px; overflow: hidden; background: #0A1124; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.result-image-preview img { width: 100%; display: block; }

/* Scroll al volver al horario: destello en la prueba de la que venimos */
.sch-item.rl-flash .sch-card { animation: rlFlash 2.2s ease; }
@keyframes rlFlash {
    0%, 30% { box-shadow: 0 0 0 2px var(--color-accent-y), 0 0 24px rgba(226, 178, 0, 0.45); }
    100% { box-shadow: none; }
}

/* =====================================================================
   Resultados
   ===================================================================== */
.parent-link {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(203, 0, 124, 0.25), rgba(117, 36, 131, 0.15)); border: 1px solid rgba(203, 0, 124, 0.35);
    color: #fff; text-decoration: none; font-size: .9rem;
}
.parent-link i:first-child { color: var(--color-accent-y); font-size: 1.1rem; }
.parent-link:hover { color: #fff; border-color: var(--color-accent-y); }
.parent-link span:last-child { color: var(--color-accent-y); font-weight: 700; white-space: nowrap; }

.wind-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px;
    background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-weight: 800; font-size: .85rem;
}
.wind-chip i { color: var(--color-accent-y); }
.results-card-footer { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.results-card-footer.info-times-row { display: flex; flex-wrap: wrap; gap: 8px; }
.results-card-footer .info-time-item { flex: 1 1 130px; max-width: 220px; }

.qual-th { width: 1%; }
.qual-cell { width: 1%; }
.qualitative-badge { min-width: 24px; }
.diff-val { color: var(--text-muted-light); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.age-val { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.age-lbl { font-size: .7rem; color: var(--text-muted-light); margin-left: 3px; text-transform: uppercase; }
.actions-th, .actions-cell { width: 1%; white-space: nowrap; }
.row-icon-btn {
    align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; margin-right: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(15, 25, 50, 0.7); color: var(--color-primary-lb); cursor: pointer; transition: all .2s ease;
}
.row-icon-btn:hover { border-color: var(--color-accent-y); color: var(--color-accent-y); }
@media (min-width: 992px) { .results-table tbody tr.clickable { cursor: pointer; } }
.results-table tbody tr.is-expanded { background: rgba(255, 255, 255, 0.03); }
.result-mark.sm { font-size: 16px; }

/* Tarjetas de marcha, artículo y extra */
.walk-cards { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.walk-card {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 26px; padding: 0 5px;
    border-radius: 3px; font-weight: 900; font-size: 14px; font-family: "Lato", sans-serif; line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.walk-card.card-yellow { background: #FACC15; color: #1F2937; }
.walk-card.card-red { background: #DC2626; color: #fff; }
.walk-card.card-pen { background: #7C3AED; color: #fff; }
.walk-card.prev { opacity: .55; }
.article-line { align-items: baseline; gap: 6px; margin-top: 4px; font-size: 12px; line-height: 1.3; }
.article-line.d-lg-none { display: flex; }
.article-code { background: rgba(244, 67, 54, 0.18); border: 1px solid rgba(244, 67, 54, 0.35); color: #FCA5A5; border-radius: 3px; padding: 0 6px; font-weight: 800; white-space: nowrap; }
.article-msg { color: #CBD5E1; }
.extra-line { margin-top: 4px; font-size: 12px; color: var(--color-primary-lb); }

/* Intentos: algo más grandes */
.attempts-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.attempt-pill { min-width: 62px; min-height: 52px; padding: 4px 10px; font-size: 15px; border-radius: 6px; }
.attempt-pill .att-desc { font-size: 11px; font-weight: 600; }
.attempt-pill .att-mark { font-size: 16px; font-weight: 800; }
.attempt-pill .att-wind { font-size: 11px; min-height: 13px; }
.attempt-pill.vertical .att-mark { letter-spacing: 2px; }
.attempt-pill.attempt-skip .att-mark { color: var(--text-muted-light); }
.xo-o { color: #22C55E; font-weight: 900; }
.xo-x { color: #f44336; font-weight: 900; }
.xo-skip { color: var(--text-muted-light); }
.ref-box-large { min-width: 120px; padding: 6px 12px; }
.mark-val { font-size: 15px; }

/* Combinadas: todas las cajas con el mismo alto (el viento siempre reserva su línea) */
.combined-row td { padding: 0 10px 12px 10px !important; }
.combined-boxes { display: flex; gap: 6px; flex-wrap: wrap; }
.cmb-box {
    display: grid; grid-template-rows: 16px 22px 14px 18px 16px; align-items: center; justify-items: center;
    width: 92px; padding: 6px 4px; border-radius: 6px; line-height: 1;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.cmb-box.empty { opacity: .5; }
.cmb-event { font-size: 11px; color: var(--text-muted-light); font-weight: 700; text-transform: uppercase; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmb-mark { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.cmb-wind { font-size: 11px; color: var(--color-primary-lb); }
.cmb-points { font-size: 15px; font-weight: 800; color: var(--color-accent-y); font-variant-numeric: tabular-nums; }
.cmb-total { font-size: 12px; font-weight: 800; color: #fff; background: rgba(203, 0, 124, 0.35); border-radius: 3px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 991.98px) {
    .cmb-box { width: calc(20% - 5px); min-width: 62px; }
    .cmb-mark { font-size: 15px; }
}

/* Desplegable de detalle */
.detail-content { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.detail-stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; width: 100%; }
.detail-stat {
    display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border-radius: 6px; min-width: 72px;
    background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-stat-label { font-size: .68rem; font-weight: 800; color: var(--color-accent-y); text-transform: uppercase; letter-spacing: .4px; }
.detail-stat-value { font-size: 16px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.detail-share {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 6px 12px;
    border: 1px solid rgba(226, 178, 0, 0.5); background: rgba(226, 178, 0, 0.1); color: var(--color-accent-y); font-weight: 700; font-size: .85rem;
}

/* Gráfica de evolución de marcas */
.mark-chart { flex: 1 1 420px; max-width: 620px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 8px 10px 4px; }
.mark-chart-title { font-size: .75rem; font-weight: 800; color: var(--color-accent-y); text-transform: uppercase; letter-spacing: .4px; }
.mark-chart svg { width: 100%; height: auto; display: block; }
.mc-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.mc-axis { fill: var(--text-muted-light); font-size: 11px; font-family: "Lato", sans-serif; }
.mc-line { fill: none; stroke: #E2B200; stroke-width: 2.5; stroke-linejoin: round; }
.mc-dot { fill: #0F1932; stroke: #E2B200; stroke-width: 2.5; }
.mc-dot.best { fill: #E2B200; stroke: #fff; }
.mc-val { fill: #fff; font-size: 12px; font-weight: 700; font-family: "Lato", sans-serif; }
.mc-val.best { fill: #E2B200; font-size: 13px; }
.mc-foul { fill: #f44336; font-size: 13px; font-weight: 900; font-family: "Lato", sans-serif; }
.mc-ref { stroke-width: 1.5; stroke-dasharray: 5 4; }
.mc-ref.pb { stroke: #CB007C; }
.mc-ref.sb { stroke: #5A8CBE; }
.mc-ref-lbl { font-size: 11px; font-weight: 800; font-family: "Lato", sans-serif; }
.mc-ref-lbl.pb { fill: #CB007C; }
.mc-ref-lbl.sb { fill: #5A8CBE; }

/* Normas de calificación */
.qrules-card {
    margin-top: 1rem; padding: 12px 16px; border-radius: 8px; background: var(--color-primary-db-a);
    border-left: 3px solid var(--color-accent-y); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.qrules-title { font-size: .75rem; font-weight: 800; color: var(--color-accent-y); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.qrules-value { color: #fff; font-size: .95rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.summary-table tbody tr.is-qualified { background: rgba(203, 0, 124, 0.08); }
.serie-badge { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 4px; background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.15); color: var(--color-primary-lb); font-weight: 800; font-size: 12px; }
.mini-table .rank-cell { font-size: 18px; }
.mini-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; color: var(--color-accent-y); font-weight: 700; text-decoration: none; font-size: .85rem; }

/* Foto finish */
.photo-finish { width: 100%; border-radius: 6px; cursor: zoom-in; display: block; }
.photo-finish.is-fullscreen {
    position: fixed; inset: 0; z-index: 10001; width: 100vw; height: 100vh; object-fit: contain;
    background: rgba(0, 0, 0, 0.95); border-radius: 0; cursor: zoom-out;
}

/* Pasos intermedios */
.splits { display: flex; flex-direction: column; gap: 6px; }
.split-item {
    display: grid; grid-template-columns: 80px 90px 1fr auto; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid transparent;
    border-image: var(--rl-gradient-v) 1;
}
.split-distance { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--color-accent-y); font-size: .9rem; }
.split-time { font-family: "Lato", sans-serif; font-weight: 900; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }
.split-ath { display: flex; flex-direction: column; min-width: 0; }
.split-name { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-club { color: var(--text-muted-light); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 576px) {
    .split-item { grid-template-columns: 64px 74px 1fr; }
    .split-item .bib-badge { display: none; }
    .split-time { font-size: 1rem; }
}

/* Marca del atleta, algo más grande */
.result-mark { font-size: 20px; }
@media (max-width: 768px) { .result-mark { font-size: 16px; } }
@media (min-width: 992px) { .result-mark { font-size: 26px; } }

/* =====================================================================
   31/10: botón de acceso, estados, flechas de prueba, paginación,
   categoría, sumario, equipos y vista por prueba
   ===================================================================== */

/* Botón de acceso: texto + flecha (el círculo con ">" se confundía con las tarjetas de marcha) */
.go-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border-radius: 6px; border: 1px solid rgba(226, 178, 0, 0.55); background: rgba(226, 178, 0, 0.1);
    color: var(--color-accent-y); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 12px;
    letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: all .2s ease;
}
.go-btn i { font-size: 14px; }
a.sch-container:hover .go-btn, .sch-card.clickable:hover .go-btn, .featured-card:hover .go-btn {
    background: var(--color-accent-y); color: var(--color-primary-db); border-color: var(--color-accent-y);
}
.btn-details { min-width: 92px; }
.btn-details.wide { min-width: 140px; justify-content: flex-end; padding-right: 10px; }
@media (min-width: 768px) and (max-width: 1599.98px) {
    .btn-details.wide { display: flex; }
}
.featured-card .go-btn { align-self: center; margin-left: auto; }
@media (max-width: 575.98px) {
    .featured-card .go-btn span { display: none; }
    .featured-card .go-btn { padding: 0 9px; }
}

/* Tipo y estado del campeonato */
.type-chip {
    align-items: center; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
    color: var(--color-primary-lb); background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.1);
}
.ch-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 5px;
    font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    border: 1px solid rgba(192, 192, 192, 0.25); background: rgba(25, 48, 81, 0.35); color: #fff; white-space: nowrap;
}
.ch-status.scheduled { color: var(--color-primary-lb); }
.ch-status.live { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); color: #FCA5A5; }
.ch-status.official { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.45); color: #86EFAC; }
@media (max-width: 575.98px) {
    .ch-status { padding: 3px 6px; font-size: 10px; }
}

/* Flechas de prueba anterior / siguiente */
.ev-nav { display: flex; flex-direction: column; gap: 4px; margin-left: 10px; }
.ev-nav-btn {
    width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 5px; background: var(--surface-btn); border: 1px solid rgba(226, 178, 0, 0.4);
    color: var(--color-accent-y); font-size: 16px; text-decoration: none; transition: all .2s ease;
}
.ev-nav-btn:hover { background: var(--color-accent-y); color: var(--color-primary-db); }
.ev-nav-btn.disabled { opacity: .3; pointer-events: none; }
.rl-empty .ev-nav { flex-direction: row; margin-left: 0; }
@media (max-width: 768px) {
    .ev-nav { margin-left: 6px; gap: 3px; }
    .ev-nav-btn { width: 30px; height: 26px; font-size: 14px; }
}
.ev-header.embedded { position: relative; top: 0; margin-top: .5rem; }

/* Paginación */
.rl-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.rl-pager-info { color: var(--text-muted-light); font-size: 13px; }
.rl-pager-btns { display: flex; gap: 4px; }
.rl-page-btn {
    min-width: 34px; height: 34px; padding: 0 8px; border-radius: 5px; cursor: pointer;
    background: var(--surface-chip); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
    font-weight: 700; font-size: 13px; transition: all .15s ease;
}
.rl-page-btn:hover:not(:disabled) { border-color: var(--color-accent-y); color: var(--color-accent-y); }
.rl-page-btn.active { background: var(--rl-gold-gradient); color: #000; border-color: transparent; }
.rl-page-btn:disabled { opacity: .35; cursor: default; }

/* Edad y categoría */
.age-cat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cat-badge {
    display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
    color: var(--color-accent-y); background: rgba(226, 178, 0, 0.1); border: 1px solid rgba(226, 178, 0, 0.35);
}
.row-icon-btn.social:hover { color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); border-color: transparent; }

/* Intentos en el desplegable del móvil: los 6 en una fila */
.attempts-row.attempts-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.attempts-grid .attempt-pill { min-width: 0; min-height: 50px; padding: 4px 1px; }
.attempts-grid .attempt-pill .att-desc { font-size: 10px; }
.attempts-grid .attempt-pill .att-mark { font-size: 14px; letter-spacing: -.02em; }
.attempts-grid .attempt-pill .att-wind { font-size: 10px; }
@media (max-width: 360px) {
    .attempts-grid .attempt-pill .att-mark { font-size: 12.5px; }
}

/* Sumario: serie y puesto en la serie */
.serie-pill { display: inline-flex; align-items: stretch; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px; font-weight: 800; }
.serie-pill .serie-num { padding: 1px 6px; background: var(--surface-chip); color: var(--color-primary-lb); }
.serie-pill .serie-rank { padding: 1px 6px; background: rgba(226, 178, 0, 0.15); color: var(--color-accent-y); }

/* Clasificación por equipos */
.teams-card { margin-top: 1rem; background: rgba(8, 16, 35, 0.85); border: 1px solid rgba(200, 200, 200, 0.12); border-radius: 8px; padding: 12px; }
.teams-card-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 4px 4px 12px; }
.teams-card-header h5 { margin: 0; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.teams-type { font-size: 12px; color: var(--text-muted-light); }
.teams-toggle-all { margin-left: auto; background: var(--surface-btn); border: 1px solid rgba(226, 178, 0, 0.35); color: var(--color-accent-y); border-radius: 5px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.team-box { border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid rgba(255, 255, 255, 0.25); border-radius: 6px; margin-bottom: 10px; background: rgba(21, 34, 68, 0.45); overflow: hidden; }
.team-box.gold { border-left-color: #E2B200; }
.team-box.silver { border-left-color: #C9D1D9; }
.team-box.bronze { border-left-color: #D58B4C; }
.team-box.gold.open .team-head { background: linear-gradient(90deg, rgba(226, 178, 0, 0.18), transparent 70%); }
.team-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: transparent; border: 0; color: #fff; text-align: left; cursor: pointer; }
.team-rank { min-width: 28px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px; text-align: center; color: #fff; }
.team-box.gold .team-rank, .team-box.gold .team-name, .team-box.gold .team-total { color: #E2B200; }
.team-box.silver .team-rank { color: #C9D1D9; }
.team-box.bronze .team-rank, .team-box.bronze .team-name, .team-box.bronze .team-total { color: #D58B4C; }
.team-name { flex: 1; min-width: 0; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 18px; }
.team-total { font-family: "Roboto Condensed", "Roboto", sans-serif; font-size: 26px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-total small { font-size: 13px; margin-left: 3px; color: var(--text-muted-light); }
.team-chevron { font-size: 16px; color: var(--color-accent-y); transition: transform .2s ease; }
.team-box.open .team-chevron { transform: rotate(180deg); }
.team-table { width: calc(100% - 24px); margin: 0 12px 12px; border-collapse: separate; border-spacing: 0 6px; }
.team-table th { padding: 6px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted-light); text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.team-table td { padding: 12px 10px; background: rgba(21, 34, 68, 0.6); text-align: center; }
.team-table td:first-child { border-radius: 4px 0 0 4px; }
.team-table td:last-child { border-radius: 0 4px 4px 0; }
.team-ath-rank { color: var(--text-muted-light); font-weight: 700; width: 60px; }
.team-ath-name { text-align: left !important; font-weight: 700; color: #fff; }
.team-bib { margin-left: 8px; font-size: 11px; color: var(--text-muted-light); font-weight: 600; }
.team-cat { font-size: 11px; font-weight: 700; color: var(--color-primary-lb); }
.team-ath-mark { font-weight: 800; color: var(--color-accent-y); font-variant-numeric: tabular-nums; }
.team-ath-points { font-weight: 800; color: #fff; }
.team-table tr.not-scoring td, .team-table tr.not-scoring .team-ath-name, .team-table tr.not-scoring .team-ath-mark { color: #FF8D8D; }
.teams-legend { display: flex; gap: 16px; padding: 4px 6px; font-size: 12px; color: var(--text-muted-light); }
.teams-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.teams-legend .dot.scoring { background: var(--color-accent-y); }
.teams-legend .dot.not-scoring { background: #FF8D8D; }
@media (max-width: 575.98px) {
    .team-head { padding: 10px 12px; gap: 8px; }
    .team-rank { font-size: 18px; min-width: 20px; }
    .team-name { font-size: 14px; }
    .team-total { font-size: 18px; }
    .team-table { width: calc(100% - 12px); margin: 0 6px 8px; }
    .team-table td { padding: 9px 6px; font-size: 13px; }
}

/* Vista de resultados por prueba */
.points-btn.alt { color: var(--color-primary-lb); border-color: rgba(164, 192, 219, 0.35); }
.ev-col { background: rgba(8, 16, 35, 0.75); border: 1px solid rgba(200, 200, 200, 0.1); border-radius: 8px; padding: 10px; height: 100%; }
.ev-col-title {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; margin-bottom: 6px;
    font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 2px solid; border-image: var(--rl-gradient) 1;
}
.ev-col-title.men i { color: #5A8CBE; }
.ev-col-title.women i { color: #CB007C; }
.ev-col-count { margin-left: auto; font-size: 12px; color: var(--text-muted-light); background: var(--surface-chip); border-radius: 10px; padding: 1px 8px; }
.ev-col-empty { padding: 16px; color: var(--text-muted-light); font-size: 14px; }
.ev-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 6px;
    background: rgba(21, 34, 68, 0.55); border: 1px solid transparent; color: #fff; text-decoration: none; transition: all .15s ease;
}
.ev-item:hover { border-color: rgba(226, 178, 0, 0.5); background: rgba(21, 34, 68, 0.85); color: #fff; }
.ev-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-item-name { font-family: "Lato", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.2; }
.ev-item-phases { font-size: 12px; color: var(--text-muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-item-winner { align-items: center; gap: 8px; max-width: 45%; min-width: 0; }
.ev-item-winner .rank-modern { transform: scale(.8); }
.ev-winner-name { font-size: 13px; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-winner-mark { font-weight: 800; font-size: 15px; white-space: nowrap; }
.ev-item-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; color: var(--text-muted-light); }
.ev-item-status.live { color: #FCA5A5; }
.ev-item-status.official { color: #86EFAC; }
.ev-item-status.startlist { color: var(--color-primary-lb); }
.ev-item-go { color: var(--color-accent-y); }

/* Selector de fases y series: flechas encadenadas FINAL > SEMIFINAL 1/2 > SEMIFINAL 2/2 */
.phase-steps { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; scrollbar-width: thin; }
.phase-step {
    position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 22px 0 28px; margin-right: -6px;
    background: var(--surface-chip); color: var(--color-primary-lb); text-decoration: none;
    font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .03em; white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
    transition: background .15s ease, color .15s ease;
}
.phase-step:first-child { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 5px 0 0 5px; }
.phase-step:hover { background: rgba(226, 178, 0, 0.18); color: #fff; }
.phase-step.active { background: var(--rl-gold-gradient); color: #000; }
.phase-step.pending { opacity: .55; }
.phase-step.live:not(.active) { color: #FCA5A5; }
@media (max-width: 575.98px) {
    .phase-step { height: 36px; font-size: 11.5px; padding: 0 18px 0 22px; }
    .phase-step:first-child { padding-left: 12px; }
}

/* Patrocinadores */
.sponsor-banner { margin: 1.5rem 0 1rem; padding: 14px 16px 16px; border-radius: 8px; background: #fff; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.sponsor-banner-title { display: block; margin-bottom: 8px; font-family: "Poppins", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748B; }
.sponsor-banner img { max-width: 100%; max-height: 160px; object-fit: contain; }

/* Noticias: firma, enlaces, imágenes y documentos dentro del texto */
.news-signature { display: flex; align-items: center; gap: 12px; margin: 1.5rem 0 .5rem; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.news-signature > i { font-size: 1.3rem; color: var(--color-accent-y); }
.news-signature-name { display: block; font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; }
.news-signature-org { display: block; font-size: .8rem; color: var(--text-muted-light); }
.news-article-html img { max-width: 100%; height: auto; border-radius: 6px; margin: .5rem 0; }
.news-article-html a { color: var(--color-accent-y); text-decoration: underline; text-underline-offset: 2px; }
.news-article-html a[href$=".pdf"], .news-article-html a[href*="/uploads/docs/"] {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 5px; text-decoration: none;
    background: rgba(226, 178, 0, 0.1); border: 1px solid rgba(226, 178, 0, 0.4);
}

/* Prueba seleccionada al volver desde sus resultados */
.sch-card.is-selected {
    background: rgba(226, 178, 0, 0.10);
    box-shadow: inset 0 0 0 2px var(--color-accent-y);
}
