/* =====================================================================
   Federación de Piragüismo del Principado de Asturias — web pública
   ===================================================================== */
:root {
    --brand: #0569b0;
    --accent: #FDD706;
    /* Olas (en lugar de los arcos de pista de atletismo): líneas onduladas y franjas de agua que se repiten en horizontal */
    --waves-strong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' fill='none'%3E%3Cpath d='M-340 150 Q-240 134 -140 150 T60 150 T260 150 T460 150 T660 150 T860 150 T1060 150 T1260 150 T1460 150 T1660 150 V260 H-400 Z' fill='white' fill-opacity='0.096'/%3E%3Cpath d='M-200 192 Q-100 172 0 192 T200 192 T400 192 T600 192 T800 192 T1000 192 T1200 192 T1400 192 T1600 192 V260 H-400 Z' fill='white' fill-opacity='0.132'/%3E%3Cpath d='M-400 70 Q-300 61 -200 70 T0 70 T200 70 T400 70 T600 70 T800 70 T1000 70 T1200 70 T1400 70 T1600 70' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-opacity='0.330'/%3E%3Cpath d='M-280 104 Q-180 92 -80 104 T120 104 T320 104 T520 104 T720 104 T920 104 T1120 104 T1320 104 T1520 104 T1720 104' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-opacity='0.402'/%3E%3Cpath d='M-360 138 Q-260 123 -160 138 T40 138 T240 138 T440 138 T640 138 T840 138 T1040 138 T1240 138 T1440 138 T1640 138' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-opacity='0.474'/%3E%3Cpath d='M-220 172 Q-120 154 -20 172 T180 172 T380 172 T580 172 T780 172 T980 172 T1180 172 T1380 172 T1580 172 T1780 172' stroke='white' stroke-width='2.15' stroke-linecap='round' stroke-opacity='0.546'/%3E%3Cpath d='M-320 206 Q-220 185 -120 206 T80 206 T280 206 T480 206 T680 206 T880 206 T1080 206 T1280 206 T1480 206 T1680 206' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-opacity='0.618'/%3E%3C/svg%3E");
    --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' fill='none'%3E%3Cpath d='M-340 150 Q-240 134 -140 150 T60 150 T260 150 T460 150 T660 150 T860 150 T1060 150 T1260 150 T1460 150 T1660 150 V260 H-400 Z' fill='white' fill-opacity='0.051'/%3E%3Cpath d='M-200 192 Q-100 172 0 192 T200 192 T400 192 T600 192 T800 192 T1000 192 T1200 192 T1400 192 T1600 192 V260 H-400 Z' fill='white' fill-opacity='0.070'/%3E%3Cpath d='M-400 70 Q-300 61 -200 70 T0 70 T200 70 T400 70 T600 70 T800 70 T1000 70 T1200 70 T1400 70 T1600 70' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-opacity='0.176'/%3E%3Cpath d='M-280 104 Q-180 92 -80 104 T120 104 T320 104 T520 104 T720 104 T920 104 T1120 104 T1320 104 T1520 104 T1720 104' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-opacity='0.214'/%3E%3Cpath d='M-360 138 Q-260 123 -160 138 T40 138 T240 138 T440 138 T640 138 T840 138 T1040 138 T1240 138 T1440 138 T1640 138' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-opacity='0.253'/%3E%3Cpath d='M-220 172 Q-120 154 -20 172 T180 172 T380 172 T580 172 T780 172 T980 172 T1180 172 T1380 172 T1580 172 T1780 172' stroke='white' stroke-width='2.15' stroke-linecap='round' stroke-opacity='0.291'/%3E%3Cpath d='M-320 206 Q-220 185 -120 206 T80 206 T280 206 T480 206 T680 206 T880 206 T1080 206 T1280 206 T1480 206 T1680 206' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-opacity='0.330'/%3E%3C/svg%3E");
    --waves-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' fill='none'%3E%3Cpath d='M-340 150 Q-240 134 -140 150 T60 150 T260 150 T460 150 T660 150 T860 150 T1060 150 T1260 150 T1460 150 T1660 150 V260 H-400 Z' fill='white' fill-opacity='0.016'/%3E%3Cpath d='M-200 192 Q-100 172 0 192 T200 192 T400 192 T600 192 T800 192 T1000 192 T1200 192 T1400 192 T1600 192 V260 H-400 Z' fill='white' fill-opacity='0.022'/%3E%3Cpath d='M-400 70 Q-300 61 -200 70 T0 70 T200 70 T400 70 T600 70 T800 70 T1000 70 T1200 70 T1400 70 T1600 70' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-opacity='0.055'/%3E%3Cpath d='M-280 104 Q-180 92 -80 104 T120 104 T320 104 T520 104 T720 104 T920 104 T1120 104 T1320 104 T1520 104 T1720 104' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-opacity='0.067'/%3E%3Cpath d='M-360 138 Q-260 123 -160 138 T40 138 T240 138 T440 138 T640 138 T840 138 T1040 138 T1240 138 T1440 138 T1640 138' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-opacity='0.079'/%3E%3Cpath d='M-220 172 Q-120 154 -20 172 T180 172 T380 172 T580 172 T780 172 T980 172 T1180 172 T1380 172 T1580 172 T1780 172' stroke='white' stroke-width='2.15' stroke-linecap='round' stroke-opacity='0.091'/%3E%3Cpath d='M-320 206 Q-220 185 -120 206 T80 206 T280 206 T480 206 T680 206 T880 206 T1080 206 T1280 206 T1480 206 T1680 206' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-opacity='0.103'/%3E%3C/svg%3E");
    /* Texturas del fondo marino (generadas): líneas de corriente y burbujas */
    --tex-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMid slice' fill='none' stroke='white' stroke-width='1.1'%3E%3Cpath d='M-120 240 C 380 -160, 860 310, 1720 -460' stroke-opacity='0.075'/%3E%3Cpath d='M-120 274 C 399.9 -128, 840.1 346, 1720 -426' stroke-opacity='0.095'/%3E%3Cpath d='M-120 308 C 413.9 -99.8, 826.1 385.8, 1720 -392' stroke-opacity='0.099'/%3E%3Cpath d='M-120 342 C 417.9 -74.7, 822.1 428.7, 1720 -358' stroke-opacity='0.086'/%3E%3Cpath d='M-120 376 C 410.7 -51.3, 829.3 473.3, 1720 -324' stroke-opacity='0.064'/%3E%3Cpath d='M-120 410 C 394.5 -28.3, 845.5 518.3, 1720 -290' stroke-opacity='0.051'/%3E%3Cpath d='M-120 444 C 374 -4.1, 866 562.1, 1720 -256' stroke-opacity='0.056'/%3E%3Cpath d='M-120 478 C 355.3 22.4, 884.7 603.6, 1720 -222' stroke-opacity='0.075'/%3E%3Cpath d='M-120 512 C 343.8 52.5, 896.2 641.5, 1720 -188' stroke-opacity='0.095'/%3E%3Cpath d='M-120 546 C 343.1 86.5, 896.9 675.5, 1720 -154' stroke-opacity='0.099'/%3E%3Cpath d='M-120 580 C 353.2 124.6, 886.8 705.4, 1720 -120' stroke-opacity='0.085'/%3E%3Cpath d='M-120 614 C 371.2 166, 868.8 732, 1720 -86' stroke-opacity='0.064'/%3E%3Cpath d='M-120 648 C 391.8 209.9, 848.2 756.1, 1720 -52' stroke-opacity='0.050'/%3E%3Cpath d='M-120 682 C 409 254.9, 831 779.1, 1720 -18' stroke-opacity='0.056'/%3E%3Cpath d='M-120 716 C 417.6 299.5, 822.4 802.5, 1720 16' stroke-opacity='0.076'/%3E%3Cpath d='M-120 750 C 415.1 342.3, 824.9 827.7, 1720 50' stroke-opacity='0.095'/%3E%3Cpath d='M-120 784 C 402.2 382, 837.8 856, 1720 84' stroke-opacity='0.099'/%3E%3Cpath d='M-120 818 C 382.8 418, 857.2 888, 1720 118' stroke-opacity='0.085'/%3E%3Cpath d='M-120 852 C 362.6 449.9, 877.4 924.1, 1720 152' stroke-opacity='0.063'/%3E%3Cpath d='M-120 886 C 347.5 478, 892.5 964, 1720 186' stroke-opacity='0.050'/%3E%3Cpath d='M-120 920 C 342 503.2, 898 1006.8, 1720 220' stroke-opacity='0.056'/%3E%3Cpath d='M-120 954 C 347.7 526.5, 892.3 1051.5, 1720 254' stroke-opacity='0.076'/%3E%3Cpath d='M-120 988 C 362.9 549.5, 877.1 1096.5, 1720 288' stroke-opacity='0.095'/%3E%3Cpath d='M-120 1022 C 383.2 573.7, 856.8 1140.3, 1720 322' stroke-opacity='0.099'/%3E%3Cpath d='M-120 1056 C 402.5 600.3, 837.5 1181.7, 1720 356' stroke-opacity='0.085'/%3E%3Cpath d='M-120 1090 C 415.2 630.5, 824.8 1219.5, 1720 390' stroke-opacity='0.063'/%3E%3Cpath d='M-120 1124 C 417.5 664.6, 822.5 1253.4, 1720 424' stroke-opacity='0.050'/%3E%3Cpath d='M-120 1158 C 408.7 702.7, 831.3 1283.3, 1720 458' stroke-opacity='0.057'/%3E%3Cpath d='M-120 1192 C 391.5 744.2, 848.5 1309.8, 1720 492' stroke-opacity='0.077'/%3E%3Cpath d='M-120 1226 C 370.9 788.1, 869.1 1333.9, 1720 526' stroke-opacity='0.096'/%3E%3Cpath d='M-120 1260 C 353 833.1, 887 1356.9, 1720 560' stroke-opacity='0.099'/%3E%3Cpath d='M-120 1294 C 343 877.7, 897 1380.3, 1720 594' stroke-opacity='0.084'/%3E%3Cpath d='M-120 1328 C 343.9 920.4, 896.1 1405.6, 1720 628' stroke-opacity='0.062'/%3E%3Cpath d='M-120 1362 C 355.5 960.1, 884.5 1433.9, 1720 662' stroke-opacity='0.050'/%3E%3Cpath d='M-120 1396 C 374.3 996, 865.7 1466, 1720 696' stroke-opacity='0.057'/%3E%3Cpath d='M-120 1430 C 394.8 1027.8, 845.2 1502.2, 1720 730' stroke-opacity='0.077'/%3E%3Cpath d='M-120 1464 C 410.9 1055.9, 829.1 1542.1, 1720 764' stroke-opacity='0.096'/%3E%3Cpath d='M-120 1498 C 417.9 1081, 822.1 1585, 1720 798' stroke-opacity='0.099'/%3E%3Cpath d='M-120 1532 C 413.7 1104.3, 826.3 1629.7, 1720 832' stroke-opacity='0.084'/%3E%3Cpath d='M-120 1566 C 399.6 1127.3, 840.4 1674.7, 1720 866' stroke-opacity='0.062'/%3E%3Cpath d='M-120 1600 C 379.7 1151.5, 860.3 1718.5, 1720 900' stroke-opacity='0.050'/%3E%3Cpath d='M-120 1634 C 359.9 1178.2, 880.1 1759.8, 1720 934' stroke-opacity='0.057'/%3E%3Cpath d='M-120 1668 C 346 1208.4, 894 1797.6, 1720 968' stroke-opacity='0.078'/%3E%3Cpath d='M-120 1702 C 342.1 1242.6, 897.9 1831.4, 1720 1002' stroke-opacity='0.096'/%3E%3Cpath d='M-120 1736 C 349.5 1280.8, 890.5 1861.2, 1720 1036' stroke-opacity='0.099'/%3E%3Cpath d='M-120 1770 C 365.8 1322.4, 874.2 1887.6, 1720 1070' stroke-opacity='0.083'/%3E%3C/svg%3E");
    --tex-bubbles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='520' viewBox='0 0 420 520' fill='white' fill-opacity='.05' stroke='white' stroke-opacity='.3' stroke-width='.8'%3E%3Ccircle cx='40' cy='60' r='2.5'/%3E%3Ccircle cx='120' cy='300' r='1.6'/%3E%3Ccircle cx='210' cy='150' r='3.4'/%3E%3Ccircle cx='300' cy='420' r='2.2'/%3E%3Ccircle cx='360' cy='90' r='1.4'/%3E%3Ccircle cx='80' cy='470' r='3'/%3E%3Ccircle cx='250' cy='30' r='1.8'/%3E%3Ccircle cx='390' cy='260' r='2.6'/%3E%3Ccircle cx='170' cy='380' r='1.3'/%3E%3C/svg%3E");
    --green-950: #021421;
    --green-900: #041d2f;
    --green-800: #06273e;
    --green-700: #08395c;
    --green-50: #edf3f7;
    --water: #1a8fd6;
    --water-dark: #0a4f86;
    --ink: #0f151a;
    --ink-2: #33403a;
    --muted: #64716a;
    --line: #e2e8e4;
    --bg: #f6f7f6;
    --paper: #fff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgb(15 21 26 / .06);
    --shadow: 0 2px 6px rgb(15 21 26 / .05), 0 10px 30px rgb(15 21 26 / .06);
    --shadow-lg: 0 20px 50px rgb(15 21 26 / .18);
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --header-h: 84px;

    /* Cristal */
    --glass: rgb(255 255 255 / .66);
    --glass-strong: rgb(255 255 255 / .82);
    --glass-border: rgb(255 255 255 / .75);
    --glass-line: rgb(14 41 61 / .08);
    --glass-blur: blur(18px) saturate(170%);
    --glass-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 10px 34px -12px rgb(5 26 41 / .16), 0 2px 6px rgb(5 26 41 / .04);
    --glass-dark: rgb(3 22 35 / .78);
    --glass-dark-border: rgb(255 255 255 / .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--body); font-size: 16px; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
    /* Fondo con relieve suave para que las superficies de cristal tengan algo que difuminar */
    background:
        radial-gradient(900px 520px at 0% 0%, rgb(5 105 176 / .10), transparent 65%),
        radial-gradient(800px 480px at 100% 12%, rgb(253 220 6 / .09), transparent 60%),
        radial-gradient(1000px 700px at 50% 100%, rgb(5 105 176 / .07), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.05; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* El foco que Blazor pone en el título al navegar (para lectores de pantalla) no necesita marco. */
[tabindex="-1"]:focus { outline: none; }
.icon { flex: none; }
.icon.filled { fill: currentColor; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 860px; }
.block { padding-block: 3.5rem; }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; }
.notice { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: #fff4d6; color: #6b4a00; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: var(--ink); font-weight: 700; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* ---------- Carga inicial ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem; background: radial-gradient(circle at 50% 40%, #09395c, var(--green-950) 70%); color: #fff; }
.boot-logo { width: min(320px, 70vw); height: auto; animation: boot-in .6s ease-out both; }
@keyframes boot-in { from { opacity: 0; transform: translateY(8px); } }
.boot-bar { width: 200px; height: 3px; margin-top: .5rem; background: rgb(255 255 255 / .15); border-radius: 3px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: var(--blazor-load-percentage, 8%); background: #fddc06; transition: width .2s; }

/* ---------- Cabecera de cristal ---------- */
.social { display: flex; gap: .25rem; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: .15s; }
.social a:hover { background: rgb(255 255 255 / .12); color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 50; color: #fff;
    background:
        linear-gradient(115deg, transparent 58%, rgb(255 255 255 / .035) 58% 66%, transparent 66% 72%, rgb(255 255 255 / .025) 72% 78%, transparent 78%),
        linear-gradient(180deg, rgb(2 22 37 / .9), var(--glass-dark));
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-dark-border);
    box-shadow: 0 12px 32px -14px rgb(2 13 20 / .55);
}
/* Filo con los colores de la marca */
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0569b0, #3c80b1 45%, var(--accent)); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height .25s; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { height: 58px; width: auto; transition: height .25s, transform .2s; filter: drop-shadow(0 2px 10px rgb(0 0 0 / .25)); }
.logo:hover img { transform: translateY(-1px); }
html.scrolled .header-row { min-height: 64px; }
html.scrolled .logo img { height: 40px; }

.header-meta { display: flex; align-items: center; gap: .35rem 1.1rem; margin-left: auto; font-size: .8rem; color: rgb(255 255 255 / .7); }
.header-meta > a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; transition: color .15s; }
.header-meta > a:hover { color: #fff; }
.header-meta .social { padding-left: .9rem; border-left: 1px solid rgb(255 255 255 / .14); }

.header-actions { display: flex; gap: .55rem; }
.header-btn {
    --btn: var(--brand); display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: 999px;
    color: #fff; text-decoration: none; font: 600 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--btn) 88%, #fff), var(--btn));
    border: 1px solid rgb(255 255 255 / .22);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 18px -6px color-mix(in srgb, var(--btn) 70%, transparent);
    transition: transform .15s, filter .15s, box-shadow .15s;
}
.header-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 10px 22px -6px color-mix(in srgb, var(--btn) 80%, transparent); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; }

/* Menú principal */
.mainnav { border-top: 1px solid rgb(255 255 255 / .07); }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem; list-style: none; margin-block: 0; padding-block: .35rem; max-width: 1440px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
    display: flex; align-items: center; gap: .15rem; padding: .6rem .55rem; border-radius: 10px; color: rgb(255 255 255 / .86); text-decoration: none;
    font: 600 1rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; position: relative; transition: background .15s, color .15s;
}
.nav-list > li > a::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav-list > li:hover > a, .nav-list > li:focus-within > a { color: #fff; background: rgb(255 255 255 / .08); }
.nav-list > li.current > a { color: #fff; }
.nav-list > li.current > a::after, .nav-list > li:hover > a::after { transform: scaleX(1); }
.nav-chevron { opacity: .6; transition: transform .2s; }
.nav-list > li:hover .nav-chevron { transform: rotate(180deg); opacity: 1; }
.sub-toggle { display: none; }
.sub {
    position: absolute; left: 0; top: calc(100% + .45rem); z-index: 60; min-width: 290px; list-style: none; margin: 0; padding: .45rem;
    background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 24px 60px -18px rgb(1 18 31 / .45), inset 0 1px 0 #fff;
    opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top left; transition: .18s;
}
/* Puente invisible para no perder el hover al bajar al submenú */
.sub::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.nav-list > li:hover > .sub, .nav-list > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav-list > li:nth-last-child(-n+4) > .sub { left: auto; right: 0; transform-origin: top right; }
.sub a { display: flex; align-items: center; gap: .55rem; padding: .62rem .8rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; line-height: 1.35; transition: background .15s, color .15s, padding .15s; }
.sub a::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #cfd8d3; transition: background .15s; }
.sub a:hover { background: rgb(5 105 176 / .08); color: var(--brand); padding-left: 1rem; }
.sub a:hover::before { background: var(--accent); }
.mainnav-mobile-extra { display: none; }

/* Accesos directos: barra de cristal claro */
.quicklinks { position: relative; z-index: 2; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-line); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset; }
.quicklinks-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; padding-block: .6rem; }
.quicklink { --btn: var(--brand); display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem; transition: background .15s, color .15s, box-shadow .15s; }
.quicklink .icon { box-sizing: content-box; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--btn) 13%, #fff); color: var(--btn); transition: .15s; }
.quicklink:hover { color: var(--btn); background: rgb(255 255 255 / .9); box-shadow: 0 4px 14px -6px rgb(5 26 41 / .25); }
.quicklink:hover .icon { background: var(--btn); color: #fff; }

/* Última hora */
.ticker { position: relative; z-index: 1; color: var(--ink); overflow: hidden; background: rgb(255 255 255 / .55); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-line); }
.ticker-row { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.ticker-label { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .3rem .8rem; border-radius: 999px; background: linear-gradient(180deg, #ffe11f, var(--accent)); color: var(--green-950); font: 700 .85rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 4px 12px -4px rgb(253 220 6 / .7); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 0 rgb(255 77 61 / .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(255 77 61 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 77 61 / 0); } }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--duration, 40s) linear infinite; will-change: transform; }
/* Cada copia ocupa al menos el ancho de la pantalla: con pocos avisos no quedan huecos */
.ticker-group { display: flex; flex: none; align-items: center; }
.ticker-set { display: flex; flex: none; align-items: center; gap: 3rem; padding-right: 3rem; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-item { font-weight: 600; font-size: .9rem; color: inherit; text-decoration: none; white-space: nowrap; }
.ticker-item { color: var(--ink-2); }
.ticker-item::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .8rem; border-radius: 50%; background: var(--brand); vertical-align: middle; }
a.ticker-item:hover { color: var(--brand); }
a.ticker-item:hover, a.ticker-item:focus-visible { text-decoration: underline; }
.ticker-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--glass-line); border-radius: 50%; background: rgb(255 255 255 / .8); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); }
.ticker-toggle:hover { background: #fff; color: var(--brand); }
.ticker-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero de portada ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-image, none) center / cover no-repeat, var(--green-900); }
.hero-art { position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(100deg, rgb(2 20 33 / .96) 0%, rgb(4 29 47 / .82) 45%, rgb(4 29 47 / .35) 100%),
        var(--waves) left bottom / 1200px 240px repeat-x,
        linear-gradient(160deg, var(--water) 0%, var(--water-dark) 100%); }
.hero[style*="--hero-image"] .hero-art { background: linear-gradient(100deg, rgb(2 20 33 / .94) 0%, rgb(4 29 47 / .7) 50%, rgb(4 29 47 / .25) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 .9rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow.light { color: var(--accent); }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin: .8rem 0 1rem; text-shadow: 0 4px 30px rgb(0 0 0 / .25); }
.hero-tagline { font-size: 1.15rem; max-width: 34ch; color: rgb(255 255 255 / .85); margin: 0; }
.hero-blocks { display: grid; gap: .9rem; }
.hero-block {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05)); border: 1px solid rgb(255 255 255 / .2);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 16px 40px -20px rgb(0 0 0 / .6);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); transition: .25s;
}
.hero-block:hover { background: rgb(255 255 255 / .92); color: var(--ink); transform: translateX(6px); }
.hero-block-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: linear-gradient(160deg, #ffd84a, var(--accent)); color: var(--green-900); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 8px 18px -8px rgb(253 220 6 / .8); }
.hero-block-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero-block-text strong { font: 700 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.hero-block-text span { font-size: .85rem; opacity: .8; margin-top: .2rem; }
.hero-block-arrow { opacity: .6; transition: transform .2s; }
.hero-block:hover .hero-block-arrow { transform: translateX(4px); opacity: 1; color: var(--brand); }

/* ---------- Títulos de sección ---------- */
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: .45rem; color: var(--ink); }
.section-title .more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; padding-bottom: .3rem; }
.section-title .more:hover .icon { transform: translateX(3px); }
.section-title .more .icon { transition: transform .15s; }
.band-soft { background: rgb(255 255 255 / .55); border-block: 1px solid var(--glass-border); }

/* ---------- Destacadas y últimas ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.75rem; align-items: stretch; }
.carousel { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--green-900); box-shadow: var(--shadow); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; color: #fff; text-decoration: none; }
.slide.active { opacity: 1; z-index: 1; }
.slide img, .slide .placeholder-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 7s ease-out; }
.slide.active img, .slide.active .placeholder-art { transform: scale(1.05); }
.slide-caption { position: absolute; inset: auto 0 0 0; padding: 4rem 1.75rem 4.5rem; display: flex; flex-direction: column; gap: .6rem; background: linear-gradient(0deg, rgb(3 13 20 / .92) 10%, rgb(3 13 20 / .5) 60%, transparent); }
.slide-meta { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: rgb(255 255 255 / .8); }
.slide-caption strong { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; max-width: 28ch; }
.slide-summary { font-size: .95rem; color: rgb(255 255 255 / .85); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-controls { position: absolute; z-index: 3; left: 1.75rem; bottom: 1.4rem; display: flex; align-items: center; gap: .75rem; }
.carousel-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(0 0 0 / .2); color: #fff; transition: .15s; }
.carousel-arrow:hover { background: #fff; color: var(--ink); }
.dots { display: flex; gap: .4rem; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: rgb(255 255 255 / .45); transition: .25s; }
.dots button.on { width: 28px; background: var(--accent); }
.carousel-progress { position: absolute; z-index: 3; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: progress 7s linear; }
.carousel-progress.paused { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.latest { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.latest-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; flex: 1; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--glass-line); transition: background .15s; }
.latest-item:last-child { border-bottom: 0; }
.latest-item:hover { background: rgb(255 255 255 / .7); }
.date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; flex: none; border-radius: 12px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: #fff; line-height: 1; box-shadow: inset 0 1px 0 rgb(255 255 255 / .15), 0 6px 14px -6px rgb(4 29 47 / .6); }
.date-badge strong { font: 700 1.5rem/1 var(--display); }
.date-badge small { font: 600 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: .15rem; }
.latest-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.latest-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.latest-title { font: 700 1.12rem/1.15 var(--display); text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-item:hover .latest-title { color: var(--brand); }

/* ---------- Tarjetas ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.news-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-news { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, box-shadow .2s; }
.card-news:hover { transform: translateY(-4px); box-shadow: 0 1px 0 #fff inset, 0 22px 44px -18px rgb(5 26 41 / .3); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-900); }
.card-media img, .card-media .placeholder-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-news:hover .card-media img, .card-news:hover .card-media .placeholder-art { transform: scale(1.05); }
.card-news .card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: var(--muted); }
.card-news h3 { font-size: 1.35rem; line-height: 1.08; }
.card-news h3 a { color: var(--ink); text-decoration: none; }
.card-news h3 a:hover { color: var(--brand); }
.card-news p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.chip { display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 999px; background: rgb(5 105 176 / .09); color: var(--brand); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.chip.light { background: rgb(255 255 255 / .18); color: #fff; border: 1px solid rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Imagen de relleno: agua con ondas */
.placeholder-art { position: relative; display: grid; place-items: end start;
    background:
        var(--waves-strong) left bottom / 600px 120px repeat-x,
        linear-gradient(170deg, var(--water) 0%, var(--water-dark) 55%, var(--green-900) 100%); }
.placeholder-art span { margin: 0 0 .9rem 1rem; font: 700 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
/* En el carrusel de portada el texto tapa la parte de abajo: las olas suben a la mitad. */
.placeholder-art.large { background: var(--waves-strong) left 42% / 1200px 240px repeat-x, linear-gradient(170deg, var(--water) 0%, var(--water-dark) 55%, var(--green-900) 100%); }

/* Esqueletos de carga */
.skeleton .card-media, .sk-line, .sk-block { background: linear-gradient(90deg, #eceeed 25%, #f5f6f5 50%, #eceeed 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-line { display: block; height: 14px; border-radius: 6px; }
.sk-line.short { width: 40%; }
.sk-line.title { height: 48px; width: 70%; margin-top: 1rem; }
.sk-block { height: 320px; border-radius: var(--radius); }
.skeleton-hero { min-height: 220px; }
.skeleton-hero .sk-line { background: rgb(255 255 255 / .12); animation: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Campeonatos ---------- */
.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.champ-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, box-shadow .2s; }
.champ-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 #fff inset, 0 22px 44px -18px rgb(5 26 41 / .3); }
.champ-poster { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--green-900); }
.champ-poster img, .champ-poster .placeholder-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.champ-card:hover .champ-poster img { transform: scale(1.04); }
.champ-date { position: absolute; left: .75rem; top: .75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 58px; border-radius: 14px; background: rgb(255 255 255 / .8); border: 1px solid rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); color: var(--green-900); line-height: 1; box-shadow: 0 8px 20px -6px rgb(0 0 0 / .35); }
.champ-date strong { font: 700 1.55rem/1 var(--display); }
.champ-date small { font: 700 .78rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-top: .1rem; }
.champ-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.champ-body h3 { font-size: 1.22rem; line-height: 1.08; }
.champ-body h3 a { color: var(--ink); text-decoration: none; }
.champ-body h3 a:hover { color: var(--brand); }
.champ-place { display: flex; align-items: center; gap: .3rem; margin: auto 0 0; font-size: .85rem; color: var(--muted); }
.champ-card.skeleton .champ-poster { background: linear-gradient(90deg, #eceeed 25%, #f5f6f5 50%, #eceeed 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.champ-card.skeleton .champ-body { gap: .6rem; }

.champ-filters { display: grid; gap: 1rem; margin-bottom: 2rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.chip-select { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-select button { padding: .45rem .9rem; border: 1px solid rgb(14 41 61 / .1); border-radius: 999px; background: rgb(255 255 255 / .7); color: var(--ink-2); font-size: .85rem; font-weight: 600; transition: .15s; }
.chip-select button:hover { border-color: var(--brand); color: var(--brand); }
.chip-select button.on { background: linear-gradient(180deg, #105d94, var(--brand)); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 6px 14px -6px rgb(5 105 176 / .6); }
.select { padding: .55rem 2rem .55rem .9rem; border: 1px solid rgb(14 41 61 / .1); border-radius: 999px; background: rgb(255 255 255 / .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364716a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; font: inherit; font-size: .9rem; color: var(--ink-2); appearance: none; }
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(5 105 176 / .15); }
.filter-row .search { margin-left: auto; min-width: 240px; }
.result-count { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.is-loading { opacity: .55; transition: opacity .2s; pointer-events: none; }
.pager-gap { display: inline-flex; align-items: center; padding: 0 .3rem; color: var(--muted); }
div.empty { display: grid; justify-items: center; gap: .75rem; }
div.empty p { margin: 0; }
.month-title { display: flex; align-items: center; gap: 1rem; font-size: 1.8rem; margin: 2.25rem 0 1.1rem; color: var(--green-800); }
.month-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(5 105 176 / .35), transparent); }
.load-more { display: flex; justify-content: center; margin-top: 2.5rem; }

.champ-detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.champ-side { position: sticky; top: 140px; display: grid; gap: 1rem; }
.champ-detail-poster { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-900); }
.champ-detail-poster img { width: 100%; height: auto; transition: transform .3s; }
.champ-detail-poster:hover img { transform: scale(1.02); }
.info-card { margin: 0; padding: 1.1rem 1.2rem; border-radius: var(--radius); display: grid; gap: .85rem; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.info-card dt { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-card dt .icon { color: var(--brand); }
.info-card dd { margin: .15rem 0 0; font-weight: 500; color: var(--ink); }
.champ-actions { display: grid; gap: .5rem; }
.champ-actions .btn { justify-content: center; }
.champ-main { display: grid; gap: 1.75rem; }
.link-group h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; margin-bottom: .9rem; }
.link-group h2 .icon { color: var(--brand); }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.resource-list a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; color: var(--ink); text-decoration: none; transition: .15s; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.resource-list a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.resource-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--green-50); color: var(--brand); }
.resource-icon.doc { background: #fdecea; color: #c4161c; }
.resource-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.resource-text strong { font-weight: 600; line-height: 1.3; }
.resource-text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-go { color: var(--muted); }
.resource-list a:hover .resource-go { color: var(--brand); }

/* ---------- Vídeos ---------- */
.videos-band { position: relative; background: var(--green-950); color: #fff; overflow: hidden; }
.videos-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(ellipse 50% 90% at 0% 0%, rgb(18 105 167 / .35), transparent 70%); }
.videos-band .container { position: relative; }
.videos-band .section-title h2 { color: #fff; }
.videos-band .eyebrow { color: var(--accent); }
.videos-band .section-title .more { color: var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.video-card { display: flex; flex-direction: column; gap: .75rem; }
.video-thumb, .video-card iframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s, opacity .2s; }
.video-thumb:hover img { transform: scale(1.06); opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 58px; height: 58px; padding-left: 4px; border-radius: 50%; background: rgb(255 255 255 / .95); color: #c4161c; box-shadow: 0 8px 24px rgb(0 0 0 / .35); transition: transform .2s; }
.video-thumb:hover .play { transform: scale(1.1); }
.video-info { display: flex; flex-direction: column; gap: .2rem; }
.video-info time { font-size: .78rem; color: var(--muted); }
.videos-band .video-info time { color: rgb(255 255 255 / .55); }
.video-title { color: var(--ink); text-decoration: none; font: 700 1.1rem/1.1 var(--display); text-transform: uppercase; }
.video-title:hover { color: var(--brand); }
.videos-band .video-title { color: #fff; }
.videos-band .video-title:hover { color: var(--accent); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-image, none) center / cover no-repeat, var(--green-900); }
.page-hero-art { position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgb(2 20 33 / .97) 0%, rgb(4 29 47 / .85) 60%, rgb(4 29 47 / .6) 100%),
        var(--waves) left bottom / 1200px 240px repeat-x,
        linear-gradient(160deg, var(--water), var(--water-dark)); }
.page-hero[style*="--hero-image"] .page-hero-art { background: linear-gradient(100deg, rgb(2 20 33 / .95), rgb(4 29 47 / .55)); }
.page-hero-inner { position: relative; padding-block: 2.5rem 3rem; }
.breadcrumb { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: rgb(255 255 255 / .6); margin-bottom: 1.2rem; padding: .35rem .85rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.breadcrumb a { display: inline-flex; align-items: center; gap: .3rem; color: rgb(255 255 255 / .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: #fff; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 22ch; }
.post .page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 34ch; }
.page-hero-lead { margin: .9rem 0 0; font-size: 1.1rem; color: rgb(255 255 255 / .85); max-width: 62ch; }
.page-hero-meta { display: inline-flex; align-items: center; gap: .4rem; margin: 1.1rem 0 0; font-size: .82rem; color: rgb(255 255 255 / .65); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.2rem; font-size: .88rem; color: rgb(255 255 255 / .8); }
.post-meta > span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Contenido ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.page-layout.with-toc { grid-template-columns: 270px minmax(0, 1fr); gap: 2.5rem; max-width: 1280px; align-items: start; }
.toc { position: sticky; top: 140px; display: flex; flex-direction: column; padding: 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.toc-title { padding: .2rem .6rem .6rem; font: 700 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: .5rem .6rem; border-radius: 8px; border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.toc a:hover { background: var(--green-50); color: var(--brand); border-left-color: var(--brand); }
.prose-card { padding: clamp(1.4rem, 3.5vw, 2.75rem); border-radius: 18px; background: rgb(255 255 255 / .86); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.8em 0 .6em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.55rem; }
.prose h4 { font-size: 1.25rem; }
.prose a { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand); }
.prose img { height: auto; border-radius: 10px; margin-block: 1.5rem; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.prose th { background: var(--green-50); color: var(--green-800); font-weight: 600; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: #fffbea; border-radius: 0 10px 10px 0; font-style: italic; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.75rem 0; }
.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 10px; transition: transform .25s, box-shadow .25s; }
.prose .gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.prose video { width: 100%; border-radius: 10px; margin-block: 1.5rem; background: #000; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose a[href$=".pdf"]::before { content: "PDF"; margin-right: .4rem; padding: .1rem .35rem; border-radius: 4px; background: #c4161c; color: #fff; font: 700 .65rem/1.4 var(--body); vertical-align: 2px; }

.accordion { border: 1px solid var(--glass-border); border-radius: 14px; margin-top: .9rem; background: var(--glass-strong); box-shadow: var(--glass-shadow); scroll-margin-top: 140px; transition: box-shadow .2s; }
.accordion[open] { box-shadow: var(--shadow); border-color: #cfdbe3; }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; cursor: pointer; list-style: none; font: 700 1.3rem/1.15 var(--display); text-transform: uppercase; color: var(--green-800); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--brand); transition: transform .2s; }
.accordion[open] summary .icon { transform: rotate(180deg); }
.accordion summary:hover { color: var(--brand); }
.accordion-body { padding: 0 1.25rem 1.25rem; }

/* Noticia */
.post-body { padding-top: 2.5rem; }
.post-figure { margin: 0 0 2rem; }
.post-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-figure figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.6; font-weight: 500; color: var(--ink); margin: 0 0 1.75rem; padding-left: 1.1rem; border-left: 4px solid var(--accent); }
.post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); }
.tag { padding: .25rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .75); border: 1px solid rgb(14 41 61 / .1); font-size: .82rem; color: var(--ink-2); }
.share { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.share a, .share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-strong); box-shadow: var(--glass-shadow); color: var(--ink-2); transition: .15s; }
.share a:hover, .share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.updated-note { width: 100%; margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- Paginación ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager a { display: inline-flex; align-items: center; gap: .3rem; min-width: 42px; height: 42px; justify-content: center; padding: 0 .9rem; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); color: var(--ink-2); text-decoration: none; font-weight: 600; transition: .15s; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.on { background: linear-gradient(160deg, var(--green-700), var(--green-900)); border-color: transparent; color: #fff; }

/* ---------- Circulares ---------- */
.doc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.year-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.year-tabs button { padding: .5rem 1.1rem; border: 1px solid rgb(14 41 61 / .1); border-radius: 999px; background: rgb(255 255 255 / .7); font: 700 1.05rem/1 var(--display); letter-spacing: .04em; color: var(--ink-2); transition: .15s; }
.year-tabs button:hover { background: #fff; color: var(--green-800); }
.year-tabs button.on { background: linear-gradient(160deg, var(--green-700), var(--green-900)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgb(4 29 47 / .7); }
.search { display: flex; align-items: center; gap: .5rem; min-width: 280px; padding: .55rem 1rem; border: 1px solid rgb(14 41 61 / .1); border-radius: 999px; background: rgb(255 255 255 / .8); color: var(--muted); box-shadow: inset 0 1px 2px rgb(5 26 41 / .05); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(5 105 176 / .15); }
.search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: .92rem; background: transparent; min-width: 0; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.doc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius); transition: .15s; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.doc-list li:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 16px 34px -18px rgb(5 26 41 / .3); }
.doc-num { display: grid; place-items: center; min-width: 84px; padding: .65rem .6rem; border-radius: 12px; background: linear-gradient(160deg, rgb(5 105 176 / .12), rgb(5 105 176 / .05)); border: 1px solid rgb(5 105 176 / .12); color: var(--green-800); font: 700 1.2rem/1 var(--display); }
.doc-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.doc-text strong { font-weight: 600; line-height: 1.35; }
.doc-text > span { font-size: .9rem; color: var(--muted); }
.doc-text time { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.doc-summary { margin: .15rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-summary.open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .2rem; }
.doc-area { padding: .1rem .5rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.link-btn { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.doc-dl { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.05rem; border-radius: 999px; background: linear-gradient(180deg, #105d94, var(--brand)); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 6px 14px -6px rgb(5 105 176 / .55); transition: .15s; }
.doc-dl:hover { background: var(--green-700); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 6rem; }
.notfound-code { font: 700 9rem/1 var(--display); background: linear-gradient(135deg, var(--brand), var(--water)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 2.6rem; margin: .5rem 0; }
.notfound p { color: var(--muted); margin-bottom: 2rem; }
.notfound-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.35rem; border-radius: 999px; background: linear-gradient(180deg, #105d94, var(--brand)); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 8px 18px -8px rgb(5 105 176 / .6); transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: var(--glass-strong); color: var(--ink-2); border-color: var(--glass-border); box-shadow: var(--glass-shadow); }

/* ---------- Pie ---------- */
.footer { position: relative; overflow: hidden; color: rgb(255 255 255 / .75);
    background: radial-gradient(800px 400px at 0% 0%, rgb(18 105 167 / .22), transparent 70%), radial-gradient(700px 380px at 100% 100%, rgb(253 220 6 / .08), transparent 70%), var(--green-950); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0569b0, #3c80b1 45%, var(--accent)); }
.footer-logo { display: inline-block; }
.footer-logo img { height: 64px; width: auto; }
.footer-art { position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background: var(--waves-soft) left bottom / 1200px 240px repeat-x; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.footer h3 { font-size: 1.2rem; letter-spacing: .06em; color: #fff; margin-bottom: 1.1rem; }
.footer-text { font-size: .92rem; margin: 1.2rem 0; max-width: 40ch; }
.footer-text p { margin: 0 0 .5rem; }
.footer-social a { width: 40px; height: 40px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); }
.footer-social a:hover { background: var(--accent); color: var(--green-950); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: rgb(255 255 255 / .75); text-decoration: none; font-size: .92rem; transition: .15s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: .92rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: .2rem; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.legal { position: relative; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; }
.legal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.25rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.legal a { color: rgb(255 255 255 / .55); text-decoration: none; }
.legal a:hover { color: #fff; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--glass-dark-border); border-radius: 50%; background: var(--glass-dark); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.scrolled .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0 0; z-index: 1000; padding: .8rem 1.25rem; background: #fff4d6; box-shadow: 0 -2px 10px rgb(0 0 0 / .15); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .7rem; }

/* ---------- Mapa de Andalucía ---------- */
.andalucia-map { display: block; width: 100%; height: auto; overflow: visible; }
.andalucia-map .province-shape { fill: rgb(255 255 255 / .1); stroke: rgb(255 255 255 / .55); stroke-width: 1.4; stroke-linejoin: round; transition: fill .2s; }
.andalucia-map .province-shape.link { cursor: pointer; }
.andalucia-map .province-shape.link:focus { outline: none; }
.andalucia-map .province-shape.on { fill: rgb(253 220 6 / .35); }
/* Copia «levantada» de la provincia resaltada: va encima y no recibe eventos del ratón */
.andalucia-map .province-lift { fill: var(--accent); stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; filter: url(#province-glow); pointer-events: none; transform: translateY(-4px); animation: province-lift .22s ease-out; }
@keyframes province-lift { from { transform: none; opacity: .4; } }
.andalucia-map.has-selection .province-shape:not(.on) { fill: rgb(255 255 255 / .06); }
.andalucia-map .province-label { fill: rgb(255 255 255 / .85); font: 700 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgb(2 20 33 / .55); stroke-width: 4px; transition: fill .2s; }
.andalucia-map .province-label.on { fill: var(--green-950); stroke: rgb(255 255 255 / .5); stroke-width: 3px; }

/* Portada: delegaciones provinciales */
.provinces-band { position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(700px 420px at 15% 20%, rgb(18 105 167 / .35), transparent 70%),
        radial-gradient(600px 400px at 95% 90%, rgb(253 220 6 / .14), transparent 70%),
        linear-gradient(160deg, #031e31, var(--green-950) 60%, #01101b); }
.provinces-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0569b0, #3c80b1 45%, var(--accent)); }
.provinces-band-art { position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: var(--waves-soft) left bottom / 1200px 240px repeat-x; }
.provinces-band .container { position: relative; }
.provinces-band .section-title { align-items: flex-end; }
.provinces-band .section-title h2 { color: #fff; }
.provinces-lead { max-width: 42ch; margin: 0; color: rgb(255 255 255 / .75); font-size: 1.02rem; }
.provinces-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 2rem; align-items: center; }
.provinces-map { position: relative; padding: 1.25rem; border-radius: 24px; background: linear-gradient(145deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid rgb(255 255 255 / .12); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 70px -40px rgb(0 0 0 / .8); }
.provinces-map-hint { position: absolute; left: 1.5rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgb(255 255 255 / .6); }
.provinces-side { display: grid; gap: 1rem; }
.province-focus { padding: 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(140deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05)); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
.province-focus-kicker { font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.province-focus h3 { font-size: 2.6rem; margin: .4rem 0 .5rem; color: #fff; }
.province-focus p { margin: 0 0 1rem; color: rgb(255 255 255 / .8); font-size: .95rem; }
.province-focus-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.1rem; font-size: .85rem; color: rgb(255 255 255 / .7); }
.province-focus-stats strong { display: block; font: 700 1.6rem/1 var(--display); color: #fff; }
.province-focus-go { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); box-shadow: 0 10px 24px -10px rgb(253 220 6 / .8); }
.province-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.province-list a { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: 12px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; transition: .15s; }
.province-list a:hover, .province-list a.on { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .28); color: #fff; }
.province-list a .icon { margin-left: auto; opacity: .5; transition: transform .15s, opacity .15s; }
.province-list a.on .icon, .province-list a:hover .icon { opacity: 1; transform: translateX(2px); color: var(--accent); }
.province-list-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: rgb(255 255 255 / .35); transition: background .15s, box-shadow .15s; }
.province-list a.on .province-list-dot { background: var(--accent); box-shadow: 0 0 0 4px rgb(253 220 6 / .25); }
.province-list-count { padding: .05rem .45rem; border-radius: 999px; background: rgb(255 255 255 / .12); font-size: .72rem; font-weight: 700; color: rgb(255 255 255 / .85); }

/* Portal provincial */
.province-portal-hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-image, none) center / cover no-repeat, var(--green-900); }
.province-portal-art { position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(100deg, rgb(2 20 33 / .97) 0%, rgb(4 29 47 / .88) 55%, rgb(4 29 47 / .7) 100%),
        var(--waves) left bottom / 1200px 240px repeat-x,
        linear-gradient(160deg, var(--water), var(--water-dark)); }
.province-portal-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 2.5rem; align-items: center; padding-block: 2.5rem 3rem; }
.province-portal-text .eyebrow { display: flex; width: fit-content; }
.province-portal-text h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin: .5rem 0 .6rem; text-shadow: 0 4px 30px rgb(0 0 0 / .25); }
.province-portal-lead { margin: 0 0 1.6rem; max-width: 52ch; font-size: 1.1rem; color: rgb(255 255 255 / .85); }
.province-portal-stats { display: flex; flex-wrap: wrap; gap: .75rem; }
.province-portal-stats a { display: flex; flex-direction: column; min-width: 130px; padding: .75rem 1rem; border-radius: 16px; color: #fff; text-decoration: none; background: linear-gradient(140deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05)); border: 1px solid rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: .15s; }
.province-portal-stats a:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px); }
.province-portal-stats strong { font: 700 2rem/1 var(--display); color: var(--accent); }
.province-portal-stats span { font-size: .8rem; color: rgb(255 255 255 / .75); }
.province-portal-map { padding: 1rem; border-radius: 22px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }
.province-portal-info { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.mt-block { margin-top: 2rem; }
.province-about-title { font-size: 1.8rem; margin-bottom: 1rem; color: var(--green-800); }
.doc-list.compact li { padding: .85rem 1rem; gap: 1rem; }
.doc-list.compact .doc-num { min-width: 72px; font-size: 1.05rem; }
.province-contact { position: sticky; top: 140px; padding: 1.4rem 1.5rem; border-radius: 20px; color: #fff; background: radial-gradient(400px 260px at 0% 0%, rgb(18 105 167 / .35), transparent 70%), var(--green-950); box-shadow: var(--shadow-lg); }
.province-contact h3 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }
.province-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; font-size: .92rem; color: rgb(255 255 255 / .85); }
.province-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.province-contact li .icon { color: var(--accent); margin-top: .15rem; }
.province-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.province-contact a:hover { color: var(--accent); }
.province-social { display: flex; gap: .4rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .12); }
.province-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); }
.province-social a:hover { background: var(--accent); color: var(--green-950); }
.province-others { padding-block: 2rem 3rem; }
.province-others-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.province-others-list a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); color: var(--ink-2); text-decoration: none; font-weight: 600; transition: .15s; }
.province-others-list a .icon { color: var(--brand); }
.province-others-list a:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.province-others-list a:hover .icon { color: var(--accent); }
.province-filter-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .45rem .35rem .8rem; border-radius: 999px; background: var(--green-800); color: #fff; font-size: .85rem; font-weight: 600; }
.province-filter-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .15); color: #fff; }
.footer-delegations { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; padding-block: 1.1rem; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; }
.footer-delegations span { font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.footer-delegations a { color: rgb(255 255 255 / .7); text-decoration: none; }
.footer-delegations a:hover { color: #fff; }

/* ---------- Responsive ---------- */
/* ---------- Récords ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-actions .btn { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 10px 24px -10px rgb(253 220 6 / .8); }
.chip-select button:disabled { opacity: .4; cursor: not-allowed; border-color: rgb(14 41 61 / .08); color: var(--muted); }

.records-latest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.records-latest ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.records-latest button { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; height: 100%; padding: .8rem 1rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
    border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .15s, box-shadow .15s; }
.records-latest button:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 16px 34px -18px rgb(5 26 41 / .3); }
.records-latest-event { font: 700 .82rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.records-latest strong { font: 700 1.6rem/1.05 var(--display); color: var(--green-900); }
.records-latest button > span:not(.records-latest-event) { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.records-latest small { font-size: .75rem; color: var(--muted); }

.record-group { margin-top: 1.75rem; }
.record-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .7rem; }
.record-group-head h2 { font-size: 1.9rem; color: var(--green-900); display: flex; align-items: center; gap: .6rem; }
.record-group-head h2::before { content: ""; width: 6px; height: 1.4rem; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #e0c200); }
.record-group-head span { font-size: .88rem; color: var(--muted); }
.record-table-wrap { border-radius: var(--radius); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.record-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.record-table thead th { padding: .7rem 1rem; text-align: left; font: 700 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .85);
    background: linear-gradient(160deg, var(--green-700), var(--green-900)); }
.record-table td, .record-table tbody th { padding: .62rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--glass-line); }
.record-table tbody tr:not(.record-sub):hover { background: rgb(5 105 176 / .045); }
.record-table tr.record-sub th { padding: .55rem 1rem; font: 700 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; background: rgb(253 220 6 / .12); }
.record-event { font-weight: 600; color: var(--ink); min-width: 9rem; }
.record-event small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.record-mark { white-space: nowrap; }
.record-mark strong { font: 700 1.2rem/1.1 var(--display); color: var(--green-900); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.record-mark small { margin-left: .35rem; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.record-athlete > span:first-child { font-weight: 600; }
.record-athlete small { display: block; font-size: .75rem; color: var(--muted); }
.record-new { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent); color: var(--green-950); font: 700 .7rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.record-table tr.recent .record-mark strong { color: var(--brand); }
.record-date { white-space: nowrap; color: var(--ink-2); }

.record-notify { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; margin-top: 3rem; padding: 2rem; border-radius: 20px;
    background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); scroll-margin-top: 110px; }
.record-notify-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: .45rem 0 .75rem; color: var(--green-900); }
.record-notify-text p { margin: 0 0 1rem; color: var(--ink-2); }
.record-notify-note { display: flex; gap: .55rem; padding: .75rem .9rem; border-radius: 12px; background: rgb(255 255 255 / .6); border: 1px solid var(--glass-line); font-size: .88rem; }
.record-notify-note .icon { flex: none; margin-top: .2rem; color: var(--brand); }
.record-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.record-form .wide { grid-column: 1 / -1; }
.record-form label { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.record-form label > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.record-form input:not([type=checkbox]), .record-form select, .record-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid rgb(14 41 61 / .14); border-radius: 10px; background: rgb(255 255 255 / .9);
    font: inherit; font-size: .92rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.record-form input:focus, .record-form select:focus, .record-form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(5 105 176 / .15); }
.record-form textarea { resize: vertical; }
.record-form label.record-consent { flex-direction: row; align-items: flex-start; gap: .55rem; font-size: .85rem; color: var(--ink-2); }
.record-consent input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.record-form .notice { margin: 0; }
.record-form-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.record-form-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.record-notify-done { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); background: rgb(255 255 255 / .75); border: 1px solid var(--glass-line); }
.record-notify-done .icon { color: var(--brand); }
.record-notify-done strong { font: 700 1.5rem/1 var(--display); text-transform: uppercase; color: var(--green-900); }
.record-notify-done p { margin: 0 0 .5rem; color: var(--ink-2); }

@media (max-width: 1100px) {
    .records-latest { grid-template-columns: 1fr; gap: .6rem; }
    .records-latest ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-notify { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    /* La tabla pasa a fichas: una por marca. */
    .record-table thead { display: none; }
    .record-table, .record-table tbody, .record-table tr, .record-table td, .record-table tbody th { display: block; }
    .record-table tbody tr:not(.record-sub) { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .8rem 1rem; border-top: 1px solid var(--glass-line); }
    .record-table td, .record-table tbody tr:not(.record-sub) th { padding: 0; border: 0; }
    .record-table .record-event { grid-column: 1; min-width: 0; }
    .record-table .record-mark { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
    .record-table .record-mark small { display: block; margin: 0; }
    .record-table .record-athlete { grid-column: 1; }
    .record-table td[data-label="Club"], .record-table td[data-label="Lugar"], .record-table .record-date { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
    .records-latest ul { grid-template-columns: 1fr; }
    .record-notify { padding: 1.25rem; }
    .record-form { grid-template-columns: 1fr; }
}

/* ---------- Lugar y tiempo de un campeonato ---------- */
.location-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.location-grid.single { grid-template-columns: 1fr; }
.location-map-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.location-map { flex: 1; min-height: 300px; background: #e8efe9; z-index: 0; }
.location-grid.single .location-map { min-height: 340px; }
.location-map-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .75rem 1rem; font-size: .88rem; border-top: 1px solid var(--glass-line); }
.location-place { display: inline-flex; align-items: flex-start; gap: .4rem; color: var(--ink-2); font-weight: 500; }
.location-place .icon { flex: none; margin-top: .2rem; color: var(--brand); }
.location-place small { margin-left: .3rem; color: var(--muted); font-weight: 400; }
.location-map-foot a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.location-links { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.fppa-pin span { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(160deg, #105d94, var(--green-900)); border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgb(2 20 33 / .6); }
.fppa-pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); }
.leaflet-container { font-family: var(--body); }
.location-map .leaflet-tile-pane { filter: saturate(.75) contrast(.97) brightness(1.02); }

.weather-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.15rem 1.2rem; border-radius: var(--radius); color: #fff;
    background: radial-gradient(circle at 85% 0%, rgb(253 220 6 / .28), transparent 45%), linear-gradient(160deg, #0b446c, var(--green-900) 75%);
    box-shadow: 0 18px 40px -22px rgb(2 20 33 / .7); }
.weather-now { display: flex; align-items: center; gap: 1rem; }
.weather-icon { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 20px; background: rgb(255 255 255 / .1); color: var(--accent); }
.weather-label { display: block; font: 600 .8rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.weather-temp { display: block; font: 700 3rem/1 var(--display); }
.weather-desc { font-size: .88rem; color: rgb(255 255 255 / .85); }
.weather-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: rgb(255 255 255 / .85); }
.weather-stats li { display: inline-flex; align-items: center; gap: .35rem; }
.weather-stats .icon { color: rgb(255 255 255 / .6); }
.weather-event { display: grid; gap: .45rem; padding: .7rem .8rem; border-radius: 12px; background: rgb(255 255 255 / .1); border: 1px solid rgb(253 220 6 / .45); }
.weather-event-label { display: inline-flex; align-items: center; gap: .35rem; font: 700 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.weather-event-day { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; }
.weather-event-day strong { display: block; font-size: .92rem; }
.weather-event-day small { font-size: .78rem; color: rgb(255 255 255 / .75); }
.weather-range strong { display: inline; font: 700 1.3rem/1 var(--display); }
.weather-range small { color: rgb(255 255 255 / .65); }
.weather-note { display: flex; gap: .4rem; align-items: flex-start; margin: 0; font-size: .82rem; color: rgb(255 255 255 / .8); }
.weather-note .icon { flex: none; margin-top: .2rem; }
.weather-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.weather-days li { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .1rem; border-radius: 10px; text-align: center; background: rgb(255 255 255 / .06); }
.weather-days li.event { background: rgb(253 220 6 / .2); box-shadow: inset 0 0 0 1px rgb(253 220 6 / .6); }
.weather-day-name { font: 600 .72rem/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.weather-days strong { font: 700 1rem/1 var(--display); }
.weather-days small { font-size: .72rem; color: rgb(255 255 255 / .6); }
.weather-rain { font-size: .68rem; font-weight: 600; color: #9fd3ff; }
.weather-source { margin: 0; font-size: .74rem; color: rgb(255 255 255 / .6); }
.weather-source a { color: rgb(255 255 255 / .85); }

/* ---------- Campeonato de una noticia ---------- */
.post-meta .post-champ-link { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem; border-radius: 999px; background: rgb(253 220 6 / .18); color: #fff; text-decoration: none; font-weight: 600; }
.post-meta .post-champ-link:hover { background: rgb(253 220 6 / .32); }
.champ-teaser { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 2rem 0 0; padding: 1rem; border-radius: 18px;
    background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-left: 5px solid var(--accent); }
.champ-teaser-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-900)); }
.champ-teaser-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.champ-teaser-media[data-orientation] { aspect-ratio: auto; align-self: center; background: none; box-shadow: 0 10px 24px -14px rgb(2 20 33 / .5); }
.champ-teaser-media[data-orientation] img { position: static; height: auto; }
.champ-teaser-media[data-orientation] .date-badge { display: none; }
.champ-teaser:has(.champ-teaser-media[data-orientation="landscape"]) { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
.date-badge.big { width: 84px; height: 92px; border-radius: 16px; }
.date-badge.big strong { font-size: 2.4rem; }
.champ-teaser-eyebrow { display: flex; align-items: center; gap: .4rem; font: 700 .82rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.champ-state { margin-left: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; background: var(--green-50); color: var(--green-800); }
.champ-state.live { background: #e7f1f8; color: #074c7d; }
.champ-state.soon { background: #fff4d6; color: #7a5200; }
.champ-state.done { background: #eef1f0; color: #5d6964; }
.champ-teaser h2 { font-size: 1.6rem; margin: .45rem 0 .55rem; }
.champ-teaser h2 a { color: var(--ink); text-decoration: none; }
.champ-teaser h2 a:hover { color: var(--brand); }
.champ-teaser-meta { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--ink-2); }
.champ-teaser-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.champ-teaser-meta .icon { color: var(--brand); }
.champ-news .news-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* ---------- Atletas ---------- */
.athlete-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.athlete-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none;
    background: linear-gradient(160deg, var(--green-700), var(--green-950)); box-shadow: 0 18px 40px -24px rgb(2 20 33 / .8); isolation: isolate; transition: transform .25s, box-shadow .25s; }
.athlete-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgb(2 20 33 / .85); }
.athlete-card-photo { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.athlete-card-photo:has(.athlete-card-initials) { place-items: start center; padding-top: 24%; }
.athlete-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.athlete-card:hover .athlete-card-photo img { transform: scale(1.04); }
.athlete-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(2 17 27 / .55) 60%, rgb(2 17 27 / .94)); }
.athlete-card-initials { font: 700 4rem/1 var(--display); color: rgb(255 255 255 / .18); letter-spacing: .04em; }
.athlete-card-body { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.1rem 1rem; }
.athlete-card-discipline { font: 700 .78rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.athlete-card-name { font: 700 1.65rem/1.02 var(--display); text-transform: uppercase; }
.athlete-card-club { font-size: .82rem; color: rgb(255 255 255 / .75); }
.athlete-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .55rem; min-height: 26px; }
.athlete-card-best { margin-left: auto; font: 700 1.1rem/1 var(--display); text-align: right; }
.athlete-card-best small { display: block; font: 600 .65rem/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / .65); }

.medal-strip { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.medal { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem .15rem .2rem; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .8rem; }
.medal-disc { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18), inset 0 2px 0 rgb(255 255 255 / .45); }
.medal-gold .medal-disc, .medal-badge.medal-gold { background: linear-gradient(160deg, #ffe27a, #d7ba00); }
.medal-silver .medal-disc, .medal-badge.medal-silver { background: linear-gradient(160deg, #f4f6f8, #a3adb6); }
.medal-bronze .medal-disc, .medal-badge.medal-bronze { background: linear-gradient(160deg, #f3c9a2, #b06a32); }
.medal-strip.large { gap: .75rem; }
.medal-strip.large .medal { flex-direction: column; gap: .3rem; padding: .9rem 1.2rem; min-width: 96px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); color: var(--ink); }
.medal-strip.large .medal-disc { width: 34px; height: 34px; }
.medal-strip.large strong { font: 700 2rem/1 var(--display); }
.medal-strip.large small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.athletes-band { background: linear-gradient(180deg, transparent, rgb(5 105 176 / .05)); }

.athlete-hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-image, none) center 30% / cover no-repeat, var(--green-900); }
.athlete-hero-art { position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgb(253 220 6 / .22), transparent 40%), linear-gradient(100deg, rgb(2 20 33 / .96) 30%, rgb(4 29 47 / .55)); }
.athlete-hero-inner { position: relative; padding-block: 2rem 2.75rem; }
.athlete-hero-main { display: flex; align-items: center; gap: 2rem; margin-top: 1.25rem; }
.athlete-portrait { display: grid; place-items: center; width: 190px; aspect-ratio: 4 / 5; flex: none; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); border: 3px solid rgb(255 255 255 / .85); box-shadow: 0 22px 50px -20px rgb(0 0 0 / .6); }
.athlete-portrait img { width: 100%; height: 100%; object-fit: cover; }
.athlete-hero-text h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-top: .5rem; }
.athlete-facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .9rem; color: rgb(255 255 255 / .85); }
.athlete-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.athlete-facts .icon { color: var(--accent); }
.athlete-socials { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.athlete-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); color: #fff; transition: background .15s, color .15s, transform .15s; }
.athlete-socials a:hover { background: var(--accent); color: var(--green-950); transform: translateY(-2px); }

.athlete-stats { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-top: -1.6rem; position: relative; z-index: 1; }
.athlete-stat-best { display: flex; flex-direction: column; justify-content: center; padding: .8rem 1.3rem; border-radius: 16px; background: linear-gradient(160deg, #ffd84a, var(--accent)); color: var(--green-950); box-shadow: 0 14px 30px -16px rgb(253 220 6 / .9); }
.athlete-stat-best small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.athlete-stat-best strong { font: 700 2rem/1 var(--display); }
.athlete-stat-best span { font-size: .78rem; font-weight: 600; }

.athlete-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.athlete-main { display: grid; gap: 2rem; min-width: 0; }
/* Sin fijar al desplazarse: con el ranking, los títulos y las marcas del año puede ser más alta que la pantalla */
.athlete-side { display: grid; gap: 1.25rem; }
.athlete-bests h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.35rem; margin: 0 0 .6rem; }
.athlete-bests h2 .icon { color: var(--brand); }
/* Marcas: prueba y marca en una línea, año y sede debajo y los récords como distintivos */
.mark-list { list-style: none; margin: 0; padding: 0; }
.mark-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "event value" "meta meta" "records records"; column-gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--glass-line); }
.mark-row:first-child { border-top: 0; padding-top: .2rem; }
.mark-event { grid-area: event; align-self: baseline; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.mark-value { grid-area: value; align-self: baseline; font: 700 1.3rem/1 var(--display); color: var(--green-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mark-meta { grid-area: meta; margin-top: .15rem; font-size: .76rem; color: var(--muted); }
.mark-records { grid-area: records; display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .4rem; }
.mark-record { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; line-height: 1.5; border: 1px solid transparent; }
.mark-record.world { background: linear-gradient(160deg, #fff4c2, #ffe27a); color: #6b4e00; }
.mark-record.europe { background: #e8eefc; color: #23408e; }
.mark-record.national { background: #fde9e7; color: #9a2b1f; }
.mark-record.andalusia { background: var(--green-50); color: var(--green-800); }
.mark-record.pending { background: transparent; border-style: dashed; border-color: currentColor; }
/* La mejor, destacada: la que sale también en la cabecera y en la tarjeta del atleta */
.mark-row.is-top { position: relative; margin: 0 -.6rem .25rem; padding: .7rem .6rem; border: 0; border-radius: 12px; background: linear-gradient(160deg, rgb(253 220 6 / .16), rgb(253 220 6 / .05)); }
.mark-row.is-top .mark-value { font-size: 1.6rem; }
.mark-row.is-top + .mark-row { border-top: 0; }

/* Palmarés compacto: una tarjeta por temporada y una fila por resultado */
.section-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 .45rem; margin-left: .2rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 700 .85rem/1 var(--body); letter-spacing: 0; text-transform: none; }
.palmares { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.palmares-year { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; align-items: start; }
.palmares-year-label { font: 700 1.45rem/1 var(--display); color: var(--green-800); padding-top: .7rem; }
.palmares-rows { list-style: none; margin: 0; padding: .15rem .9rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.palmares-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--glass-line); }
.palmares-row:first-child { border-top: 0; }
.palmares-place { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .95rem/1 var(--display); color: var(--green-800); background: var(--green-50); }
.palmares-place.medal-gold { background: linear-gradient(160deg, #ffe27a, #d7ba00); color: #4a3500; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.palmares-place.medal-silver { background: linear-gradient(160deg, #f4f6f8, #a3adb6); color: #2c3338; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .1); }
.palmares-place.medal-bronze { background: linear-gradient(160deg, #f3c9a2, #b06a32); color: #3a1f08; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.palmares-what { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.palmares-what strong { font-size: .92rem; font-weight: 600; color: var(--ink); }
.palmares-what span { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palmares-mark { font: 700 1.1rem/1 var(--display); color: var(--green-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.palmares-more { display: inline-flex; align-items: center; gap: .35rem; margin: .9rem 0 0 calc(64px + .9rem); padding: .5rem 1rem; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass-strong); color: var(--brand); font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: var(--glass-shadow); }
.palmares-more:hover { border-color: #b7cddd; }

/* Galería en carrusel: la foto entera sobre un fondo desenfocado de sí misma, flechas y miniaturas */
.photo-carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-950); aspect-ratio: 16 / 9; box-shadow: var(--shadow); outline-offset: 3px; }
.carousel-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22, .7, .2, 1); }
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.carousel-backdrop { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(26px) brightness(.55) saturate(1.2); }
.carousel-slide button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; background: linear-gradient(transparent, rgb(2 11 18 / .8)); color: #fff; font-size: .9rem; pointer-events: none; }
.carousel-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .15s; }
.carousel-nav:hover { background: rgb(255 255 255 / .3); }
.carousel-nav.prev { left: .9rem; }
.carousel-nav.next { right: .9rem; }
.carousel-thumbs { display: flex; gap: .5rem; margin-top: .65rem; overflow-x: auto; padding: .2rem; scrollbar-width: thin; }
.carousel-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--green-900); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.carousel-thumbs button.on, .carousel-thumbs button:hover { opacity: 1; }
.carousel-thumbs button.on { border-color: var(--accent); }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3.5rem 4.5rem; background: rgb(2 11 18 / .94); outline: 0; animation: fade-in .2s ease-out; }
.lightbox figure { margin: 0; display: grid; gap: .75rem; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 1rem; color: rgb(255 255 255 / .85); font-size: .9rem; }
.lightbox figcaption span { color: rgb(255 255 255 / .55); white-space: nowrap; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background .15s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgb(255 255 255 / .22); }
.lightbox-close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
.lightbox-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 1100px) {
    .location-grid { grid-template-columns: 1fr; }
    .athlete-layout { grid-template-columns: 1fr; }
    .athlete-side { position: static; }
}
@media (max-width: 720px) {
    .weather-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .weather-days li:nth-child(n + 5) { display: none; }
    .champ-teaser { grid-template-columns: 1fr; }
    .champ-teaser-media { aspect-ratio: 16 / 9; }
    .champ-teaser:has(.champ-teaser-media[data-orientation="landscape"]) { grid-template-columns: 1fr; }
    .champ-teaser-media[data-orientation="portrait"] { max-width: 220px; }
    .athlete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .athlete-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
    .athlete-rail .athlete-card { flex: 0 0 68%; scroll-snap-align: start; }
    .athlete-card-name { font-size: 1.3rem; }
    .athlete-hero-main { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .athlete-portrait { width: 140px; }
    .athlete-stats { margin-top: 1.25rem; }
    .medal-strip.large .medal { min-width: 0; flex: 1; padding: .7rem .6rem; }
    .palmares-year { grid-template-columns: 1fr; gap: .4rem; }
    .palmares-year-label { padding-top: 0; }
    .lightbox { padding: 3.5rem .5rem; }
    .lightbox-nav { top: auto; bottom: 1rem; }
}

/* ---------- Junta Directiva y órganos federativos ---------- */
.gov-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.4rem; padding: .3rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.gov-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px; color: rgb(255 255 255 / .82); text-decoration: none; font: 600 .95rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: background .15s, color .15s; }
.gov-tabs a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.gov-tabs a.on { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); box-shadow: 0 8px 20px -10px rgb(253 220 6 / .8); }

.gov { display: grid; gap: 2.5rem; }
.gov-lead { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 2rem 2.25rem; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(circle at 92% 8%, rgb(253 220 6 / .28), transparent 38%), linear-gradient(140deg, #0b446c, var(--green-900) 60%, var(--green-950)); box-shadow: 0 30px 60px -32px rgb(2 20 33 / .8); }
.gov-lead::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 200px; background: var(--waves-soft) left bottom / 1200px 240px repeat-x; }
.gov-lead-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); border: 3px solid rgb(255 255 255 / .85); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .7); }
.gov-lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.gov-lead-photo span { font: 700 5rem/1 var(--display); color: rgb(253 220 6 / .9); letter-spacing: .04em; }
.gov-lead-text .eyebrow { color: var(--accent); }
.gov-lead-text h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .55rem 0 .8rem; }
.gov-lead-text p { margin: 0 0 1.2rem; max-width: 62ch; color: rgb(255 255 255 / .82); font-size: 1.02rem; }
.gov-lead-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.3rem; font-size: .88rem; color: rgb(255 255 255 / .75); }
.gov-lead-facts strong { font: 700 1.5rem/1 var(--display); color: #fff; margin-right: .25rem; }
.gov-lead .btn { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); }

.gov-group-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--glass-line); }
.gov-group-head h2 { font-size: 1.75rem; color: var(--green-900); display: flex; align-items: center; gap: .6rem; }
.gov-group-head h2::before { content: ""; width: 6px; height: 1.3rem; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #e0c200); }
.gov-group-head span { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 .45rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .78rem; font-weight: 700; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

.gov-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, box-shadow .2s; }
.gov-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 18px 36px -20px rgb(5 26 41 / .35); }
.gov-avatar { position: relative; display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 50%; overflow: hidden; color: var(--accent); font: 700 1.45rem/1 var(--display); letter-spacing: .03em;
    background: linear-gradient(160deg, var(--green-700), var(--green-950)); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgb(5 105 176 / .18); }
.gov-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gov-avatar.small { width: 38px; height: 38px; font-size: .85rem; box-shadow: 0 0 0 2px #fff; }
.gov-card-text { min-width: 0; }
.gov-card h3 { font: 700 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.gov-card p { margin: .3rem 0 0; font-size: .88rem; line-height: 1.35; color: var(--ink-2); }
.gov-card-links { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.gov-card-links:empty { display: none; }
.gov-province { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .75rem; font-weight: 700; text-decoration: none; }
.gov-province:hover { background: var(--brand); color: #fff; }
.gov-mail { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(5 105 176 / .08); color: var(--brand); }
.gov-mail:hover { background: var(--brand); color: #fff; }

.gov-bodies { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.25rem; align-items: start; }
.gov-body { display: grid; gap: .9rem; padding: 1.3rem 1.4rem; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-top: 4px solid var(--brand); scroll-margin-top: 110px; }
.gov-body header { display: flex; align-items: center; gap: .85rem; }
.gov-body-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: var(--accent); }
.gov-body-kind { font: 700 .75rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.gov-body h2 { font-size: 1.45rem; margin-top: .3rem; }
.gov-body-desc { margin: 0; font-size: .9rem; color: var(--ink-2); }
.gov-body-members { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.gov-body-members li { display: flex; align-items: center; gap: .7rem; }
.gov-body-member { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gov-body-member strong { font-weight: 600; font-size: .93rem; }
.gov-body-member small { font-size: .78rem; color: var(--muted); }
.gov-body-mail { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; padding: .4rem .8rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .82rem; font-weight: 600; text-decoration: none; word-break: break-all; }
.gov-body-mail:hover { background: var(--brand); color: #fff; }

.gov-cta { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s; }
.gov-cta:hover { transform: translateX(4px); color: var(--brand); }
.gov-cta > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gov-cta strong { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; }
.gov-cta small { color: var(--muted); font-size: .85rem; }
.gov-cta-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: linear-gradient(160deg, #ffd84a, var(--accent)); color: var(--green-950); }

@media (max-width: 900px) {
    .gov-lead { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
    .gov-lead-photo { width: 180px; }
    .gov-bodies { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .gov-grid { grid-template-columns: 1fr; }
    .gov-avatar { width: 58px; height: 58px; font-size: 1.2rem; }
}

/* ---------- Visor de PDF ---------- */
html.pdf-open { overflow: hidden; }
.pdf-viewer { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.25rem; background: rgb(2 11 18 / .72); backdrop-filter: blur(4px); animation: fade-in .18s ease-out; }
.pdf-viewer-box { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(92vh, 100%); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgb(0 0 0 / .6); }
.pdf-viewer-bar { display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem .65rem 1rem; color: #fff; background: linear-gradient(120deg, var(--green-700), var(--green-900)); }
.pdf-viewer-badge { flex: none; padding: .25rem .45rem; border-radius: 6px; background: #e5383b; color: #fff; font: 700 .72rem/1 var(--body); letter-spacing: .06em; }
.pdf-viewer-title { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewer-actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.pdf-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); transition: background .15s; }
.pdf-btn:hover { background: rgb(255 255 255 / .22); color: #fff; }
.pdf-btn.primary { background: linear-gradient(180deg, #ffd84a, var(--accent)); border-color: transparent; color: var(--green-950); }
.pdf-btn.primary:hover { filter: brightness(1.05); color: var(--green-950); }
.pdf-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.pdf-close:hover { background: rgb(255 255 255 / .25); }
.pdf-viewer-body { position: relative; flex: 1; min-height: 0; background: #e9eeeb; overflow: auto; }
.pdf-viewer-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.pdf-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
.pdf-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgb(5 105 176 / .2); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-pages { display: grid; justify-items: center; gap: .75rem; padding: .75rem; }
.pdf-pages canvas { max-width: 100%; height: auto; background: #fff; box-shadow: 0 6px 20px -10px rgb(0 0 0 / .35); }
.pdf-more, .pdf-fallback p { margin: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.pdf-fallback { display: grid; place-items: center; height: 100%; }

.pdf-actions { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.doc-dl.ghost { background: rgb(255 255 255 / .85); color: var(--green-800); border: 1px solid rgb(5 105 176 / .25); box-shadow: none; }
.doc-dl.ghost:hover { background: var(--green-50); color: var(--green-900); }
.pdf-actions.compact .doc-dl { padding: .55rem .7rem; }
.pdf-actions.compact .doc-dl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.resource-list li.is-pdf { position: relative; }
.resource-list li.is-pdf > a:first-child { padding-right: 4.2rem; }
.resource-download { position: absolute; right: .7rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--green-800); background: var(--green-50); transition: background .15s, color .15s; }
.resource-download:hover { background: var(--brand); color: #fff; }

/* ---------- Logos del pie ---------- */
.footer-partners { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding-block: 1.75rem; border-top: 1px solid rgb(255 255 255 / .1); }
.footer-partner-group { display: grid; gap: .6rem; }
.footer-partner-label { font: 600 .78rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.footer-partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-partner { display: flex; align-items: center; justify-content: center; flex: none; transition: transform .2s, opacity .2s; opacity: .92; }
.footer-partner:hover { transform: translateY(-2px); opacity: 1; }
/* Altura fija: los logos llegan con tamaños muy distintos (el de la Junta mide 2257×1455). */
.footer-partner img { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.footer-partner.on-white { padding: .45rem .9rem; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5); }
.footer-partner.on-white img { height: 80px; }

/* ---------- Directos ---------- */
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgb(255 59 48 / .6); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgb(255 59 48 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 48 / 0); } }
.live-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px; background: #fff0ef; color: #c1271d; font: 700 .82rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.live-page { display: grid; gap: 2.75rem; }
.live-section-head { margin-bottom: 1rem; }
.live-section-head h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.8rem; color: var(--green-900); }
.live-section-head h2 .icon { color: var(--brand); }
.live-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: linear-gradient(140deg, #0b446c, var(--green-950)); color: #fff; box-shadow: 0 30px 60px -32px rgb(2 20 33 / .8); }
.live-feature-media { position: relative; min-height: 280px; background: #000; }
.live-feature-link { display: grid; place-items: center; height: 100%; min-height: 280px; color: var(--accent); background: radial-gradient(circle at 30% 20%, rgb(253 220 6 / .25), transparent 50%), var(--green-900); }
.live-feature-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.live-feature-icon { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); }
.live-feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.75rem; }
.live-feature-text .live-badge { background: rgb(255 59 48 / .18); color: #ffd0cc; }
.live-feature-text h3 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; }
.live-feature-text p { margin: 0; color: rgb(255 255 255 / .8); }
.live-feature-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; color: rgb(255 255 255 / .85); }
.live-feature-facts li { display: flex; align-items: center; gap: .45rem; }
.live-feature-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.live-feature-actions .btn:not(.ghost) { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); }

.live-player { position: relative; aspect-ratio: 16 / 9; height: 100%; background: #000; }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player-poster { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; background: #000; }
.live-player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.live-player-poster:hover img { opacity: 1; transform: scale(1.02); }
.live-player-play { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #ff3b30; color: #fff; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .6); transition: transform .2s; }
.live-player-poster:hover .live-player-play { transform: scale(1.08); }

.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.live-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, box-shadow .2s; }
.live-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 18px 36px -20px rgb(5 26 41 / .35); }
.live-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: var(--accent); }
.live-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-card-play { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; }
.live-state { position: absolute; left: .7rem; top: .7rem; padding: .25rem .6rem; border-radius: 999px; background: rgb(2 17 27 / .75); color: #fff; font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.state-live .live-state { background: #ff3b30; }
.state-upcoming .live-state { background: var(--accent); color: var(--green-950); }
.live-card-body { display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1.05rem 1.05rem; flex: 1; }
.live-card-kind { display: inline-flex; align-items: center; gap: .3rem; font: 700 .75rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.live-card h3 { font: 700 1.2rem/1.15 var(--display); text-transform: uppercase; }
.live-card h3 a { color: var(--ink); text-decoration: none; }
.live-card h3 a:hover { color: var(--brand); }
.live-card-when { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--ink-2); }
.live-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.live-card-champ { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.live-card-go { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .88rem; text-decoration: none; }

.live-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.live-agenda li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.live-agenda-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.live-agenda-text strong { font-weight: 600; }
.live-agenda-text span { font-size: .85rem; color: var(--muted); }
.live-agenda-text a { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.live-countdown { padding: .3rem .7rem; border-radius: 999px; background: #fff4d6; color: #7a5200; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.live-agenda-go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-50); color: var(--brand); }
.live-agenda-go:hover { background: var(--brand); color: #fff; }

.live-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.live-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, border-color .2s; }
.live-tile:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.live-tile > .icon { margin-left: auto; color: var(--muted); }
.live-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: var(--accent); }
.live-tile-text { display: flex; flex-direction: column; min-width: 0; }
.live-tile-text strong { font: 700 1.1rem/1.15 var(--display); text-transform: uppercase; }
.live-tile-text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-more { display: flex; justify-content: center; margin-top: 1.25rem; }

.live-strip { background: linear-gradient(90deg, #2a0705, #5c0f0b 40%, var(--green-900)); color: #fff; }
.live-strip-row { display: flex; align-items: center; gap: 1rem; min-height: 54px; padding-block: .5rem; }
.live-strip .live-badge { background: rgb(255 59 48 / .2); color: #ffd0cc; flex: none; }
.live-strip-items { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; flex: 1; min-width: 0; }
.live-strip-items a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.live-strip-items a:hover { color: var(--accent); }
.live-strip-items small { color: rgb(255 255 255 / .65); font-weight: 500; }
.live-strip-go { display: inline-flex; align-items: center; gap: .35rem; flex: none; color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- Contacto ---------- */
.contact-page { display: grid; gap: 2.75rem; }
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.contact-card { display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem; border-radius: 18px; text-align: left; font: inherit; color: var(--ink); text-decoration: none; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, border-color .2s; }
a.contact-card:hover, button.contact-card:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); cursor: pointer; }
.contact-card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: var(--accent); }
.contact-card div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.contact-card small { font: 700 .75rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.contact-card strong { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.contact-card span { font-size: .82rem; color: var(--muted); }
.contact-card.accent { background: linear-gradient(140deg, #0b446c, var(--green-900)); color: #fff; border-color: transparent; }
.contact-card.accent small { color: var(--accent); }
.contact-card.accent span { color: rgb(255 255 255 / .7); }
.contact-card.accent .contact-card-icon { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); }
.contact-map .location-map { min-height: 260px; }

.contact-form-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; padding: 2rem; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); scroll-margin-top: 110px; }
.contact-form-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: .45rem 0 .75rem; color: var(--green-900); }
.contact-form-intro p { margin: 0 0 1rem; color: var(--ink-2); }
.contact-form-topics { padding: .85rem 1rem; border-radius: 14px; background: rgb(255 255 255 / .7); border: 1px solid var(--glass-line); font-size: .88rem; }
.contact-form-topics ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.contact-form-note { display: flex; align-items: center; gap: .4rem; margin-top: 1rem !important; font-size: .82rem; color: var(--muted) !important; }
.contact-count { margin-left: auto; font-weight: 500; color: var(--muted); }
.contact-done { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.75rem; border-radius: 18px; background: rgb(255 255 255 / .8); border: 1px solid var(--glass-line); }
.contact-done .icon { color: var(--brand); }
.contact-done strong { font: 700 1.6rem/1 var(--display); text-transform: uppercase; color: var(--green-900); }
.contact-done p { margin: 0 0 .5rem; color: var(--ink-2); }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.dept-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.25rem; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.dept-card header { display: flex; align-items: center; gap: .75rem; }
.dept-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--brand); }
.dept-card h3 { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.dept-topics { margin: 0; padding-left: 1.1rem; display: grid; gap: .15rem; font-size: .86rem; color: var(--ink-2); }
.dept-contact { display: grid; gap: .3rem; }
.dept-contact a { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dept-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding-top: .7rem; border-top: 1px solid var(--glass-line); font-size: .8rem; color: var(--muted); }
.dept-card footer > span { display: inline-flex; align-items: center; gap: .3rem; }
.dept-note { padding: .15rem .55rem; border-radius: 999px; background: #fff4d6; color: #7a5200; font-weight: 600; }
.dept-write { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .8rem/1 var(--body); cursor: pointer; }
.dept-write:hover { background: var(--green-700); }

@media (max-width: 1100px) {
    .live-feature { grid-template-columns: 1fr; }
    .contact-top { grid-template-columns: 1fr; }
    .contact-form-wrap { grid-template-columns: 1fr; padding: 1.4rem; }
}
@media (max-width: 720px) {
    .pdf-viewer { padding: 0; }
    .pdf-viewer-box { height: 100%; border-radius: 0; }
    .pdf-viewer-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .6rem; }
    .pdf-viewer-actions { grid-column: 1 / -1; grid-row: 2; }
    .pdf-viewer-actions .pdf-btn { flex: 1; justify-content: center; padding: .55rem .6rem; font-size: .8rem; }
    .contact-cards { grid-template-columns: 1fr; }
    .live-agenda li { grid-template-columns: auto minmax(0, 1fr) auto; }
    .live-countdown { grid-column: 2; justify-self: start; }
    .live-strip-row { flex-wrap: wrap; }
    .footer-partners { gap: 1.25rem 2rem; }
}

/* ---------- Carteles sin recortar (vertical o apaisado) ---------- */
.poster { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, var(--green-700), var(--green-950)); }
.poster-backdrop { position: absolute; inset: -12%; z-index: -1; background: center / cover no-repeat; filter: blur(22px) saturate(1.2) brightness(.72); transform: scale(1.1); }
.poster img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .35)); transition: transform .5s; }
.poster-empty { display: grid; place-items: center; gap: .5rem; padding: 1rem; text-align: center; color: rgb(253 220 6 / .75); }
.poster-empty span { font: 700 .82rem/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tarjeta de campeonato */
.champ-card .champ-poster { aspect-ratio: 4 / 5; }
.champ-card .champ-poster .poster img { transform-origin: center; }
.champ-card:hover .champ-poster .poster img { transform: scale(1.03); }
.champ-card .champ-poster img, .champ-card:hover .champ-poster img { width: 100%; height: 100%; }
.champ-card.is-past .poster img { filter: grayscale(.35) drop-shadow(0 10px 24px rgb(0 0 0 / .35)); }
.champ-badge { position: absolute; right: .75rem; top: .75rem; padding: .3rem .65rem; border-radius: 999px; font: 700 .74rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: rgb(2 17 27 / .78); color: #fff; }
.champ-badge.soon { background: var(--accent); color: var(--green-950); }
.champ-badge.live { background: #ff3b30; color: #fff; }
.champ-badge.past { background: rgb(2 17 27 / .65); color: rgb(255 255 255 / .85); }
.champ-badge.inline { position: static; }
.champ-level { font-size: .74rem; font-weight: 600; color: var(--muted); }
.champ-facts { display: grid; gap: .25rem; margin-top: auto; font-size: .83rem; color: var(--ink-2); }
.champ-facts span { display: inline-flex; align-items: flex-start; gap: .35rem; }
.champ-facts .icon { flex: none; margin-top: .15rem; color: var(--brand); }
.month-title span { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 .5rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 700 .9rem/1 var(--body); }

/* ---------- Campeonatos destacados ---------- */
.champ-featured { margin-bottom: 2.25rem; }
.champ-featured-head { margin-bottom: 1rem; }
.champ-featured-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: .45rem; color: var(--green-900); }
.champ-featured-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.champ-featured-grid.single { grid-template-columns: 1fr; }
.champ-hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(circle at 95% 0%, rgb(253 220 6 / .25), transparent 40%), linear-gradient(140deg, #0b446c, var(--green-900) 55%, var(--green-950)); box-shadow: 0 30px 60px -30px rgb(2 20 33 / .8); }
.champ-hero-poster { display: block; min-height: 380px; }
.champ-hero-poster .poster { background: transparent; }
.champ-hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 2rem 2rem 1.75rem; }
.champ-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.champ-hero h3 { font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.02 var(--display); text-transform: uppercase; }
.champ-hero h3 a { color: #fff; text-decoration: none; }
.champ-hero h3 a:hover { color: var(--accent); }
.champ-hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .93rem; color: rgb(255 255 255 / .85); }
.champ-hero-facts li { display: flex; align-items: flex-start; gap: .45rem; }
.champ-hero-facts .icon { flex: none; margin-top: .2rem; color: var(--accent); }
.champ-countdown { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 16px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.champ-countdown strong { font: 700 3rem/.9 var(--display); color: var(--accent); }
.champ-countdown span { display: flex; flex-direction: column; font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.champ-countdown small { font: 500 .78rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: rgb(255 255 255 / .7); }
.champ-countdown-live { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .5rem; }
.champ-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.champ-hero-actions .btn:not(.ghost) { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); }
.champ-hero-actions .btn.ghost { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .25); box-shadow: none; }

.champ-featured-side { display: grid; gap: .75rem; align-content: start; }
.champ-mini { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .7rem; border-radius: 18px; color: var(--ink); text-decoration: none;
    background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, border-color .2s; }
.champ-mini:hover { transform: translateX(4px); border-color: var(--brand); color: var(--ink); }
.champ-mini-poster { display: block; width: 84px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; }
.champ-mini-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.champ-mini-level { font: 700 .72rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.champ-mini-body strong { font: 700 1.08rem/1.1 var(--display); text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.champ-mini-body small { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.champ-mini-count { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: .45rem .4rem; border-radius: 12px; background: var(--green-50); color: var(--green-800); }
.champ-mini-count strong { font: 700 1.5rem/1 var(--display); }
.champ-mini-count small { font-size: .68rem; font-weight: 700; text-transform: uppercase; }

/* ---------- Vistas del calendario ---------- */
.calendar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.calendar-bar .result-count { margin: 0; }
.view-switch { display: inline-flex; gap: .2rem; padding: .25rem; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.view-switch button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s; }
.view-switch button:hover { color: var(--brand); }
.view-switch button.on { background: linear-gradient(180deg, #105d94, var(--brand)); color: #fff; box-shadow: 0 6px 14px -8px rgb(5 105 176 / .7); }

.champ-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.champ-row { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .6rem 1rem .6rem .6rem; border-radius: 16px; color: var(--ink); text-decoration: none;
    background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .15s, border-color .15s; }
.champ-row:hover { transform: translateX(3px); border-color: var(--brand); color: var(--ink); }
.champ-row.is-past { opacity: .78; }
.champ-row-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 14px; color: #fff; background: linear-gradient(160deg, var(--green-700), var(--green-900)); line-height: 1; }
.champ-row-date strong { font: 700 1.6rem/1 var(--display); }
.champ-row-date small { font: 700 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: .15rem; }
.champ-row-date em { font-style: normal; font-size: .62rem; text-transform: uppercase; color: rgb(255 255 255 / .7); margin-top: .2rem; }
.champ-row-thumb { display: block; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.champ-row-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.champ-row-main strong { font-weight: 600; line-height: 1.3; }
.champ-row-main small { font-size: .82rem; color: var(--muted); }
.champ-row-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.champ-row-go { color: var(--muted); }

.champ-table-wrap { margin-top: 1rem; border-radius: var(--radius); overflow: auto; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.champ-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.champ-table thead th { position: sticky; top: 0; padding: .75rem 1rem; text-align: left; font: 700 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .85); background: linear-gradient(160deg, var(--green-700), var(--green-900)); }
.champ-table td, .champ-table tbody th { padding: .65rem 1rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--glass-line); }
.champ-table tbody th { font-weight: 600; }
.champ-table tbody th a { color: var(--ink); text-decoration: none; }
.champ-table tbody th a:hover { color: var(--brand); }
.champ-table tbody tr:not(.champ-table-month):hover { background: rgb(5 105 176 / .04); }
.champ-table-month th { padding: .6rem 1rem !important; font: 700 .9rem/1 var(--display) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--green-800) !important; background: var(--green-50); }
.champ-table-date { white-space: nowrap; color: var(--ink-2); }
.champ-table-level { font-size: .82rem; color: var(--muted); }
.champ-table .chip { white-space: nowrap; }
.champ-row-main small span { margin-left: .3rem; }
.champ-table tr.is-past { opacity: .7; }

/* ---------- Newsletter ---------- */
.newsletter-band { position: relative; overflow: hidden; border-radius: 26px; color: #fff; isolation: isolate;
    background: radial-gradient(circle at 10% 0%, rgb(253 220 6 / .28), transparent 40%), linear-gradient(135deg, #0b446c, var(--green-900) 60%, var(--green-950)); box-shadow: 0 30px 60px -32px rgb(2 20 33 / .8); }
.newsletter-art { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / .035) 46px 48px); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: center; padding: 2.25rem 2.5rem; }
.newsletter-copy { display: flex; gap: 1.1rem; align-items: flex-start; }
.newsletter-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 18px; background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); box-shadow: 0 12px 26px -12px rgb(253 220 6 / .9); }
.newsletter-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .45rem 0 .5rem; }
.newsletter-copy p { margin: 0; color: rgb(255 255 255 / .8); }
.newsletter-form { display: grid; gap: .7rem; }
.newsletter-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: .5rem; padding: .4rem; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); }
.newsletter-fields input { min-width: 0; padding: .75rem 1rem; border: 0; border-radius: 999px; background: rgb(255 255 255 / .95); color: var(--ink); font: inherit; font-size: .92rem; }
.newsletter-fields input:focus { outline: 3px solid rgb(253 220 6 / .6); }
.newsletter-fields .btn { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); white-space: nowrap; }
.newsletter-consent { display: flex; align-items: flex-start; gap: .5rem; margin: 0 .4rem; font-size: .82rem; color: rgb(255 255 255 / .75); }
.newsletter-consent input { margin-top: .2rem; accent-color: var(--accent); }
.newsletter-consent a { color: #fff; }
.newsletter-error { display: flex; align-items: center; gap: .4rem; margin: 0 .4rem; font-size: .85rem; color: #ffd0cc; }
.newsletter-done { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 18px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); }
.newsletter-done .icon { color: var(--accent); flex: none; }
.newsletter-done strong { font: 700 1.4rem/1 var(--display); text-transform: uppercase; }
.newsletter-done p { margin: .35rem 0 0; color: rgb(255 255 255 / .85); }
.newsletter-home { padding-block: 1rem 2.5rem; }
.newsletter-page { display: grid; gap: 2rem; }
.newsletter-result { display: grid; justify-items: center; gap: .75rem; padding: 2.5rem 1.5rem; border-radius: 22px; text-align: center; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.newsletter-result .icon { color: #c4161c; }
.newsletter-result.ok .icon { color: var(--brand); }
.newsletter-result h2 { font-size: 2rem; color: var(--green-900); }
.newsletter-result p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.newsletter-result .pdf-loading { position: static; }

/* ---------- Carreras populares ---------- */
.races-hero-stats { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.3rem; color: rgb(255 255 255 / .8); }
.races-hero-stats strong { font: 700 1.9rem/1 var(--display); color: var(--accent); margin-right: .3rem; }
.btn.ghost.light { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .28); box-shadow: none; }
.btn.small { padding: .5rem .9rem; font-size: .85rem; }
.races { display: grid; gap: 1.5rem; }
.race-next { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); border-radius: 24px; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 100% 0%, rgb(253 220 6 / .25), transparent 40%), linear-gradient(140deg, #0b446c, var(--green-900) 55%, var(--green-950)); box-shadow: 0 30px 60px -30px rgb(2 20 33 / .8); }
.race-next-poster { min-height: 360px; }
.race-next-poster .poster { background: transparent; }
.race-next-body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 2rem; }
.race-next-body h2 { font-size: clamp(2rem, 4vw, 3rem); }
.race-next-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: rgb(255 255 255 / .85); }
.race-next-facts li { display: flex; align-items: center; gap: .45rem; }
.race-next-facts .icon { color: var(--accent); }
.race-next-count { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 16px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.race-next-count strong { font: 700 3rem/.9 var(--display); color: var(--accent); }
.race-next-count span { display: flex; flex-direction: column; font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.race-next-count small { font: 500 .78rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: rgb(255 255 255 / .7); }
.race-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; }
.race-next-actions .btn:not(.ghost) { background: linear-gradient(180deg, #ffd84a, var(--accent)); color: var(--green-950); }
.race-pill { padding: .35rem .8rem; border-radius: 999px; font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: rgb(255 255 255 / .12); }
.race-pill.open { background: #2b84c3; color: #041d2f; }
.race-pill.closed { background: rgb(255 255 255 / .16); }
.race-pill.postponed { background: var(--accent); color: var(--green-950); }
.race-pill.cancelled { background: #ff3b30; }
.races-filters { margin-bottom: 0; }
.chip-count { margin-left: .35rem; font-size: .72rem; opacity: .7; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .7); border: 1px solid rgb(14 41 61 / .1); font-size: .85rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--brand); }
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.race-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .2s, box-shadow .2s; }
.race-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 #fff inset, 0 22px 44px -18px rgb(5 26 41 / .3); }
.race-card-poster { display: block; aspect-ratio: 3 / 4; }
.race-state { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .75rem; font: 700 .76rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-align: center; color: #fff; background: rgb(2 17 27 / .72); backdrop-filter: blur(6px); }
.status-open .race-state { background: rgb(19 91 143 / .92); }
.status-postponed .race-state { background: rgb(253 220 6 / .95); color: var(--green-950); }
.status-cancelled .race-state { background: rgb(229 56 59 / .92); }
.status-cancelled .poster img, .status-past .poster img { filter: grayscale(.6) drop-shadow(0 10px 24px rgb(0 0 0 / .35)); }
.race-card-body { display: flex; flex-direction: column; gap: .45rem; padding: .9rem 1rem 1rem; flex: 1; }
.race-when { font-size: .78rem; color: var(--muted); }
.race-card h3 { font: 700 1.25rem/1.08 var(--display); text-transform: uppercase; color: var(--ink); }
.race-facts { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: 0; font-size: .8rem; color: var(--ink-2); }
.race-facts span { display: inline-flex; align-items: center; gap: .3rem; }
.race-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.races-past { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); padding: .5rem 1rem 1rem; }
.races-past summary { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; cursor: pointer; font: 700 1.3rem/1 var(--display); text-transform: uppercase; color: var(--green-900); }
.races-past summary span { font: 600 .8rem/1 var(--body); padding: .2rem .55rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); }
.races-past[open] summary { margin-bottom: .75rem; }
.races-organizers { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.races-organizers-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: var(--accent); }
.races-organizers h2 { font-size: 1.5rem; color: var(--green-900); }
.races-organizers p { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-2); }
.races-organizers .btn { margin-left: auto; flex: none; }

@media (max-width: 1100px) {
    .champ-featured-grid { grid-template-columns: 1fr; }
    .newsletter-inner { grid-template-columns: 1fr; padding: 1.75rem; }
}
@media (max-width: 800px) {
    .champ-hero { grid-template-columns: 1fr; }
    .champ-hero-poster { min-height: 0; aspect-ratio: 4 / 3; }
    .champ-hero-body { padding: 1.4rem; }
    .champ-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .champ-row-thumb, .champ-row-tags .champ-level { display: none; }
    .champ-row-date { height: 56px; }
    .race-next { grid-template-columns: 1fr; }
    .race-next-poster { min-height: 0; aspect-ratio: 4 / 3; }
    .race-next-body { padding: 1.4rem; }
    .newsletter-fields { grid-template-columns: 1fr; border-radius: 18px; }
    .races-organizers { flex-direction: column; align-items: flex-start; }
    .races-organizers .btn { margin-left: 0; }
    .view-switch span { display: none; }
}

@media (max-width: 1320px) {
    .nav-list > li > a { padding-inline: .4rem; font-size: .94rem; letter-spacing: .015em; }
    .nav-list > li > a::after { left: .4rem; right: .4rem; }
    .header-meta > a { display: none; }
    .header-meta .social { padding-left: 0; border-left: 0; }
}
@media (max-width: 1180px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
    :root { --header-h: 68px; }
    .provinces-layout, .province-portal-inner, .province-portal-info { grid-template-columns: 1fr; }
    .province-portal-map { max-width: 520px; }
    .province-contact { position: static; }
    .header-actions, .header-meta { display: none; }
    .burger { display: grid; }
    .logo img { height: 46px; }
    html.scrolled .logo img { height: 38px; }
    .mainnav { display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .mainnav.open { display: block; animation: nav-in .2s ease-out; }
    @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
    .nav-list { flex-direction: column; flex-wrap: nowrap; padding-block: .5rem; }
    .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid rgb(255 255 255 / .08); }
    .nav-list > li > a { flex: 1; padding: 1rem .5rem; font-size: 1.15rem; }
    .nav-list > li:hover > a, .nav-list > li:focus-within > a { background: transparent; }
    .nav-list > li > a::after, .nav-chevron { display: none; }
    .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgb(255 255 255 / .08); color: #fff; transition: transform .2s; }
    .nav-list > li.expanded .sub-toggle { transform: rotate(180deg); }
    .sub { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; margin-bottom: .75rem; border-radius: 12px; box-shadow: none; }
    .sub::before { display: none; }
    .nav-list > li.expanded > .sub { display: block; }
    .mainnav-mobile-extra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem 20px 1.5rem; color: rgb(255 255 255 / .8); }
    .mainnav-mobile-extra .social { margin-left: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.5rem; }
    .news-layout { grid-template-columns: 1fr; }
    .page-layout.with-toc { grid-template-columns: 1fr; }
    .champ-detail { grid-template-columns: 1fr; }
    .champ-side { position: static; grid-template-columns: minmax(0, 280px) 1fr; align-items: start; }
    .champ-actions { grid-column: 1 / -1; }
    .toc { position: static; }
}
@media (max-width: 720px) {
    .province-focus h3 { font-size: 2rem; }
    .andalucia-map .province-label { font-size: 26px; }
    .logo img { height: 40px; }
    .quicklinks-row { gap: .3rem .5rem; }
    .quicklinks-row { display: grid; grid-template-columns: 1fr 1fr; }
    .quicklink { font-size: .85rem; }
    .block { padding-block: 2.5rem; }
    .carousel { min-height: 380px; }
    .slide-caption { padding: 3rem 1.25rem 4.25rem; }
    .carousel-controls { left: 1.25rem; }
    .section-title { flex-direction: column; align-items: flex-start; }
    .doc-list li { grid-template-columns: 1fr; gap: .75rem; }
    .doc-num { justify-self: start; }
    .search { min-width: 0; width: 100%; }
    .filter-row .search { min-width: 0; margin-left: 0; }
    .champ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
    .champ-body h3 { font-size: 1.05rem; }
    .champ-side { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .legal-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    /* El teletipo se mantiene en movimiento (tiene botón de pausa) */
    .ticker-track { animation-duration: var(--duration, 40s) !important; }
}

/* ---------- Bloques de contenido HTML de la portada (CMS › Bloques de portada) ---------- */
.home-html-body > p, .home-html-body > ul, .home-html-body > ol, .home-html-body > blockquote { max-width: 75ch; }
.home-html-more { margin: 1.25rem 0 0; }
.home-html .more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.home-html.tone-soft { background: rgb(255 255 255 / .55); border-block: 1px solid var(--glass-border); }
.home-html.tone-brand { background: radial-gradient(700px 360px at 0% 0%, rgb(18 105 167 / .28), transparent 70%), linear-gradient(160deg, var(--green-800), var(--green-950)); color: #fff; }
.home-html.tone-brand .section-title h2,
.home-html.tone-brand .prose h2, .home-html.tone-brand .prose h3, .home-html.tone-brand .prose h4 { color: #fff; }
.home-html.tone-brand .eyebrow,
.home-html.tone-brand .more,
.home-html.tone-brand .prose a { color: var(--accent); }
.home-html.tone-brand .prose { color: rgb(255 255 255 / .86); }
.home-html.tone-brand .prose li::marker { color: var(--accent); }
.home-html.tone-brand .prose th { background: rgb(255 255 255 / .08); color: #fff; }
.home-html.tone-brand .prose th, .home-html.tone-brand .prose td { border-color: rgb(255 255 255 / .14); }
.home-html.tone-brand .prose blockquote { background: rgb(255 255 255 / .07); }

/* ---------- Atleta: datos de World Athletics ---------- */
.athlete-stat-rank { background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: #fff; box-shadow: 0 14px 30px -16px rgb(2 20 33 / .8); }
.athlete-stat-rank strong { color: var(--accent); }

.wa-table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.wa-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wa-table th { padding: .7rem .9rem; background: var(--green-50); color: var(--green-800); font-size: .78rem; font-weight: 600; text-align: left; white-space: nowrap; }
.wa-table td { padding: .7rem .9rem; border-top: 1px solid var(--glass-line); vertical-align: top; }
.wa-table td strong { display: block; font-weight: 600; color: var(--ink); }
.wa-table td small { font-size: .78rem; color: var(--muted); }
.wa-date { white-space: nowrap; color: var(--muted); }
.wa-place { font: 700 1.2rem/1 var(--display); text-align: center; color: var(--ink-2); }
.wa-place.podium-1 { color: #b8860b; }
.wa-place.podium-2 { color: #7d8790; }
.wa-place.podium-3 { color: #9a5b2a; }
.wa-mark { font: 700 1.15rem/1.1 var(--display); color: var(--green-900); white-space: nowrap; text-align: right; }

.wa-events { margin-bottom: 1rem; }
.progression { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.progression li { display: grid; grid-template-columns: 52px minmax(80px, 1fr) auto; grid-template-areas: "year bar mark" ". venue venue"; align-items: center; column-gap: .9rem; }
.progression-year { grid-area: year; font: 700 1.15rem/1 var(--display); color: var(--green-800); }
.progression-bar { grid-area: bar; height: 10px; border-radius: 999px; background: rgb(14 41 61 / .08); overflow: hidden; }
.progression-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), #3c80b1); }
.progression-mark { grid-area: mark; font: 700 1.2rem/1 var(--display); color: var(--ink); text-align: right; min-width: 6ch; }
.progression-venue { grid-area: venue; font-size: .76rem; color: var(--muted); }
.progression li.is-best .progression-bar span { background: linear-gradient(90deg, #e0c200, var(--accent)); }
.progression li.is-best .progression-mark { color: var(--green-900); }
.progression li.is-best .progression-mark::after { content: " MMP"; font: 600 .7rem var(--body); color: var(--muted); }

.wa-ranking h2, .wa-titles h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.35rem; margin: 0; }
.wa-ranking h2 .icon, .wa-titles h2 .icon { color: var(--brand); }
.wa-ranking ul, .wa-titles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.wa-ranking li { display: flex; align-items: baseline; gap: .65rem; }
.wa-ranking li strong { min-width: 2.6ch; font: 700 1.6rem/1 var(--display); color: var(--green-900); }
.wa-ranking li span { font-size: .88rem; color: var(--ink-2); }
.wa-ranking-best { margin: 0; padding-top: .6rem; border-top: 1px solid var(--glass-line); font-size: .82rem; color: var(--muted); }
.wa-titles li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-2); }
.wa-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .4rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 700 1rem/1 var(--display); }
.wa-source { margin: 0; font-size: .8rem; color: var(--muted); }
.wa-source a { font-weight: 600; }
@media (max-width: 640px) {
    .wa-table thead { display: none; }
    .wa-table tr { display: grid; grid-template-columns: 1fr auto; padding: .6rem .8rem; border-top: 1px solid var(--glass-line); }
    .wa-table td { padding: .1rem 0; border: 0; }
    .wa-table td:nth-child(1) { grid-column: 1 / -1; font-size: .78rem; }
    .wa-place { text-align: left; }
}

/* ---------- Atletas de una noticia o un campeonato, y campeonatos de un atleta ---------- */
.athlete-refs { margin-top: 2.25rem; }
.athlete-refs h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; margin: 0 0 .9rem; }
.athlete-refs h2 .icon { color: var(--brand); }
.athlete-refs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.athlete-ref { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem .7rem .7rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.athlete-ref:hover { border-color: #b7cddd; box-shadow: 0 0 0 3px rgb(5 105 176 / .08), var(--glass-shadow); color: var(--ink); }
.athlete-ref-photo { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: #fff; font: 700 1.15rem/1 var(--display); border: 2px solid #fff; box-shadow: 0 6px 14px -8px rgb(2 20 33 / .6); }
.athlete-ref-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.athlete-ref-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.athlete-ref-text strong { font: 700 1.2rem/1.1 var(--display); text-transform: uppercase; }
.athlete-ref-text small { font-size: .8rem; color: var(--muted); }
.athlete-ref-arrow { color: var(--brand); transition: transform .15s; }
.athlete-ref:hover .athlete-ref-arrow { transform: translateX(3px); }
.link-group .athlete-refs { margin-top: 0; }

.athlete-champs { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.athlete-champs a { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem .6rem .6rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.athlete-champs a:hover { border-color: #b7cddd; color: var(--ink); }
.athlete-champs a > .icon { margin-left: auto; color: var(--brand); flex: none; }
.athlete-champs-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.athlete-champs-text strong { font-weight: 600; }
.athlete-champs-text small { font-size: .8rem; color: var(--muted); }

/* ---------- Atleta: enlaces a World Athletics y a la RFEA ---------- */
.athlete-socials { align-items: center; }
.athlete-socials a.athlete-profile-link { display: inline-flex; width: auto; height: 40px; padding: 0 .95rem; gap: .35rem; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; }

/* ---------- Atleta: gráfica de la progresión ---------- */
.progress-chart { margin: 0 0 1.25rem; padding: 1rem 1.1rem .4rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.progress-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .4rem; }
.progress-chart-head strong { font-size: .95rem; color: var(--ink); }
.progress-chart-head span { font-size: .78rem; color: var(--muted); }
.progress-chart-plot { position: relative; height: 270px; }
.progress-chart-inner { position: absolute; inset: 22px 18px 30px 58px; }
.progress-chart-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.progress-chart-grid { stroke: rgb(14 41 61 / .09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.progress-chart-wash-top { stop-color: var(--green-700); stop-opacity: .2; }
.progress-chart-wash-bottom { stop-color: var(--green-700); stop-opacity: 0; }
.progress-chart-line { fill: none; stroke: var(--green-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.progress-chart-cross { stroke: rgb(14 41 61 / .35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.progress-chart-tick { position: absolute; right: calc(100% + 10px); transform: translateY(-50%); font-size: .72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-chart-year { position: absolute; top: calc(100% + 9px); transform: translateX(-50%); font-size: .74rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress-chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 2px #fff; pointer-events: none; transition: transform .15s; }
.progress-chart-dot.is-best { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgb(253 220 6 / .3); }
.progress-chart-dot.is-hover { transform: scale(1.35); }
.progress-chart-label { position: absolute; transform: translate(-50%, calc(-100% - 12px)); padding: .15rem .5rem; border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem/1.2 var(--display); white-space: nowrap; box-shadow: 0 4px 12px -6px rgb(2 20 33 / .35); pointer-events: none; }
.progress-chart-label.is-best { background: var(--green-900); color: #fff; }
.progress-chart-label.below { transform: translate(-50%, 14px); }
.progress-chart-label.edge-start { transform: translate(-12px, calc(-100% - 12px)); }
.progress-chart-label.edge-end { transform: translate(calc(-100% + 12px), calc(-100% - 12px)); }
.progress-chart-label.below.edge-start { transform: translate(-12px, 14px); }
.progress-chart-label.below.edge-end { transform: translate(calc(-100% + 12px), 14px); }
.progress-chart-hit { position: absolute; top: -22px; bottom: -30px; z-index: 1; }
.progress-chart-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 16px)); display: grid; gap: .1rem; min-width: 130px; padding: .55rem .75rem; border-radius: 12px; background: var(--green-950); color: #fff; box-shadow: 0 14px 30px -12px rgb(2 20 33 / .6); pointer-events: none; }
.progress-chart-tip.below { transform: translate(-50%, 16px); }
.progress-chart-tip.edge-start { transform: translate(-16px, calc(-100% - 16px)); }
.progress-chart-tip.edge-end { transform: translate(calc(-100% + 16px), calc(-100% - 16px)); }
.progress-chart-tip.below.edge-start { transform: translate(-16px, 16px); }
.progress-chart-tip.below.edge-end { transform: translate(calc(-100% + 16px), 16px); }
.progress-chart-tip strong { font-size: .78rem; color: rgb(255 255 255 / .7); }
.progress-chart-tip-mark { font: 700 1.35rem/1.1 var(--display); }
.progress-chart-tip small { font-size: .74rem; color: rgb(255 255 255 / .75); }
.progress-chart-tip .progress-chart-tip-best { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
    .progress-chart-plot { height: 220px; }
    .progress-chart-inner { left: 50px; right: 12px; }
    .photo-carousel { aspect-ratio: 4 / 3; }
    .carousel-nav { width: 38px; height: 38px; margin-top: -19px; }
    .palmares-more { margin-left: 0; }
}

/* =====================================================================
   Diseño 2026: cabecera blanca, héroe en diagonal, franja amarilla y
   fondos de agua con profundidad (corriente, algas y burbujas).
   Va al final para mandar sobre las reglas anteriores.
   ===================================================================== */
:root {
    --navy: #0c2744;
    --navy-2: #133b63;
    --green-950: #061a2e;
    --green-900: #0b2643;
    --green-800: #0f3154;
    --green-700: #16446f;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --radius: 6px;
    --radius-sm: 4px;
}
body { background: #fff; color: var(--navy); }
h1, h2, h3 { font-weight: 800; }

/* ---------- Fondo marino reutilizable ---------- */
/* Capas, de arriba abajo: líneas de corriente, luz de la superficie y degradado de profundidad. */
.sea {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    background:
        var(--tex-lines) center / cover no-repeat,
        radial-gradient(110% 65% at 25% -15%, rgb(74 160 222 / .38), transparent 62%),
        linear-gradient(180deg, #17497a 0%, #0f355c 34%, #0b2847 68%, #071a31 100%);
}
/* Rayos de luz que entran desde la superficie y se apagan con la profundidad */
.sea::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: repeating-linear-gradient(104deg, transparent 0 110px, rgb(255 255 255 / .04) 110px 170px, transparent 170px 300px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    animation: rays-drift 26s linear infinite;
}
/* Los rayos se desplazan despacio, como la luz que entra por el agua en movimiento (el dibujo se repite cada 300px) */
@keyframes rays-drift { to { background-position: 300px 0; } }
/* Burbujas que suben */
.sea-bubbles {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--tex-bubbles) 0 0 / 420px 520px;
    -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(0deg, transparent, #000 30%, #000 70%, transparent);
    animation: bubbles-rise 24s linear infinite;
}
@keyframes bubbles-rise { to { background-position: 0 -520px; } }
.motion-paused .sea::before, .motion-paused .sea-bubbles { animation-play-state: paused; }
/* Si el sistema pide reducir el movimiento, el agua queda quieta y el botón de pausa sobra */
/* Si el sistema pide reducir el movimiento, el agua empieza quieta; el botón «Activar animaciones» la pone en marcha */
@media (prefers-reduced-motion: reduce) {
    .sea::before { animation-duration: 26s !important; animation-play-state: paused; }
    .sea-bubbles { animation-duration: 24s !important; animation-play-state: paused; }
    .motion-on .sea::before, .motion-on .sea-bubbles { animation-play-state: running; }
}

/* ---------- Botones del diseño ---------- */
.btn-sea { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: 4px; font: 700 .98rem/1.1 var(--body); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-sea.primary { background: var(--accent); color: var(--navy); border: 1px solid var(--accent); }
.btn-sea.primary:hover { background: #ffe34d; }
.btn-sea.outline { color: #fff; border: 1px solid rgb(255 255 255 / .7); background: rgb(6 26 46 / .25); }
.btn-sea.outline:hover { background: #fff; color: var(--navy); }
.btn-line { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.1rem; border: 1px solid #c9d5e1; border-radius: 4px; color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.link-under { display: inline-block; color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgb(5 105 176 / .35); }
.link-under:hover { text-decoration-color: currentColor; }
.link-under.light { color: var(--accent); text-decoration-color: rgb(253 215 6 / .45); }

/* ---------- Cabecera ---------- */
.site-header {
    color: var(--navy); background: rgb(255 255 255 / .97); border-top: 4px solid var(--brand); border-bottom: 1px solid #e2e9f0;
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 24px -18px rgb(6 26 46 / .5);
}
.site-header::before { display: none; }
.header-row { gap: 1.25rem; min-height: 84px; }
.logo img { height: 54px; filter: none; }
html.scrolled .header-row { min-height: 68px; }
html.scrolled .logo img { height: 44px; }
.mainnav { margin-inline: auto; border: 0; }
/* Si el menú tiene muchos apartados, pasa a dos líneas en vez de salirse de la pantalla */
.mainnav { min-width: 0; }
.nav-list { flex-wrap: wrap; justify-content: center; gap: .15rem; padding: 0; margin: 0; }
.nav-list > li > a { padding: .7rem .65rem; border-radius: 4px; color: var(--navy); font: 600 1rem/1 var(--body); text-transform: none; letter-spacing: 0; }
.nav-list > li > a::after { left: .65rem; right: .65rem; bottom: .15rem; }
.nav-list > li:hover > a, .nav-list > li:focus-within > a { color: var(--brand); background: #eef4fa; }
.nav-list > li.current > a { color: var(--brand); }
.sub { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid #e2e9f0; border-radius: 6px; box-shadow: 0 24px 50px -24px rgb(6 26 46 / .45); }
.sub a { border-radius: 4px; color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-search { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d3dde7; border-radius: 4px; color: var(--navy); transition: border-color .15s, color .15s; }
.header-search:hover { border-color: var(--brand); color: var(--brand); }
.header-btn { min-height: 46px; white-space: nowrap; padding: .7rem 1.05rem; border: 0; border-radius: 4px; background: var(--navy); color: #fff; font: 700 .95rem/1 var(--body); text-transform: none; letter-spacing: 0; box-shadow: none; }
.header-btn .icon { color: var(--accent); }
.header-btn:hover { background: var(--brand); transform: none; filter: none; box-shadow: none; }
.burger { border-color: #d3dde7; background: #fff; color: var(--navy); border-radius: 4px; }

/* Avisos (teletipo) sobre blanco */
.ticker { background: #f3f7fb; border-bottom: 1px solid #e2e9f0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ticker-label { border-radius: 3px; box-shadow: none; background: var(--accent); }

/* ---------- Héroe de portada ---------- */
.home .hero { position: relative; display: block; min-height: clamp(520px, 44vw, 660px); overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.hero-sea { position: absolute; inset: 0; z-index: -2; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; z-index: -1;
    /* Franja amarilla en diagonal: el amarillo asoma entre el agua y la foto */
    background: var(--accent); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; clip-path: polygon(calc(30% + 16px) 0, 100% 0, 100% 100%, 16px 100%); }
.hero-media figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: .3rem .6rem; background: rgb(6 26 46 / .85); color: #fff; font-size: .75rem; font-weight: 600; }
.home .hero-inner { display: flex; align-items: center; min-height: inherit; padding-block: 4rem; }
.hero-copy { max-width: 600px; }
.hero-eyebrow { display: flex; align-items: flex-start; gap: .9rem; max-width: 20rem; margin: 0 0 1.1rem; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.hero-eyebrow::before { content: ""; flex: none; width: 30px; height: 3px; margin-top: .65rem; background: var(--accent); }
.home .hero h1 { display: flex; flex-direction: column; margin: 0 0 1.8rem; font: 800 clamp(3.4rem, 8.4vw, 7.6rem)/.86 var(--display); letter-spacing: -.005em; text-shadow: 0 6px 30px rgb(0 0 0 / .25); }
.hero-accent { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.motion-toggle { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem; padding: .3rem 0; border: 0; background: none; color: rgb(255 255 255 / .85); font-size: .85rem; font-weight: 600; }
.motion-toggle:hover { color: #fff; text-decoration: underline; }

/* ---------- Franja amarilla de accesos ---------- */
.access-band { background: var(--accent); color: var(--navy); }
.access-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.access-item { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1.2rem; color: var(--navy); text-decoration: none; border-left: 1px solid rgb(12 39 68 / .18); transition: background .15s; }
.access-item:first-child { border-left: 0; padding-left: 0; }
.access-item:hover { background: rgb(255 255 255 / .28); }
.access-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1.5px solid var(--navy); border-radius: 4px; }
.access-text { display: flex; flex-direction: column; min-width: 0; }
.access-text strong { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.access-text span { font-size: .88rem; color: rgb(12 39 68 / .8); }

/* ---------- Títulos de la portada ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.home-title { font: 800 clamp(2.6rem, 5vw, 4.2rem)/.95 var(--display); color: var(--navy); }
.sea .home-title { color: #fff; }
.home-title.barred { padding-left: 1rem; border-left: 4px solid var(--accent); }

/* ---------- Competiciones ---------- */
.comp-section { padding-block: 5.5rem 5rem; background: #fff; }
.comp-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 3.75rem; align-items: start; }
.comp-grid.no-next { grid-template-columns: 1fr; }
.next-comp { min-height: 540px; display: flex; align-items: center; border-top: 5px solid var(--accent); }
.next-comp-body { padding: 2.75rem; }
.next-comp-label { margin: 0 0 1rem; font-weight: 700; color: rgb(255 255 255 / .85); }
.next-comp-date { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; }
.next-comp-date strong { font: 800 6.2rem/.8 var(--display); color: var(--accent); }
.next-comp-date span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.next-comp-date b { color: var(--accent); font-size: 1.2rem; }
.next-comp h3 { margin: 0 0 .5rem; font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1.08 var(--body); text-transform: none; letter-spacing: -.01em; }
.next-comp h3 a { color: #fff; text-decoration: none; }
.next-comp h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.next-comp-place { margin: 0 0 1.6rem; color: rgb(255 255 255 / .82); }

/* Cartel de la competición destacada dentro de la tarjeta */
.next-comp.has-poster { flex-direction: column; align-items: stretch; }
.next-comp-poster { display: block; height: 240px; background: rgb(0 0 0 / .25); border-bottom: 1px solid rgb(255 255 255 / .12); }
.next-comp-poster img { width: 100%; height: 100%; object-fit: contain; }
.next-comp-label { display: inline-flex; align-items: center; gap: .45rem; }
.next-comp-label .icon { color: var(--accent); }
.next-comp-place { display: flex; align-items: center; gap: .4rem; }
.next-comp-count { display: inline-block; margin: -.6rem 0 1.4rem; padding: .3rem .7rem; border-radius: 3px; background: rgb(253 215 6 / .16); color: var(--accent); font-weight: 700; font-size: .92rem; }

/* ---------- Calendario de portada: por meses ---------- */
.cal { min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-month { font: 800 1.9rem/1 var(--display); color: var(--navy); }
.cal-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d3dde7; border-radius: 4px; background: #fff; color: var(--navy); transition: border-color .15s, color .15s; }
.cal-arrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.cal-arrow:disabled { opacity: .35; cursor: default; }
/* Tira de meses con el número de pruebas de cada uno */
.cal-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; margin-bottom: 1.2rem; }
.cal-pill { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .1rem .45rem; border: 1px solid #e0e8f0; border-radius: 4px; background: #f6f9fc; color: var(--navy); line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.cal-pill span { font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.cal-pill small { font-size: .72rem; font-weight: 700; color: var(--brand); }
.cal-pill:hover { border-color: var(--brand); }
.cal-pill.empty { background: #fff; color: #9aa8b6; }
.cal-pill.empty small { color: #b6c1cc; }
.cal-pill.now { box-shadow: inset 0 -3px 0 var(--accent); }
.cal-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-pill.on small { color: var(--accent); }

.cal-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
/* Toda la fila es pulsable: el enlace del título se estira sobre ella */
.cal-item { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 20px; align-items: center; gap: 1.1rem; padding: .95rem 1rem; border: 1px solid #e0e8f0; border-left: 4px solid var(--brand); border-radius: 4px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cal-item:hover { border-color: var(--brand); box-shadow: 0 12px 26px -20px rgb(6 26 46 / .6); transform: translateX(3px); }
.cal-item.is-past { border-left-color: #b8c4d0; background: #fafbfd; }
.cal-date { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--navy); }
.cal-date small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5a6b7d; }
.cal-date strong { margin-top: .2rem; font: 800 2.3rem/1 var(--display); color: var(--brand); }
.cal-item.is-past .cal-date strong { color: #7d8fa1; }
.cal-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cal-tags { display: flex; flex-wrap: wrap; gap: .35rem .7rem; font-size: .8rem; font-weight: 700; }
.cal-kind { color: var(--brand); }
.cal-level { color: #5a6b7d; }
.cal-name { color: var(--navy); font-size: 1.12rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.cal-name::after { content: ""; position: absolute; inset: 0; }
.cal-item:hover .cal-name { color: var(--brand); }
.cal-place { display: flex; align-items: center; gap: .3rem; color: #5a6b7d; font-size: .9rem; }
.cal-badge { padding: .3rem .6rem; border-radius: 3px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: #e6f0f8; color: var(--brand); }
.cal-badge.past { background: #eef1f4; color: #5a6b7d; }
.cal-badge.live { background: #e3f6ea; color: #13723a; }
.cal-badge.soon { background: #fff4c2; color: #6b5200; }
.cal-go { color: #9aa8b6; }
.cal-item:hover .cal-go { color: var(--brand); }
.comp-empty { padding: 2rem 0; color: #5a6b7d; }

/* ---------- Actualidad ---------- */
.news-section { padding-block: 5.5rem 6rem; border-top: 3px solid var(--brand); }
.news-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.news-lead { position: relative; z-index: 0; }
.news-lead-media { position: relative; display: block; aspect-ratio: 16 / 10; margin: 0 14px 14px 0; background: var(--navy); }
/* Marco amarillo desplazado detrás de la foto */
.news-lead-media::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 2px solid var(--accent); }
.news-lead-media img, .news-lead-media .placeholder-art { width: 100%; height: 100%; object-fit: cover; }
.news-lead h3, .news-list h3 { margin: .3rem 0 0; font: 800 1.55rem/1.2 var(--body); text-transform: none; letter-spacing: -.01em; }
.news-lead h3 { font-size: 1.8rem; }
.news-lead h3 a, .news-list h3 a { color: #fff; text-decoration: none; }
.news-lead h3 a:hover, .news-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.news-meta { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 0; font-size: .9rem; color: rgb(255 255 255 / .8); }
.news-list .news-meta { margin-top: 0; }
.news-cat { color: var(--accent); font-weight: 700; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 1.6rem 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: 0; }
.news-summary { margin: .6rem 0 0; color: rgb(255 255 255 / .82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Encuentra tu club ---------- */
.club-band { min-height: 480px; display: flex; align-items: center; border-top: 3px solid var(--accent); }
.club-photo { position: absolute; inset: 0 0 0 38%; z-index: -1;
    background: url("../img/portada/trasona.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.club-inner { padding-block: 5rem; }
.club-inner p { max-width: 34rem; margin: 1.2rem 0 1.8rem; font-size: 1.08rem; color: rgb(255 255 255 / .88); }

/* ---------- La Federación ---------- */
.fed-section { padding-block: 6rem; background: #fff; }
.fed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.fed-lead { max-width: 36rem; margin: 1.4rem 0 0; font-size: 1.15rem; color: #4b5f74; }
.fed-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d7e1ea; }
.fed-links li { border-bottom: 1px solid #d7e1ea; }
.fed-links a { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem .6rem; color: var(--navy); text-decoration: none; transition: background .15s, padding .15s; }
.fed-links a:hover { background: #f1f6fb; padding-left: 1rem; }
.fed-links strong { font-size: 1.15rem; }
.fed-links span { color: #5a6b7d; }

.home .newsletter-home { padding-top: 0; }

/* ---------- Entidades colaboradoras ---------- */
.partners { padding-block: 2.5rem 3rem; background: #fff; border-top: 1px solid #e2e9f0; }
.partners-group + .partners-group { margin-top: 2rem; }
.partners-label { margin: 0 0 1.5rem; font: 700 .85rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--brand); }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 1.5rem 2.5rem; }
.partner { display: flex; align-items: center; transition: transform .2s; }
.partner:hover { transform: translateY(-2px); }
.partner img { height: 64px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- Pie ---------- */
.footer.sea { color: rgb(255 255 255 / .88); border-top: 5px solid var(--accent); background: var(--tex-lines) center / cover no-repeat, var(--navy); }
.footer.sea::before { display: none; }
.footer-grid { grid-template-columns: 1.4fr .9fr 1.4fr 1fr; padding-block: 4rem 3rem; }
.footer-logo { padding: .7rem 1rem; background: #fff; border-radius: 6px; }
.footer-logo img { height: 58px; }
.footer h2 { margin: .3rem 0 1.1rem; font: 800 1.15rem/1.2 var(--body); text-transform: none; letter-spacing: 0; color: var(--accent); }
.footer-text { font-size: 1rem; }
.footer-links { gap: .7rem; }
.footer-links a, .footer-contact a { color: rgb(255 255 255 / .9); font-size: 1rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); padding-left: 0; }
.footer-contact { gap: .7rem; font-size: 1rem; }
.legal { border-top: 1px solid rgb(255 255 255 / .16); }
.legal a, .powered { color: rgb(255 255 255 / .7); }
.powered { text-decoration: none; }
.powered:hover { color: #fff; }

/* ---------- Cabecera de páginas interiores con el mismo fondo de agua ---------- */
.page-hero-art {
    background:
        var(--tex-lines) center / cover no-repeat,
        radial-gradient(110% 80% at 20% -20%, rgb(74 160 222 / .35), transparent 62%),
        linear-gradient(180deg, #17497a 0%, #0f355c 45%, #0b2847 100%);
}
.page-hero { border-bottom: 4px solid var(--accent); }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1320px) {
    .nav-list > li > a { padding-inline: .45rem; font-size: .95rem; }
    .nav-list > li > a::after { left: .45rem; right: .45rem; }
    .header-btn .icon { display: none; }
}
/* Entre tableta y portátil pequeño no caben menú y botones: los botones ya están en la franja amarilla */
@media (max-width: 1240px) {
    .header-actions .header-btn { display: none; }
}
@media (max-width: 1180px) {
    .comp-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 1100px) {
    .header-row { min-height: 68px; }
    .header-actions { display: none; }
    .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 0 20px; background: #fff; border-bottom: 1px solid #e2e9f0; box-shadow: 0 20px 40px -20px rgb(6 26 46 / .4); }
    .mainnav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list > li { border-bottom: 1px solid #e2e9f0; }
    .nav-list > li > a { font-size: 1.08rem; padding: 1rem .25rem; }
    .sub-toggle { background: #eef4fa; color: var(--navy); border-radius: 4px; }
    .sub { border: 0; background: #f3f7fb; box-shadow: none; }
    .mainnav-mobile-extra { padding-inline: 0; color: var(--navy); }
    .home .hero { min-height: 0; }
    .hero-media { position: relative; inset: auto; width: 100%; height: 300px; clip-path: none; padding-bottom: 6px; }
    .hero-media img { clip-path: none; }
    .home .hero-inner { min-height: 0; padding-block: 2.75rem 3rem; }
    .comp-grid, .news-split, .fed-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .next-comp { min-height: 0; }
    .club-photo { inset: 0; opacity: .35; -webkit-mask-image: none; mask-image: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .hero-media { height: 230px; }
    .home .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
    .access-row { grid-template-columns: 1fr 1fr; }
    .access-item { padding: 1rem .75rem; border-left: 0; border-top: 1px solid rgb(12 39 68 / .15); }
    .access-item:first-child { padding-left: .75rem; }
    .access-item:nth-child(-n+2) { border-top: 0; }
    .access-icon { width: 34px; height: 34px; }
    .access-text strong { font-size: 1rem; }
    .access-text span { font-size: .8rem; }
    .comp-section, .news-section, .fed-section { padding-block: 3.5rem; }
    .next-comp-body { padding: 2rem 1.5rem; }
    .next-comp-date strong { font-size: 5rem; }
    .cal-item { grid-template-columns: 52px minmax(0, 1fr); gap: .8rem; padding: .9rem .7rem; }
    .cal-badge { grid-column: 2; justify-self: start; }
    .cal-go { display: none; }
    .cal-name { font-size: 1.05rem; }
    .cal-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; }
    .cal-pill { flex: 0 0 56px; scroll-snap-align: start; }
    .next-comp-poster { height: 200px; }
    .news-lead h3 { font-size: 1.45rem; }
    .news-list h3 { font-size: 1.25rem; }
    .club-band { min-height: 0; }
    .club-inner { padding-block: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .partner img { height: 52px; }
}

/* ---------- Competiciones: tarjeta y calendario a la misma altura ---------- */
.comp-grid { align-items: stretch; }
.next-comp { min-height: 0; align-items: stretch; }
.next-comp-body { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.next-comp .hero-actions { margin-top: .4rem; }
.next-comp-count { align-self: flex-start; }

/* Colores por nivel de la prueba: el filo de la fila y el punto del nivel */
.cal-item { --lv: var(--brand); border-left-color: var(--lv); }
.cal-item.lv-int { --lv: #c4161c; }
.cal-item.lv-nac { --lv: #0569b0; }
.cal-item.lv-aut { --lv: #0c2744; }
.cal-item.lv-liga { --lv: #0f8a5f; }
.cal-item.lv-promo { --lv: #0b9bb5; }
.cal-item.lv-control { --lv: #7a5af5; }
.cal-item.lv-jjdd { --lv: #e09a00; }
.cal-item.lv-otro { --lv: #8a94a0; }
.cal-item.is-past { border-left-color: color-mix(in srgb, var(--lv) 45%, #fff); }
.cal-level { display: inline-flex; align-items: center; gap: .35rem; }
.cal-level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }
.cal-date strong { color: var(--lv); }
.cal-sub { margin: 1.4rem 0 .6rem; font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5a6b7d; }
.cal-list.compact .cal-item { padding-block: .7rem; }
.cal-list.compact .cal-date strong { font-size: 1.9rem; }
.cal-list.compact .cal-name { font-size: 1.02rem; }

/* ---------- Actualidad: titulares con la letra de los títulos (vienen en mayúsculas) ---------- */
.news-lead h3, .news-list h3 { font: 700 1.6rem/1.04 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.news-lead h3 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); margin-top: .5rem; }
.news-lead .news-summary { margin-top: .8rem; font-size: 1.02rem; -webkit-line-clamp: 3; }
.news-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.news-more:hover { text-decoration: underline; }
.news-more .icon { transition: transform .15s; }
.news-more:hover .icon { transform: translateX(3px); }
.news-lead-media { overflow: visible; }
.news-lead-media img { transition: filter .2s; }
.news-lead:hover .news-lead-media img { filter: brightness(1.06); }

.news-side { display: flex; flex-direction: column; gap: 1.6rem; }
.news-list li.news-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.1rem 0; }
.news-list li.news-item:first-child { padding-top: 0; }
.news-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--navy); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .7); }
.news-thumb img, .news-thumb .placeholder-art { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-list h3 { font-size: 1.35rem; margin-top: .25rem; }
.news-item .news-summary { margin-top: .35rem; font-size: .92rem; -webkit-line-clamp: 2; }
.news-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.news-meta time { color: rgb(255 255 255 / .78); }

@media (max-width: 720px) {
    .news-list li.news-item { grid-template-columns: 96px minmax(0, 1fr); gap: .85rem; }
    .news-list h3 { font-size: 1.15rem; }
    .news-item .news-summary { display: none; }
    .news-lead h3 { font-size: 1.75rem; }
}

/* ---------- Foto de la noticia principal: centrada dentro del marco amarillo ---------- */
.news-lead-media { aspect-ratio: auto; margin: 0; padding: 10px; border: 2px solid var(--accent); background: transparent; }
.news-lead-media::after { display: none; }
.news-lead-media img, .news-lead-media .placeholder-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 720px) { .news-lead-media { padding: 6px; } }

/* =====================================================================
   Diseño 2026 · páginas interiores con el lenguaje de la portada:
   superficies blancas con borde fino, esquinas casi rectas, azul marino,
   amarillo para lo principal y la cabecera con el mismo mar.
   ===================================================================== */
:root {
    --ink: #0c2744;
    --ink-2: #2c4258;
    --muted: #5a6b7d;
    --line: #e0e8f0;
    --green-50: #eef4fa;
    /* Lo que antes era cristal pasa a ser una superficie blanca plana */
    --glass: #fff;
    --glass-strong: #fff;
    --glass-border: #e0e8f0;
    --glass-line: #e6edf4;
    --glass-blur: none;
    --glass-shadow: 0 14px 30px -26px rgb(6 26 46 / .55);
}
/* Las páginas interiores siguen la animación elegida en la portada (clase en <html>) */
html.motion-paused .sea::before, html.motion-paused .sea-bubbles { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    html.motion-on .sea::before, html.motion-on .sea-bubbles { animation-play-state: running; }
}

/* ---------- Cabecera de página ---------- */
.page-hero { background: var(--hero-image, none) center / cover no-repeat, var(--navy); border-bottom: 5px solid var(--accent); }
.page-hero-art.sea { position: absolute; inset: 0; }
.page-hero[style*="--hero-image"] .page-hero-art.sea { opacity: .9; background: linear-gradient(100deg, rgb(6 26 46 / .94), rgb(12 39 68 / .55)); }
.page-hero-inner { padding-block: 2.4rem 3.2rem; }
.breadcrumb { padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .85rem; font-weight: 600; color: rgb(255 255 255 / .55); }
.breadcrumb a { color: rgb(255 255 255 / .82); }
.page-hero h1 { padding-left: 1rem; border-left: 5px solid var(--accent); font: 800 clamp(2.6rem, 5.4vw, 4.4rem)/.95 var(--display); text-shadow: 0 6px 30px rgb(0 0 0 / .25); }
.page-hero-lead { margin-top: 1.1rem; font-size: 1.12rem; color: rgb(255 255 255 / .86); }
.page-hero .chip.light, .post-meta .chip { border-radius: 3px; background: var(--accent); color: var(--navy); border: 0; }
.post-meta .post-champ-link { border-radius: 3px; }
/* Pestañas de Junta Directiva / Comités */
.gov-tabs { padding: 0; gap: .5rem; border: 0; border-radius: 0; background: none; }
.gov-tabs a { border-radius: 4px; border: 1px solid rgb(255 255 255 / .55); font: 700 .95rem/1 var(--body); letter-spacing: 0; text-transform: none; padding: .7rem 1.1rem; }

/* ---------- Botones ---------- */
.btn { min-height: 46px; padding: .7rem 1.25rem; border-radius: 4px; background: var(--accent); color: var(--navy); border: 1px solid var(--accent); font-weight: 700; box-shadow: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: #ffe34d; color: var(--navy); transform: none; filter: none; }
.btn.ghost { background: #fff; color: var(--navy); border-color: #c9d5e1; box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.ghost.light { background: rgb(6 26 46 / .25); color: #fff; border-color: rgb(255 255 255 / .7); }
.btn.ghost.light:hover { background: #fff; color: var(--navy); }
.btn.small { min-height: 38px; }
.doc-dl { border-radius: 4px; background: var(--navy); box-shadow: none; }
.doc-dl:hover { background: var(--brand); }
.pdf-btn, .palmares-more, .province-others-list a { border-radius: 4px; }

/* ---------- Filtros, pestañas y paginación ---------- */
.champ-filters { padding: 1.25rem; border-radius: 6px; border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: 0 18px 40px -34px rgb(6 26 46 / .6); background: #fff; }
.year-tabs button, .chip-select button, .select, .search, .tag, .pager a, .view-switch, .view-switch button, .province-filter-chip { border-radius: 4px; }
.year-tabs button { border-color: #d3dde7; background: #fff; color: var(--navy); font: 800 1.15rem/1 var(--display); }
.year-tabs button:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.year-tabs button.on, .chip-select button.on, .pager a.on, .view-switch button.on {
    background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent);
}
.chip-select button { border-color: #d3dde7; background: #fff; color: var(--navy); }
.select, .search { border-color: #d3dde7; background-color: #fff; box-shadow: none; color: var(--navy); }
.search:focus-within, .select:focus { border-color: var(--brand); outline: none; }
.view-switch { padding: .2rem; border-color: var(--line); box-shadow: none; }
.view-switch button { color: var(--navy); }
.pager a { border-color: #d3dde7; box-shadow: none; color: var(--navy); }
.link-btn { color: var(--brand); font-weight: 700; }

/* ---------- Títulos de sección ---------- */
.eyebrow { color: var(--brand); font-family: var(--body); font-size: .8rem; letter-spacing: .14em; }
.eyebrow::before { background: var(--accent); height: 3px; border-radius: 0; }
.section-title h2 { color: var(--navy); font: 800 clamp(2.2rem, 4.4vw, 3.4rem)/.95 var(--display); }
.month-title { color: var(--navy); font: 800 2rem/1 var(--display); }
.month-title::after { background: #d7e1ea; }
.month-title span, .section-count, .gov-group-head span { border-radius: 3px; background: var(--navy); color: var(--accent); }

/* ---------- Etiquetas ---------- */
.chip { border-radius: 3px; background: #e6f0f8; letter-spacing: .06em; }
.doc-area, .gov-province, .gov-body-mail, .champ-state, .mark-record, .province-list-count { border-radius: 3px; }

/* ---------- Tarjetas: blancas, borde fino y filo de color ---------- */
.card-news, .champ-card, .gov-card, .gov-cta, .resource-list a, .accordion, .info-card, .contact-card, .dept-card, .medal-strip.large .medal, .champ-teaser {
    border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 30px -26px rgb(6 26 46 / .55);
}
.card-news, .champ-card { border-top: 4px solid var(--brand); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-news:hover, .champ-card:hover, .gov-card:hover, .gov-cta:hover { transform: translateY(-3px); border-color: #c4d3e2; box-shadow: 0 24px 40px -28px rgb(6 26 46 / .6); }
.card-news:hover { border-top-color: var(--accent); }
.card-news h3, .champ-body h3 { font: 700 1.45rem/1.04 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card-news h3 a, .champ-body h3 a { color: var(--navy); }
.card-news .card-body { padding: 1.15rem 1.25rem 1.3rem; }
.card-news p { color: var(--muted); }
.read-more { color: var(--brand); font-weight: 700; }
.card-media, .champ-poster { background: var(--navy); }
.placeholder-art { background: var(--tex-lines) center / cover no-repeat, linear-gradient(180deg, #17497a, #0b2847); }
.placeholder-art span { color: var(--accent); }
.prose-card { border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px -34px rgb(6 26 46 / .6); }
.prose img, .prose iframe, .prose video, .prose .gallery img, .video-thumb, .video-card iframe, .carousel-thumbs button, .champ-teaser-media, .champ-row-thumb { border-radius: 4px; }
.resource-icon, .resource-download, .gov-body-icon, .gov-cta-icon, .contact-card-icon, .dept-icon, .weather-icon, .weather-event, .weather-days li, .doc-num { border-radius: 4px; }
.gov-body { border-radius: 6px; border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: 0 14px 30px -26px rgb(6 26 46 / .55); }
.gov-lead { border-radius: 6px; }
.gov-lead-photo, .athlete-portrait { border-radius: 6px; }
.athlete-card, .record-notify, .province-contact, .pdf-viewer-box { border-radius: 6px; }

/* Prueba: fecha sobre el cartel y filo del color del nivel */
.champ-card { --lv: var(--brand); border-top-color: var(--lv); }
.champ-card.lv-int, .champ-row.lv-int { --lv: #c4161c; }
.champ-card.lv-nac, .champ-row.lv-nac { --lv: #0569b0; }
.champ-card.lv-aut, .champ-row.lv-aut { --lv: #0c2744; }
.champ-card.lv-liga, .champ-row.lv-liga { --lv: #0f8a5f; }
.champ-card.lv-promo, .champ-row.lv-promo { --lv: #0b9bb5; }
.champ-card.lv-control, .champ-row.lv-control { --lv: #7a5af5; }
.champ-card.lv-jjdd, .champ-row.lv-jjdd { --lv: #e09a00; }
.champ-card.lv-otro, .champ-row.lv-otro { --lv: #8a94a0; }
.champ-date { border-radius: 4px; background: var(--accent); border: 0; color: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
.champ-level { display: inline-flex; align-items: center; gap: .35rem; color: #5a6b7d; font-weight: 700; }
.champ-level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lv, var(--brand)); }

/* ---------- Calendario en lista: filas como las de la portada ---------- */
.champ-row { --lv: var(--brand); grid-template-columns: 64px 56px minmax(0, 1fr) auto 20px; padding: .75rem 1rem .75rem .75rem; border-radius: 4px; border: 1px solid var(--line); border-left: 4px solid var(--lv); box-shadow: none; background: #fff; color: var(--navy); }
.champ-row:hover { border-color: var(--brand); border-left-color: var(--lv); box-shadow: 0 12px 26px -20px rgb(6 26 46 / .6); color: var(--navy); }
.champ-row.is-past { opacity: 1; background: #fafbfd; border-left-color: color-mix(in srgb, var(--lv) 45%, #fff); }
.champ-row-date { height: auto; border-radius: 0; background: none; color: var(--navy); }
.champ-row-date strong { font: 800 2.2rem/1 var(--display); color: var(--lv); order: 2; }
.champ-row-date small { order: 3; color: #5a6b7d; font: 700 .72rem/1 var(--body); }
.champ-row-date em { order: 1; margin: 0 0 .2rem; color: #5a6b7d; font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.champ-row.is-past .champ-row-date strong { color: #7d8fa1; }
.champ-row-thumb { width: 56px; height: 56px; }
.champ-row-main strong { font-size: 1.08rem; font-weight: 700; }
.champ-row:hover .champ-row-main strong { color: var(--brand); }
.champ-row-go { color: #9aa8b6; }
.champ-row:hover .champ-row-go { color: var(--brand); }
.champ-table-wrap { border-radius: 6px; border: 1px solid var(--line); box-shadow: none; }
.champ-table thead th { background: var(--navy); color: #fff; font-family: var(--body); letter-spacing: .08em; }
.champ-table-month th { background: #f3f7fb; color: var(--navy) !important; }

/* ---------- Ficha de prueba ---------- */
.champ-side .btn { width: 100%; justify-content: center; }

/* ---------- Circulares y documentos ---------- */
.doc-num { background: var(--navy); border: 0; color: var(--accent); }

/* ---------- Bloques de contenido ---------- */
.prose h2, .prose h3 { color: var(--navy); }
.prose blockquote, .post .lead { border-left-color: var(--accent); }
.empty { color: var(--muted); }

@media (max-width: 720px) {
    .page-hero-inner { padding-block: 1.8rem 2.4rem; }
    .page-hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); border-left-width: 4px; padding-left: .8rem; }
    .champ-row { grid-template-columns: 52px minmax(0, 1fr); gap: .8rem; padding: .8rem .7rem; }
    .champ-row-thumb, .champ-row-go { display: none; }
    .champ-row-tags { grid-column: 2; justify-content: flex-start; }
}

/* ---------- Formularios, newsletter y avisos con las mismas esquinas ---------- */
.contact-form-wrap, .location-map-card, .newsletter-band, .newsletter-result, .newsletter-done { border-radius: 6px; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.record-form input:not([type=checkbox]), .record-form select, .record-form textarea { border-radius: 4px; border-color: #d3dde7; background: #fff; }
.newsletter-band { border-top: 4px solid var(--accent); }
.newsletter-icon, .hero-block-icon, .date-badge { border-radius: 4px; }
.newsletter-fields { border-radius: 6px; }
.newsletter-fields input, .newsletter-fields .btn { border-radius: 4px; }
.newsletter-fields .btn { background: var(--accent); }
.notice { border-radius: 4px; }

/* En el móvil, especialidades y periodos en una tira que se desliza (como los meses de la portada) */
@media (max-width: 720px) {
    .champ-filters .chip-select, .champ-filters .year-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .35rem; margin-inline: -.25rem; padding-inline: .25rem; }
    .champ-filters .chip-select button, .champ-filters .year-tabs button { flex: none; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 720px) {
    .champ-filters { grid-template-columns: minmax(0, 1fr); }
    .champ-filters > *, .champ-filters .filter-row > * { min-width: 0; max-width: 100%; }
    .champ-filters .filter-row > .chip-select { flex: 1 1 100%; }
}

/* Avisos de «no hay contenido»: recuadro discreto en lugar de texto suelto */
.empty { margin-block: 1rem; padding: 3rem 1.5rem; border: 1px dashed #c9d5e1; border-radius: 6px; background: #f6f9fc; color: #4b5f74; font-weight: 600; }
.empty p { margin: 0 0 1rem; }
.empty p:last-child { margin-bottom: 0; }

/* ---------- Organigrama (/organigrama) ---------- */
.org { --org-line: #b9cadb; --org-gap: 2rem; display: flex; flex-direction: column; align-items: center; }

/* Presidencia */
.org-lead { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; width: min(100%, 860px); padding: 1.6rem 1.8rem; border-radius: 6px; overflow: hidden; isolation: isolate;
    color: #fff; background: var(--navy); border-bottom: 5px solid var(--accent); box-shadow: 0 30px 50px -34px rgb(6 26 46 / .8); }
.org-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines); opacity: .5; }
.org-lead-avatar { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--navy); font: 700 2.4rem/1 var(--display); letter-spacing: .03em; box-shadow: 0 0 0 5px rgb(255 255 255 / .12); }
.org-lead-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-lead-role { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.org-lead h2 { margin: .45rem 0 .5rem; font: 700 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.org-lead p { margin: 0; max-width: 54ch; font-size: .95rem; color: rgb(255 255 255 / .78); }
.org-lead-facts { display: grid; gap: .7rem; margin: 0; padding-left: 1.6rem; border-left: 1px solid rgb(255 255 255 / .18); }
.org-lead-facts div { display: flex; flex-direction: column-reverse; }
.org-lead-facts dt { font-size: .76rem; color: rgb(255 255 255 / .7); }
.org-lead-facts dd { margin: 0; font: 700 2rem/1 var(--display); color: var(--accent); }

/* Líneas que unen los niveles */
.org-link { display: block; width: 2px; height: var(--org-gap); background: var(--org-line); }
.org-row { --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.25rem; width: 100%; padding-top: var(--org-gap); }
.org-row::before { content: ""; position: absolute; top: 0; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 2px; background: var(--org-line); }
.org-row > * { position: relative; }
.org-row > *::before { content: ""; position: absolute; left: 50%; top: calc(var(--org-gap) * -1); width: 2px; height: var(--org-gap); margin-left: -1px; background: var(--org-line); }
.org-row:not(.org-branches) { width: min(100%, 1040px); }

/* Casillas */
.org-node { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: .85rem 1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 28px -26px rgb(6 26 46 / .6); transition: transform .2s, border-color .2s, box-shadow .2s; }
.org-node:hover { transform: translateY(-2px); border-color: #c4d3e2; box-shadow: 0 22px 36px -28px rgb(6 26 46 / .6); }
.org-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--accent); font: 700 1.05rem/1 var(--display); letter-spacing: .03em; }
.org-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-node-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.org-node-text small { font: 700 .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.org-node-text strong { font: 700 1.12rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.org-node.featured { flex-direction: column; text-align: center; padding: 1.2rem 1rem 1.1rem; border-top: 4px solid var(--accent); }
.org-node.featured .org-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.org-node.featured .org-node-text { align-items: center; }
.org-node.featured .org-node-text strong { font-size: 1.25rem; }

/* Ramas: cabecera azul y casillas colgando de una línea */
.org-branch { display: flex; flex-direction: column; min-width: 0; }
.org-branch-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 6px 6px 0 0; background: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.org-branch-head .icon { color: var(--accent); flex: none; }
.org-branch-head h3 { margin: 0; flex: 1; font: 700 1.05rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.org-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 .4rem; border-radius: 3px; background: var(--accent); color: var(--navy); font-size: .76rem; font-weight: 700; }
.org-branch-list { position: relative; display: grid; gap: .6rem; padding: .9rem 0 0 1.1rem; }
.org-branch-list::before { content: ""; position: absolute; left: .45rem; top: 0; bottom: 1.6rem; width: 2px; background: var(--org-line); }
.org-branch-list > .org-node { position: relative; }
.org-branch-list > .org-node::before { content: ""; position: absolute; left: calc(-1.1rem + .45rem); top: 50%; width: .65rem; height: 2px; background: var(--org-line); }

/* Comités y áreas */
.org-sub { display: grid; gap: 1.3rem; margin-top: 1rem; padding-top: 2.4rem; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.org-sub-head h2 { margin: .4rem 0 .35rem; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--navy); }
.org-sub-head p { margin: 0; max-width: 64ch; color: var(--ink-2); }
.org-sub-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.org-sub-groups .org-branch.wide { grid-column: span 2; }
.org-sub-groups .org-branch.wide .org-branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.org-sub-groups .org-branch.wide .org-branch-list::before { display: none; }
.org-sub-groups .org-branch.wide .org-branch-list { padding-left: 0; }
.org-sub-groups .org-branch.wide .org-node::before { display: none; }
.org-node.area { border-left: 4px solid var(--brand); }
.org-node.area .org-avatar { background: #eef4fa; color: var(--navy); }

/* Sede */
.org-office { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 1rem; padding: 1.8rem 2rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.org-office h2 { margin: .4rem 0 .9rem; font: 700 2rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.org-social { display: flex; gap: .45rem; }
.org-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: var(--navy); color: #fff; }
.org-social a:hover { background: var(--accent); color: var(--navy); }
.org-office-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.6rem; }
.org-office-list li { display: flex; gap: .8rem; align-items: flex-start; min-width: 0; }
.org-office-list .icon { flex: none; margin-top: .15rem; color: var(--brand); }
.org-office-list span { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.org-office-list small { font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.org-office-list strong, .org-office-list a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.org-office-list a { color: var(--brand); text-decoration: none; }
.org-office-list a:hover { text-decoration: underline; }

@media (max-width: 960px) {
    .org-lead { grid-template-columns: auto minmax(0, 1fr); }
    .org-lead-facts { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 2rem; padding: 1rem 0 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .18); }
    .org-sub-groups { grid-template-columns: minmax(0, 1fr); }
    .org-sub-groups .org-branch.wide { grid-column: auto; }
    .org-office { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}

/* En el móvil el árbol se lee de arriba abajo con la línea a la izquierda */
@media (max-width: 720px) {
    .org { --org-gap: 1.2rem; align-items: stretch; }
    .org-lead { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.3rem; text-align: left; }
    .org-lead-avatar { width: 76px; height: 76px; font-size: 1.8rem; }
    .org-link { margin-left: 1.4rem; }
    .org-row, .org-row:not(.org-branches) { grid-template-columns: minmax(0, 1fr); gap: .7rem; width: 100%; padding: 0 0 0 1.4rem; margin-left: 1.4rem; width: auto; border-left: 2px solid var(--org-line); }
    .org-row::before { display: none; }
    .org-row > *::before { left: -1.4rem; top: 1.4rem; width: 1.2rem; height: 2px; margin: 0; }
    .org-row > .org-branch { padding-top: .3rem; }
    .org-node.featured { flex-direction: row; text-align: left; padding: .85rem 1rem; }
    .org-node.featured .org-avatar { width: 46px; height: 46px; font-size: 1.05rem; }
    .org-node.featured .org-node-text { align-items: flex-start; }
    .org-node.featured .org-node-text strong { font-size: 1.12rem; }
    .org-sub-groups .org-branch.wide .org-branch-list { grid-template-columns: minmax(0, 1fr); }
    .org-office { padding: 1.3rem; }
    .org-office-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Resultados, clubes y palistas ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.section-head h2 { margin: .35rem 0 0; font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); text-transform: uppercase; color: var(--navy); }
.roster-note { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); }

/* Resultados de una competición */
.results { display: grid; gap: .9rem; scroll-margin-top: 110px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.results-head h2 { margin: .35rem 0 0; font: 800 clamp(1.7rem, 2.8vw, 2.3rem)/1 var(--display); text-transform: uppercase; color: var(--navy); }
.results-search { display: flex; align-items: center; gap: .5rem; flex: 0 1 320px; padding: .6rem .9rem; border: 1px solid #d3dde7; border-radius: 4px; background: #fff; color: var(--muted); }
.results-search:focus-within { border-color: var(--brand); }
.results-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .92rem; background: transparent; color: var(--ink); }
.results-docs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.results-docs button { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .55rem .9rem; border: 1px solid #d3dde7; border-radius: 4px; background: #fff; font: 600 .88rem/1.2 var(--body); color: var(--navy); white-space: nowrap; }
.results-docs button:hover { border-color: var(--brand); }
.results-docs button.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.results-docs small { padding: .15rem .4rem; border-radius: 3px; background: #e5f3ea; color: #13703f; font-size: .7rem; font-weight: 700; }
.results-docs small.prov, .results-status.prov { background: #fff4d6; color: #8a5a00; }
.results-docs button.on small { background: rgb(255 255 255 / .15); color: #fff; }
.results-doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; font-size: .85rem; color: var(--muted); }
.results-doc-meta span, .results-doc-meta a { display: inline-flex; align-items: center; gap: .35rem; }
.results-doc-meta a { color: var(--brand); font-weight: 600; text-decoration: none; }
.results-status { padding: .2rem .5rem; border-radius: 3px; background: #e5f3ea; color: #13703f; font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

.results-race { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.results-race[open] { box-shadow: 0 14px 30px -26px rgb(6 26 46 / .55); }
.results-race > summary { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; cursor: pointer; list-style: none; }
.results-race > summary::-webkit-details-marker { display: none; }
.results-race > summary:hover { background: #f6f9fc; }
.results-race[open] > summary { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); }
.results-race-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 4px; background: var(--navy); color: var(--accent); }
.results-race-name { flex: 1; min-width: 0; font: 700 1.08rem/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.results-race-name small { margin-left: .5rem; padding: .1rem .4rem; border-radius: 3px; background: #eef4fa; color: var(--brand); font: 700 .72rem/1 var(--body); letter-spacing: .04em; vertical-align: middle; }
.results-race-time { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); }
.results-race-count { flex: none; font-size: .78rem; font-weight: 600; color: var(--muted); }
.results-race.standings .results-race-icon { background: var(--accent); color: var(--navy); }

.results-table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.results-table th { padding: .55rem .8rem; background: #f3f7fb; color: var(--muted); font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.results-table td { padding: .6rem .8rem; border-top: 1px solid #edf1f5; vertical-align: top; color: var(--ink); }
.results-table tbody tr:hover td { background: #fafcfe; }
.results-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-table .mark { font-weight: 700; color: var(--navy); }
.results-table .gap { color: var(--muted); font-size: .82rem; }
.results-table .bib { width: 1%; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.results-table .pos { width: 1%; white-space: nowrap; }
.results-table .pos span { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 .35rem; border-radius: 4px; background: #eef2f6; font: 800 1rem/1 var(--display); color: var(--navy); }
.results-table tr.gold .pos span { background: linear-gradient(160deg, #ffe46b, #f2c200); }
.results-table tr.silver .pos span { background: linear-gradient(160deg, #eef1f4, #c3cbd3); }
.results-table tr.bronze .pos span { background: linear-gradient(160deg, #f0c9a5, #cd8a52); color: #fff; }
.results-table tr.out .pos span { background: #fde8e8; color: #b42318; font-size: .78rem; }
.results-table tr.out td { color: var(--muted); }
.results-table .crew a, .results-table .crew > span:not(.crew-club) { display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.results-table .crew a:hover { color: var(--brand); text-decoration: underline; }
.results-table .crew .note { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; }
.results-table .crew-club { display: none; }
.club-link { color: var(--ink-2); text-decoration: none; }
a.club-link:hover { color: var(--brand); text-decoration: underline; }
.results-text { margin: 0; padding: 1rem; max-height: 420px; overflow: auto; background: #f8fafc; font: .8rem/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; color: var(--ink-2); }
.results-review { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .6rem 1rem; background: #fff8e1; color: #8a5a00; font-size: .82rem; }
.results-judges { display: flex; gap: .4rem; margin: 0; padding: .6rem 1rem; border-top: 1px solid #edf1f5; font-size: .78rem; color: var(--muted); }
.results-judges .icon { flex: none; margin-top: .15rem; }

/* Clubes */
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.club-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); text-decoration: none; color: var(--ink); box-shadow: 0 14px 30px -26px rgb(6 26 46 / .55); transition: transform .2s, box-shadow .2s, border-color .2s; }
.club-card:hover { transform: translateY(-3px); border-color: #c4d3e2; border-top-color: var(--accent); box-shadow: 0 24px 40px -28px rgb(6 26 46 / .6); }
.club-card.away { border-top-color: #c4d3e2; }
.club-badge { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--accent); font: 800 1.3rem/1 var(--display); letter-spacing: .03em; }
.club-badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.club-badge.large { width: 120px; height: 120px; font-size: 2.6rem; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line); }
.club-card-text { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.club-card-text strong { font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.club-card-text small { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .82rem; }
.club-card-facts { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .2rem; font-size: .8rem; color: var(--ink-2); }
.club-card-facts b { color: var(--brand); }
.club-card-go { flex: none; color: #9fb0c2; }
.club-card:hover .club-card-go { color: var(--brand); }

.club-detail { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.club-side { position: sticky; top: 140px; display: grid; gap: 1rem; }
.club-id { display: grid; justify-items: center; gap: 1.2rem; padding: 1.5rem 1.2rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.club-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; width: 100%; margin: 0; }
.club-stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: .6rem; border-radius: 4px; background: #f3f7fb; }
.club-stats dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.club-stats dd { margin: 0; font: 800 1.7rem/1 var(--display); color: var(--navy); }
.club-main { display: grid; gap: 2.4rem; min-width: 0; }
.club-roster .year-tabs { margin-bottom: .3rem; }
.roster-group { margin-top: 1.3rem; }
.roster-group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 2px solid var(--navy); font: 800 1.15rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.roster-group h3 small { padding: .15rem .45rem; border-radius: 3px; background: var(--accent); color: var(--navy); font: 700 .75rem/1 var(--body); }
.roster-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .5rem; }
.roster-list a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 4px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.roster-list a:hover { border-color: var(--brand); box-shadow: 0 10px 20px -18px rgb(6 26 46 / .6); }
.roster-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #eef4fa; color: var(--navy); font: 800 .95rem/1 var(--display); letter-spacing: .03em; }
.roster-avatar.w { background: #fdeef3; color: #a3214f; }
.roster-avatar.m { background: #e8f1fb; color: var(--brand); }
.roster-name { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.roster-facts { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.roster-facts b { color: #b07a00; }
.comps-table .date { white-space: nowrap; color: var(--muted); width: 1%; }
.comps-table a { color: var(--navy); font-weight: 600; text-decoration: none; }
.comps-table a:hover { color: var(--brand); text-decoration: underline; }
.standing { display: inline-block; min-width: 2.2rem; padding: .15rem .4rem; border-radius: 3px; background: #eef2f6; font-weight: 700; text-align: center; }
.standing.top { background: var(--accent); color: var(--navy); }

/* Palistas */
.search.wide { flex: 1 1 320px; }
.paddler-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.paddler-list a { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.paddler-list a:hover { border-color: var(--brand); box-shadow: 0 14px 26px -22px rgb(6 26 46 / .6); }
.paddler-main { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.paddler-main strong { font: 800 1.12rem/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.paddler-main small { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .8rem; color: var(--muted); }
.paddler-main small span + span::before { content: "·"; margin-right: .7rem; color: #b9c6d3; }
.paddler-facts { display: flex; gap: .9rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.paddler-facts b { color: var(--navy); font-size: .95rem; }
.paddler-facts .podiums b { color: #b07a00; }

.paddler-detail { display: grid; gap: 2.4rem; }
.paddler-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 6px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.paddler-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: .2rem; padding: 1rem .5rem; background: #fff; }
.paddler-stats dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.paddler-stats dd { margin: 0; font: 800 2.2rem/1 var(--display); color: var(--navy); }
.season-line { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; position: relative; }
.season-line li { display: flex; align-items: stretch; gap: 1rem; }
.season-year { display: grid; place-items: center; width: 76px; flex: none; border-radius: 4px; background: var(--navy); color: var(--accent); font: 800 1.4rem/1 var(--display); letter-spacing: .02em; }
.season-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; padding: .65rem .9rem; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.season-body a, .season-body > span { font-weight: 700; color: var(--navy); text-decoration: none; }
.season-body a:hover { color: var(--brand); text-decoration: underline; }
.season-body small { display: flex; flex-wrap: wrap; gap: .1rem .7rem; font-size: .8rem; color: var(--muted); }
.season-body small span + span::before { content: "·"; margin-right: .7rem; color: #b9c6d3; }
.season-body .podiums { color: #b07a00; font-weight: 600; }
.paddler-results .section-head { align-items: center; }
.paddler-comp { margin-top: .8rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.paddler-comp header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .9rem; padding: .7rem 1rem; background: #f3f7fb; border-bottom: 1px solid var(--line); }
.paddler-comp time { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.paddler-comp header a { font: 800 1.08rem/1.15 var(--display); text-transform: uppercase; color: var(--navy); text-decoration: none; }
.paddler-comp header a:hover { color: var(--brand); }
.paddler-comp ul { list-style: none; margin: 0; padding: 0; }
.paddler-comp li { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; border-top: 1px solid #edf1f5; }
.paddler-comp li:first-child { border-top: 0; }
.paddler-comp .pos { display: inline-grid; place-items: center; min-width: 34px; height: 30px; flex: none; padding: 0 .3rem; border-radius: 4px; background: #eef2f6; font: 800 1.05rem/1 var(--display); color: var(--navy); }
.paddler-comp li.gold .pos { background: linear-gradient(160deg, #ffe46b, #f2c200); }
.paddler-comp li.silver .pos { background: linear-gradient(160deg, #eef1f4, #c3cbd3); }
.paddler-comp li.bronze .pos { background: linear-gradient(160deg, #f0c9a5, #cd8a52); color: #fff; }
.paddler-comp li.out .pos { background: #fde8e8; color: #b42318; font-size: .78rem; }
.paddler-event { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.paddler-event strong { font-weight: 600; font-size: .92rem; }
.paddler-event small { font-size: .8rem; color: var(--muted); }
.paddler-event small a { color: var(--brand); text-decoration: none; }
.paddler-event small a:hover { text-decoration: underline; }
.paddler-mark { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 960px) {
    .club-detail { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .club-side { position: static; }
    .club-id { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; }
    .club-badge.large { width: 88px; height: 88px; font-size: 2rem; }
    .club-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .results-search { flex: 1 1 100%; }
    .results-table .club-col { display: none; }
    .results-table .crew-club { display: block; margin-top: .1rem; font-size: .78rem; }
    .results-table th, .results-table td { padding: .5rem .45rem; }
    .results-table .gap { display: none; }
    .results-race > summary { padding: .65rem .75rem; gap: .55rem; }
    .results-race-time { display: none; }
    .club-id { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .club-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .paddler-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .paddler-stats div:nth-child(n+4) { display: none; }
    .paddler-stats dd { font-size: 1.8rem; }
    .paddler-facts span:not(.podiums) { display: none; }
    .season-year { width: 58px; font-size: 1.15rem; }
    .comps-table th:nth-child(5), .comps-table td:nth-child(5) { display: none; }
}
.club-main > *, .paddler-detail > *, .results > * { min-width: 0; }
.results-docs button time { font-size: .75rem; color: var(--muted); font-weight: 600; }
.results-docs button.on time { color: rgb(255 255 255 / .75); }

/* ---------- Horario y resultados por prueba (como el rediseño 2026 de FETRI) ---------- */
.results-summary { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; font-size: .85rem; color: var(--muted); }
.results-summary b { font: 800 1.35rem/1 var(--display); color: var(--navy); margin-right: .2rem; }
.sched-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .7rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.sched-filters .results-search { flex: 1 1 260px; }
.sched-filters .select { border-radius: 4px; }
.sched-chips { display: inline-flex; padding: 3px; border-radius: 4px; background: #eef2f6; }
.sched-chips button { padding: .45rem .8rem; border: 0; border-radius: 3px; background: transparent; font: 700 .84rem/1 var(--body); color: var(--ink-2); }
.sched-chips button.on { background: var(--navy); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.sched-clear { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fdeaea; color: #b42318; }

.sched-day { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .8rem 1.1rem; border-radius: 6px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); font: 800 1.15rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.sched-day::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .7; }
.sched-day .icon { color: var(--accent); }
.sched-day-n { margin-left: auto; padding: .3rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .12); font: 700 .75rem/1 var(--body); letter-spacing: 0; text-transform: none; }

.sched-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sched-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; align-items: start; scroll-margin-top: 120px; }
.sched-time { padding-top: 1.15rem; font: 800 1.25rem/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.sched-card { min-width: 0; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 26px -24px rgb(6 26 46 / .6); overflow: hidden; }
.sched-item.open .sched-card { border-color: #c4d3e2; box-shadow: 0 20px 36px -28px rgb(6 26 46 / .6); }
.sched-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: .7rem .9rem; width: 100%; padding: .75rem .9rem .75rem 1.1rem; border: 0; background: transparent; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.sched-row:hover { background: #fafcfe; }
.sched-event { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.sched-event strong { font: 800 1.15rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.sched-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.sched-status { padding: .2rem .45rem; border-radius: 3px; background: #13703f; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sched-status.prov { background: #f2a900; color: var(--navy); }

.sched-podium { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; min-width: 0; }
.sched-medal { display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 52px; padding: .5rem .7rem; border-radius: 4px; background: #f1f4f8; border-left: 3px solid #b9c4cf; }
.sched-medal.p1 { background: #fff6d6; border-left-color: #f2c200; }
.sched-medal.p3 { background: #fbeee4; border-left-color: #cd8a52; }
.sched-medal.empty { background: transparent; border: 0; }
.sched-medal-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #c3cbd3; color: var(--navy); font: 800 .85rem/1 var(--display); }
.p1 > .sched-medal-n { background: linear-gradient(160deg, #ffe46b, #f2c200); }
.p3 > .sched-medal-n { background: linear-gradient(160deg, #f0c9a5, #cd8a52); color: #fff; }
.sched-medal-who { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.sched-medal-who b { font-size: .86rem; line-height: 1.2; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sched-medal-who small { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-medal-mark { flex: none; font: 800 1.05rem/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.sched-toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); transition: transform .2s, background .2s; }
.sched-row:hover .sched-toggle { background: #eef4fa; }
.sched-item.open .sched-toggle { transform: rotate(180deg); background: var(--navy); color: var(--accent); border-color: var(--navy); }
.sched-detail { border-top: 1px solid var(--line); }
.sched-detail-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .6rem 1rem; border-top: 1px solid #edf1f5; background: #fafcfe; font-size: .76rem; color: var(--muted); }
.sched-detail-foot > span { display: inline-flex; align-items: flex-start; gap: .35rem; }
.sched-source a { margin-left: .5rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.results-table tr.hit td { background: #fff8dc; }

.sched-clubs { display: grid; gap: .8rem; margin-top: 1rem; }
.sched-clubs h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font: 800 1.5rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.sched-clubs h3 .icon { color: #d9a400; }
.sched-club-table { border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.sched-club-table h4 { margin: 0; padding: .7rem 1rem; background: #f3f7fb; font: 800 1.05rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.club-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: .6rem; padding: 1rem 1rem .4rem; }
.club-podium-step { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .6rem; border-radius: 6px 6px 0 0; background: #f1f4f8; text-align: center; border-bottom: 4px solid #b9c4cf; }
.club-podium-step strong { font: 800 1rem/1.15 var(--display); text-transform: uppercase; }
.club-podium-step strong a, .club-podium-step strong span { color: var(--navy); }
.club-podium-step > span:last-child { font-size: .78rem; color: var(--muted); font-weight: 600; }
.club-podium-step.p1 { order: 2; min-height: 150px; justify-content: flex-end; background: var(--navy); border-bottom-color: var(--accent); }
.club-podium-step.p1 strong a, .club-podium-step.p1 strong span, .club-podium-step.p1 > span:last-child { color: #fff; }
.club-podium-step.p2 { order: 1; min-height: 120px; justify-content: flex-end; }
.club-podium-step.p3 { order: 3; min-height: 100px; justify-content: flex-end; border-bottom-color: #cd8a52; }

@media (max-width: 720px) {
    .sched-item { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .sched-time { padding: 0 0 0 .2rem; text-align: left; font-size: 1.05rem; }
    .sched-row { padding: .7rem .75rem; gap: .6rem; }
    .sched-podium { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    .sched-medal { min-height: 0; padding: .45rem .6rem; }
    .sched-medal.empty { display: none; }
    .sched-filters .select, .sched-chips { flex: 1 1 auto; }
    .club-podium { grid-template-columns: minmax(0, 1fr); }
    .club-podium-step { order: 0 !important; min-height: 0 !important; border-radius: 4px; }
}

/* ---------- Ficha de competición: cabecera ancha, pestañas y contenido a todo el ancho ---------- */
.ev-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.ev-state { padding: .35rem .65rem; border-radius: 3px; background: rgb(255 255 255 / .14); color: #fff; font: 800 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.ev-state.past { background: rgb(255 255 255 / .14); }
.ev-state.live { background: #e0312f; animation: ev-pulse 1.6s ease-in-out infinite; }
.ev-state.soon { background: var(--accent); color: var(--navy); }
@keyframes ev-pulse { 50% { box-shadow: 0 0 0 6px rgb(224 49 47 / .25); } }
.ev-level { --lv: #8a94a0; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 3px; background: rgb(255 255 255 / .1); color: #fff; font-size: .8rem; font-weight: 700; }
.ev-level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); box-shadow: 0 0 0 2px rgb(255 255 255 / .6); }
.ev-level.lv-int { --lv: #c4161c; } .ev-level.lv-nac { --lv: #0569b0; } .ev-level.lv-aut { --lv: #fdd706; } .ev-level.lv-liga { --lv: #0f8a5f; }
.ev-level.lv-promo { --lv: #0b9bb5; } .ev-level.lv-control { --lv: #7a5af5; } .ev-level.lv-jjdd { --lv: #e09a00; }

.ev-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 1.4rem 0 0; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / .14); width: fit-content; max-width: 100%; }
.ev-facts > div { display: flex; flex-direction: column; justify-content: center; gap: .3rem; min-width: 150px; padding: .8rem 1.1rem; background: rgb(6 26 46 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-facts dt { display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ev-facts dd { display: flex; flex-direction: column; margin: 0; font-weight: 700; color: #fff; line-height: 1.25; }
.ev-facts dd small { font-weight: 500; font-size: .8rem; color: rgb(255 255 255 / .7); }
.ev-facts .ev-date { flex-direction: row; align-items: center; gap: .8rem; background: var(--accent); }
.ev-facts .ev-date dt { display: none; }
.ev-facts .ev-date dd { flex-direction: row; align-items: center; gap: .6rem; color: var(--navy); }
.ev-facts .ev-date strong { font: 800 2.6rem/.9 var(--display); }
.ev-facts .ev-date span { max-width: 5.5em; font: 800 1rem/1.05 var(--display); text-transform: uppercase; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.btn.ghost.light { background: transparent; border: 1px solid rgb(255 255 255 / .5); color: #fff; }
.btn.ghost.light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

.ev-tabs { position: sticky; top: calc(var(--header-h, 84px) + 4px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgb(6 26 46 / .6); }
.ev-tabs-inner { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.ev-tabs-inner::-webkit-scrollbar { display: none; }
.ev-tabs button { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: 1.05rem 1.1rem .95rem; border: 0; border-bottom: 4px solid transparent; background: none; font: 800 .82rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-tabs button:hover { color: var(--navy); }
.ev-tabs button.on { color: var(--navy); border-bottom-color: var(--accent); }
.ev-tabs button .icon { color: var(--brand); }
.ev-tab-n { padding: .2rem .45rem; border-radius: 999px; background: var(--navy); color: var(--accent); font-size: .7rem; letter-spacing: 0; }
.ev-body { display: grid; gap: 2.2rem; }
.ev-body > * { min-width: 0; }

.ev-info { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2rem; align-items: start; }
.ev-info.no-poster { grid-template-columns: minmax(0, 1fr); }
.ev-poster { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--navy); box-shadow: 0 26px 50px -30px rgb(6 26 46 / .8); }
.ev-poster img { display: block; width: 100%; height: auto; transition: transform .35s; }
.ev-poster:hover img { transform: scale(1.03); }
.ev-poster span { position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .65rem; border-radius: 4px; background: rgb(6 26 46 / .8); color: #fff; font-size: .78rem; font-weight: 700; }
.ev-info-main { display: grid; gap: 1.3rem; min-width: 0; }
.ev-about { padding: 1.6rem 1.8rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.ev-about h2 { margin: .4rem 0 .9rem; font: 800 2rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.ev-about .prose { font-size: 1.02rem; }
.ev-muted { margin: 0; color: var(--muted); }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }
.ev-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .8rem; align-items: center; padding: 1rem 1.1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.ev-card-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--navy); color: var(--accent); }
.ev-card small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-card strong { font-weight: 700; color: var(--navy); line-height: 1.25; }
.ev-card strong a { color: var(--brand); }
.ev-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .8rem; }
.ev-shortcut { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; color: var(--navy); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ev-shortcut:hover { transform: translateY(-2px); border-color: #c4d3e2; box-shadow: 0 20px 34px -26px rgb(6 26 46 / .6); }
.ev-shortcut > .icon:first-child { flex: none; color: var(--brand); }
.ev-shortcut span { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.ev-shortcut strong { font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; }
.ev-shortcut small { font-size: .8rem; color: var(--muted); }
.ev-shortcut.accent { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border-color: var(--navy); color: #fff; }
.ev-shortcut.accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .6; }
.ev-shortcut.accent > .icon:first-child { color: var(--accent); }
.ev-shortcut.accent small { color: rgb(255 255 255 / .75); }

.ev-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1.4rem; align-items: start; }
.ev-doc-group { padding: 1.2rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.ev-doc-group.wide { grid-column: 1 / -1; }
.ev-doc-group h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 800 1.35rem/1 var(--display); text-transform: uppercase; color: var(--navy); }
.ev-doc-group h2 small { margin-left: auto; padding: .2rem .5rem; border-radius: 3px; background: var(--accent); color: var(--navy); font: 700 .75rem/1 var(--body); }
.ev-doc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--navy); color: var(--accent); }

/* Resumen de resultados: cifras y medallero */
.res-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1px; border-radius: 6px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.res-dash-head { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1.6rem 1.8rem; background: var(--navy); color: #fff; }
.res-dash-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .7; }
.res-dash-head h2 { margin: .2rem 0 1rem; font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.eyebrow.light { color: var(--accent); }
.res-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; margin: 0; }
.res-stats div { display: flex; flex-direction: column-reverse; gap: .25rem; padding: .7rem .8rem; border-radius: 4px; background: rgb(255 255 255 / .08); border-left: 3px solid var(--accent); }
.res-stats dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.res-stats dd { margin: 0; font: 800 2rem/1 var(--display); color: #fff; }
.res-medals { padding: 1.2rem 1.4rem; background: #fff; }
.res-medals h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font: 800 1.1rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.res-medals h3 .icon { color: #d9a400; }
.res-medals table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.res-medals th { padding: .35rem .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.res-medals td { padding: .45rem .4rem; border-top: 1px solid #edf1f5; }
.res-medals .rank { width: 1.6rem; font: 800 1rem/1 var(--display); color: var(--muted); }
.res-medals tbody tr:first-child .rank { color: #d9a400; }
.res-medals .club-link { font-weight: 700; color: var(--navy); }
.res-medals .m { width: 2.6rem; text-align: center; font: 800 1.05rem/1 var(--display); color: var(--navy); }
.res-medals th.m { font: 800 .72rem/1 var(--body); }
.res-medals th.m.g { color: #b88a00; } .res-medals th.m.s { color: #7d8a97; } .res-medals th.m.b { color: #b26a33; }
.res-medals td.m.g { background: #fff8dc; }

/* Línea de tiempo en el horario */
.sched-list { position: relative; }
.sched-list::before { content: ""; position: absolute; left: 75px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.sched-item { grid-template-columns: 64px 24px minmax(0, 1fr); gap: 0; }
.sched-item::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 12px; height: 12px; margin-top: 1.25rem; border-radius: 50%; background: #fff; border: 3px solid var(--navy); z-index: 1; }
.sched-item.open::before { background: var(--accent); }
.sched-time { grid-column: 1; grid-row: 1; padding-right: .4rem; }
.sched-card { grid-column: 3; grid-row: 1; }

@media (max-width: 960px) {
    .ev-info { grid-template-columns: minmax(0, 1fr); }
    .ev-poster { max-width: 360px; }
    .res-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .ev-facts { width: 100%; }
    .ev-facts > div { flex: 1 1 45%; min-width: 0; padding: .7rem .8rem; }
    .ev-facts .ev-date { flex-basis: 100%; }
    .ev-tabs button { padding: .9rem .8rem .8rem; font-size: .74rem; }
    .ev-about { padding: 1.2rem; }
    .res-dash-head { padding: 1.2rem; }
    .sched-list::before { display: none; }
    .sched-item { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .sched-item::before { display: none; }
    .sched-time, .sched-card { grid-column: 1; grid-row: auto; }
}

/* ---------- Resultados compactos: cada prueba en una fila (nombre · podio · desplegar) ---------- */
.res-dash-head { padding: 1.1rem 1.4rem; }
.res-dash-head h2 { margin: .1rem 0 .7rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.res-stats div { padding: .45rem .6rem; }
.res-stats dd { font-size: 1.55rem; }
.res-medals { padding: .8rem 1.1rem; }
.res-medals h3 { margin-bottom: .3rem; font-size: 1rem; }
.res-medals td { padding: .28rem .4rem; }
.res-medals .m { font-size: .95rem; }
.sched-filters { padding: .5rem; gap: .45rem; }
.sched-filters .results-search { padding: .45rem .8rem; }
.sched-chips button { padding: .38rem .7rem; }

.sched-day { margin-top: .4rem; padding: .55rem .9rem; font-size: 1rem; border-bottom-width: 3px; }
.sched-list { gap: .3rem; }
.sched-list::before { left: 60px; }
.sched-item { grid-template-columns: 50px 20px minmax(0, 1fr); }
.sched-item::before { width: 10px; height: 10px; margin-top: .95rem; border-width: 2px; }
.sched-time { padding-top: .8rem; font-size: 1.02rem; }
.sched-card { border-radius: 4px; box-shadow: none; }
.sched-row { grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 28px; gap: .7rem; padding: .4rem .5rem .4rem .8rem; }
.sched-podium { grid-column: auto; grid-row: auto; gap: .3rem; }
.sched-event { gap: .2rem; }
.sched-event strong { font-size: 1rem; line-height: 1.05; }
.sched-tags { gap: .15rem .45rem; font-size: .7rem; }
.sched-status { padding: .12rem .35rem; font-size: .6rem; }
.sched-medal { min-height: 0; gap: .4rem; padding: .3rem .5rem; border-left-width: 3px; border-radius: 3px; }
.sched-medal-n { width: 19px; height: 19px; font-size: .72rem; }
.sched-medal-who { gap: 0; }
.sched-medal-who b { font-size: .78rem; -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.sched-medal-who small { font-size: .6rem; }
.sched-medal-mark { font-size: .9rem; }
.sched-toggle { width: 28px; height: 28px; }
.sched-detail-foot { padding: .45rem .8rem; font-size: .72rem; }
.results-table th { padding: .4rem .6rem; }
.results-table td { padding: .38rem .6rem; font-size: .86rem; }
.results-table .pos span { min-width: 26px; height: 22px; font-size: .9rem; }
.results-table .crew a, .results-table .crew > span:not(.crew-club) { display: inline; }
.results-table .crew a + a::before, .results-table .crew > span:not(.crew-club) + a::before { content: " · "; color: #9fb0c2; }
.results-table .crew .note { display: inline; margin-left: .4rem; }
.club-podium-step.p1 { min-height: 120px; } .club-podium-step.p2 { min-height: 96px; } .club-podium-step.p3 { min-height: 80px; }

@media (max-width: 1100px) {
    .sched-row { grid-template-columns: minmax(0, 1fr) 28px; }
    .sched-podium { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
    .sched-item { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .sched-time { padding: 0 0 0 .2rem; font-size: .95rem; }
    .sched-row { padding: .45rem .55rem; }
    .sched-podium { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .results-table .crew a, .results-table .crew > span:not(.crew-club) { display: block; }
    .results-table .crew a + a::before, .results-table .crew > span:not(.crew-club) + a::before { content: none; }
}
@media (max-width: 720px) {
    .results-table .bib, .results-table .pts { display: none; }
    .results-table td { padding: .4rem .45rem; }
}

/* ---------- Portada (26/11): próximas y celebradas, sede con mapa, newsletter e imagen de noticia sin foto ---------- */
.cal-two { display: flex; flex-direction: column; }
.cal-two .cal-sub { display: flex; align-items: center; gap: .5rem; margin: 1.6rem 0 .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--navy); font: 800 1.15rem/1 var(--display); letter-spacing: .06em; color: var(--navy); }
.cal-two .cal-sub.first { margin-top: 0; }
.cal-two .cal-sub .icon { color: var(--brand); }
.cal-two .link-under { margin-top: 1.2rem; align-self: flex-start; }

.fed-office { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1.8rem; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: 0 18px 34px -28px rgb(6 26 46 / .6); }
.fed-map { height: 220px; background: #e8eef4; }
.fed-office-info { display: grid; gap: .55rem; padding: 1.1rem 1.2rem 1.2rem; }
.fed-office-info p { display: flex; align-items: flex-start; gap: .55rem; margin: 0; color: var(--ink-2); font-size: .92rem; }
.fed-office-info p .icon { flex: none; margin-top: .15rem; color: var(--brand); }
.fed-office-info a { color: var(--navy); font-weight: 700; text-decoration: none; }
.fed-office-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.fed-office-actions .btn.ghost { color: var(--navy); }

/* El bloque de vídeos ya no queda debajo de la tarjeta de la newsletter */
.home .newsletter-home, .newsletter-home { padding-top: 3rem; }
.newsletter-fields { grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.35fr) auto; }

/* Noticias sin foto: la marca de la FPPA sobre el agua */
.placeholder-art::after { content: ""; position: absolute; inset: 18% 30%; background: url("../img/logo-fppa-marca.svg") center / contain no-repeat; opacity: .92; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .35)); }
.placeholder-art span { position: relative; z-index: 1; }

/* ---------- Calendario: filtros compactos y pruebas con resultados ---------- */
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cal-filters .search { flex: 1 1 260px; min-width: 0; }
.cal-filters .select { flex: 0 1 auto; }
.toggle-chip, .clear-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 4px; border: 1px solid #d3dde7; background: #fff; font: 700 .85rem/1 var(--body); color: var(--navy); cursor: pointer; }
.toggle-chip .icon { color: #d9a400; }
.toggle-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.toggle-chip.on .icon { color: var(--accent); }
.clear-chip { border-color: transparent; background: #fdeaea; color: #b42318; }
.has-results { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: 3px; background: #fff6d6; color: #8a6400; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Archivos adjuntos: tarjetas de documento ---------- */
.prose .attach-box, .attach-box { margin: 1.6rem 0; padding: 1.1rem 1.2rem; border-radius: 6px; background: #f5f8fb; border: 1px solid var(--line); border-left: 4px solid var(--accent); font-style: normal; }
.attach-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem !important; font: 800 1.15rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.attach-title::before { content: ""; width: 18px; height: 18px; background: var(--navy); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.attach-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .55rem; }
.attach-list li { margin: 0 !important; padding: 0 !important; }
.attach-list li::before { content: none !important; }
.prose .attach, .attach { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 4px; background: #fff; border: 1px solid var(--line); color: var(--navy) !important; text-decoration: none !important; font-weight: 600; transition: border-color .15s, box-shadow .15s, transform .15s; }
.prose .attach::before { content: none !important; }
.attach:hover { border-color: var(--brand); box-shadow: 0 12px 24px -20px rgb(6 26 46 / .6); transform: translateY(-1px); }
.attach-ico { display: grid; place-items: center; flex: none; width: 42px; height: 48px; border-radius: 3px 10px 3px 3px; background: #c4161c; color: #fff; font: 800 .7rem/1 var(--body); letter-spacing: .04em; }
.attach-ico.k-doc { background: #1d5fbf; } .attach-ico.k-xls { background: #13703f; } .attach-ico.k-zip { background: #6b7280; }
.attach-ico.k-jpg, .attach-ico.k-png { background: #7a5af5; } .attach-ico.k-web { background: var(--navy); }
.attach-name { flex: 1; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.attach-go { flex: none; padding: .3rem .55rem; border-radius: 3px; background: var(--accent); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; }

/* ---------- Páginas: sin índice lateral ---------- */
.page-layout { display: grid; gap: 1.5rem; }
.page-intro { max-width: 70ch; font-size: 1.05rem; color: var(--ink-2); }
.accordion { border-radius: 6px; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: #fff; box-shadow: none; }
.accordion[open] { border-left-color: var(--accent); }
.accordion summary { font-size: 1.15rem; color: var(--navy); }

/* ---------- Ligas ---------- */
.league-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.league-filters button { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid #d3dde7; border-radius: 4px; background: #fff; font: 700 .85rem/1 var(--body); color: var(--navy); }
.league-filters button span { padding: .15rem .4rem; border-radius: 3px; background: #eef2f6; font-size: .72rem; }
.league-filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.league-filters button.on span { background: var(--accent); color: var(--navy); }
.league-year-title { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .8rem; font: 800 2.2rem/1 var(--display); color: var(--navy); }
.league-year-title::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.league-card { --lg: var(--brand); display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.2rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--lg); box-shadow: 0 16px 30px -28px rgb(6 26 46 / .6); scroll-margin-top: 120px; }
.league-card.lg-super { --lg: #c4161c; } .league-card.lg-master { --lg: #7a5af5; } .league-card.lg-rios { --lg: #0b9bb5; }
.league-card.lg-jjpp { --lg: #e09a00; } .league-card.lg-promo { --lg: #0f8a5f; } .league-card.lg-otra { --lg: var(--navy); }
.league-filters button.lg-super:not(.on) { box-shadow: inset 3px 0 0 #c4161c; } .league-filters button.lg-master:not(.on) { box-shadow: inset 3px 0 0 #7a5af5; }
.league-filters button.lg-rios:not(.on) { box-shadow: inset 3px 0 0 #0b9bb5; } .league-filters button.lg-jjpp:not(.on) { box-shadow: inset 3px 0 0 #e09a00; }
.league-filters button.lg-promo:not(.on) { box-shadow: inset 3px 0 0 #0f8a5f; }
.league-kind { display: inline-block; padding: .25rem .5rem; border-radius: 3px; background: color-mix(in srgb, var(--lg) 14%, #fff); color: var(--lg); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.league-card h3 { margin: .45rem 0 0; font: 800 1.25rem/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.league-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.league-docs { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .4rem; }
.league-docs a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 4px; background: #f5f8fb; color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.league-docs a:hover { background: #eaf2fa; }
.league-docs a > span:nth-child(2) { flex: 1; min-width: 0; }
.league-docs .attach-ico { width: 32px; height: 36px; font-size: .6rem; }
.league-docs .icon { color: var(--brand); }

/* ---------- Transparencia ---------- */
.transp-intro { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 1.6rem; border-radius: 6px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
.transp-intro .prose, .transp-intro .prose p { color: rgb(255 255 255 / .88); margin: 0; font-size: 1.02rem; }
.transp-intro .prose strong { color: var(--accent); }
.transp-intro-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--accent); color: var(--navy); }
.transp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.transp-card { padding: 1.3rem 1.4rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); scroll-margin-top: 120px; }
.transp-card header { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.transp-card h2 { margin: 0; font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; color: var(--navy); }
.transp-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 4px; background: var(--navy); color: var(--accent); }
.transp-body h3.transp-sub { display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 .6rem; font: 800 .9rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.transp-body h3.transp-sub::before { content: ""; width: 18px; height: 3px; background: var(--accent); }
.transp-members { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .35rem; max-height: 420px; overflow: auto; }
.transp-members li { display: flex; flex-direction: column; gap: .1rem; margin: 0 !important; padding: .45rem .6rem !important; border-radius: 4px; background: #f5f8fb; }
.transp-members li::before { content: none !important; }
.transp-members span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.transp-members strong { font-weight: 600; font-size: .88rem; color: var(--navy); }

/* ---------- Ficha de palista (como la de deportistas del rediseño de FETRI) ---------- */
.ath { display: grid; gap: 1.2rem; }
.ath > * { min-width: 0; }
.ath-back { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; text-decoration: none; }
.ath-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.ath-id { display: grid; grid-template-columns: 230px minmax(0, 1fr); border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -30px rgb(6 26 46 / .7); }
.ath-photo { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 260px; background: var(--navy); }
.ath-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .8; }
.ath-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--accent); }
.ath-photo span { font: 800 4.6rem/1 var(--display); color: var(--accent); letter-spacing: .03em; }
.ath-photo.w span { color: #ffd1e1; }
.ath-id-body { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.2rem; min-width: 0; }
.ath-name h1 { margin: 0; font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); text-transform: uppercase; color: var(--navy); }
.ath-name p { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 0; font-size: .86rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ath-name p a { color: var(--brand); text-decoration: none; }
.ath-seasons-mini { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 4px; background: #f5f8fb; border-left: 3px solid var(--accent); }
.ath-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ath-seasons-mini strong { font: 800 1.5rem/1 var(--display); color: var(--navy); }
.ath-seasons-mini small { font-size: .78rem; color: var(--muted); }
.ath-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: auto 0 0; }
.ath-kpis div { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; border-radius: 4px; background: var(--navy); }
.ath-kpis div.gold { background: var(--accent); }
.ath-kpis dd { margin: 0; font: 800 1.7rem/1 var(--display); color: #fff; }
.ath-kpis dt { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ath-kpis div.gold dd, .ath-kpis div.gold dt { color: var(--navy); }
.ath-link { font-size: .85rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.ath-card { padding: 1.1rem 1.3rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -32px rgb(6 26 46 / .7); }
.ath-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.ath-card-head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font: 800 1.15rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.ath-card-head h2::before { content: ""; width: 4px; height: 1.1rem; background: var(--accent); }
.ath-card-head span { font-size: .78rem; color: var(--muted); }
.ath-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.ath-chips button { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border-radius: 999px; border: 0; background: #eef2f6; font: 700 .8rem/1 var(--body); color: var(--ink-2); }
.ath-chips button b { color: var(--brand); }
.ath-chips button.on { background: var(--navy); color: #fff; }
.ath-chips button.on b { color: var(--accent); }
.ath-last-list, .ath-res { list-style: none; margin: 0; padding: 0; display: grid; }
.ath-last-list li, .ath-res li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid #edf1f5; }
.ath-last-list li:first-child, .ath-res li:first-child { border-top: 0; }
.ath-none { color: var(--muted); font-size: .9rem; }
.ath-pos { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #eef2f6; font: 800 .95rem/1 var(--display); color: var(--navy); }
.ath-pos.gold { background: linear-gradient(160deg, #ffe46b, #f2c200); }
.ath-pos.silver { background: linear-gradient(160deg, #eef1f4, #c3cbd3); }
.ath-pos.bronze { background: linear-gradient(160deg, #f0c9a5, #cd8a52); color: #fff; }
.ath-pos.out { background: #fde8e8; color: #b42318; font-size: .62rem; }
.ath-last-main, .ath-res-main { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.ath-last-main strong { font-size: .88rem; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ath-last-main small, .ath-res-main small { font-size: .75rem; color: var(--muted); }
.ath-res-main a { font-weight: 700; color: var(--navy); text-decoration: none; }
.ath-res-main a:hover { color: var(--brand); }
.ath-partners a { color: var(--brand) !important; font-weight: 600 !important; }
.ath-mark { flex: none; font: 800 1rem/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.ath-mark.boxed { min-width: 84px; padding: .35rem .5rem; border: 2px solid var(--navy); border-radius: 4px; text-align: center; }
.ath-see { display: inline-flex; align-items: center; gap: .25rem; flex: none; padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-size: .75rem; font-weight: 700; text-decoration: none; }
.ath-see:hover { border-color: var(--brand); color: var(--brand); }
.ath-bars { display: flex; align-items: flex-end; gap: .5rem; height: 190px; padding: .5rem .2rem 0; overflow-x: auto; }
.ath-bar { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex: 1 0 44px; height: 100%; }
.ath-bar-col { display: flex; align-items: flex-end; justify-content: center; flex: 1; width: 100%; }
.ath-bar-races { position: relative; display: flex; align-items: flex-end; width: 70%; max-width: 46px; border-radius: 4px 4px 0 0; background: var(--navy); overflow: hidden; }
.ath-bar-pod { display: block; width: 100%; background: var(--accent); }
.ath-bar strong { font: 800 .95rem/1 var(--display); color: var(--navy); }
.ath-bar small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.ath-legend { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 1rem; font-size: .75rem; color: var(--muted); }
.ath-legend span { width: 12px; height: 12px; border-radius: 2px; background: var(--navy); }
.ath-legend span.pd { margin-left: .6rem; background: var(--accent); }
.ath-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .5rem; }
.ath-timeline li { display: flex; align-items: stretch; gap: .6rem; }
.ath-tl-year { display: grid; place-items: center; width: 58px; flex: none; border-radius: 4px; background: var(--navy); color: var(--accent); font: 800 1.05rem/1 var(--display); }
.ath-tl-body { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; padding: .45rem .6rem; border-radius: 4px; background: #f5f8fb; }
.ath-tl-body a, .ath-tl-body > span { font-weight: 700; font-size: .85rem; color: var(--navy); text-decoration: none; }
.ath-tl-body small { font-size: .74rem; color: var(--muted); }
.ath-medals { display: flex; gap: 2rem; margin-bottom: .7rem; }
.ath-medals div { display: flex; flex-direction: column; gap: .2rem; }
.ath-medals strong { font: 800 2.6rem/1 var(--display); color: var(--navy); }
.ath-medals span { display: flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ath-medals span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.ath-medals .g span::before { background: #f2c200; } .ath-medals .s span::before { background: #b9c4cf; } .ath-medals .b span::before { background: #cd8a52; }
.ath-medal-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #eef2f6; }
.ath-medal-bar .g { background: #f2c200; } .ath-medal-bar .s { background: #b9c4cf; } .ath-medal-bar .b { background: #cd8a52; }
.ath-search { margin-bottom: .6rem; }
.ath-year { display: inline-block; margin: 1rem 0 .3rem; padding: .25rem .55rem; border-radius: 3px; background: var(--navy); color: #fff; font: 800 .85rem/1 var(--display); letter-spacing: .05em; }

/* ---------- Contacto: tarjetas repartidas ---------- */
.contact-top:not(:has(.contact-map)) { grid-template-columns: minmax(0, 1fr); }
.contact-top:not(:has(.contact-map)) .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-card { border-radius: 6px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); box-shadow: 0 16px 30px -28px rgb(6 26 46 / .6); }
.contact-card-icon { border-radius: 4px; }
.contact-card.accent { border-top-color: var(--accent); }

/* ---------- Pantalla de carga ---------- */
.boot { position: relative; overflow: hidden; isolation: isolate; gap: .9rem; background: radial-gradient(circle at 50% 38%, #12497a, #0c2744 62%); }
.boot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .7; }
.boot-mark { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgb(255 255 255 / .08), 0 30px 60px -20px rgb(0 0 0 / .6); animation: boot-in .6s ease-out both, boot-bob 2.4s ease-in-out .6s infinite; }
.boot-mark img { width: 140px; height: auto; }
.boot-name { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: .4rem 0 0; text-align: center; }
.boot-name strong { font: 800 2.6rem/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .12em; color: #fff; }
.boot-name span { max-width: 80vw; font: 600 .78rem/1.3 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.boot-bar { width: 240px; height: 5px; border-radius: 5px; }
.boot-pct { margin: 0; font: 700 .78rem/1 system-ui, sans-serif; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.boot-pct::after { content: " " var(--blazor-load-percentage-text, ""); }
.boot-waves { position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: var(--waves-strong) left bottom / 1200px 240px repeat-x; animation: boot-waves 12s linear infinite; }
@keyframes boot-bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes boot-waves { to { background-position-x: -1200px; } }
@media (prefers-reduced-motion: reduce) { .boot-mark, .boot-waves { animation: none; } }

/* ---------- Pie: Powered by Conersys ---------- */
.powered { display: inline-flex; align-items: center; gap: .45rem; }
.powered img { width: 22px; height: 22px; border-radius: 50%; }
.powered strong { font-weight: 800; }

@media (max-width: 960px) {
    .ath-top { grid-template-columns: minmax(0, 1fr); }
    .transp-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-top:not(:has(.contact-map)) .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .contact-cards, .contact-top:not(:has(.contact-map)) .contact-cards { grid-template-columns: minmax(0, 1fr); }
    .contact-top { grid-template-columns: minmax(0, 1fr); }
    .ath-id { grid-template-columns: minmax(0, 1fr); }
    .ath-photo { min-height: 150px; }
    .ath-photo span { font-size: 3.4rem; }
    .ath-res li { flex-wrap: wrap; }
    .ath-res .ath-res-main { flex-basis: calc(100% - 50px); }
    .ath-res .ath-mark.boxed { margin-left: 46px; }
    .ath-see { display: none; }
    .transp-intro { flex-direction: column; }
    .cal-filters .select, .toggle-chip { flex: 1 1 45%; }
    .fed-map { height: 180px; }
}
.ath-top > *, .ath-card, .ath-last-list, .ath-res { min-width: 0; }
.ath-last-list, .ath-res { grid-template-columns: minmax(0, 1fr); }
.ath-last-list li, .ath-res li { min-width: 0; }

/* ---------- Panel «Con el apoyo de»: banner de campaña y logos en placas ---------- */
.partners { padding-block: 2.6rem 3rem; background: linear-gradient(#fff, #f5f8fb); }
.partner-banner { display: block; margin: 0 auto 2rem; max-width: 1280px; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 44px -32px rgb(6 26 46 / .7); transition: transform .2s, box-shadow .2s; }
a.partner-banner:hover { transform: translateY(-2px); box-shadow: 0 30px 50px -30px rgb(6 26 46 / .7); }
.partner-banner img { display: block; width: 100%; height: auto; }
.partners-label { display: flex; align-items: center; justify-content: center; gap: .8rem; font-size: .78rem; color: var(--navy); }
.partners-label::before, .partners-label::after { content: ""; width: 48px; height: 2px; background: var(--accent); }
.partners-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 220px)); justify-content: center; gap: 1rem; }
.partner { display: grid; place-items: center; height: 104px; padding: .9rem 1.2rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 26px -24px rgb(6 26 46 / .6); transition: transform .2s, box-shadow .2s, border-color .2s; }
.partner:hover { transform: translateY(-3px); border-color: #c4d3e2; box-shadow: 0 22px 36px -26px rgb(6 26 46 / .6); }
.partner img { height: auto; max-height: 70px; width: auto; max-width: 100%; filter: grayscale(.35); transition: filter .2s; }
.partner:hover img { filter: none; }

/* ---------- Vídeos: tarjetas con más presencia ---------- */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.video-card { gap: 0; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); transition: transform .2s, border-color .2s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.video-media { position: relative; }
.video-thumb, .video-card iframe { border-radius: 0; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 26 46 / .1) 40%, rgb(6 26 46 / .75)); pointer-events: none; }
.video-badge { position: absolute; top: .6rem; left: .6rem; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border-radius: 3px; background: var(--accent); color: var(--navy); font: 800 .68rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.video-date { position: absolute; left: .7rem; bottom: .6rem; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; color: #fff; font-size: .75rem; font-weight: 700; }
.video-thumb .play { z-index: 1; }
.video-info { gap: .7rem; padding: .85rem .95rem 1rem; }
.video-title { font-size: 1.15rem; line-height: 1.1; }
.video-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.video-actions a, .video-play-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .6rem; border-radius: 3px; border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #fff; font: 700 .75rem/1 var(--body); text-decoration: none; cursor: pointer; }
.video-play-btn { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.video-actions a:hover { border-color: #fff; }
/* En fondo claro (página de vídeos) */
:not(.videos-band) > .container .video-card, .videos-page .video-card { background: #fff; border-color: var(--line); }
.videos-band .video-card { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
:not(.videos-band) > .container .video-actions a { color: var(--navy); border-color: var(--line); }
.videos-band .video-actions a { color: #fff; border-color: rgb(255 255 255 / .25); }

/* ---------- Contacto: las cuatro tarjetas en azul marino y amarillo ---------- */
.contact-card, .contact-card.accent { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border: 0; border-top: 4px solid var(--accent); color: #fff; }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .55; }
.contact-card-icon, .contact-card.accent .contact-card-icon { background: var(--accent); color: var(--navy); }
.contact-card small { color: var(--accent); }
.contact-card strong { color: #fff; }
.contact-card span { color: rgb(255 255 255 / .75); }
a.contact-card:hover, button.contact-card:hover { color: #fff; border-color: var(--accent); box-shadow: 0 24px 40px -26px rgb(6 26 46 / .9); }
.ath-years { margin: .2rem 0 .7rem; }
.transp-members { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: .8rem; }
.transp-card:has(.transp-members) { grid-column: 1 / -1; }

/* ---------- Calendario: vista por meses (como el calendario del rediseño de FETRI) ---------- */
.month-strip { display: flex; gap: .4rem; margin: 1.2rem 0 .8rem; padding-bottom: .3rem; overflow-x: auto; scrollbar-width: thin; }
.month-strip button { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .55rem .85rem; border-radius: 999px; border: 1px solid #d3dde7; background: #fff; font: 800 .88rem/1 var(--display); letter-spacing: .06em; color: var(--navy); cursor: pointer; }
.month-strip button b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 .3rem; border-radius: 999px; background: #eef2f6; font: 700 .72rem/1 var(--body); }
.month-strip button:hover:not(:disabled) { border-color: var(--brand); }
.month-strip button.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.month-strip button.on b { background: var(--accent); color: var(--navy); }
.month-strip button.all { padding-inline: 1.1rem; }
.month-strip button.empty { opacity: .45; cursor: default; }
.year-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: stretch; margin-bottom: 1rem; border-radius: 6px; background: var(--navy); color: #fff; }
.year-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .6; }
.year-band-year { display: grid; place-items: center; padding: 0 1.6rem; background: var(--accent); color: var(--navy); font: 800 2.3rem/1 var(--display); }
.year-band-text { display: flex; flex-direction: column; justify-content: center; gap: .25rem; flex: 1; min-width: 0; padding: .9rem 1.2rem; }
.year-band-text strong { font: 800 1.2rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.year-band-text small { font-size: .85rem; color: rgb(255 255 255 / .75); }
.year-band-total { align-self: center; margin-right: 1.1rem; padding: .5rem .9rem; border-radius: 999px; background: var(--accent); color: var(--navy); font: 800 .85rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.year-band-total b { font-size: 1.25rem; }
.month-title { display: flex; align-items: center; justify-content: space-between; margin: 1.2rem 0 .5rem; padding: .7rem 1rem; border-radius: 4px; background: #eef3f8; border-left: 4px solid var(--accent); font: 800 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.month-title::after { content: none; }
.month-title span { padding: .25rem .6rem; border-radius: 999px; background: var(--navy); color: var(--accent); font: 700 .75rem/1 var(--body); letter-spacing: 0; }
.champ-row-date { display: grid; place-items: center; align-content: center; gap: .1rem; min-width: 66px; padding: .55rem .4rem; border-radius: 6px; background: var(--navy); }
.champ-row-date strong { color: #fff !important; font: 800 1.9rem/1 var(--display); }
.champ-row-date small { color: var(--accent); font: 800 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.champ-row-date em { font-size: .62rem; color: rgb(255 255 255 / .6); font-style: normal; text-transform: uppercase; }
.champ-row.is-past .champ-row-date { background: #4a5d72; }
.has-results { background: #c4161c; color: #fff; }

/* ---------- Ficha de competición: cabecera compacta ---------- */
.page-hero:has(.ev-facts) .page-hero-inner { padding-block: 1.6rem 1.8rem; }
.page-hero:has(.ev-facts) h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 30ch; padding-right: 4rem; }
.page-hero:has(.ev-facts) .ev-hero-tags { margin-top: .7rem; }
.page-hero:has(.ev-facts) .ev-facts { margin-top: .9rem; }
.ev-facts > div { min-width: 130px; padding: .6rem .95rem; }
.ev-facts .ev-date strong { font-size: 2.1rem; }
.ev-cal-icon { position: absolute; top: 1.6rem; right: 0; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 6px; background: var(--accent); color: var(--navy); box-shadow: 0 14px 28px -16px rgb(0 0 0 / .7); text-decoration: none; transition: transform .2s; }
.ev-cal-icon:hover { transform: translateY(-2px) scale(1.04); color: var(--navy); }
.ev-cal-icon span { position: absolute; right: 6px; bottom: 3px; font: 800 1rem/1 var(--display); }

/* Panel de resultados: el texto arriba, no centrado */
.res-dash-head { justify-content: flex-start; }

/* ---------- Pie: Powered by + logo de Conersys ---------- */
.powered { display: inline-flex; align-items: center; gap: .55rem; }
.powered img { width: auto; height: 30px; border-radius: 0; }
.powered span { opacity: .75; }

@media (max-width: 720px) {
    .year-band-year { padding: 0 .9rem; font-size: 1.6rem; }
    .year-band-total { display: none; }
    .ev-cal-icon { top: 1rem; width: 44px; height: 44px; }
    .page-hero:has(.ev-facts) h1 { padding-right: 3.2rem; }
}

/* ---------- Ventana «Añadir al calendario» ---------- */
button.ev-cal-icon { border: 0; cursor: pointer; }
.cal-modal-backdrop { position: fixed; inset: 0; z-index: 400; background: rgb(6 26 46 / .55); backdrop-filter: blur(3px); animation: fade-in .15s ease-out; }
.cal-modal { position: fixed; z-index: 401; top: 50%; left: 50%; width: min(560px, calc(100vw - 2rem)); transform: translate(-50%, -50%); padding: 1.6rem 1.7rem 1.4rem; border-radius: 6px; background: #fff; border-top: 5px solid var(--accent); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .6); color: var(--ink); text-align: left; animation: cal-pop .18s ease-out; }
@keyframes cal-pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.cal-modal header { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cal-modal h2 { display: flex; align-items: center; gap: .6rem; flex: 1; margin: 0; font: 800 1.35rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.cal-modal h2::before { content: ""; width: 5px; height: 1.4rem; border-radius: 3px; background: var(--accent); }
.cal-modal-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f6; color: var(--navy); cursor: pointer; }
.cal-modal-close:hover { background: var(--navy); color: #fff; }
.cal-modal-event { display: flex; flex-direction: column; gap: .2rem; margin: 1rem 0; }
.cal-modal-event strong { font-weight: 700; color: var(--navy); }
.cal-modal-event span { font-size: .85rem; color: var(--muted); }
.cal-modal-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.cal-option { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.2rem .6rem 1rem; border-radius: 6px; background: #f1f4f8; border: 2px solid transparent; color: var(--navy); font: 800 1.05rem/1 var(--body); text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.cal-option:hover { transform: translateY(-2px); border-color: var(--accent); background: #fff; color: var(--navy); }
.cal-option svg { width: 54px; height: 54px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .12)); }
.cal-modal-note { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 480px) {
    .cal-modal { padding: 1.2rem; }
    .cal-option { padding: 1rem .3rem .8rem; font-size: .9rem; }
    .cal-option svg { width: 44px; height: 44px; }
}
/* Con la ventana abierta, sus contenedores suben por encima de lo de al lado (algunas tarjetas crean su propio contexto de apilado). */
body *:has(> .cal-modal), body *:has(.cal-modal) { z-index: 600; }
.next-comp:has(.cal-modal) { position: relative; }

/* ---------- Ranking de la temporada ---------- */
.month-strip a { display: inline-flex; align-items: center; flex: none; padding: .55rem .95rem; border-radius: 999px; border: 1px solid #d3dde7; background: #fff; font: 800 .95rem/1 var(--display); letter-spacing: .06em; color: var(--navy); text-decoration: none; }
.month-strip a.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.rank-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.rank-clubs, .rank-paddlers, .medal-home-clubs, .medal-home-top { list-style: none; margin: 0; padding: 0; display: grid; }
.rank-clubs li, .rank-paddlers li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid #edf1f5; }
.rank-clubs li:first-child, .rank-paddlers li:first-child { border-top: 0; }
.rank-pos { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #eef2f6; font: 800 .95rem/1 var(--display); color: var(--navy); }
.rank-clubs li.top1 .rank-pos { background: linear-gradient(160deg, #ffe46b, #f2c200); }
.rank-clubs li.top2 .rank-pos { background: linear-gradient(160deg, #eef1f4, #c3cbd3); }
.rank-clubs li.top3 .rank-pos { background: linear-gradient(160deg, #f0c9a5, #cd8a52); color: #fff; }
.rank-club, .rank-who { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.rank-club a, .rank-who a { font-weight: 700; color: var(--navy); text-decoration: none; }
.rank-club a:hover, .rank-who a:hover { color: var(--brand); }
.rank-who small { font-size: .76rem; color: var(--muted); }
.rank-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #eef2f6; }
.rank-bar .g { background: #f2c200; } .rank-bar .s { background: #b9c4cf; } .rank-bar .b { background: #cd8a52; }
.rank-m { display: grid; place-items: center; min-width: 32px; height: 28px; flex: none; border-radius: 4px; font: 800 1rem/1 var(--display); color: var(--navy); }
.rank-m.g { background: #fff4c2; } .rank-m.s { background: #eef1f4; } .rank-m.b { background: #fbe9dc; }

/* Medallero en la portada */
.medal-home { position: relative; isolation: isolate; overflow: hidden; padding-block: 3rem; background: var(--navy); color: #fff; border-top: 4px solid var(--accent); }
.medal-home::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .6; }
.medal-home-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.medal-home-head h2 { margin: .3rem 0 .4rem; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.medal-home-head p { margin: 0 0 1rem; color: rgb(255 255 255 / .75); }
.medal-home-clubs li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 4px; }
.medal-home-clubs li:nth-child(odd) { background: rgb(255 255 255 / .06); }
.medal-home-clubs a, .medal-home-clubs li > span:nth-child(2) { flex: 1; min-width: 0; color: #fff; font-weight: 700; text-decoration: none; }
.medal-home-clubs .rank-pos { background: rgb(255 255 255 / .12); color: var(--accent); }
.medal-home-top { gap: .6rem; }
.medal-home-top li { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 6px; background: rgb(255 255 255 / .08); border-left: 3px solid var(--accent); }
.medal-home-top li > span:last-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.medal-home-top a { color: #fff; font-weight: 800; text-decoration: none; }
.medal-home-top small { font-size: .75rem; color: rgb(255 255 255 / .7); }

/* ---------- Buscador general ---------- */
.search-big { display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem .5rem 1.1rem; border-radius: 6px; background: #fff; border: 2px solid var(--navy); box-shadow: 0 18px 34px -28px rgb(6 26 46 / .7); }
.search-big .icon { color: var(--brand); flex: none; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: .6rem 0; background: transparent; }
.search-page { display: grid; gap: 1.2rem; }
.search-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; align-items: start; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; }
.search-list li a { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid #edf1f5; color: inherit; text-decoration: none; }
.search-list li:first-child a { border-top: 0; }
.search-list li a > span:last-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.search-list strong { color: var(--navy); font-weight: 700; line-height: 1.25; }
.search-list small { font-size: .78rem; color: var(--muted); }
.search-list img { width: 72px; height: 50px; flex: none; border-radius: 4px; object-fit: cover; }
.search-list .club-badge { width: 44px; height: 44px; font-size: 1rem; }
.search-list .champ-row-date { min-width: 52px; padding: .35rem; }
.search-list .champ-row-date strong { font-size: 1.3rem; }
.ath-card-head a { font-size: .8rem; font-weight: 700; color: var(--brand); text-decoration: none; }

/* ---------- Seguir (favoritos) ---------- */
.follow-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid #d3dde7; background: #fff; color: var(--navy); font: 800 .78rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.follow-btn .icon { color: #d9a400; }
.follow-btn.on { background: var(--accent); border-color: var(--accent); }
.follow-btn.on .icon { color: var(--navy); }
.follow-btn.light { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .4); color: #fff; }
.follow-btn.light.on { background: var(--accent); color: var(--navy); }
.ath-name { position: relative; }
.ath-follow { margin-top: .6rem; }

@media (max-width: 960px) {
    .rank-grid, .medal-home-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Portada: «La Federación» con más estilo ---------- */
.fed-section { position: relative; isolation: isolate; background: linear-gradient(180deg, #f3f7fb, #fff); }
.fed-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; filter: invert(1); opacity: .05; }
.fed-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.fed-lead { max-width: 52ch; font-size: 1.05rem; }
.fed-office { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-top: 1.6rem; border: 0; border-radius: 6px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 50px -34px rgb(6 26 46 / .8); border-top: 0; border-left: 5px solid var(--accent); }
.fed-map { height: 100%; min-height: 260px; }
.fed-office-info { position: relative; isolation: isolate; align-content: center; gap: .75rem; padding: 1.4rem 1.3rem; color: #fff; }
.fed-office-info::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .6; }
.fed-office-info p { color: rgb(255 255 255 / .85); font-size: .9rem; }
.fed-office-info p .icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; margin-top: -.2rem; border-radius: 4px; background: var(--accent); color: var(--navy); }
.fed-office-info a { color: #fff; }
.fed-office-actions { margin-top: .6rem; }
.fed-office-actions .btn.ghost { background: transparent; border: 1px solid rgb(255 255 255 / .5); color: #fff; }
.fed-office-actions .btn.ghost:hover { border-color: #fff; }

.fed-side { display: grid; gap: .9rem; }
.fed-links { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; border: 0; }
.fed-links li { border: 0 !important; }
.fed-links a { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); text-decoration: none; box-shadow: 0 14px 28px -26px rgb(6 26 46 / .6); transition: transform .2s, border-color .2s, box-shadow .2s; }
.fed-links a:hover { transform: translateX(4px); border-left-color: var(--accent); box-shadow: 0 20px 34px -26px rgb(6 26 46 / .7); }
.fed-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 4px; background: var(--navy); color: var(--accent); transition: background .2s, color .2s; }
.fed-links a:hover .fed-ico { background: var(--accent); color: var(--navy); }
.fed-txt { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.fed-txt strong { font: 800 1.2rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.fed-txt span { font-size: .85rem; color: var(--muted); }
.fed-go { flex: none; color: #9fb0c2; transition: color .2s, transform .2s; }
.fed-links a:hover .fed-go { color: var(--brand); transform: translateX(3px); }

@media (max-width: 960px) {
    .fed-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 720px) {
    .fed-office { grid-template-columns: minmax(0, 1fr); }
    .fed-map { min-height: 190px; }
}
.fed-links li a { flex-direction: row; align-items: center; text-align: left; justify-content: flex-start; padding: .95rem 1.1rem; }
.fed-links li a > * { margin: 0; }
.fed-links span.fed-ico { color: var(--accent); }
.fed-links a:hover span.fed-ico { color: var(--navy); }

/* ---------- Esqueleto de resultados ---------- */
.res-skel { display: grid; gap: .8rem; }
.res-skel .sk { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #e9eef4 0%, #f6f9fc 40%, #e9eef4 80%) 0 0 / 300% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.res-skel .w20 { width: 20%; } .res-skel .w30 { width: 30%; } .res-skel .w40 { width: 40%; } .res-skel .w50 { width: 50%; }
.res-skel-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1px; border-radius: 6px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.res-skel-head { display: grid; gap: .7rem; align-content: start; padding: 1.2rem 1.4rem; background: var(--navy); }
.res-skel-head .sk { background: linear-gradient(90deg, rgb(255 255 255 / .1) 0%, rgb(255 255 255 / .22) 40%, rgb(255 255 255 / .1) 80%) 0 0 / 300% 100%; }
.res-skel .h-title { height: 34px; }
.res-skel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .4rem; }
.res-skel .h-stat { height: 58px; }
.res-skel-medals { display: grid; gap: .55rem; padding: 1rem 1.2rem; background: #fff; }
.res-skel .h-row { height: 22px; }
.res-skel .h-filter { height: 52px; border-radius: 6px; }
.res-skel .h-day { height: 44px; border-radius: 6px; background: linear-gradient(90deg, #0c2744 0%, #1a3d63 40%, #0c2744 80%) 0 0 / 300% 100%; }
.res-skel-race { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: .9rem; align-items: start; }
.res-skel .h-time { height: 22px; margin-top: .8rem; }
.res-skel-card { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: .8rem; align-items: center; padding: .6rem .8rem; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.res-skel-title { display: grid; gap: .45rem; }
.res-skel-title .sk { width: 100%; }
.res-skel .h-small { height: 10px; width: 50%; }
.res-skel-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.res-skel .h-medal { height: 40px; }
.res-skel-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.spin { animation: spin 1s linear infinite; }
@media (max-width: 720px) {
    .res-skel-dash, .res-skel-card { grid-template-columns: minmax(0, 1fr); }
    .res-skel-race { grid-template-columns: minmax(0, 1fr); }
    .res-skel .h-time { width: 60px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .res-skel .sk { animation: none; } }

/* ---------- «La Federación» compacta ---------- */
.fed-section { padding-block: 3.5rem; }
.fed-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; }
.fed-section .home-title { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.fed-lead { margin: .5rem 0 0; font-size: .95rem; }
.fed-office { margin-top: 1.1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fed-map { min-height: 210px; }
.fed-office-info { gap: .5rem; padding: 1rem 1.1rem; }
.fed-office-info p { font-size: .84rem; gap: .5rem; }
.fed-office-info p .icon { width: 26px; height: 26px; padding: 5px; }
.fed-office-actions { gap: .4rem; margin-top: .3rem; }
.fed-office-actions .btn { padding: .5rem .8rem; font-size: .85rem; }
.fed-side { display: flex; flex-direction: column; gap: .6rem; }
.fed-links { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: .55rem; }
.fed-links li a { position: relative; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .5rem; height: 100%; padding: .9rem 1rem; border-left: 1px solid var(--line); border-top: 3px solid var(--brand); }
.fed-links li a:hover { transform: translateY(-2px); padding-left: 1rem; border-top-color: var(--accent); }
.fed-ico { width: 40px; height: 40px; }
.fed-txt strong { font-size: 1.05rem; }
.fed-txt span { font-size: .78rem; line-height: 1.3; }
.fed-go { position: absolute; top: .9rem; right: .9rem; }
/* El último acceso (Clubes) va a lo ancho y en azul marino */
.fed-links li:last-child { grid-column: 1 / -1; }
.fed-links li:last-child a { flex-direction: row; align-items: center; position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border-color: var(--navy); border-top-color: var(--accent); }
.fed-links li:last-child a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines) center / cover; opacity: .6; }
.fed-links li:last-child .fed-txt strong { color: #fff; }
.fed-links li:last-child .fed-txt span { color: rgb(255 255 255 / .75); }
.fed-links li:last-child span.fed-ico { background: var(--accent); color: var(--navy); }
.fed-links li:last-child .fed-go { position: static; color: var(--accent); }
@media (max-width: 720px) {
    .fed-office { grid-template-columns: minmax(0, 1fr); }
    .fed-links { grid-template-columns: minmax(0, 1fr); }
    .fed-links li a { flex-direction: row; align-items: center; }
    .fed-go { position: static; margin-left: auto; }
}
@media (max-width: 720px) { .newsletter-fields { grid-template-columns: minmax(0, 1fr); } .fed-map { overflow: hidden; } }
@media (max-width: 960px) { .fed-grid { grid-template-columns: minmax(0, 1fr); } }
/* Cabecera: con la estrella de favoritos el menú tiene que seguir cabiendo en una línea */
@media (min-width: 1121px) { .header-row { gap: 1rem; } .nav-list { flex-wrap: nowrap; } .nav-list > li > a { padding-inline: .55rem; font-size: .96rem; } .header-search { width: 40px; height: 40px; } .header-actions { gap: .4rem; } }
@media (min-width: 1121px) and (max-width: 1360px) { .nav-list > li > a { padding-inline: .4rem; font-size: .9rem; } .header-actions .btn, .header-actions a { padding-inline: .7rem; } }

.ncover {
    position: absolute; inset: 0; isolation: isolate; overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(120% 90% at 30% 10%, #16365a 0%, var(--navy) 60%, #071a2e 100%);
}
.ncover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-lines); background-size: 220px auto; opacity: .9; }
.ncover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--brand) 70%); }
.ncover img { width: 54%; max-width: 190px; height: auto; opacity: .95; }
.ncover__k {
    position: absolute; left: 12px; top: 12px;
    padding: 4px 9px; border-radius: 4px;
    background: var(--brand); color: #fff;
    font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
/* ---------- Actualidad: carrusel de noticias (Components/NewsCarousel.razor, js/news-carousel.js), copiado del rediseño de FETRI ----------
   Una noticia grande cada vez con la foto a todo el ancho, degradado oscuro, fecha en caja oscura, tipo en pastilla
   roja, titular en grande y «Leer noticia» en dorado; franja roja y dorada al pie. Debajo, contador, puntos (móvil)
   o miniaturas con la barra de tiempo (desde 768 px) y el botón para parar el paso automático. */
.ncar { position: relative; font-family: var(--body); }
.ncar__stage {
    position: relative; overflow: hidden; border-radius: 16px; background: var(--navy);
    box-shadow: 0 10px 30px rgba(6, 26, 46, .22);
}
.ncar__stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 5px; pointer-events: none;
    background: linear-gradient(90deg, var(--brand) 0 72%, var(--accent) 72%);
}
.ncar__track {
    display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.ncar__track::-webkit-scrollbar { display: none; }
.ncar__slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
/* Alto fijo (MAP, 24-11: «usa un alto máximo») y la columna de la foto a la medida de la foto: su proporción (--ar,
   la pone el onload de la imagen) por el alto. El texto se queda con el resto, como mínimo --ncar-pmin; si la foto es
   tan ancha que no cabe, se queda entera (contain) con la difuminada en el hueco. Sin foto, 3:2. */
.ncar { --ncar-h: 420px; --ncar-pmin: 380px; }
.ncar__link {
    position: relative; isolation: isolate; display: grid; overflow: hidden;
    grid-template-columns: minmax(var(--ncar-pmin), 1fr) minmax(0, calc(var(--ncar-h) * var(--ar, 1.5)));
    height: var(--ncar-h); width: 100%;
    color: #fff; text-decoration: none;
}
.ncar__link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 16px; }
.ncar__media {
    position: relative; z-index: 0; grid-column: 2; grid-row: 1; overflow: hidden; min-height: 0; background: #071a2e;
    box-shadow: inset 4px 0 0 var(--brand);
}
.ncar__media .ncover { position: absolute; inset: 0; }
.ncar__media .ncover::after { display: none; }
.ncar__media .ncover { place-items: center; padding: 0; }
.ncar__media .ncover img { position: relative; width: 46%; max-width: 280px; }
.ncar__media .ncover__k { display: none; }
/* La foto entera (contain) y, detrás, la misma foto difuminada y oscurecida para llenar el hueco que deje */
.ncar__img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.ncar__bg {
    position: absolute; inset: -24px; z-index: 1; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover;
    filter: blur(22px) brightness(.45) saturate(1.1);
}
/* Fondo del panel de texto: el negro de la retransmisión con su textura y un brillo rojo abajo */
.ncar__shade {
    position: relative; z-index: 0; grid-column: 1; grid-row: 1; pointer-events: none;
    background: radial-gradient(120% 70% at 0% 100%, rgba(5, 105, 176, .28), rgba(5, 105, 176, 0) 70%), var(--navy);
}
.ncar__shade::before { content: ""; position: absolute; inset: 0; background: var(--tex-lines); background-size: 260px auto; opacity: .55; }
.ncar__body {
    position: relative; z-index: 3; grid-column: 1; grid-row: 1; min-width: 0; min-height: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
    padding: 32px 36px 84px 40px;
}
.ncar__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ncar__date {
    padding: 5px 10px; border-radius: 4px; background: rgba(255, 255, 255, .12); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    font-size: 12px; font-weight: 900; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.ncar__kick { padding: 5px 10px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ncar__title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: clamp(21px, .9rem + 1vw, 31px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em;
    text-wrap: balance;
}
.ncar__ex {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    color: rgba(255, 255, 255, .82); font-size: 14.5px; font-weight: 500; line-height: 1.45;
}
.ncar__go {
    display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-top: 4px;
    min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--navy);
    font-size: 13px; font-weight: 900; transition: background-color .15s ease, gap .15s ease;
}
.ncar__link:hover .ncar__go { background: #fff; gap: 13px; }
.ncar__link:hover .ncar__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ncar__arrow {
    position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background-color .15s ease, color .15s ease;
}
/* abajo, dentro del panel de texto, para no tapar la foto */
.ncar__arrow { top: auto; bottom: 24px; margin-top: 0; }
.ncar__arrow--prev { left: 40px; }
.ncar__arrow--next { left: 94px; }
.ncar__arrow:hover { background: var(--accent); color: var(--navy); box-shadow: none; }
.ncar__arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Barra de debajo: contador, puntos y pausa */
.ncar__bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ncar__count { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ncar__count b { color: var(--brand); font-size: 18px; font-weight: 900; }
.ncar__dots { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ncar__dot {
    position: relative; width: 26px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.ncar__dot::before { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 4px; border-radius: 2px; background: #D3D5DC; transition: background-color .2s ease; }
.ncar__dot[aria-current="true"]::before { background: var(--brand); }
.ncar__dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-radius: 4px; }
.ncar__pause {
    display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border: 0; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 13px; cursor: pointer;
}
.ncar__pause:hover { background: var(--brand); }
.ncar__pause:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Miniaturas (desde 768 px) */
.ncar__thumbs {
    display: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 8px;
    margin: 10px 0 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin;
}
.ncar__thumb {
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-height: 64px;
    padding: 8px 10px 10px 8px; border: 0; border-radius: 10px; overflow: hidden;
    background: #fff; color: var(--navy); text-align: left; cursor: pointer;
    box-shadow: 0 1px 2px rgba(6, 26, 46, .06), inset 0 0 0 1px #ECECF0;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.ncar__thumb:hover { box-shadow: 0 6px 16px rgba(6, 26, 46, .12), inset 0 0 0 1px #DCDCE2; }
.ncar__thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ncar__thumb[aria-current="true"] { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(6, 26, 46, .25); }
.ncar__tn { position: relative; flex: 0 0 auto; width: 64px; height: 46px; overflow: hidden; border-radius: 6px; background: var(--navy); }
.ncar__tn .ncover::after, .ncar__tn .ncover::before { display: none; }
.ncar__tn .ncover img { width: 70%; }
.ncar__tn > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ncar__tt { display: grid; gap: 2px; min-width: 0; }
.ncar__tt small { color: #8A8A95; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.ncar__thumb[aria-current="true"] .ncar__tt small { color: var(--accent); }
.ncar__tt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 800; line-height: 1.25; }
/* Barra de tiempo de la que se ve (solo con el paso automático) */
.ncar__prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.ncar__thumb[aria-current="true"] .ncar__prog { width: 100%; background: rgba(253, 215, 6, .25); }
.ncar[data-auto][data-prog] .ncar__thumb[aria-current="true"] .ncar__prog::after {
    content: ""; position: absolute; inset: 0; transform-origin: left; background: var(--accent);
    animation: ncar-prog var(--ncar-ms, 7000ms) linear forwards;
}
.ncar[data-paused] .ncar__thumb[aria-current="true"] .ncar__prog::after { animation-play-state: paused; }
@keyframes ncar-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 768px) {
    .ncar__thumbs { display: grid; }
    .ncar__dots { visibility: hidden; }
    /* Todo en un mismo marco oscuro (MAP, 24-11: «más integrado»): la noticia grande arriba, las 5 miniaturas pegadas
       debajo en el mismo fondo, a todo el ancho y sin barra de desplazamiento, y el contador y la pausa junto a las
       flechas, dentro del panel del texto */
    .ncar {
        overflow: hidden; border-radius: 16px; background: var(--navy);
        box-shadow: 0 10px 30px rgba(6, 26, 46, .22);
    }
    .ncar__stage { border-radius: 0; box-shadow: none; }
    .ncar__bar {
        position: absolute; z-index: 6; top: calc(var(--ncar-h) - 70px); left: 152px; margin: 0; gap: 10px;
    }
    .ncar__dots { display: none; }
    .ncar__count { color: rgba(255, 255, 255, .6); }
    .ncar__count b { color: var(--accent); }
    .ncar__pause {
        width: 46px; height: 46px; margin-left: 0; background: rgba(255, 255, 255, .16);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    }
    .ncar__pause:hover { background: var(--accent); color: var(--navy); box-shadow: none; }
    .ncar__thumbs {
        grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; overflow: visible;
        background: radial-gradient(80% 140% at 50% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%), var(--navy);
    }
    .ncar__thumbs li + li .ncar__thumb { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .1); }
    .ncar__thumb,
    .ncar__thumbs li .ncar__thumb:hover {
        min-height: 76px; padding: 12px 12px 14px; border-radius: 0; background: transparent; color: rgba(255, 255, 255, .78);
    }
    .ncar__thumb:hover { background: rgba(255, 255, 255, .06); color: #fff; }
    .ncar__thumbs li .ncar__thumb:hover { background: rgba(255, 255, 255, .06); color: #fff; }
    .ncar__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .ncar__thumbs li .ncar__thumb[aria-current="true"] { background: rgba(255, 255, 255, .11); color: #fff; }
    .ncar__tt small { color: rgba(255, 255, 255, .5); }
    .ncar__tn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
    /* la barra de tiempo, arriba de la miniatura que se ve, pegada a la raya roja y dorada de la noticia */
    .ncar__prog { top: 0; bottom: auto; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .ncar__bar { left: 140px; }
    .ncar__tn { display: none; }
}
@media (max-width: 1199.98px) {
    .ncar { --ncar-h: 380px; --ncar-pmin: 340px; }
}
@media (max-width: 991.98px) {
    .ncar { --ncar-h: 340px; --ncar-pmin: 300px; }
    .ncar__body { gap: 10px; padding: 24px 24px 80px 28px; }
    .ncar__ex { -webkit-line-clamp: 2; }
    .ncar__arrow--prev { left: 28px; }
    .ncar__arrow--next { left: 82px; }
}
@media (max-width: 767.98px) {
    .ncar__stage { border-radius: 14px; }
    /* En el móvil, la foto entera arriba (3:2) y el texto debajo */
    .ncar__link { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%; }
    /* la foto con su proporción, con un alto máximo (si es más alta, entera con la difuminada a los lados) */
    .ncar__media { grid-column: 1; grid-row: 1; aspect-ratio: var(--ar, 1.5); max-height: 280px; box-shadow: inset 0 -4px 0 var(--brand); }
    .ncar__shade { grid-column: 1; grid-row: 2; }
    .ncar__body { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 10px; padding: 16px 16px 24px; }
    .ncar__title { -webkit-line-clamp: 4; font-size: 21px; }
    .ncar__ex { display: none; }
    .ncar__go { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
    .ncar__media .ncover img { width: 42%; }
    /* En el móvil se desliza con el dedo: sin flechas encima de la foto */
    .ncar__arrow { display: none; }
    .ncar__bar { gap: 8px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .ncar__track { scroll-behavior: auto; }
}

/* Ajustes FPPA: titular en la letra de los títulos, esquinas de 6 px, botón de pausa con icono SVG */
.ncar__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(24px, 1rem + 1.2vw, 36px); line-height: 1.02; }
.ncar__stage, .ncar__link:focus-visible { border-radius: 6px; }
.ncar__go .icon { transition: transform .15s; }
.ncar__link:hover .ncar__go .icon { transform: translateX(3px); }
.ncar__pause .i-play, .ncar:not([data-auto]) .ncar__pause .i-pause { display: none; }
.ncar:not([data-auto]) .ncar__pause .i-play { display: inline-flex; }
.ncar__pause span { display: inline-flex; }
.ncover img { filter: drop-shadow(0 4px 10px rgb(0 0 0 / .3)); }
.ncar .off { display: none; }
@media (min-width: 768px) { .ncar { border-radius: 6px; } }


/* ---------- Portada configurable: cabecera, actualidad, circulares, clubes y animaciones (26/11/2026) ---------- */
.btn-sea.small { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.hero-media figcaption, .hero .motion-toggle { display: none; }

/* Animaciones: siempre en marcha; el botón para pararlas va en el pie */
.motion-switch { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; background: transparent; color: rgb(255 255 255 / .75); font: 600 .78rem/1 var(--body); cursor: pointer; }
.motion-switch:hover { color: #fff; border-color: rgb(255 255 255 / .6); }
.motion-switch .when-off, html.motion-paused .motion-switch .when-on { display: none; }
html.motion-paused .motion-switch .when-off { display: inline-flex; align-items: center; gap: .35rem; }
.motion-switch .when-on { display: inline-flex; align-items: center; gap: .35rem; }

/* Actualidad (carrusel) */
.news-home { padding-block: 4.5rem 4rem; background: #f3f7fb; }
.news-home .home-head { margin-bottom: 1.6rem; }

/* Documentos y circulares */
.circ-home { padding-block: 4.5rem; background: #fff; }
.circ-home .home-head { margin-bottom: 1.6rem; }
.circ-home-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: .8rem; }
.circ-home-list a { display: flex; align-items: center; gap: 1rem; height: 100%; padding: .9rem 1rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.circ-home-list a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 28px -24px rgb(6 26 46 / .6); }
.circ-home-date { display: grid; place-items: center; width: 58px; flex: none; padding: .4rem 0; border-radius: 4px; background: var(--navy); color: #fff; line-height: 1; }
.circ-home-date strong { font: 800 1.6rem/1 var(--display); color: var(--accent); }
.circ-home-date small { margin-top: .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.circ-home-body { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.circ-home-body strong { font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.circ-home-area { align-self: flex-start; padding: .12rem .45rem; border-radius: 3px; background: #eef4fa; color: var(--brand); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.circ-home-go { flex: none; color: #9fb0c2; }
.circ-home-list a:hover .circ-home-go { color: var(--brand); }

/* Clubes destacados (carrusel) */
.clubs-home { padding-block: 4.5rem; background: var(--navy); background-image: var(--tex-lines); background-size: cover; color: #fff; }
.clubs-home .home-title { color: #fff; }
.clubs-home .home-head { margin-bottom: 1.6rem; }
.clubs-home-nav { display: flex; align-items: center; gap: .5rem; }
.clubs-home-nav .link-under { color: var(--accent); margin-right: .6rem; }
.clubs-home-nav button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; }
.clubs-home-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.clubs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 4 * 1rem) / 5)); gap: 1rem; margin: 0; padding: 0 0 .6rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .3) transparent; }
.clubs-rail > li { scroll-snap-align: start; }
.club-slide { display: flex; flex-direction: column; align-items: center; gap: .45rem; height: 100%; padding: 1.4rem 1rem 1.2rem; border-radius: 6px; background: #fff; color: var(--ink); text-align: center; text-decoration: none; border-top: 4px solid var(--accent); transition: transform .2s, box-shadow .2s; }
.club-slide:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .6); }
.club-slide .club-badge.large { width: 96px; height: 96px; font-size: 2rem; margin-bottom: .4rem; }
.club-slide strong { font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.club-slide small { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .8rem; }
.club-slide-facts { margin-top: auto; padding-top: .4rem; font-size: .8rem; color: var(--ink-2); }
.club-slide-facts b { color: var(--brand); }

@media (max-width: 720px) {
    .news-home, .circ-home, .clubs-home { padding-block: 3rem; }
    .clubs-home-nav button { display: none; }
    .clubs-rail { grid-auto-columns: 72%; }
}

/* ---------- Resultados internacionales (ICF) en la ficha del palista ---------- */
.icf-card { margin-top: 1.5rem; }
.icf-card .ath-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.icf-source { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 4px; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.icf-source:hover { background: var(--accent); color: var(--navy); }
.icf-kpis { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .4rem 0 .9rem; font-size: .88rem; color: var(--muted); }
.icf-kpis b { font: 800 1.3rem/1 var(--display); color: var(--navy); margin-right: .2rem; }
.icf-table td.date { color: var(--muted); white-space: nowrap; }
.icf-empty { margin: .4rem 0; color: var(--muted); }
.icf-note { margin: .8rem 0 0; font-size: .76rem; color: var(--muted); }
.ath-photo img { width: 100%; height: 100%; object-fit: cover; }
.icf-more { margin-top: .8rem; }

/* Deportistas destacados: los mejores palistas de la temporada */
.top-paddler-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .7rem; margin-top: .4rem; font-size: .82rem; color: rgb(255 255 255 / .85); }
.top-paddler-foot b { font: 800 1.35rem/1 var(--display); color: var(--accent); margin-right: .15rem; }
.top-paddler-foot small { color: rgb(255 255 255 / .6); }
