/* Machacacachas XXV (2027): página promocional del 25 aniversario.
   Se apoya en styles.css (variables --cycling-*) y machacacachas.css (hero-machaca, machaca-title, newsletter-*). */

.mx-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mx-center { text-align: center; }
.mx-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.mx-h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; color: var(--cycling-dark);
    line-height: 1.15; margin: 0 0 1rem;
}
.mx-intro { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--cycling-muted); line-height: 1.7; max-width: 720px; margin: 0 auto 2.5rem; }

/* Cabecera: usa .page-hero de styles.css; aquí solo la marca y la edición.
   La fuente MMA Champ no tiene tildes ni eñes: solo para la palabra MACHACACACHAS. */
.page-hero .page-hero__title.mx-brand {
    font-family: 'MMA Champ', 'Bebas Neue', 'Oswald', sans-serif; font-weight: normal; text-transform: none;
    font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1; letter-spacing: 2px; margin: 0 0 0.25rem;
}
.mx-edition {
    font-weight: 800; text-transform: uppercase; letter-spacing: 4px;
    font-size: clamp(1.05rem, 2.8vw, 1.5rem); margin: 0 0 1rem; color: #fff;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.45);
}

/* Anuncio */
.mx-anuncio { background: #fff; }
.mx-anuncio__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mx-video { background: #111; border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.mx-video video { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #111; }
.mx-anuncio__texto p { font-size: 1.05rem; line-height: 1.75; color: #374151; margin: 0 0 1rem; }

/* Historia */
.mx-historia { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.mx-cifras {
    list-style: none; padding: 0; margin: 0 auto 3rem; max-width: 900px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.mx-cifras li {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem 0.75rem; text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.mx-cifras strong { display: block; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; color: var(--cycling-primary); line-height: 1.1; }
.mx-cifras span { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--cycling-muted); }

.mx-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.mx-timeline::before {
    content: ''; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem; width: 3px;
    background: linear-gradient(180deg, #fecaca, var(--cycling-primary));
    border-radius: 3px;
}
.mx-timeline__item { position: relative; padding: 0 0 2rem 2.5rem; }
.mx-timeline__item::before {
    content: ''; position: absolute; left: 0; top: 0.3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: #fff; border: 3px solid var(--cycling-primary);
}
.mx-timeline__item--now::before { background: var(--cycling-primary); box-shadow: 0 0 0 6px rgba(221, 47, 47, 0.18); }
.mx-timeline__year {
    display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--cycling-primary); margin-bottom: 0.25rem;
}
.mx-timeline__item h3 { font-size: 1.2rem; font-weight: 800; color: var(--cycling-dark); margin: 0 0 0.35rem; }
.mx-timeline__item p { margin: 0; color: #4b5563; line-height: 1.65; }
.mx-recuerdos { margin-top: 1rem; color: var(--cycling-muted); }
.mx-recuerdos a { color: var(--cycling-primary); font-weight: 700; }

/* Preventa */
.mx-preventa { padding-top: 0; }
.mx-preventa__card { max-width: 820px; margin: 0 auto; }
.mx-preventa__inner { position: relative; z-index: 2; text-align: center; }
.mx-preventa__kicker {
    display: inline-block; margin: 0 0 0.75rem; padding: 0.3rem 0.9rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 800; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
}
.mx-preventa__estado { min-height: 1.5rem; margin: 1rem 0 0; font-weight: 700; color: #fff; }
.mx-preventa__estado.is-error { color: #fde68a; }
.mx-preventa__legal { margin: 0.75rem 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }
.newsletter-btn[disabled] { opacity: 0.7; cursor: wait; }

@media (max-width: 820px) {
    .mx-anuncio__grid { grid-template-columns: 1fr; }
    .mx-video { max-width: 420px; margin: 0 auto; width: 100%; }
    .mx-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
