/* Machacacachas XXV · propuesta de rediseño (2027).
   Oscuro y de monte, con el rojo del club como acento. Se apoya en styles.css (header, footer, .container)
   y en machacacachas.css (fuente MMA Champ y .newsletter-*). Todo lo nuevo va con el prefijo xv-. */

.xv {
    --xv-fondo: #0f1511;
    --xv-fondo-2: #161e19;
    --xv-papel: #f3f1ea;
    --xv-texto: #e9ece7;
    --xv-suave: #a3ada5;
    --xv-linea: rgba(233, 236, 231, .14);
    --xv-rojo: #dd2f2f;
    --xv-rojo-2: #ff5a4a;
    --xv-tierra: #c9a46a;
    background: var(--xv-fondo);
    color: var(--xv-texto);
}
.xv a { color: inherit; }
.xv-seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.xv-etiqueta { margin: 0 0 .75rem; font-size: .78rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-h2 { margin: 0 0 1.25rem; font-family: 'Bebas Neue', 'Oswald', sans-serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .95; letter-spacing: 1px; color: #fff; }
.xv-nota { margin: -.5rem 0 2rem; color: var(--xv-suave); font-size: .9rem; }

/* Botones */
.xv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .95rem 1.6rem; border: 2px solid var(--xv-rojo); border-radius: 999px; background: var(--xv-rojo); color: #fff !important; font-weight: 800; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.xv-btn:hover { transform: translateY(-2px); background: var(--xv-rojo-2); border-color: var(--xv-rojo-2); }
.xv-btn--linea { background: transparent; border-color: rgba(255, 255, 255, .6); }
.xv-btn--linea:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.xv-btn--peq { padding: .6rem 1.1rem; font-size: .78rem; }

/* 1. Portada */
.xv-hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; overflow: hidden; padding: 7rem 0 4.5rem; isolation: isolate; }
.xv-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85); }
.xv-hero__velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 21, 17, .35) 0%, rgba(15, 21, 17, .55) 45%, var(--xv-fondo) 100%), radial-gradient(ellipse at 20% 80%, rgba(221, 47, 47, .25), transparent 60%); }
.xv-hero__contenido { position: relative; }
.xv-kicker { margin: 0 0 1rem; font-size: .8rem; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-marca { margin: 0; font-family: 'MMA Champ', 'Bebas Neue', sans-serif; font-weight: normal; font-size: clamp(1.9rem, 8.4vw, 7.5rem); line-height: .9; letter-spacing: 1px; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); white-space: nowrap; }
.xv-claim { margin: 1.25rem 0 1.5rem; max-width: 34ch; font-family: 'Bebas Neue', 'Oswald', sans-serif; font-size: clamp(1.7rem, 4.5vw, 3rem); line-height: 1.02; letter-spacing: .5px; color: #fff; }
.xv-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1.75rem; font-size: .82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--xv-texto); }
.xv-datos span + span::before { content: '·'; margin-right: 1.25rem; color: var(--xv-rojo); }
.xv-cuenta { display: flex; gap: .6rem; margin: 0 0 2rem; }
.xv-cuenta div { min-width: 4.6rem; padding: .6rem .5rem .5rem; border: 1px solid var(--xv-linea); border-radius: .9rem; background: rgba(15, 21, 17, .55); backdrop-filter: blur(6px); text-align: center; }
.xv-cuenta strong { display: block; font-family: 'Bebas Neue', 'Oswald', sans-serif; font-weight: 400; font-size: 2.3rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.xv-cuenta span { font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--xv-suave); }
.xv-acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.xv-hero__bajar { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); color: var(--xv-suave) !important; text-decoration: none; font-size: 1.4rem; animation: xv-bota 2s ease-in-out infinite; }
@keyframes xv-bota { 50% { transform: translate(-50%, 6px); } }

/* 2. Manifiesto */
.xv-manifiesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.xv-manifiesto p { margin: 0 0 1rem; color: var(--xv-suave); font-size: 1.05rem; line-height: 1.75; }
.xv-manifiesto .xv-lead { color: var(--xv-texto); font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.6; }

/* 3. Recorridos */
.xv-recorridos { background: var(--xv-fondo-2); }
.xv-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.xv-tarjeta { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem; border: 1px solid var(--xv-linea); border-radius: 1.1rem; background: rgba(255, 255, 255, .03); color: var(--xv-texto); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.xv-tarjeta:hover { border-color: rgba(255, 255, 255, .35); }
.xv-tarjeta[aria-selected="true"] { border-color: var(--xv-rojo); background: linear-gradient(135deg, rgba(221, 47, 47, .18), rgba(221, 47, 47, .04)); }
.xv-tarjeta__tipo { font-size: .75rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-tarjeta__km { font-family: 'Bebas Neue', 'Oswald', sans-serif; font-size: 1.4rem; color: var(--xv-suave); }
.xv-tarjeta__km strong { font-size: clamp(3rem, 7vw, 4.2rem); font-weight: 400; line-height: .9; color: #fff; }
.xv-tarjeta__fila { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; color: var(--xv-suave); }
.xv-tarjeta__fila strong { color: var(--xv-texto); }
.xv-tarjeta__txt { font-size: .88rem; color: var(--xv-suave); }

/* Recorridos 2027 (en preparación) */
.xv-intro-oscura { max-width: 62ch; margin: 0 0 2rem; color: var(--xv-suave); font-size: 1.05rem; line-height: 1.7; }
.xv-nuevos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.xv-nuevo { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--xv-linea); border-radius: 1.1rem; background: rgba(255, 255, 255, .03); }
.xv-nuevo--maraton { border-color: rgba(221, 47, 47, .55); background: linear-gradient(135deg, rgba(221, 47, 47, .16), rgba(221, 47, 47, .03)); }
.xv-nuevo h3 { margin: .4rem 0 .6rem; font-family: 'Bebas Neue', 'Oswald', sans-serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; color: #fff; }
.xv-nuevo p:not(.xv-tarjeta__tipo) { margin: 0 0 1.25rem; color: var(--xv-suave); line-height: 1.65; }
.xv-nuevo__estado { margin-top: auto; align-self: flex-start; padding: .35rem .75rem; border: 1px dashed rgba(201, 164, 106, .6); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-esquema { margin: 1.5rem 0 0; padding: 1.25rem 1.25rem .9rem; border: 1px solid var(--xv-linea); border-radius: 1.1rem; background: rgba(0, 0, 0, .2); }
.xv-esquema svg { display: block; width: 100%; height: auto; overflow: visible; }
.xv-esquema path { fill: none; stroke-width: 6; stroke-linecap: round; }
.xv-esq-comun { stroke: #e9ece7; }
.xv-esq-marcha { stroke: var(--xv-tierra); }
.xv-esq-maraton { stroke: var(--xv-rojo); }
.xv-esq-punto { fill: var(--xv-fondo); stroke: #fff; stroke-width: 3; }
.xv-esq-punto--bif { stroke: var(--xv-tierra); }
.xv-esq-punto--cima { fill: var(--xv-rojo); stroke: #fff; stroke-width: 2; }
.xv-esquema text { fill: var(--xv-suave); font-size: 15px; font-weight: 700; }
.xv-esquema figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: .75rem; font-size: .82rem; color: var(--xv-suave); }
.xv-ley-item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.xv-ley { display: inline-block; width: 22px; height: 5px; border-radius: 3px; }
.xv-esquema .xv-esquema__movil { display: none; }
.xv-ley--comun { background: #e9ece7; }
.xv-ley--marcha { background: var(--xv-tierra); }
.xv-ley--maraton { background: var(--xv-rojo); }
.xv-2026 { margin-top: 2.5rem; }
.xv-2026 > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--xv-linea); border-radius: 1.1rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--xv-texto); }
.xv-2026 > summary::-webkit-details-marker { display: none; }
.xv-2026 > summary span { font-size: .78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--xv-rojo-2); }
.xv-2026 > summary span::after { content: ' ↓'; }
.xv-2026[open] > summary { margin-bottom: 1.25rem; }
.xv-2026[open] > summary span::after { content: ' ↑'; }

.xv-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; }
.xv-perfil, .xv-mapa { border: 1px solid var(--xv-linea); border-radius: 1.1rem; background: rgba(0, 0, 0, .2); padding: 1.25rem; min-width: 0; }
.xv-perfil__cabecera { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.xv-perfil h3 { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-perfil__lectura { margin: 0; font-size: .95rem; color: var(--xv-suave); font-variant-numeric: tabular-nums; }
.xv-perfil__lectura strong { color: #fff; }
.xv-perfil__svg { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.xv-perfil__svg .xv-area { fill: url(#xvDegradado); }
.xv-perfil__svg .xv-trazo { fill: none; stroke: var(--xv-rojo-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.xv-perfil__svg .xv-rejilla { stroke: rgba(255, 255, 255, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xv-perfil__svg .xv-subida { fill: rgba(201, 164, 106, .14); }
.xv-perfil__svg .xv-cursor { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.xv-perfil__ejes { display: flex; justify-content: space-between; font-size: .72rem; color: var(--xv-suave); }
.xv-ayuda { margin: .5rem 0 1rem; font-size: .8rem; color: var(--xv-suave); }
.xv-subidas { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.xv-subidas button { width: 100%; padding: .7rem .8rem; border: 1px solid var(--xv-linea); border-radius: .8rem; background: transparent; color: var(--xv-texto); font: inherit; text-align: left; cursor: pointer; }
.xv-subidas button:hover, .xv-subidas button:focus-visible { border-color: var(--xv-tierra); }
.xv-subidas small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--xv-tierra); }
.xv-subidas b { display: block; margin: .15rem 0; font-size: 1.05rem; color: #fff; }
.xv-subidas span { display: block; font-size: .8rem; line-height: 1.4; color: var(--xv-suave); }
.xv-mapa { display: flex; flex-direction: column; gap: .9rem; }
.xv-mapa__lienzo { flex: 1; min-height: 340px; border-radius: .8rem; overflow: hidden; background: #1d2620; }
.xv-mapa .xv-btn { align-self: flex-start; }
.xv .leaflet-container { font: inherit; }
.xv-marcador { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: var(--xv-rojo); box-shadow: 0 0 0 3px rgba(221, 47, 47, .35); }
.xv-marcador--cima { background: var(--xv-tierra); box-shadow: 0 0 0 3px rgba(201, 164, 106, .35); }

/* 4. El día de la prueba */
.xv-pasos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.xv-pasos li { padding: 1.5rem 1.25rem; border-top: 3px solid var(--xv-rojo); background: rgba(255, 255, 255, .03); border-radius: 0 0 1rem 1rem; }
.xv-pasos__n { font-family: 'Bebas Neue', 'Oswald', sans-serif; font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .25); }
.xv-pasos h3 { margin: .5rem 0 .5rem; font-size: 1.05rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.xv-pasos p { margin: 0; color: var(--xv-suave); font-size: .92rem; line-height: 1.6; }

/* 5. 25 años */
.xv-historia { background: var(--xv-papel); color: #1f2420; }
.xv-historia .xv-h2 { color: #121613; }
.xv-cifras { list-style: none; margin: 2rem 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(0, 0, 0, .12); }
.xv-cifras li { padding: 1.25rem 1rem 0 0; }
.xv-cifras strong { display: block; font-family: 'Bebas Neue', 'Oswald', sans-serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--xv-rojo); }
.xv-cifras span { font-size: .85rem; color: #59625b; }
.xv-linea { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.xv-linea li { position: relative; padding-top: 1.5rem; border-top: 2px solid rgba(0, 0, 0, .15); }
.xv-linea li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--xv-papel); border: 2px solid #121613; }
.xv-linea .xv-linea__ahora { border-top-color: var(--xv-rojo); }
.xv-linea .xv-linea__ahora::before { background: var(--xv-rojo); border-color: var(--xv-rojo); box-shadow: 0 0 0 5px rgba(221, 47, 47, .2); }
.xv-linea span { font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8a6d3b; }
.xv-linea h3 { margin: .4rem 0 .5rem; font-size: 1.05rem; font-weight: 800; color: #121613; }
.xv-linea p { margin: 0; font-size: .92rem; line-height: 1.6; color: #4b544d; }
.xv-recuerdos { margin: 2.5rem 0 0; color: #4b544d; }
.xv-recuerdos a { color: var(--xv-rojo); font-weight: 700; }

/* 6. Preventa */
.xv-preventa { background: radial-gradient(ellipse at 50% 0%, rgba(221, 47, 47, .28), transparent 60%), var(--xv-fondo); }
.xv-preventa__caja { max-width: 680px; margin: 0 auto; text-align: center; }
.xv-preventa__caja > p { color: var(--xv-suave); line-height: 1.7; }
.xv-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem auto .75rem; }
.xv-form .newsletter-input { flex: 1; min-width: 0; padding: .95rem 1.2rem; border: 1px solid var(--xv-linea); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.xv-form .newsletter-input::placeholder { color: var(--xv-suave); }
.xv-form .newsletter-btn { margin: 0; }
.xv-legal { font-size: .78rem; color: var(--xv-suave) !important; }
.xv .mx-preventa__estado { color: var(--xv-texto); }

/* 7. Preguntas frecuentes */
.xv-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 5vw, 4rem); }
.xv-faq__grid > div > p { color: var(--xv-suave); }
.xv-faq__grid a { color: var(--xv-rojo-2); font-weight: 700; }
.xv-faq__lista details { border-bottom: 1px solid var(--xv-linea); }
.xv-faq__lista summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.02rem; color: #fff; }
.xv-faq__lista summary::-webkit-details-marker { display: none; }
.xv-faq__lista summary::after { content: '+'; color: var(--xv-rojo-2); font-size: 1.3rem; line-height: 1; }
.xv-faq__lista details[open] summary::after { content: '–'; }
.xv-faq__lista p { margin: 0 0 1.2rem; color: var(--xv-suave); line-height: 1.7; }

/* Barra fija (móvil) */
.xv-barra { display: none; }

@media (max-width: 900px) {
    .xv-manifiesto__grid, .xv-panel, .xv-faq__grid, .xv-nuevos { grid-template-columns: 1fr; }
    .xv-pasos, .xv-linea { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xv-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .xv-hero { padding: 6rem 0 3.5rem; min-height: 92svh; }
    .xv-datos { flex-direction: column; gap: .3rem; }
    .xv-datos span + span::before { content: none; }
    .xv-cuenta div { flex: 1; min-width: 0; }
    .xv-acciones .xv-btn { flex: 1 1 100%; }
    .xv-tarjeta { padding: 1rem; }
    .xv-tarjeta__txt { display: none; }
    .xv-perfil__svg { height: 170px; }
    .xv-subidas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .xv-subidas button { padding: .6rem .65rem; }
    .xv-subidas b { font-size: .98rem; }
    .xv-subidas span { font-size: .74rem; line-height: 1.35; }
    .xv-esquema { padding: 1rem .75rem .85rem; }
    .xv-esquema .xv-esquema__escritorio { display: none; }
    .xv-esquema .xv-esquema__movil { display: block; }
    .xv-esquema__movil text { font-size: 17px; }
    .xv-esquema__movil path { stroke-width: 5; }
    .xv-solo-ancho { display: none; }
    .xv-mapa__lienzo { min-height: 260px; }
    .xv-pasos, .xv-linea { grid-template-columns: 1fr; }
    .xv-form { flex-direction: column; }
    .xv-barra { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border-radius: 999px; background: var(--xv-rojo); color: #fff !important; text-decoration: none; font-size: .85rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: transform .2s ease, opacity .2s ease; }
    .xv-barra--oculta { transform: translateY(150%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .xv-hero__bajar { animation: none; }
    .xv-btn, .xv-barra { transition: none; }
}
