/* =========================================================
   GUÍA · ESCRITORIO v4 (≥ 1024 px) · se carga con media="(min-width: 1024px)"
   ---------------------------------------------------------
   Gemela de guia-movil.css. Misma estética que el Atlas y el Buscador
   (kicker con punto, títulos en Luckiest Guy, cifras en línea, tarjetas
   tipo dossier) y el mismo orden de lectura que el móvil:

     cabecera inmersiva → KIT DE LA MISIÓN (lo que vivía en la columna
     derecha, abierto y a la vista) → informe → objetivos, con un CARRIL
     fijo a la derecha: el radar (mapa vivo que sigue al objetivo que
     lees, guia-capas.js) y la hoja de ruta.

   Todo con `body` delante para ganar a core.css / tactical-guide.css sin
   !important, salvo donde core ya lo usa.
   ========================================================= */

body {
    --gd-pad: clamp(24px, 4vw, 56px);
    --gd-max: 1320px;
    --gd-radius: 22px;
    --gd-glass: rgba(18, 22, 27, 0.62);
}

/* Lo que el carril sustituye: la barra de «Saltar a objetivo» y el índice */
body #repsol-nav,
body .waypoints-tactical-section { display: none !important; }

/* =========================================================
   1. CABECERA INMERSIVA
   ========================================================= */
body .hero-tactical {
    min-height: clamp(640px, 88vh, 920px);
    height: auto;
    display: flex; align-items: flex-end;
    /* La cabecera sube por debajo de la barra del sitio (margen negativo de core.css):
       el relleno de arriba cuenta con ella, o el kicker se esconde detrás a 1024 px. */
    padding: calc(var(--header-height, 60px) + 70px) 0 72px;
}
body .hero-tactical .hero-overlay {
    background:
        linear-gradient(90deg, rgba(12, 15, 18, 0.9) 0%, rgba(12, 15, 18, 0.62) 42%, rgba(12, 15, 18, 0.18) 78%),
        linear-gradient(0deg, var(--color-background) 0%, rgba(30, 35, 40, 0) 34%),
        linear-gradient(180deg, rgba(12, 15, 18, 0.55) 0%, rgba(12, 15, 18, 0) 22%);
}
body .hero-tactical .hero-grid {
    width: 100%; max-width: var(--gd-max); margin: 0 auto; padding: 0 var(--gd-pad);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 56px; align-items: end;
}
body .hero-tactical .hero-col-left, body .hero-tactical .hero-col-right { padding: 0; }
body .hero-tactical .hero-loc {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-tactical); font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase; color: var(--color-primary);
}
body .hero-tactical .hero-title {
    margin: 14px 0 0; max-width: 20ch;
    font-size: clamp(2.7rem, 4.3vw, 4.7rem); line-height: 0.98; letter-spacing: 0.5px;
    color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
    contain: none; min-height: 0;
}
body .hero-tactical .hero-subtitle {
    margin: 18px 0 0; max-width: 56ch;
    font-family: var(--font-subheading); font-weight: 600; font-size: 1.12rem; line-height: 1.5; color: rgba(255, 255, 255, 0.84);
}
/* Cifras como en el Atlas: número grande y rótulo pequeño, sin cajas */
body .hero-tactical .hero-specs-grid { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px; }
body .hero-tactical .spec-box {
    display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; height: auto;
    padding: 0; background: none; border: 0; box-shadow: none; clip-path: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
body .hero-tactical .spec-val { font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
body .hero-tactical .spec-label { font-family: var(--font-tactical); font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
body .hero-tactical .spec-label i { color: var(--color-primary); }

/* Acciones: la principal en naranja y las otras de cristal */
body .gd-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
body .gd-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; font-family: var(--font-subheading); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.2px; cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body .gd-cta:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
body .gd-cta--main { background: var(--color-primary); border-color: transparent; box-shadow: 0 12px 30px rgba(255, 94, 20, 0.38); }
body .gd-cta--main:hover { background: var(--color-primary-hover); border-color: transparent; box-shadow: 0 16px 36px rgba(255, 94, 20, 0.48); }
body .gd-cta--icon { width: 52px; padding: 0; }
body .gd-cta__on { display: none; }
body .gd-cta[aria-pressed="true"] { border-color: var(--color-primary); background: rgba(255, 94, 20, 0.18); }
body .gd-cta[aria-pressed="true"] i { color: var(--color-primary); }
body .gd-cta[aria-pressed="true"] .gd-cta__off { display: none; }
body .gd-cta[aria-pressed="true"] .gd-cta__on { display: inline; }
body .gd-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Portátiles pequeños y tabletas apaisadas: que las tres acciones quepan en una fila */
@media (max-width: 1279px) {
    body .hero-tactical .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
    body .gd-hero-ctas { flex-wrap: nowrap; gap: 10px; }
    body .gd-cta { padding: 0 18px; font-size: 0.86rem; }
    body .gd-cta--icon { padding: 0; flex: none; }
    body .guide-container { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}

/* Briefing: tarjeta de cristal; sus MAPA/GUARDAR ya están en la fila de acciones */
body .hero-tactical .mission-brief-card {
    padding: 26px 26px 20px; border-radius: var(--gd-radius); clip-path: none;
    background: var(--gd-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
body .hero-tactical .mission-brief-card .report-header { color: #fff; }
body .hero-tactical .mission-brief-card .report-body,
body .hero-tactical .mission-brief-card .report-body p { color: rgba(255, 255, 255, 0.86); }
body .hero-tactical .mission-brief-card .ops-group { display: none; }
body .hero-tactical .mission-brief-card .report-actions { border-top-color: rgba(255, 255, 255, 0.12); }

/* =========================================================
   2. PESTAÑAS DEL KIT + PANEL LATERAL
   ---------------------------------------------------------
   Pestañas propias del escritorio (.gd-secs, en el HTML de guia.php; las del
   móvil no se tocan), pegadas bajo la barra del sitio. Cada una abre su
   apartado en un panel que entra por la derecha (guia-capas.js).
   ========================================================= */
body .gd-secs {
    display: block; position: sticky; top: var(--header-height, 60px); z-index: 700;
    min-height: 66px; margin: 0; padding: 11px 0;
    background: color-mix(in srgb, var(--color-background) 90%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid var(--color-border);
}
body .gd-secs__row {
    /* Una sola fila siempre (el carril cuenta con su alto): si no caben, se desliza */
    display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 10px;
    max-width: var(--gd-max); margin: 0 auto; padding: 0 var(--gd-pad);
    overflow-x: auto; scrollbar-width: none;
}
body .gd-secs__row::-webkit-scrollbar { display: none; }
body .gd-sec-tab { flex: none; }
body .gd-sec-tab {
    display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface);
    color: var(--color-text-primary); font-family: var(--font-subheading); font-weight: 700; font-size: 0.88rem;
    cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
body .gd-sec-tab i { color: var(--color-primary); }
body .gd-sec-tab b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.72rem; text-align: center; }
body.light-theme .gd-sec-tab b { background: rgba(0, 0, 0, 0.06); }
body .gd-sec-tab:hover { border-color: var(--color-primary); transform: translateY(-1px); }
body .gd-sec-tab.is-warn { border-color: rgba(255, 46, 99, 0.5); }
body .gd-sec-tab.is-warn i { color: #FF5C85; }
body .gd-sec-tab.is-warn b { background: #E11D48; color: #fff; }
body .gd-sec-tab[aria-expanded="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
body .gd-sec-tab[aria-expanded="true"] i { color: #fff; }
body .gd-sec-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body .gd-sec-tab { transition: none; } body .gd-sec-tab:hover { transform: none; } }

/* --- Panel lateral --- */
/* Diálogo modal: por encima del carrito y de La Central, y justo DEBAJO de la barra del
   sitio (que va con un z-index enorme y taparía su cabecera) */
.gd-panel { position: fixed; inset: var(--header-height, 60px) 0 0 0; z-index: 100000; }
.gd-panel[hidden] { display: none; }
.gd-panel__scrim { position: absolute; inset: 0; background: rgba(8, 10, 12, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.gd-panel__box {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 92vw);
    display: flex; flex-direction: column;
    background: var(--color-surface); border-left: 1px solid var(--color-border);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gd-panel.is-open .gd-panel__scrim { opacity: 1; }
.gd-panel.is-open .gd-panel__box { transform: none; }
@media (prefers-reduced-motion: reduce) { .gd-panel__scrim, .gd-panel__box { transition: none; } }
.gd-panel__head { flex: none; display: flex; align-items: center; gap: 14px; padding: 22px 20px 18px 24px; border-bottom: 1px solid var(--color-border); }
.gd-panel__ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 94, 20, 0.14); color: var(--color-primary); font-size: 1.1rem; }
.gd-panel.is-warn .gd-panel__ico { background: rgba(255, 46, 99, 0.16); color: #FF5C85; }
.gd-panel__titles { flex: 1; min-width: 0; }
.gd-panel__kicker { margin: 0; font-family: var(--font-tactical); font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-primary); }
.gd-panel__title { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-text-primary); }
.gd-panel__x {
    width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.04); color: var(--color-text-primary); font-size: 1.05rem;
}
.gd-panel__x:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gd-panel__x:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gd-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 24px 32px; }

/* Contenido de los apartados dentro del panel */
.gd-panel .wire-body { display: block !important; max-height: none !important; overflow: visible; opacity: 1; padding: 0; border: 0; background: none; }
.gd-panel .grid-overlay { display: none; }
.gd-panel .wire-list { list-style: none; margin: 0; padding: 0; }
.gd-panel .wire-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--color-border); font-size: 0.95rem; line-height: 1.55; color: var(--color-text-primary); }
.gd-panel .wire-list li:last-child { border-bottom: 0; }
.gd-panel .wire-list li > i { margin-top: 5px; color: var(--color-primary); }
.gd-panel .warning-item > i { color: #FF5C85 !important; }
.gd-panel .wi-title { display: block; margin-bottom: 4px; font-family: var(--font-subheading); font-weight: 800; color: var(--color-primary); }
.gd-panel .wire-kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--color-border); font-size: 0.93rem; }
.gd-panel .wire-kv-row:last-child { border-bottom: 0; }
.gd-panel .wk-label { color: var(--color-text-secondary); }
.gd-panel .wk-label i { color: var(--color-primary); margin-right: 6px; }
.gd-panel .wk-val { text-align: right; color: var(--color-text-primary); font-weight: 600; }
.gd-panel .wl-day-block { padding: 14px 0; border-bottom: 1px dashed var(--color-border); }
.gd-panel .wl-day-block:last-child { border-bottom: 0; }
.gd-panel .wl-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; border: 0; padding: 0; }
.gd-panel .wl-badge { flex: none; white-space: nowrap; font-family: var(--font-tactical); font-size: 0.6rem; letter-spacing: 1.5px; color: #fff; background: var(--color-primary); padding: 3px 9px; border-radius: 999px; }
.gd-panel .wl-zone { font-family: var(--font-subheading); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; color: var(--color-text-primary); }
.gd-panel .wl-content { border: 0; padding: 0; margin: 0; }
.gd-panel .wl-row { display: flex; gap: 10px; padding: 5px 0; font-size: 0.9rem; line-height: 1.5; color: var(--color-text-secondary); }
.gd-panel .wl-row i { width: 16px; margin-top: 4px; color: var(--color-primary); }
.gd-panel .wire-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; }
.gd-panel .wire-btn {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px;
    border: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.03); clip-path: none;
    font-family: var(--font-subheading); font-weight: 700; font-size: 0.84rem; color: var(--color-text-primary); text-transform: none;
}
.gd-panel .wire-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gd-panel .wire-btn i { color: var(--color-primary); }
body.light-theme .gd-panel .wire-btn { background: #fff; }
/* «Objetivos»: la lista entera, con su foto */
.gd-obj { list-style: none; margin: 0; padding: 0; }
.gd-obj button {
    width: 100%; display: grid; grid-template-columns: 30px 64px minmax(0, 1fr); align-items: center; gap: 12px;
    padding: 8px 6px; border: 0; border-radius: 12px; background: none; color: var(--color-text-primary); text-align: left; cursor: pointer;
}
.gd-obj button:hover, .gd-obj button:focus-visible { background: rgba(255, 94, 20, 0.08); outline: none; }
.gd-obj button.is-current { background: rgba(255, 94, 20, 0.12); }
.gd-obj__n { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-primary); text-align: center; }
.gd-obj img, .gd-obj__ph { width: 64px !important; height: 44px !important; border-radius: 8px; object-fit: cover; background: var(--color-border); }
.gd-obj b { font-family: var(--font-subheading); font-weight: 700; font-size: 0.9rem; line-height: 1.3; }

/* =========================================================
   3. INFORME DE SITUACIÓN
   ========================================================= */
body .mission-manifesto { width: 100%; max-width: var(--gd-max); padding: 44px var(--gd-pad) 0; }
body .mission-manifesto .manifesto-content, body .mission-manifesto .manifesto-body { max-width: none; width: 100%; }
body .mission-manifesto .btn-read-manifesto { margin-left: 0; }

/* =========================================================
   4. OBJETIVOS + CARRIL
   ========================================================= */
body .guide-container {
    max-width: var(--gd-max); padding: 40px var(--gd-pad) 96px;
    grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start;
}
body .stops-feed { gap: 30px; }

/* --- OBJETIVOS EN ZIGZAG, SIN RECUADRO -------------------------------------
   Cada objetivo es un tramo de la ruta: foto a un lado, información al otro, y
   alternan. Por el centro baja la LÍNEA DE LA RUTA con un punto por objetivo.
   La foto va inclinada sobre un marco naranja desplazado (se endereza al
   pasar) y se queda fija mientras se lee su texto. El número gigante en
   contorno vuelve (era lo mejor de la guía de antes).
   La foto mide lo que mide el original (~450 px): a media columna se ve nítida.
   Las filas (.stop-top-row, .stop-data-col) se disuelven con display: contents
   para colocar cada pieza en la rejilla sin tocar el marcado (que es el del móvil).
   ---------------------------------------------------------------------------- */
body .stops-feed { gap: 0; }
body .stops-feed .stop-card-v8 {
    position: relative; display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    grid-auto-rows: auto; align-items: start; gap: 0;
    margin: 0; padding: 0 0 130px; overflow: visible;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    scroll-margin-top: 150px;
}
body .stops-feed .stop-card-v8:last-of-type { padding-bottom: 70px; border-bottom: 0; }
body .stops-feed .stop-top-row, body .stops-feed .stop-data-col { display: contents; }

/* La línea de la ruta y el punto de paso */
body .stops-feed .stop-card-v8::before {
    content: ''; position: absolute; left: 50%; top: 30px; bottom: -30px; width: 0;
    border-left: 2px dashed rgba(255, 94, 20, 0.38); transform: translateX(-1px); pointer-events: none;
}
body .stops-feed .stop-card-v8:last-of-type::before { bottom: auto; height: 0; border: 0; }
body .stops-feed .stop-card-v8::after {
    content: ''; position: absolute; left: 50%; top: 22px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-primary); border: 4px solid var(--color-background);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 22px rgba(255, 94, 20, 0.55);
    transform: translateX(-50%); transition: transform 0.3s ease, box-shadow 0.3s ease; pointer-events: none;
}
body .stops-feed .stop-card-v8.is-current::after { transform: translateX(-50%) scale(1.35); box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 10px rgba(255, 94, 20, 0.18), 0 0 30px rgba(255, 94, 20, 0.8); }

/* Colocación: foto a la izquierda en los impares y a la derecha en los pares */
body .stops-feed .stop-visual-col { grid-column: 1; grid-row: 1 / span 5; }
body .stops-feed .stop-header-group,
body .stops-feed .stop-hud-grid, body .stops-feed .stop-hud-minimal,
body .stops-feed .stop-transit, body .stops-feed .stop-bottom-row { grid-column: 3; min-width: 0; }
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-visual-col { grid-column: 3; }
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-header-group,
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-hud-grid, body .stops-feed .stop-card-v8:nth-of-type(even) .stop-hud-minimal,
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-transit, body .stops-feed .stop-card-v8:nth-of-type(even) .stop-bottom-row { grid-column: 1; }

/* --- La foto: inclinada, con su marco naranja desplazado, fija al leer --- */
body .stops-feed .stop-visual-col {
    position: sticky; top: 170px; align-self: start;
    width: auto; max-width: none; min-width: 0; margin: 0; padding: 26px 22px 0 4px;
}
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-visual-col { padding: 26px 4px 0 22px; }
body .stops-feed .stop-img-frame {
    position: relative; height: 330px; min-height: 0; margin: 0; padding: 0;
    border: 0; border-radius: 22px; clip-path: none; box-shadow: none; overflow: visible;
    transform: rotate(-2.2deg); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-img-frame { transform: rotate(2.2deg); }
body .stops-feed .stop-img-frame::before {
    content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 22px;
    border: 2px solid var(--color-primary); transform: translate(16px, 16px);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-img-frame::before { transform: translate(-16px, 16px); }
body .stops-feed .stop-img-frame::after {
    content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 22px; pointer-events: none;
    background: linear-gradient(0deg, rgba(10, 12, 15, 0.45) 0%, rgba(10, 12, 15, 0) 38%);
}
/* tactical-guide.css fija `height: auto !important` a toda imagen del feed (su blindaje del
   CLS en el móvil): aquí la foto llena su marco, así que se gana con la misma arma. */
body .stops-feed .stop-img-frame img {
    position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; aspect-ratio: auto;
    object-fit: cover; border-radius: 22px; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}
body .stops-feed .stop-img-frame .wm-a { z-index: 3; right: 16px; bottom: 16px; }
body .stops-feed .stop-card-v8:hover .stop-img-frame,
body .stops-feed .stop-card-v8.is-current .stop-img-frame { transform: rotate(0deg); }
body .stops-feed .stop-card-v8:hover .stop-img-frame::before,
body .stops-feed .stop-card-v8.is-current .stop-img-frame::before { transform: translate(10px, 10px); }
body .stops-feed .stop-card-v8:nth-of-type(even):hover .stop-img-frame::before,
body .stops-feed .stop-card-v8:nth-of-type(even).is-current .stop-img-frame::before { transform: translate(-10px, 10px); }
@media (prefers-reduced-motion: reduce) {
    body .stops-feed .stop-img-frame, body .stops-feed .stop-img-frame::before, body .stops-feed .stop-card-v8::after { transition: none; }
}
body .stops-feed .stop-copyright {
    position: static; margin: 26px 0 0; text-align: right;
    font-size: 0.66rem; color: var(--color-text-secondary); text-shadow: none;
}

/* --- La información --- */
body .stops-feed .stop-header-group { position: relative; display: block; margin: 0; padding-top: 0; }
body .stops-feed .stop-number-outline {
    position: static; display: block; margin: 0 0 -0.34em; padding: 0;
    font-family: var(--font-heading); font-weight: 400; font-size: clamp(5.2rem, 8vw, 8.6rem); line-height: 1; letter-spacing: 2px;
    color: transparent; -webkit-text-stroke: 2px rgba(255, 94, 20, 0.6); text-stroke: 2px rgba(255, 94, 20, 0.6);
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; user-select: none;
}
body .stops-feed .stop-number-outline::before { content: none; }
body .stops-feed .stop-card-v8:nth-of-type(even) .stop-number-outline { text-align: right; }
body .stops-feed .stop-title-main {
    position: relative; z-index: 1; margin: 0 0 14px;
    font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    line-height: 1; letter-spacing: 0.5px; text-transform: uppercase; hyphens: none; -webkit-hyphens: none;
    color: var(--color-text-primary); text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}
body.light-theme .stops-feed .stop-title-main { text-shadow: none; }
body .stops-feed .stop-address-link {
    display: inline-flex; gap: 8px; align-items: center; padding: 0; border: 0; background: none;
    font-size: 0.95rem; font-weight: 600; color: var(--color-text-secondary);
}
body .stops-feed .stop-address-link:hover { color: var(--color-primary); }
body .stops-feed .stop-address-link i { color: var(--color-primary); }

/* GPS: para teclearlo en el navegador del coche */
body .gd-gps {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lbl" "val" "dms" "acts";
    column-gap: 14px; row-gap: 2px; align-items: center;
    margin-top: 16px; padding: 12px 14px 12px 16px; border-radius: 14px;
    border: 1px dashed rgba(255, 94, 20, 0.5);
    background: repeating-linear-gradient(-45deg, rgba(255, 94, 20, 0.05) 0 10px, transparent 10px 20px);
}
body .gd-gps__lbl { grid-area: lbl; font-family: var(--font-tactical); font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-primary); }
body .gd-gps__lbl i { margin-right: 4px; }
body .gd-gps__val { grid-area: val; min-width: 0; padding: 0; background: none; font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: 1.12rem; font-weight: 700; letter-spacing: 0.3px; color: var(--color-text-primary); white-space: nowrap; }
body .gd-gps__dms { grid-area: dms; min-width: 0; font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: 0.8rem; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .gd-gps__acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body .gd-gps__btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-primary);
    font-family: var(--font-subheading); font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
body .gd-gps__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* Botón naranja que es un <a>: repite su color en :hover o la regla global de enlaces lo
   pinta naranja sobre naranja (docs/AGENTS-producto.md §11) */
body .gd-gps__btn--go, body .gd-gps__btn--go:hover, body .gd-gps__btn--go:focus-visible { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverted); }
body .gd-gps__btn--go:hover { background: var(--color-primary-hover); }
body .gd-gps__btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Datos prácticos en chips, acciones a su lado */
body .stops-feed .stop-hud-grid {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    margin-top: 14px; padding: 0; background: none; border: 0; box-shadow: none; clip-path: none;
}
body .stops-feed .hud-info-lines { display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 8px; flex: 1 1 auto; min-width: 0; padding: 0; background: none; border: 0; border-left: 0; }
body .stops-feed .hud-line {
    display: inline-flex; flex: none; width: auto; gap: 7px; align-items: center; padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.04); font-size: 0.86rem;
}
body.light-theme .stops-feed .hud-line { background: #fff; }
body .stops-feed .hud-line i { color: var(--color-primary); }
body .stops-feed .hud-line strong { font-weight: 700; color: var(--color-text-primary); }
body .stops-feed .hud-line span { color: var(--color-text-secondary); }
body .stops-feed .hud-actions-col, body .stops-feed .stop-hud-minimal { display: flex; flex-direction: row; flex: none; gap: 8px; padding: 0; border: 0; }
body .stops-feed .stop-hud-minimal { margin-top: 14px; }
body .stops-feed .btn-tactical-icon {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--color-border); color: var(--color-text-primary); clip-path: none;
}
body .stops-feed .btn-tactical-icon:hover { border-color: var(--color-primary); color: var(--color-primary); }
body .stops-feed .btn-tactical-icon[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Transporte público: en la columna de la información, una parada por fila */
body .stops-feed .stop-transit { margin: 18px 0 0; padding: 12px 16px 8px; }

/* Narrativa */
body .stops-feed .stop-bottom-row { padding: 18px 0 0; border-top: 0; }
body .stops-feed .narrative-text { font-size: 1rem; line-height: 1.75; }
body .stops-feed .btn-read-more {
    width: auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--color-border); background: none;
}
body .stops-feed .btn-read-more:hover { border-color: var(--color-primary); }

/* --- Misión anterior / siguiente: al final, como dos tarjetas con su foto --- */
body .stops-feed .desktop-mission-console {
    position: static; left: auto; right: auto; bottom: auto; height: auto; z-index: auto;
    margin-top: 26px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible;
}
body .stops-feed .desktop-mission-console::before { display: none; }
body .stops-feed .desktop-mission-console .freq-container { gap: 20px; }
body .stops-feed .desktop-mission-console .freq-signal { display: none; }
body .stops-feed .desktop-mission-console .freq-link {
    min-height: 116px; padding: 14px 18px; gap: 16px; overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px;
}
body .stops-feed .desktop-mission-console .freq-link:hover { border-color: var(--color-primary); }
body .stops-feed .desktop-mission-console .freq-img {
    display: block; flex: none; width: 120px !important; height: 84px !important; border-radius: 12px; object-fit: cover;
}
body .stops-feed .desktop-mission-console .freq-label { font-family: var(--font-tactical); font-size: 0.6rem; letter-spacing: 2px; color: var(--color-primary); }
body .stops-feed .desktop-mission-console .freq-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
    font-family: var(--font-subheading); font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--color-text-primary);
}
body .stops-feed .desktop-mission-console .freq-link.next .freq-data { text-align: right; }

/* --- Carril: radar + hoja de ruta, fijo mientras se leen los objetivos --- */
body .guide-rail {
    position: sticky; top: calc(var(--header-height, 60px) + 66px + 18px);
    display: flex; flex-direction: column; gap: 14px;
    max-height: calc(100vh - var(--header-height, 60px) - 66px - 36px);
}
body .gr-radar {
    flex: none; overflow: hidden; border-radius: 18px;
    background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
body .gr-radar__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; }
body .gr-radar__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-tactical); font-size: 0.64rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-primary); }
body .gr-radar__pos { margin-left: auto; font-family: var(--font-tactical); font-size: 0.7rem; letter-spacing: 1px; color: var(--color-text-secondary); }
body .gr-radar__pos b { font-family: var(--font-heading); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.5px; color: var(--color-text-primary); }
body .gr-radar__open {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-border); color: var(--color-text-primary);
}
body .gr-radar__open:hover { border-color: var(--color-primary); color: var(--color-primary); }
body .gr-radar__map { height: 250px; background: #1b2025; }
body.light-theme .gr-radar__map { background: #e9ecef; }
body .gr-radar__map .gr-pin { width: 22px; height: 22px; font-size: 0.62rem; border-width: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
body .gr-radar__map .vv-pin-wrap.is-active .gr-pin { width: 30px; height: 30px; font-size: 0.78rem; background: var(--color-primary); }

body .guide-rail #sidebarTimelineWidget {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; clip-path: none; overflow: hidden;
}
body .guide-rail #sidebarTimelineWidget::before, body .guide-rail #sidebarTimelineWidget::after { display: none; }
body .guide-rail #sidebarTimelineWidget .wire-head { flex: none; padding: 14px 16px 8px; background: none; border: 0; cursor: default; }
body .guide-rail #sidebarTimelineWidget .wh-title { font-family: var(--font-subheading); font-weight: 800; font-size: 0.9rem; color: var(--color-text-primary); }
body .guide-rail #sidebarTimelineWidget .wh-title i { color: var(--color-primary); margin-right: 6px; }
body .guide-rail #sidebarTimelineWidget .wh-stamp { display: none; }
body .guide-rail #sidebarTimelineWidget .wire-body { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; padding: 0 8px 10px 6px; }
body .guide-rail .wire-timeline li a { font-size: 0.86rem; }

/* El carrito y La Central flotan abajo: que el final de la guía no quede debajo */
body .guide-container { padding-bottom: 120px; }

/* =========================================================
   5. EL MAPA GRANDE, CON LA PIEL DEL RESTO DE MAPAS (pais.php, Atlas)
   Mapa a sangre con esquinas redondeadas, título en una tarjeta de cristal,
   herramientas y cerrar en cristal, velo cálido; sin el marco de esquina
   cortada, el borde naranja ni el pie «LIVE FEED». El móvil tiene su propia
   piel (guia-movil.css) y no cambia.
   ========================================================= */
body #mapModal.modal-overlay { background: rgba(8, 10, 12, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body #mapModal .modal-box {
    position: relative; display: block; width: min(1400px, 94vw); height: min(900px, 88vh); max-width: none; max-height: none;
    margin: 0; padding: 0; overflow: hidden; clip-path: none;
    background: #15191d; border: 1px solid var(--color-border); border-radius: 24px;
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}
body #mapModal .modal-box::before, body #mapModal .modal-box::after { display: none; }
body #mapModal .modal-map { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
body #mapModal #modal-leaflet-map::after {
    content: ''; position: absolute; inset: 0; z-index: 401; pointer-events: none;
    background: radial-gradient(120% 90% at 22% 12%, rgba(255, 94, 20, 0.12), transparent 58%),
                radial-gradient(150% 120% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.42));
}
body.light-theme #mapModal #modal-leaflet-map::after { background: radial-gradient(150% 120% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.12)); }
body #mapModal .modal-header {
    position: absolute; top: 18px; left: 18px; right: 18px; z-index: 1000;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin: 0; padding: 0; background: none; border: 0; pointer-events: none;
}
body #mapModal .modal-title {
    pointer-events: auto; max-width: 460px; margin: 0; padding: 14px 18px;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 27, 0.72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-family: var(--font-heading); font-weight: 400; font-size: 1.12rem; line-height: 1.15; letter-spacing: 0.5px; color: #fff; text-transform: uppercase;
}
body #mapModal .close-btn {
    pointer-events: auto; flex: none; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(18, 22, 27, 0.72);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    color: #fff; font-size: 1.5rem; line-height: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body #mapModal .close-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
body #mapModal .close-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
body.light-theme #mapModal .modal-title, body.light-theme #mapModal .close-btn { background: rgba(255, 255, 255, 0.9); color: #1c2024; border-color: rgba(0, 0, 0, 0.1); }
/* Herramientas a la izquierda del cerrar; interruptores de capas abajo a la izquierda */
body #mapModal .vv-map-tools { top: 18px; right: 80px; }
body #mapModal .gl-toggles { top: auto; bottom: 18px; left: 18px; flex-direction: row; }
body #mapModal .map-tabs { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 1000; margin: 0; }
body #mapModal .modal-footer-status { display: none; }
/* Panel del listado: bajo la tarjeta del título y por encima de los interruptores (antes
   se abría encima de los dos y se pisaban) */
body #mapModal .vv-map-panel { top: 118px; left: 18px; bottom: 76px; width: 380px; max-height: none; }
/* Con pestañas (que ya dicen cuántos hay), la cabecera «Objetivos 30» sobra */
body #mapModal .vv-map-panel:has(.gl-tabs) .vv-map-panel__head { display: none; }
body #mapModal .vv-map-panel__list { flex: 1 1 auto; min-height: 0; }
.gl-tabs { display: flex; gap: 6px; padding: 10px 8px 4px; flex: none; flex-wrap: nowrap; }
.gl-tab {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
    border: 1px solid var(--vvm-line, rgba(255, 255, 255, 0.14)); background: transparent; color: var(--vvm-ink, #F0F2F5);
    font-family: var(--font-subheading); font-weight: 700; font-size: 0.78rem;
}
.gl-tab[hidden] { display: none; }
.gl-tab b { font-size: 0.7rem; opacity: 0.8; }
.gl-tab--near i { color: #A78BFA; }
.gl-tab--transit i { color: #60A5FA; }
.gl-tab.is-on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.gl-tab.is-on i { color: #fff; }
.gl-tab--near.is-on { background: #7C3AED; border-color: #7C3AED; }
.gl-tab--transit.is-on { background: #2563EB; border-color: #2563EB; }
.gl-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gl-item { gap: 12px; }
/* Va dentro del contenedor de Leaflet, cuya regla `.leaflet-container img { width: initial !important }`
   las dejaba a tamaño real: se gana con el id del modal */
#mapModal .vv-map-panel .gl-item__img { width: 48px !important; height: 36px !important; max-width: none !important; flex: none; border-radius: 6px; object-fit: cover !important; }
.gl-item__ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; color: #fff; background: #2563EB; }
.gl-item--near .gl-item__ico { background: #7C3AED; }
.gl-item__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gl-item__txt b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-item__txt small { font-size: 0.72rem; color: var(--vvm-ink-dim, #9DA7B0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-item--near:hover, .gl-item--near.is-active { background: rgba(124, 58, 237, 0.16); border-color: rgba(124, 58, 237, 0.5); }
.gl-item--transit:hover, .gl-item--transit.is-active { background: rgba(37, 99, 235, 0.16); border-color: rgba(37, 99, 235, 0.5); }
.gl-empty { padding: 14px; font-size: 0.85rem; color: var(--vvm-ink-dim, #9DA7B0); }

/* Cada parada de transporte de una tarjeta lleva al mapa, centrada en ella */
body .stops-feed .stop-transit__row[data-tkey] { cursor: pointer; border-radius: 10px; margin: 0 -8px; padding: 3px 8px; transition: background 0.18s; }
body .stops-feed .stop-transit__row[data-tkey]:hover { background: rgba(59, 130, 246, 0.12); }
body .stops-feed .stop-transit__row[data-tkey]:focus-visible { outline: 2px solid #3B82F6; outline-offset: 1px; }
body .stops-feed .stop-transit__row[data-tkey] + .stop-transit__row { border-top-color: transparent; }

/* Contraste AA (26-09-2026): texto casi negro sobre el naranja, como el resto de botones
   naranja de la web (--color-text-inverted). El blanco daba 3,05:1. */
body .gd-cta--main, body .gd-cta--main:hover, body .gd-cta--main i { color: var(--color-text-inverted); }
body .gd-sec-tab[aria-expanded="true"], body .gd-sec-tab[aria-expanded="true"] i { color: var(--color-text-inverted); }
