/* Más Deporte · image-led hero. Full original remains available in the image viewer. */
.md-site.single-md_evento {--md-hero-height:clamp(560px,68vh,760px);--md-hero-shade:oklch(12% .008 100 / .92);}
.md-site.single-md_evento #page-container #main-content .md-event-hero {padding-top:0!important;}
.md-site.single-md_evento #page-container #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) {display:grid;grid-template-columns:minmax(0,1fr);gap:0;isolation:isolate;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:first-child {display:contents;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:first-child > .et_pb_module {grid-column:1;width:100%;margin:0!important;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster)::before {content:"";grid-area:1/1;align-self:stretch;z-index:1;pointer-events:none;background:linear-gradient(90deg,var(--md-hero-shade),var(--color-scrim) 38%,var(--color-clear) 80%);}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:first-child > .et_pb_module:has(h1) {grid-area:1/1;align-self:center;width:58%;padding:clamp(24px,4vw,64px);z-index:2;pointer-events:none;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) h1 {font-size:clamp(40px,4.8vw,76px)!important;line-height:1.05;margin:0!important;max-width:17ch;letter-spacing:-.035em;overflow-wrap:anywhere;color:var(--color-white);text-wrap:balance;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:last-child {grid-area:1/1;align-self:stretch;width:100%;padding:0;z-index:0;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-poster {width:100%;max-width:none;margin:0;position:relative;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-poster-media {aspect-ratio:auto!important;height:var(--md-hero-height);max-height:none;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-poster-media img {display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:65% 45%;aspect-ratio:auto;}
.md-site.single-md_evento #main-content .md-row:has(h1) > .md-col:last-child:has(.md-event-poster) {z-index:auto;}
.md-poster-full {position:absolute;right:24px;bottom:24px;z-index:3;padding:12px 18px;min-height:44px;background:var(--color-paper);color:var(--color-ink)!important;font:600 14px/1.4 var(--font-body);border-radius:99px;text-decoration:none;}
.md-poster-full:hover {background:var(--color-white);text-decoration:underline;}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-brand) {background:var(--color-paper);}
.md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-brand) h1 {color:var(--color-ink);}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-brand {height:var(--md-hero-height);aspect-ratio:auto;border-radius:0;justify-items:end;padding-right:10%;background:var(--color-surface);}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-brand img {width:32%;max-width:320px;mix-blend-mode:multiply;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,2.2fr) minmax(0,.9fr);gap:var(--space-lg);margin:var(--space-lg) 0 var(--space-md);padding:0;border:0;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data > div {grid-column:auto;min-width:0;}
.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data dd {font-size:16px;line-height:1.6;}
.md-site.single-md_evento #main-content .md-event-jumps {margin-top:var(--space-md);}
.md-results-menu {position:relative;}
.md-results-menu > summary {cursor:pointer;list-style:none;font-size:15px;font-weight:600;min-height:48px;display:flex;align-items:center;}
.md-results-menu > summary::-webkit-details-marker {display:none;}
.md-results-menu[open] > div {position:absolute;top:100%;left:0;z-index:10;width:min(480px,80vw);background:var(--color-white);padding:var(--space-md);box-shadow:0 12px 32px var(--color-scrim-light);}
.md-results-menu p {font-size:14px;}
.md-site.single-md_evento #main-content .md-results-menu .md-guide-action {font-size:14px;line-height:1.5;}
.md-event-overview-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-xl);}
.md-event-overview-grid h2,.md-site.single-md_evento #main-content .md-event-route h2 {font-size:clamp(28px,3vw,40px)!important;letter-spacing:-.03em;margin-bottom:24px;}
.md-event-overview-grid .md-source-content summary {font-size:18px;}
.md-site.single-md_evento #page-container #main-content .md-event-overview,.md-site.single-md_evento #page-container #main-content .md-event-route,.md-site.single-md_evento #page-container #main-content .md-event-compact {padding-block:24px!important;}
.md-event-overview:not(:has(.md-event-overview-grid)),.md-event-route:not(:has(h2)),.md-event-compact:not(:has(.md-event-detail)) {display:none;}
.md-event-detail {border-bottom:1px solid var(--color-rule);padding:24px 0;scroll-margin-top:110px;}
.md-event-detail > summary {display:flex;align-items:center;justify-content:space-between;gap:24px;cursor:pointer;list-style:none;min-height:44px;}
.md-event-detail > summary::-webkit-details-marker {display:none;}
.md-event-detail > summary::after {content:"+";font-size:28px;flex-shrink:0;}
.md-event-detail[open] > summary::after {content:"−";}
.md-site.single-md_evento #main-content .md-event-detail > summary h2 {font-size:clamp(24px,2.5vw,34px)!important;margin:0;letter-spacing:-.025em;}
.md-event-detail-body {padding-top:24px;}
.md-event-detail-body > p {max-width:72ch;}
.md-image-dialog {position:fixed;inset:0;width:min(1200px,96vw);max-width:96vw;height:94vh;max-height:94vh;margin:auto;padding:56px 16px 16px;border:0;background:var(--color-paper);color:var(--color-ink);}
.md-image-dialog::backdrop {background:var(--color-scrim);}
.md-image-dialog img {display:block;width:100%;height:100%;object-fit:contain;}
.md-image-dialog button {position:absolute;right:16px;top:8px;min-height:44px;padding:8px 16px;background:var(--color-ink);color:var(--color-white);border:0;border-radius:99px;cursor:pointer;}
.md-image-dialog button:focus-visible {outline:3px solid var(--color-focus);outline-offset:3px;}
@media(max-width:1024px){
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data {grid-template-columns:repeat(2,minmax(0,1fr));}
 .md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:first-child > .et_pb_module:has(h1) {width:68%;}
}
@media(max-width:767px){
 .md-site.single-md_evento {--md-hero-height:560px;}
 .md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster)::before {background:linear-gradient(0deg,var(--md-hero-shade),var(--color-scrim) 40%,var(--color-clear) 80%);}
 .md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) > .md-col:first-child > .et_pb_module:has(h1) {width:100%;align-self:end;padding:24px 24px 96px;}
 .md-site.single-md_evento #main-content .md-row:has(h1):has(.md-event-poster,.md-event-brand) h1 {font-size:clamp(32px,8.2vw,48px)!important;max-width:none;}
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-poster-media img {object-position:58% 30%;}
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-event-brand {align-items:start;justify-items:center;padding:48px 24px;}
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-event-brand img {width:65%;max-width:220px;}
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data {gap:var(--space-md);}
 .md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data > div:nth-child(3) {grid-column:1/-1;}
 .md-event-overview-grid {grid-template-columns:minmax(0,1fr);gap:32px;}
 .md-results-menu[open] {flex-basis:100%;}
 .md-results-menu[open] > div {position:static;width:100%;margin-top:8px;}
}
@media(max-width:374px){.md-site.single-md_evento #main-content .md-row:has(h1) .md-event-data {grid-template-columns:minmax(0,1fr);}}

/* Touch-friendly section links; keep full editorial titles and translated labels. */
.md-site.single-md_evento #main-content .md-event-jumps a {display:inline-flex;align-items:center;min-height:44px;max-width:100%;}
.md-site.single-md_evento #main-content .md-event-actions > a {max-width:100%;}
@media(max-width:767px){
 .md-site.single-md_evento #main-content .md-event-jumps {gap:4px 22px;}
 .md-site.single-md_evento #main-content .md-event-actions > a {overflow-wrap:anywhere;}
}
