@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: justice-league;
    src: url('../fonts/justiceleague.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
#header { position: sticky; top: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
#header .classification-active { color: #ffd230; }
#header .navbar { max-width: 100%; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
#header .navbar-toggler { margin-left: 0 !important; min-height: 44px; min-width: 44px; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffd230; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #ffd230; color: #080b2e; padding: 12px 18px; z-index: 100000; }
.skip-link:focus { top: 12px; }
@media (max-width: 991px) {
    #header .navbar-collapse.show, #header .navbar-xs, #header .navbar-collapse.show > .navbar-nav { background: #080b2e; }
    #header .navbar-collapse.show > .navbar-nav a { color: #fff; height: auto; padding: 12px 15px; }
    #header .navbar-collapse.show > .navbar-nav a.classification-active { color: #ffd230; }
    #header .navbar { width: 100%; padding: 8px 12px; }
}

/* Clasificaciones: misma paleta y paneles de la web de la carrera. */
.rankings-page { background: #f5f6fa; color: #080b2e; }
.rankings-page .ranking-hero { padding: 42px 0 40px; color: #fff; }
.ranking-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); margin: 10px 0 14px; overflow-wrap: anywhere; }
.ranking-eyebrow { font-family: apotek, 'Open Sans', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; margin: 0 0 8px; }
.ranking-hero .ranking-eyebrow { color: #ffd230; }
.ranking-hero-description { font-size: 16px; margin: 0; color: #e2e4ff; }
.ranking-content { padding-top: 30px; padding-bottom: 60px; }
.ranking-notice { display: flex; align-items: center; gap: 12px; background: #fff8e1; border-left: 5px solid #c99a06; border-radius: 0 8px 8px 0; padding: 16px 20px; margin-bottom: 28px; color: #5a4708; }
.ranking-notice p { margin: 0; font-size: 14px; }
.ranking-icon { flex-shrink: 0; vertical-align: middle; }
.rankings-page .ranking-search-panel { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px; padding: 30px 34px; border: 3px solid #080b2e; border-radius: 14px; background: #080b2e; color: #fff; box-shadow: 6px 6px 0 #ffd230; }
.ranking-search-copy .ranking-eyebrow { color: #ffd230; }
.ranking-search-copy h2 { color: #fff; font-size: 36px; margin: 0 0 6px; }
.ranking-search-copy > p:last-child { color: #d9dbee; margin: 0; font-size: 14px; }
.ranking-search-form label { display: block; color: #fff; font-size: 13px; margin-bottom: 8px; }
.ranking-search-fields { display: flex; gap: 10px; }
.ranking-search-fields input { flex: 1; min-width: 0; width: 100%; padding: 12px 15px; border-radius: 6px; border: 2px solid transparent; color: #080b2e; background: #fff; font-size: 14px; min-height: 50px; }
.rankings-page input:focus-visible, .rankings-page select:focus-visible { outline: 3px solid #ffd230; outline-offset: 3px; }
.ranking-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; border: 2px solid #080b2e; border-radius: 6px; padding: 10px 20px; font-family: apotek-comp, 'Arial Narrow', Impact, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1.2; cursor: pointer; }
.ranking-button-yellow { background: #ffd230; color: #080b2e; }
.ranking-button-yellow:hover { background: #ffe16e; color: #080b2e; }
.ranking-button-blue { background: #1f21b0; color: #fff; }
.ranking-button-blue:hover { background: #141682; color: #fff; }
.rankings-page .ranking-section { padding: 0; margin-top: 45px; }
.ranking-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 20px; }
.ranking-section-heading h2 { font-size: 36px; margin: 0; color: #1f21b0; }
.ranking-section-heading .ranking-eyebrow { color: #595d76; }
.ranking-section-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #1f21b0; background: #e8e9fa; border-radius: 50%; }
.ranking-section-icon svg { width: 27px; height: 27px; }
.ranking-podium-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ranking-podium { overflow: hidden; }
.ranking-panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: #080b2e; color: #fff; }
.ranking-panel-heading h3 { font-size: 28px; color: #fff; margin: 0; }
.ranking-panel-heading > span { color: #ffd230; font-family: apotek-comp, sans-serif; font-size: 22px; }
.ranking-podium-list { list-style: none; padding: 0 24px; margin: 0; }
.ranking-podium-list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e7e8ef; }
.ranking-podium-list li:last-child { border-bottom: 0; }
.ranking-place { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; font-family: apotek-comp, Impact, sans-serif; font-size: 29px; color: #080b2e; }
.ranking-place-1 { background: #ffd230; }
.ranking-place-2 { background: #e7e9f0; }
.ranking-place-3 { background: #f4dfcf; }
.ranking-podium-name { min-width: 0; }
.ranking-podium-name strong { display: block; color: #555970; font-size: 14px; font-weight: 400; }
.ranking-podium-name > span { display: block; color: #71758b; font-size: 12px; margin-top: 3px; }
.ranking-pending-time { margin-left: auto; color: #8a8da2; font-size: 22px; }
.ranking-panel-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; color: #1f21b0; border-top: 1px solid #e7e8ef; background: #f8f8fd; font-size: 14px; }
.ranking-panel-link:hover { background: #efeffa; }
.ranking-panel-link svg, .ranking-team-cta svg { width: 19px; height: 19px; }
.ranking-absolute-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ranking-absolute-card { display: flex; align-items: center; padding: 22px; gap: 16px; color: #080b2e; }
.ranking-absolute-card:hover { color: #1f21b0; }
.ranking-card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #fff3bf; color: #080b2e; border-radius: 9px; }
.ranking-absolute-card strong { display: block; font-family: apotek-comp, Impact, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; }
.ranking-absolute-card small { display: block; color: #62667b; font-size: 12px; margin-top: 6px; }
.ranking-absolute-card > svg { margin-left: auto; width: 20px; height: 20px; }
.ranking-section-description { color: #595d76; margin-top: -8px; margin-bottom: 22px; font-size: 14px; }
.ranking-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ranking-team-card { display: flex; align-items: stretch; color: #080b2e; overflow: hidden; }
.ranking-team-card:hover { color: var(--team-color); }
.ranking-team-art { width: 39%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; background: var(--team-background); padding: 16px 8px; border-bottom: 5px solid var(--team-color); }
.ranking-team-art img { display: block; width: 100%; max-width: 120px; height: 140px; object-fit: contain; transition: transform .2s; }
.ranking-team-card:hover img { transform: rotate(-4deg) scale(1.04); }
.ranking-team-copy { padding: 24px 14px; align-self: center; }
.ranking-team-copy .ranking-eyebrow { color: #64687d; font-size: 11px; }
.ranking-team-copy h3 { font-size: 30px; margin: 4px 0 14px; }
.ranking-team-cta { display: flex; align-items: center; gap: 8px; color: #1f21b0; font-size: 12px; }
.rankings-page .ranking-diploma-note { display: flex; align-items: center; gap: 20px; margin-top: 44px; padding: 24px 28px; border: 2px dashed #c99a06; border-radius: 12px; background: #fff8e1; }
.ranking-diploma-note h2 { font-size: 27px; color: #080b2e; margin: 0 0 6px; }
.ranking-diploma-note p { color: #5a4708; margin: 0; font-size: 14px; }
.ranking-back { display: inline-block; color: #1f21b0; margin: 0 0 24px; font-size: 14px; }
.rankings-page .ranking-search-panel-wide { display: block; }
.ranking-search-panel-wide .ranking-search-form { max-width: 760px; margin: 0 auto; }
.rankings-page .ranking-empty-panel { text-align: center; padding: 50px 24px; }
.ranking-empty-icon { display: grid; place-items: center; background: #f0f0ff; border-radius: 50%; width: 64px; height: 64px; color: #1f21b0; margin: 0 auto 20px; }
.ranking-empty-icon svg { width: 30px; height: 30px; }
.ranking-empty-panel h2 { font-size: 36px; color: #1f21b0; }
.ranking-empty-panel p { color: #595d76; overflow-wrap: anywhere; }
.ranking-empty-panel .ranking-button { margin-top: 12px; }
.rankings-page .ranking-filters { padding: 26px; }
.ranking-filters h2 { font-size: 30px; color: #1f21b0; margin: 0 0 18px; }
.ranking-filters form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 20px; }
.ranking-filters label { display: block; margin: 0 0 6px; font-size: 13px; color: #555970; }
.ranking-filters select { width: 100%; min-height: 50px; border: 1px solid #c9ccdb; border-radius: 6px; color: #080b2e; background: #fff; padding: 10px; font-size: 14px; }
.ranking-pending-badge { background: #fff3bf; color: #65500e; padding: 6px 12px; border-radius: 30px; font-size: 12px; }
.ranking-table-wrap { overflow-x: auto; }
.ranking-table { width: 100%; min-width: 620px; text-align: left; }
.ranking-table th { background: #080b2e; color: #fff; padding: 16px 20px; font-size: 13px; font-weight: 400; }
.ranking-table td { padding: 20px; }
.ranking-table-empty { text-align: center; padding: 40px 12px; }
.ranking-table-empty > svg { color: #1f21b0; width: 36px; height: 36px; margin-bottom: 16px; }
.ranking-table-empty h3 { color: #1f21b0; font-size: 30px; }
.ranking-table-empty p { margin: 8px 0 0; font-size: 14px; color: #595d76; }
.ranking-bottom-search { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 32px 0 0; font-size: 14px; }
.ranking-bottom-search a { color: #1f21b0; }
.ranking-bottom-search svg { width: 18px; height: 18px; margin-left: 6px; }
@media (max-width: 1199px) {
    .rankings-page .ranking-search-panel { grid-template-columns: 1fr; gap: 24px; }
    .ranking-absolute-card { gap: 12px; padding: 18px; }
    .ranking-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ranking-content { padding: 24px 20px 40px; }
    .rankings-page .ranking-hero { padding: 32px 12px; }
    .ranking-hero .ranking-eyebrow { font-size: 11px; }
    .ranking-hero-description { font-size: 14px; }
    .rankings-page .ranking-search-panel { padding: 22px; }
    .ranking-search-copy h2 { font-size: 32px; }
    .ranking-podium-grid, .ranking-absolute-grid { grid-template-columns: 1fr; gap: 22px; }
    .rankings-page .ranking-section { padding: 0; margin-top: 36px; }
    .ranking-section-heading h2 { font-size: 32px; }
    .ranking-section-heading { flex-wrap: wrap; }
    .ranking-podium-list { padding: 0 18px; }
    .ranking-podium-name strong { font-size: 13px; }
    .ranking-team-copy { padding: 18px 12px; }
    .ranking-team-copy h3 { font-size: 26px; }
    .ranking-team-grid { grid-template-columns: 1fr; gap: 22px; }
    .ranking-team-art { width: 34%; padding: 10px; }
    .ranking-team-art img { height: 115px; }
    .rankings-page .ranking-diploma-note { align-items: flex-start; padding: 22px; gap: 14px; }
    .ranking-diploma-note .ranking-card-icon { display: none; }
    .rankings-page .ranking-filters { padding: 22px; }
    .ranking-filters form { grid-template-columns: 1fr; gap: 16px; }
    .ranking-filters .ranking-button { width: 100%; }
    .ranking-table { min-width: 0; }
    .ranking-table th { padding: 14px 6px; font-size: 10px; }
    .ranking-table td { padding: 18px 10px; }
    .ranking-table-empty { padding: 28px 8px; }
    .ranking-notice { align-items: flex-start; padding: 14px; }
}
@media (max-width: 420px) {
    .ranking-search-fields { flex-direction: column; }
    .ranking-podium-list li { gap: 12px; }
    .ranking-eyebrow { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .ranking-team-art img { transition: none; }
    .ranking-team-card:hover img { transform: none; }
}

/* Listado resumido y detalle desplegable del corredor. */
.ranking-podium-name strong { color: #080b2e; font-weight: 600; }
.ranking-podium-time { margin-left: auto; color: #1f21b0; font-family: apotek-comp, Impact, sans-serif; font-size: 25px; white-space: nowrap; }
.ranking-table-populated { min-width: 0; }
.ranking-table-populated td { padding: 16px 20px; border-bottom: 1px solid #e7e8ef; font-size: 14px; }
.ranking-summary-row { cursor: pointer; }
.ranking-summary-row.ranking-row-alt { background: #f7f8fc; }
.ranking-summary-row:hover, .ranking-summary-row:has(.ranking-more:focus-visible) { background: #eeeffa; }
.ranking-summary-row:has(.ranking-more[aria-expanded="true"]) { background: #eaeafb; }
.ranking-runner-cell { width: 48%; }
.ranking-runner-cell strong { display: block; font-weight: 600; }
.ranking-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranking-more-cell { text-align: right; white-space: nowrap; }
.ranking-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #d7d9ed; border-radius: 7px; padding: 6px 12px; background: #fff; color: #1f21b0; font-size: 13px; }
.ranking-more-sign { font-size: 24px; font-weight: 400; line-height: 1; }
.ranking-more[aria-expanded="true"] { background: #1f21b0; color: #fff; border-color: #1f21b0; }
.ranking-table-populated .ranking-detail-row > td { padding: 0; background: #f4f4fd; }
.ranking-detail-row[hidden] { display: none !important; }
.ranking-runner-detail { padding: 24px; border-left: 5px solid #ffd230; background: #f5f6fb; }
.runner-result-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr); gap: 24px; align-items: stretch; }
.runner-result-main { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.runner-result-times { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 22px; margin: 0; padding: 24px; background: #fff; border: 1px solid #e2e4ef; border-radius: 10px; }
.runner-result-times dt, .runner-result-positions dt { font-size: 12px; font-weight: 400; color: #5c627c; margin: 0 0 8px; }
.runner-result-times dd { margin: 0; color: #080b2e; font-family: apotek-comp, Impact, sans-serif; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runner-result-times .runner-result-net dd { color: #1f21b0; font-size: 42px; }
.runner-result-times dd small { font-family: 'Open Sans', sans-serif; font-size: 12px; font-weight: 400; }
.runner-result-positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.runner-result-positions > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #e2e4ef; border-radius: 10px; padding: 20px 24px; background: #fff; }
.runner-result-positions dt { margin: 0; }
.runner-result-positions dd { margin: 0; font-family: apotek-comp, Impact, sans-serif; font-size: 34px; font-weight: 800; line-height: 1; color: #1f21b0; }
.runner-result-team { display: flex; flex-direction: column; align-items: flex-start; border-radius: 10px; padding: 24px; background: #080b2e; color: #fff; min-width: 0; }
.runner-team-label { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #c5c9e0; }
.runner-result-team h3 { color: #fff; font-size: 32px; margin: 3px 0 18px; }
.runner-result-team dl { width: 100%; padding-top: 18px; border-top: 1px solid #303351; margin: 0; }
.runner-result-team dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.runner-result-team dt { color: #fff; font-weight: 400; font-size: 13px; }
.runner-result-team dd { font-family: apotek-comp, Impact, sans-serif; font-weight: 800; font-size: 42px; line-height: 1; margin: 0; color: #ffd230; }
.runner-result-team p { font-size: 11px; color: #c5c9e0; margin: 8px 0 20px; }
.runner-result-team .runner-diploma-link { width: 100%; margin-top: auto; min-height: 46px; font-size: 21px; border: 0; }
.runner-video-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; padding: 8px 0; color: #1f21b0; font-size: 13px; }
.ranking-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ranking-source-note { color: #65697c; font-size: 12px; margin: 18px 0 0; }
.ranking-result-count { font-size: 14px; color: #555970; margin: 0 0 16px; }
.ranking-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.ranking-pagination > span { font-size: 13px; }
@media (max-width: 991px) {
    .runner-result-layout { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 18px; }
    .runner-result-times { grid-template-columns: 1fr 1fr; gap: 18px; }
    .ranking-table-populated td { padding: 14px 12px; }
}
@media (max-width: 767px) {
    .ranking-podium-time { font-size: 22px; }
    .ranking-table-populated thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ranking-table-populated, .ranking-table-populated tbody { display: block; }
    .ranking-table-populated .ranking-summary-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr 44px; gap: 8px; padding: 16px; border-bottom: 1px solid #dddff0; }
    .ranking-table-populated td { display: block; padding: 4px 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
    .ranking-summary-row > td::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; color: #64697f; margin-bottom: 3px; }
    .ranking-summary-row .ranking-runner-cell { grid-column: 1 / 4; grid-row: 1; width: auto; font-size: 14px; align-self: center; }
    .ranking-summary-row .ranking-runner-cell::before, .ranking-summary-row .ranking-more-cell::before { display: none; }
    .ranking-summary-row > td:first-child { grid-column: 1; grid-row: 2; }
    .ranking-summary-row > td:nth-child(2) { grid-column: 2; grid-row: 2; }
    .ranking-summary-row > .ranking-time { grid-column: 3 / 5; grid-row: 2; font-size: 15px; }
    .ranking-summary-row > .ranking-more-cell { grid-column: 4; grid-row: 1; }
    .ranking-more { width: 44px; padding: 6px; }
    .ranking-more-text { display: none; }
    .ranking-table-populated .ranking-detail-row { display: block; }
    .ranking-runner-detail { padding: 18px 14px; }
    .runner-result-layout { grid-template-columns: 1fr; gap: 18px; }
    .runner-result-times { padding: 20px; }
    .runner-result-positions { gap: 12px; }
    .runner-result-positions > div { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
    .runner-result-positions dt { min-height: 36px; }
    .runner-result-team { padding: 22px; }
    .runner-result-team h3 { font-size: 30px; }
    .runner-result-team dl { padding-top: 14px; }
    .ranking-pagination { gap: 8px; }
    .ranking-pagination .ranking-button { font-size: 18px; padding: 10px 12px; }
}

.ranking-filter-note { margin: 16px 0 0; color: #62677e; font-size: 12px; }
.ranking-filters select:disabled { background: #f1f2f8; color: #62677e; opacity: 1; }
