:root{color-scheme:light;--ink:#152b40;--dark:#102438;--ice:#bfe7f3;--paper:#edf1f4;--line:#c3d0db}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif}
a{color:inherit;text-underline-offset:.25em}
a:focus-visible{outline:3px solid #e98b39;outline-offset:4px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.04;letter-spacing:-.04em}
h2{font-size:clamp(2rem,4.4vw,4rem)}
h3{font-size:1.35rem}
.wrap{width:min(1120px,calc(100% - 2.5rem));margin-inline:auto}
.skip{position:absolute;left:1rem;top:-10rem;background:white;color:black;padding:.65rem;z-index:5}
.skip:focus{top:1rem}
header,footer,.programme{background:var(--dark);color:white}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding-block:1.15rem}
.brand{display:grid;place-items:center;flex:none;width:7rem;height:6.25rem}
.brand img{width:100%;height:100%;object-fit:contain}
nav{display:flex;gap:clamp(.65rem,2.4vw,1.8rem);flex-wrap:wrap}
nav a{text-decoration:none}
nav a:hover{text-decoration:underline}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--ice);color:var(--dark);padding:.65rem 1.15rem;border-radius:.25rem;font-weight:800;text-decoration:none}
.button:hover{background:#def4fb}
.hero{position:relative;isolation:isolate;overflow:hidden;color:white;background:#203547;min-height:54vw;padding-block:clamp(4rem,10vw,8rem)}
.hero::before,.hero::after{content:'';position:absolute;inset:0;pointer-events:none}
.hero::before{z-index:-2;background:url('imagenes/portada-utrillas.jpg') center 68%/cover no-repeat}
.hero::after{z-index:-1;background:linear-gradient(90deg,rgba(10,25,42,.9),rgba(10,25,42,.59) 38%,rgba(10,25,42,.18) 68%,rgba(10,25,42,.12))}
.eyebrow{font-size:.875rem;letter-spacing:.11em;font-weight:850;color:var(--ice)}
.eyebrow span{padding-inline:.25em}
h1{font-size:clamp(3.1rem,9vw,8.5rem);margin:.65rem 0 1.25rem;font-weight:900}
.intro{max-width:31rem;font-size:clamp(1.05rem,2vw,1.35rem);margin-bottom:1.5rem}
.strip{background:var(--ice)}
.strip .wrap{display:flex;flex-wrap:wrap;gap:.45rem 2rem;padding-block:1rem}
.panel{padding-block:clamp(2.75rem,7vw,5.25rem)}
.lead{margin-top:.8rem;max-width:47rem}
.routes,.days,.practical{display:grid;gap:1rem;margin-top:1.6rem}
.routes,.practical{grid-template-columns:repeat(3,minmax(0,1fr))}
.routes article{padding:1.25rem;background:#fff;border-top:4px solid #487a9d}
.distance{font-size:clamp(2.5rem,5vw,4.35rem);line-height:1;color:#255879;font-weight:900;letter-spacing:-.06em;margin-bottom:.65rem}
.distance span{font-size:.46em;letter-spacing:normal}
article p:not(.distance):not(.eyebrow){margin-top:.45rem}
.days{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.days article{padding:1.2rem;border:1px solid #bdd5e7;background:#dcebf7;color:#102438}
.days h3{margin-top:.55rem}
article a{display:inline-block;margin-top:.7rem;font-weight:750}
.programme .days .eyebrow,.days a{color:#224f6f}
.extras{margin-top:1.25rem;max-width:52rem}
.practical article{border-top:1px solid var(--line);padding-top:1rem}
footer .bar{flex-wrap:wrap}
footer p{max-width:32rem}
.archive{background:#dce7ee}
.photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.6rem 0 1.25rem}
.photos figure{margin:0}
.photos img{display:block;width:100%;height:auto;border-radius:.35rem}
.archive .button{background:#14334c;color:white}
.archive .button:hover{background:#265577}
@media(max-width:680px){
 .hero::before{background-position:82% center}
 .brand{width:5.5rem;height:5rem}
 .photos{grid-template-columns:1fr}
 header .bar{flex-wrap:wrap;gap:.7rem 1rem}
 header nav{order:3;flex-basis:100%}
 .routes{grid-template-columns:repeat(2,minmax(0,1fr))}
 .days,.practical{grid-template-columns:1fr}
 .routes article{padding:.75rem}
 .routes h3{font-size:1.1rem;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:root{--gold:#ffdf80}
.hero-lockup{width:max-content;max-width:100%}
.hero h1{margin-bottom:.55rem;font-size:clamp(2.65rem,9vw,8.5rem);text-shadow:0 .06em .26em #071323}
.hero .eyebrow,.programme .eyebrow{color:var(--gold)}
.challenge{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:clamp(.65rem,2vw,1.35rem);contain:inline-size;margin:0 0 1.15rem}
.challenge span{font:italic 900 clamp(1.25rem,3.8vw,3.4rem)/1 Impact,"Arial Narrow",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#d31040;transform:translateY(.075em);text-shadow:0 1px 5px #071323}
.hero-actions{display:flex;align-items:center;gap:1rem 1.4rem;flex-wrap:wrap;font-weight:750}
.hero-actions .button{background:var(--gold)}
.hero-actions .button:hover{background:#ffebb4}
.strip{background:#c9e8ed;border-top:4px solid var(--gold)}
.fair{margin-top:1.25rem;padding:1.35rem;background:#184255;border-left:4px solid var(--gold)}
.fair h3{margin-top:.4rem}
.poster{display:grid;grid-template-columns:1fr minmax(12rem,22rem);align-items:start;gap:1.8rem 3rem}
.poster .button{margin-top:1rem}
.poster-image{display:block;width:min(100%,22rem)}
.poster-image img{display:block;width:100%;height:auto;border-radius:.35rem}
@media(max-width:680px){.poster{grid-template-columns:1fr}}
.challenge img{display:block;width:100%;height:auto}
.race-mark,.fam-mark,.fatri-mark{display:block;margin-top:.75rem;border-radius:.2rem}
.routes article:has(> .race-mark){display:flex;flex-direction:column;align-items:flex-start}
.routes p:has(+ .race-mark){margin-bottom:.75rem}
.race-mark{width:min(100%,8.75rem);height:auto;margin-top:auto}
.fam-mark{width:2.4rem;height:auto}
.fatri-mark{width:7.25rem;height:auto}
.partners{background:#dce7ee}
.partners h2{font-size:clamp(1.7rem,3vw,2.7rem)}
.logo-grid{display:grid;list-style:none;padding:0;gap:.65rem;margin:1rem 0 2rem}
.logo-grid:last-child{margin-bottom:0}
.organisers{grid-template-columns:repeat(2,minmax(0,1fr));max-width:33rem}
.collaborators{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
.logo-grid li{display:grid;place-items:center;min-height:5rem;background:#c5cbd6;border-radius:.25rem;padding:.5rem}
.logo-grid img{display:block;width:auto;height:auto;max-height:4rem;max-width:100%;object-fit:contain}
.organisers img{max-height:5rem}
.fam-mark{width:min(100%,9.5rem)}
.logo-grid li{background:white}
.logo-grid img{max-height:3.6rem;max-width:min(100%,10rem)}
.organisers img{max-height:5rem}
.routes .school{background:#dcebf7;border-top-color:#41698d}
.routes .walk{background:#d8eee9;border-top-color:#267762}
.distance span{margin-left:.06em}
.programme-mark{width:min(100%,13rem)}
.registration-status{color:#255879;font-weight:850;letter-spacing:.07em}
.announcement{margin-top:1.75rem;background:#dcebf7;border-left:4px solid #41698d;padding:1.1rem 1.25rem}
.announcement time,.announcement a{font-weight:750}
.announcement h2{margin:.35rem 0;font-size:clamp(1.35rem,3vw,2rem)}
.announcement a{display:inline-block;margin-top:.4rem}
.route-sheet-link{align-self:flex-start;color:#224f6f}
.track-section{background:#dce7ee}
.track-list{display:grid;gap:.7rem;margin-top:1.55rem}
.track{background:#f7fbff;border:1px solid #b2c8d7;border-radius:.4rem;padding:1rem}
.track summary{cursor:pointer;font-size:1.1rem}
.track summary strong{color:#235676;margin-right:.5rem}
.track[open] summary{margin-bottom:.55rem}
.track-sheet{display:block;margin-top:1rem}
.track-sheet img{display:block;width:100%;height:auto;border-radius:.4rem}
.track-actions{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;margin-top:1rem}
.track-actions a{font-weight:750;color:#224f6f}
