/* ==================================================================
 * Portada MMLM 2027 — Boreal Studio
 * Identidad: «Nadie le gana a quien no se detiene.» (Medio Maratón LM Kit 2027)
 * ================================================================== */

/* ------------------------------------------------------------------
 * IDENTIDAD 2027 — colores y tipografías del manual.
 * Negro y rojo mandan; los colores de apoyo solo en el «aura de llegada».
 * ---------------------------------------------------------------- */
.mmlm-home {
	--brand: #B3202A;          /* Rojo */
	--brand-strong: #8F1921;   /* Rojo (hover) */
	--ink: #141414;            /* Negro */
	--paper: #ffffff;
	--paper-2: #f4f2ee;        /* Fondo claro alterno */
	--muted: #5c5a56;
	--line: rgba(20, 20, 20, .12);
	--on-dark: #ffffff;
	--on-dark-2: #EFE3C8;      /* Crema para texto secundario sobre negro */
	--segment-off: #CDD3DB;    /* Segmentos pendientes (barra de 21) */
	/* Apoyo — solo «aura de llegada» */
	--aura-1: #B65A32;
	--aura-2: #C9A45C;
	--aura-3: #EFE3C8;
	--aura-4: #1F5A49;
	--font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
	--font-body: "Lato", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 4px;             /* Gráfica sobria y pesada: esquinas casi rectas */
	--photo: grayscale(1) contrast(1.12) brightness(.92); /* Foto en blanco y negro */
}
/* ---------------- fin de IDENTIDAD ---------------- */

.mmlm-home { font-family: var(--font-body); color: var(--ink); background: var(--paper); overflow-x: clip; font-size: 17px; line-height: 1.6; }
.mmlm-home *, .mmlm-home *::before, .mmlm-home *::after { box-sizing: border-box; }
.mmlm-home img { max-width: 100%; height: auto; display: block; }
.mmlm-home h1, .mmlm-home h2, .mmlm-home h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; margin: 0; color: inherit; }
.mmlm-home h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.mmlm-home p { margin: 0; }
.h-section { padding: clamp(64px, 9vw, 120px) 16px; max-width: 1200px; margin: 0 auto; }
.h-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.h-head-left { text-align: left; margin: 0 0 28px; }
.h-eyebrow { font-size: .8rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px !important; }
.h-lead { color: var(--muted); margin-top: 18px !important; font-size: 1.05rem; }
.h-center { text-align: center; margin-top: 32px !important; }
.h-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.h-link:hover { text-decoration: underline; }

/* La línea de llegada: cada titular llega a una línea roja */
.h-head h2::after, .h-manifesto h2::after, .h-final h2::after {
	content: ""; display: block; height: 8px; width: min(100%, 4.2em); background: var(--brand); margin: 18px auto 0;
	transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .25s;
}
.h-head-left h2::after, .h-manifesto h2::after { margin-left: 0; }
.h-head.is-in h2::after, .h-manifesto h2.is-in::after, .h-final .is-in h2::after { transform: scaleX(1); }
.h-finish::after { content: ""; display: block; height: 10px; width: 100%; background: var(--brand); margin-top: 22px; transform-origin: left; animation: h-line 1.1s cubic-bezier(.2,.7,.2,1) 1s both; }
@keyframes h-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Botones */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1em 1.8em; border-radius: var(--radius); font-family: var(--font-body); font-weight: 900; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease; min-height: 54px; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.h-btn-primary { background: var(--brand); color: #fff; }
.h-btn-primary:hover { background: var(--brand-strong); color: #fff; }
.h-btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.75); }
.h-btn-ghost:hover { background: #fff; color: var(--ink); }
.h-btn-light { background: var(--ink); color: #fff; }
.h-btn-light:hover { background: #000; color: #fff; }
.h-btn-block { width: 100%; }
.h-price-from:not(:empty) { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .9; }
.h-price-from:not(:empty)::before { content: "· desde "; }

/* 1. Hero — foto en penumbra, tipografía pesada */
.h-hero { position: relative; min-height: max(560px, calc(100svh - var(--hdr, 0px))); display: flex; align-items: center; color: var(--on-dark); overflow: hidden; isolation: isolate; background: var(--ink); }
.h-hero-media { position: absolute; inset: 0; z-index: -1; }
.h-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.4) 100%), linear-gradient(0deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,0) 40%); }
.mmlm-home .h-hero-img { width: 100%; height: 110%; max-width: none; object-fit: cover; filter: var(--photo); transform: translateY(var(--parallax, 0)); will-change: transform; animation: h-zoom 18s ease-out both; }
@keyframes h-zoom { from { scale: 1.12; } to { scale: 1; } }
.h-hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vh, 100px) 16px clamp(64px, 9vh, 96px); }
.h-hero-logo { width: min(320px, 70vw); margin: 0 0 28px; }
.h-kicker { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--on-dark-2); }
.h-title-wrap { display: inline-block; max-width: 100%; }
.h-title { font-size: clamp(2.3rem, 5.8vw, 4.6rem); text-transform: uppercase; margin: 14px 0 0 !important; line-height: .98; }
.h-title span { display: block; }
.h-when { display: flex; justify-content: space-between; gap: 24px; width: 100%; font-size: clamp(.95rem, 1.5vw, 1.15rem); color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .06em; margin-top: 12px !important; }
.h-countdown { display: flex; gap: clamp(8px, 1.6vw, 14px); margin: clamp(18px, 3vh, 30px) 0 14px; }
.h-countdown div { min-width: clamp(66px, 13vw, 96px); padding: 10px 8px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); text-align: center; }
.h-countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.h-countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-2); }

/* Cuenta regresiva + 21 segmentos: lado a lado en escritorio */
.h-race { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 40px; margin: clamp(18px, 3vh, 30px) 0 clamp(20px, 3vh, 28px); }
.h-race .h-countdown { margin: 0 0 14px; }
.h-race .h-segments { margin-bottom: 14px; flex: 1 1 320px; }

/* Los 21 segmentos */
.h-segments { max-width: 520px; margin-bottom: clamp(22px, 3.5vh, 32px); }
.h-seg-label { font-size: .85rem; color: var(--on-dark-2); margin-bottom: 8px !important; }
.h-seg-label b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: #fff; }
.h-seg-bar { display: grid; grid-template-columns: repeat(21, 1fr); gap: 4px; height: 26px; }
.h-seg-bar i { background: var(--segment-off); transition: background-color .4s ease; }
.h-seg-bar i.on { background: var(--brand); }

.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-phase { margin-top: 20px !important; display: inline-block; padding: .5em 1em; border-left: 4px solid var(--brand); background: rgba(255,255,255,.06); font-size: .9rem; color: var(--on-dark-2); }
.h-phase b { color: #fff; }
.h-scroll { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.h-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: h-wheel 1.6s infinite; }
@keyframes h-wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 2. Cinta */
.h-ticker { background: var(--brand); color: #fff; overflow: hidden; padding: 14px 0; }
.h-ticker-track { display: flex; gap: 44px; width: max-content; animation: h-marquee 45s linear infinite; font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; white-space: nowrap; }
.h-ticker-track span::after { content: ""; display: inline-block; width: 22px; height: 6px; background: rgba(255,255,255,.55); margin-left: 44px; vertical-align: middle; }
@keyframes h-marquee { to { transform: translateX(-50%); } }

/* 3. Distancias */
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.h-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--ink); transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.h-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.h-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.h-card:hover::after { transform: scaleX(1); }
.h-card-km { font-family: var(--font-display); font-size: clamp(3.4rem, 7.5vw, 4.8rem); line-height: .9; color: var(--ink); letter-spacing: -.03em; }
.h-card-title { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); }
.h-card-price { font-family: var(--font-display); font-size: 2rem; margin-top: 10px !important; }
.h-card-price del { font-family: var(--font-body); font-weight: 700; font-size: .5em; color: var(--muted); margin-right: .25em; }
.h-card-price strong { font-weight: 400; color: var(--brand); }
.h-card-next { font-size: .85rem; font-weight: 700; color: var(--brand); min-height: 1.3em; }
.h-card ul { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 6px; }
.h-card li { padding-left: 1.4em; position: relative; color: var(--muted); }
.h-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8em; height: 4px; background: var(--brand); }
.h-card .h-btn { margin-top: auto; }

/* 4. Fases */
.h-phases { padding-top: 0; }
.h-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.h-timeline li { position: relative; padding: 26px 24px; background: var(--paper); border-right: 2px solid var(--ink); }
.h-timeline li:last-child { border-right: 0; }
.h-tl-name { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; line-height: 1; }
.h-tl-dates { color: var(--muted); font-size: .9rem; margin-top: 6px !important; min-height: 1.4em; }
.h-tl-prices { margin-top: 10px !important; font-weight: 700; }
.h-tl-badge { display: none; position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--brand); padding: .3em .7em; }
.h-timeline li.is-current { background: var(--brand); color: #fff; }
.h-timeline li.is-current .h-tl-dates { color: rgba(255,255,255,.85); }
.h-timeline li.is-current .h-tl-badge { display: inline-block; }
.h-timeline li.is-past { opacity: .4; }
.h-timeline li.is-past .h-tl-prices { text-decoration: line-through; }
@media (max-width: 760px) { .h-timeline li { border-right: 0; border-bottom: 2px solid var(--ink); } .h-timeline li:last-child { border-bottom: 0; } }

/* 5. Pasos */
.h-steps { max-width: none; background: var(--paper-2); }
.h-steps-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.h-steps-list li { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; border-top: 6px solid var(--ink); }
.h-steps-list li:last-child { border-top-color: var(--brand); }
.h-steps-list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--brand); margin-bottom: 12px; }
.h-steps-list h3 { font-size: 1.15rem; margin-bottom: 8px; }
.h-steps-list p { color: var(--muted); }

/* 5b. Manifiesto — anillos que crecen uno a uno */
.h-manifesto { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: clamp(80px, 12vw, 160px) 16px; }
.h-manifesto-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.h-manifesto h2 { font-size: clamp(2.1rem, 5.4vw, 4rem); max-width: 12em; }
.h-manifesto h2 em { font-style: normal; color: var(--brand); display: block; }
.h-manifesto-text { max-width: 640px; margin-top: 36px; display: grid; gap: 16px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-2); }
.h-manifesto-text strong { color: #fff; font-weight: 700; }
.h-mochim { margin-top: 40px !important; font-size: .9rem; color: rgba(239,227,200,.7); max-width: 520px; }
.h-mochim b { font-family: var(--font-display); font-weight: 400; color: var(--brand); font-size: 1.1rem; }
.h-rings { position: absolute; right: -10vw; top: 50%; width: min(80vw, 820px); aspect-ratio: 1; translate: 0 -50%; z-index: -1; pointer-events: none; }
.h-rings i { position: absolute; inset: calc(var(--r) * 6.6%); border: 2px solid var(--brand); border-radius: 50%; opacity: calc(.15 + var(--r) * .1); transform: scale(.2); }
.h-rings i:last-child { background: var(--brand); }
.h-manifesto.is-live .h-rings i { animation: h-ring 1.2s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc((7 - var(--r)) * .18s); transform: none; }
@keyframes h-ring { from { transform: scale(.2); opacity: 0; } to { transform: none; } }

/* 6. Cifras */
.h-stats { max-width: none; background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.08); }
.h-stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.h-stats-grid > div { border-left: 4px solid var(--brand); padding-left: 18px; }
.h-stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.h-stats span { display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--on-dark-2); }

/* 7. Kit */
.h-kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.h-kit-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: var(--photo); }
.h-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.h-checks li { position: relative; padding: 14px 16px 14px 50px; border-radius: var(--radius); background: var(--paper-2); font-weight: 700; }
.h-checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 6px; translate: 0 -50%; background: var(--brand); }

/* 8. Premiación */
.h-prize { max-width: none; background: var(--brand); color: #fff; }
.h-prize > div { max-width: 1200px; margin: 0 auto; }
.h-prize .h-eyebrow { color: #fff; opacity: .9; }
.h-prize-amount { font-family: var(--font-display); font-size: clamp(3.4rem, 12vw, 8.5rem); line-height: .95; margin: 8px 0 18px !important; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.h-prize p:not(.h-prize-amount):not(.h-eyebrow) { max-width: 640px; font-size: 1.1rem; }
.h-prize .h-link { color: #fff; display: inline-block; margin-top: 18px; }

/* 9. Info */
.h-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.h-info-item { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--radius); border: 2px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s ease, transform .2s ease; }
.h-info-item b { font-weight: 900; font-size: 1.02rem; }
.h-info-item b::after { content: " →"; color: var(--brand); }
.h-info-item span { color: var(--muted); font-size: .9rem; }
.h-info-item:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
@media (max-width: 600px) { .h-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .h-info-item { padding: 14px; } .h-info-item span { font-size: .8rem; } }

/* 10. Galería (blanco y negro) */
.h-gallery { overflow: hidden; padding: 8px 0 0; background: var(--paper); }
.h-gallery-track { display: flex; gap: 8px; width: max-content; animation: h-marquee 80s linear infinite; }
.h-gallery:hover .h-gallery-track { animation-play-state: paused; }
.h-gallery figure { margin: 0; width: clamp(240px, 30vw, 400px); }
.h-gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: var(--photo); }

/* 11. Patrocinadores */
.h-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: h-marquee 60s linear infinite; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-logo img { height: 64px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.h-logo img:hover { filter: none; opacity: 1; }

/* 12. FAQ */
.h-faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.h-faq details { border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.h-faq details[open] { border-color: var(--ink); }
.h-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 900; position: relative; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); transition: transform .25s ease; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { padding: 0 22px 20px; color: var(--muted); }
.h-faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 13. Final — el aura de llegada (único lugar con los colores de apoyo) */
.h-final { position: relative; text-align: center; padding: clamp(90px, 13vw, 170px) 16px; color: var(--ink); overflow: hidden; isolation: isolate; background: var(--ink); }
.h-final::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(ellipse 42% 52% at 50% 50%, var(--aura-3) 0%, var(--aura-2) 28%, var(--aura-1) 50%, var(--brand) 68%, var(--ink) 92%); animation: h-aura 9s ease-in-out infinite alternate; }
.h-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 28% 40% at 14% 75%, rgba(31,90,73,.7), transparent 70%), radial-gradient(ellipse 22% 30% at 88% 20%, rgba(31,90,73,.45), transparent 70%); }
@keyframes h-aura { from { transform: scale(1); } to { transform: scale(1.12) rotate(4deg); } }
.h-final .h-eyebrow { color: var(--ink); }
.h-final h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 11em; margin: 0 auto !important; }
.h-final h2::after { background: var(--ink); }
.h-final p { margin: 18px 0 30px !important; font-size: 1.15rem; font-weight: 700; }
.h-final b { font-family: var(--font-display); font-weight: 400; font-size: 1.4em; }

/* Barra fija (celular) */
.h-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35); border-bottom: 4px solid var(--brand); transform: translateY(160%); transition: transform .35s ease; }
.h-sticky.is-visible { transform: none; }
.h-sticky .h-btn { min-height: 44px; padding: .7em 1.2em; }
@media (min-width: 900px) { .h-sticky { display: none !important; } }

/* Entrada del hero (al cargar, sin depender del scroll) */
[data-hero] { animation: h-up .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes h-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Animaciones de entrada al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 600px) {
	.h-countdown div { min-width: 0; flex: 1; }
	.h-segments { max-width: none; }
	.h-seg-bar { gap: 3px; height: 22px; }
	.h-rings { right: -45vw; width: 120vw; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
	.mmlm-home *, .mmlm-home *::before, .mmlm-home *::after { animation: none !important; transition: none !important; }
	[data-reveal], [data-hero] { opacity: 1; transform: none; }
	.h-head h2::after, .h-manifesto h2::after, .h-final h2::after, .h-rings i { transform: none; }
	.h-ticker-track, .h-gallery-track, .h-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Desplazamiento suave a «Aparta tu lugar» (sin tapar el título con el encabezado) */
html:has(.mmlm-home) { scroll-behavior: smooth; }
#distancias { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html:has(.mmlm-home) { scroll-behavior: auto; } }

/* Tarjetas dentro de otras páginas: [mmlm_distancias] */
.mmlm-embed { background: transparent; padding: 8px 0 24px; font-size: 17px; }
.mmlm-embed .h-lead { margin: 0 0 24px !important; }
.mmlm-embed [data-reveal] { opacity: 1; transform: none; }
.h-incart { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--ink); color: #fff; border-left: 8px solid var(--brand); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.h-incart-title { font-family: var(--font-display); font-size: 1.2rem; }
.h-incart-list { color: var(--on-dark-2); margin-top: 4px !important; }
.h-incart-hint { font-size: .9rem; opacity: .8; margin-top: 6px !important; }
.h-incart .h-btn-light { background: #fff; color: var(--ink); }
.h-incart .h-btn-light:hover { background: var(--brand); color: #fff; }

/* Gráfica de kilómetros sobre las distancias: las barras se van llenando de izquierda a derecha */
.h-km { color: var(--ink); max-width: 560px; margin: 0 auto 34px; }
.h-km-svg { display: block; width: 100%; height: auto; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.2,.7,.2,1) .15s; }
.h-km.is-in .h-km-svg { clip-path: inset(0 0 0 0); }

/* Slogan #QueLosMochisCorra como sello en el cierre */
.h-slogan { position: absolute; z-index: 1; top: clamp(24px, 5vw, 56px); right: clamp(16px, 6vw, 90px); width: clamp(110px, 13vw, 180px); height: auto; transform: rotate(-8deg); animation: h-float 5s ease-in-out infinite alternate; filter: drop-shadow(0 8px 18px rgba(20,20,20,.35)); }
@keyframes h-float { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(-5deg) translateY(-10px); } }
@media (max-width: 767px) { .h-slogan { position: static; display: block; margin: 0 auto 26px; } }
@media (prefers-reduced-motion: reduce) { .h-km-svg { clip-path: none; transition: none; } .h-slogan { animation: none; } }
