/* rutas — estilos propios de la página */
/* ==========================================================
   Colores de Cali Viva. Las clases propias llevan "rv-"
   para que site.css no las pise.
   ========================================================== */
:root {
    --rv-verde: #00b14f;
    --rv-verde-hover: #00a047;
    --rv-verde-texto: #2fd47a;

    --rv-fondo: #0b1018;
    --rv-panel: #121a26;
    --rv-campo: #0e151f;
    --rv-hover: #182231;

    --rv-texto: #ffffff;
    --rv-texto-2: #c9d1da;
    --rv-gris: #8b97a5;
    --rv-linea: rgba(255, 255, 255, .08);
    --rv-linea-2: rgba(255, 255, 255, .16);

    --rv-nav-alto: 96px;
}

html { font-size: 17px; }
[hidden] { display: none !important; }   /* aunque una clase diga display:flex */
* { box-sizing: border-box; }
html { background: #0b1018; }
html, body { margin: 0; }
body { min-height: 100vh; }

body {
    background: var(--rv-fondo) !important;
    color: var(--rv-texto);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }
a { text-decoration: none; }

.rv-pagina :focus-visible { outline: 3px solid var(--rv-verde); outline-offset: 2px; }

/* ===================== NAVBAR (sin cambios) ===================== */

/* sticky + alto fijo: el contenido nunca queda debajo del menu */
.rv-nav {
    position: sticky;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    height: var(--rv-nav-alto) !important;
    background: rgba(11, 16, 24, .96);
    border-bottom: 1px solid var(--rv-linea);
    backdrop-filter: blur(14px);
}

.rv-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

.rv-logo img { display: block; height: 64px; width: auto; max-width: 180px; object-fit: contain; }

.rv-links { display: flex; gap: 52px; margin: 0; padding: 0; list-style: none; }

.rv-links a {
    position: relative;
    color: var(--rv-texto);
    font-size: 17px;
    font-weight: 700;
    transition: color .2s;
}

.rv-links a:hover { color: var(--rv-verde); }

.rv-links a.activo::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -10px;
    height: 3px;
    border-radius: 3px;
    background: var(--rv-verde);
}

.rv-nav-der { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }

.rv-nav .user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px 5px;
    background: transparent;
    border: 1px solid var(--rv-linea-2);
    border-radius: 999px;
    color: var(--rv-texto);
    font-weight: 700;
}

.rv-nav .user-btn img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rv-verde);
}

.rv-nav .user-caret {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--rv-texto);
}

.rv-nav .dropdown-menu { background: var(--rv-panel); border: 1px solid var(--rv-linea-2); border-radius: 12px; }
.rv-nav .dropdown-menu strong { color: var(--rv-texto); }
.rv-nav .dropdown-menu small { color: var(--rv-gris); }
.rv-nav .dropdown-divider { border-color: var(--rv-linea-2); }
.rv-nav .dropdown-item { color: var(--rv-texto-2); font-size: 14px; }
.rv-nav .dropdown-item:hover { background: var(--rv-hover); color: var(--rv-verde); }

/* ===================== ESTRUCTURA ===================== */

.rv-pagina {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 24px;
}

.rv-layout {
    display: grid;
    grid-template-columns: 27rem minmax(0, 1fr);
    gap: 16px;
    height: calc(100vh - var(--rv-nav-alto) - 40px);
    min-height: 560px;
}

.rv-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--rv-panel);
    border: 1px solid var(--rv-linea);
    border-radius: 16px;
    overflow: hidden;
}

/* Pestañas de texto con linea verde, como el menu de arriba */
.rv-tabs {
    display: flex;
    gap: 1.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1.4rem;
    border-bottom: 1px solid var(--rv-linea);
}

.rv-tab {
    padding: 1.15rem 0 1rem;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    color: var(--rv-gris);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.rv-tab:hover { color: var(--rv-texto); }
.rv-tab[aria-selected="true"] { color: var(--rv-texto); border-bottom-color: var(--rv-verde); }

.rv-contenido {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: #2a3647 transparent;
}

.rv-titulo { margin: 0 0 1.1rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.rv-etiqueta { display: block; margin: 0 0 .5rem; color: var(--rv-texto-2); font-size: .95rem; font-weight: 600; }
.rv-bloque { margin-bottom: 1.4rem; }

/* ===================== BUSCADOR DE RUTA ===================== */

.rv-buscador {
    position: relative;
    display: grid;
    grid-template-columns: 1.6rem 1fr 3rem;
    align-items: center;
    column-gap: .5rem;
    padding: .35rem .35rem .35rem .8rem;
    background: var(--rv-campo);
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
}

.rv-buscador:focus-within { border-color: var(--rv-verde); box-shadow: 0 0 0 3px rgba(0, 177, 79, .15); }

.rv-punto { justify-self: center; width: .75rem; height: .75rem; border-radius: 50%; border: 2.5px solid var(--rv-texto-2); }
.rv-punto.destino { border-color: var(--rv-verde); background: var(--rv-verde); }

.rv-puntos {
    justify-self: center;
    width: 2px;
    height: 1rem;
    background-image: linear-gradient(var(--rv-gris) 50%, transparent 50%);
    background-size: 2px 5px;
}

.rv-buscador input {
    width: 100%;
    min-height: 3.1rem;
    padding: 0 .4rem;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 1.08rem;
}

.rv-buscador input::placeholder { color: #6c7886; }

.rv-divisor { grid-column: 2; height: 1px; background: var(--rv-linea); }

.rv-cambiar {
    grid-column: 3;
    grid-row: 1 / span 3;
    justify-self: center;
    width: 2.8rem; height: 2.8rem;
    background: transparent;
    border: 1px solid var(--rv-linea-2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.15rem;
}

.rv-cambiar:hover { border-color: var(--rv-verde); color: var(--rv-verde); }

.rv-enlace {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.75rem;
    padding: 0;
    background: none;
    border: 0;
    color: var(--rv-verde-texto);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.rv-enlace:hover { text-decoration: underline; }
.rv-enlace svg { width: 1.15rem; height: 1.15rem; }

.rv-frecuentes { display: flex; flex-wrap: wrap; gap: .45rem; }

.rv-frecuente {
    min-height: 2.6rem;
    padding: 0 .95rem;
    background: transparent;
    border: 1px solid var(--rv-linea-2);
    border-radius: 8px;
    font-size: .95rem;
    cursor: pointer;
}

.rv-frecuente { transition: border-color .15s, color .15s, background .15s; }
.rv-frecuente:hover { border-color: var(--rv-verde); color: var(--rv-verde-texto); background: rgba(0, 177, 79, .06); }

/* ===================== BOTONES ===================== */

.rv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 3.3rem;
    padding: 0 1.2rem;
    background: var(--rv-verde);
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.rv-btn:hover { background: var(--rv-verde-hover); color: #fff; }
.rv-btn:disabled { opacity: .6; cursor: wait; }

.rv-btn.borde { background: transparent; border: 1px solid var(--rv-linea-2); color: var(--rv-texto); }
.rv-btn.borde:hover { border-color: var(--rv-verde); color: var(--rv-verde-texto); }

.rv-dos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.rv-error {
    display: none;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, .1);
    border-radius: 8px;
    color: #fecaca;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===================== RESULTADO ===================== */

.rv-resumen {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--rv-linea);
}

.rv-resumen p { margin: 0; color: var(--rv-gris); font-size: .95rem; line-height: 1.55; }
.rv-resumen strong { color: var(--rv-texto); font-weight: 600; overflow-wrap: anywhere; }

.rv-modos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.3rem; }

.rv-modo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .75rem .2rem .7rem;
    background: transparent;
    border: 1px solid var(--rv-linea);
    border-radius: 10px;
    cursor: pointer;
}

.rv-modo svg { width: 1.45rem; height: 1.45rem; color: var(--rv-texto-2); }
.rv-modo-nombre { color: var(--rv-gris); font-size: .85rem; font-weight: 600; }
.rv-modo-tiempo { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.rv-modo { transition: border-color .15s, background .15s; }
.rv-modo:hover { background: var(--rv-hover); }

.rv-modo[aria-pressed="true"] { border-color: var(--rv-verde); background: rgba(0, 177, 79, .1); }
.rv-modo[aria-pressed="true"] svg,
.rv-modo[aria-pressed="true"] .rv-modo-tiempo { color: var(--rv-verde-texto); }

.rv-tiempo { margin: 0; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rv-sub { margin: .5rem 0 0; color: var(--rv-texto-2); font-size: 1.02rem; }

.rv-precio {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 1.2rem 0 0;
    padding: 1rem 0;
    border-top: 1px solid var(--rv-linea);
    border-bottom: 1px solid var(--rv-linea);
    font-size: 1.02rem;
}

.rv-precio span { color: var(--rv-texto-2); }
.rv-precio strong { font-size: 1.2rem; white-space: nowrap; }

.rv-nota { margin: .7rem 0 0; color: var(--rv-gris); font-size: .9rem; line-height: 1.5; }
.rv-acciones { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }

/* ===================== RESTAURANTES ===================== */

.rv-contador {
    display: grid;
    grid-template-columns: 3.3rem 1fr 3.3rem;
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
    overflow: hidden;
}

.rv-contador button {
    height: 3.3rem;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
}

.rv-contador button:hover { background: var(--rv-hover); color: var(--rv-verde-texto); }

.rv-contador output {
    display: grid;
    place-items: center;
    border-left: 1px solid var(--rv-linea-2);
    border-right: 1px solid var(--rv-linea-2);
    font-size: 1.08rem;
    font-weight: 700;
}

.rv-segmento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
    overflow: hidden;
}

.rv-segmento label { position: relative; cursor: pointer; }
.rv-segmento label + label { border-left: 1px solid var(--rv-linea-2); }
.rv-segmento input { position: absolute; opacity: 0; }

.rv-segmento span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.9rem;
    padding: .4rem;
    text-align: center;
    font-weight: 700;
}

.rv-segmento small { color: var(--rv-gris); font-size: .8rem; font-weight: 500; }
.rv-segmento label:hover span { background: var(--rv-hover); }
.rv-segmento input:checked + span { background: var(--rv-verde); color: #fff; }
.rv-segmento input:checked + span small { color: rgba(255, 255, 255, .85); }
.rv-segmento input:focus-visible + span { outline: 3px solid var(--rv-verde); outline-offset: -3px; }

/* ===================== LISTAS ===================== */

.rv-volver { margin: -.5rem 0 .6rem; }
.rv-conteo { margin: 0 0 .4rem; color: var(--rv-gris); font-size: .95rem; }

.rv-lista { margin: 0; padding: 0; list-style: none; }
.rv-fila { padding: 1.1rem 0; border-bottom: 1px solid var(--rv-linea); }
.rv-fila:last-child { border-bottom: 0; }
.rv-fila.activa h3 { color: var(--rv-verde-texto); }

.rv-fila h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.rv-fila-dir { margin: .2rem 0 0; color: var(--rv-gris); font-size: .95rem; }
.rv-fila-desc { margin: .45rem 0 0; color: var(--rv-texto-2); font-size: .98rem; line-height: 1.45; }
.rv-fila-precio { margin: .45rem 0 0; font-weight: 700; }
.rv-fila-acciones { display: flex; gap: 1.4rem; margin-top: .3rem; }

.rv-paseo {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rv-linea);
    text-align: left;
    cursor: pointer;
}

.rv-paseo:last-child { border-bottom: 0; }
.rv-paseo strong { display: block; font-size: 1.1rem; }
.rv-paseo small { display: block; margin-top: .15rem; color: var(--rv-gris); font-size: .95rem; }
.rv-paseo:hover strong { color: var(--rv-verde-texto); }
.rv-paseo-flecha { margin-left: auto; color: var(--rv-gris); font-size: 1.5rem; }

/* ===================== ARMA TU PLAN ===================== */

.rv-intro { margin: -.5rem 0 1.3rem; color: var(--rv-gris); font-size: .98rem; line-height: 1.5; }

.rv-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rv-chips label { position: relative; cursor: pointer; }
.rv-chips input { position: absolute; opacity: 0; pointer-events: none; }

.rv-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--rv-linea-2);
    border-radius: 8px;
    font-size: .98rem;
    transition: border-color .15s, background .15s;
}

.rv-chips label:hover span { border-color: var(--rv-verde); }
.rv-chips input:checked + span { background: var(--rv-verde); border-color: var(--rv-verde); color: #fff; font-weight: 700; }
.rv-chips input:focus-visible + span { outline: 3px solid var(--rv-verde); outline-offset: 2px; }

.rv-extra {
    width: 100%;
    min-height: 3.1rem;
    padding: .8rem 1rem;
    background: var(--rv-campo);
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    resize: vertical;
}

.rv-extra:focus { border-color: var(--rv-verde); }
.rv-extra::placeholder { color: #6c7886; }

.rv-cargando-plan { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; color: var(--rv-texto-2); }

.rv-girando {
    width: 1.3rem; height: 1.3rem;
    border: 3px solid var(--rv-linea-2);
    border-top-color: var(--rv-verde);
    border-radius: 50%;
    animation: rv-girar .8s linear infinite;
}

@keyframes rv-girar { to { transform: rotate(360deg); } }

.rv-plan-titulo { margin: 0 0 .35rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.rv-plan-resumen { margin: 0 0 .6rem; color: var(--rv-texto-2); line-height: 1.5; }
.rv-plan-total { margin: 0 0 1.2rem; color: var(--rv-gris); font-size: .95rem; }

.rv-paradas { margin: 0; padding: 0; list-style: none; }

.rv-parada { display: grid; grid-template-columns: 2rem 1fr; column-gap: .9rem; }

.rv-parada-num {
    display: grid;
    place-items: center;
    width: 2rem; height: 2rem;
    background: var(--rv-verde);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
}

.rv-parada-linea { justify-self: center; width: 2px; background: var(--rv-linea-2); margin: .3rem 0; }
.rv-parada-info { padding-bottom: .4rem; }
.rv-parada-info h3 { margin: .2rem 0 .15rem; font-size: 1.1rem; font-weight: 700; }
.rv-parada-info p { margin: 0; color: var(--rv-texto-2); font-size: .98rem; line-height: 1.45; }
.rv-parada-meta { margin-top: .25rem !important; color: var(--rv-gris) !important; font-size: .9rem !important; }
.rv-tramo { padding: .7rem 0 1rem; color: var(--rv-gris); font-size: .9rem; }

.rv-consejo {
    margin: 1rem 0 0;
    padding: .9rem 1rem;
    border-left: 4px solid var(--rv-verde);
    background: rgba(0, 177, 79, .07);
    border-radius: 8px;
    color: var(--rv-texto-2);
    font-size: .98rem;
    line-height: 1.5;
}

.rv-pin-num {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    background: var(--rv-verde);
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font: 800 14px/1 Inter, system-ui, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* ===================== MAPA (Google) ===================== */

.rv-mapa {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #0e151f;
    border: 1px solid var(--rv-linea);
    border-radius: 16px;
}

#mapa2d, #mapa3d { position: absolute; inset: 0; }
#mapa3d gmp-map-3d { display: block; width: 100%; height: 100%; }

/* Botones 3D / Satelite / Mapa */
.rv-vistas {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 5;
    display: flex;
    background: rgba(11, 16, 24, .9);
    border: 1px solid var(--rv-linea-2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.rv-vistas button {
    min-height: 2.6rem;
    padding: 0 .95rem;
    background: transparent;
    border: 0;
    color: var(--rv-texto-2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.rv-vistas button + button { border-left: 1px solid var(--rv-linea-2); }
.rv-vistas button:hover { color: #fff; background: var(--rv-hover); }
.rv-vistas button[aria-pressed="true"] { background: var(--rv-verde); color: #fff; }

/* Tarjeta al tocar un punto del mapa */
.rv-tarjeta {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    max-width: 26rem;
    padding: .85rem 1rem;
    background: rgba(11, 16, 24, .95);
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.rv-tarjeta strong { display: block; font-size: 1rem; }
.rv-tarjeta span { display: block; margin-top: .15rem; color: var(--rv-gris); font-size: .9rem; }
.rv-tarjeta button { margin-left: auto; background: none; border: 0; color: var(--rv-gris); font-size: 1.4rem; line-height: 1; cursor: pointer; }

.rv-aviso-mapa {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--rv-texto-2);
    line-height: 1.6;
}

.rv-aviso-mapa code { color: var(--rv-verde-texto); }

/* Sugerencias de Google al escribir */
.rv-sugerencias {
    position: absolute;
    left: 0; right: 0;
    z-index: 20;
    margin: 0;
    padding: .3rem 0;
    list-style: none;
    background: var(--rv-panel);
    border: 1px solid var(--rv-linea-2);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

.rv-sugerencias li {
    padding: .65rem 1rem;
    cursor: pointer;
}

.rv-sugerencias li strong { display: block; font-weight: 600; }
.rv-sugerencias li small { display: block; color: var(--rv-gris); font-size: .85rem; }
.rv-sugerencias li[aria-selected="true"], .rv-sugerencias li:hover { background: var(--rv-hover); }
.rv-sugerencias .rv-google { padding: .3rem 1rem 0; color: var(--rv-gris); font-size: .75rem; text-align: right; cursor: default; }
.rv-sugerencias .rv-google:hover { background: none; }

/* Pasos del MIO */
.rv-pasos { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.rv-paso { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--rv-linea); }
.rv-paso:last-child { border-bottom: 0; }
.rv-paso svg { width: 1.4rem; height: 1.4rem; color: var(--rv-texto-2); margin-top: .1rem; }
.rv-paso strong { display: block; }
.rv-paso small { display: block; color: var(--rv-gris); font-size: .9rem; line-height: 1.45; }
.rv-linea-bus { display: inline-block; padding: .05rem .5rem; margin-right: .3rem; background: var(--rv-verde); border-radius: 6px; color: #fff; font-weight: 800; }

/* Marcadores del mapa 2D */
.rv-marca.centro { transform: translateY(50%); }

.rv-pin {
    width: 28px; height: 28px;
    background: var(--rv-verde);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg) translate(-4px, -4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.rv-salida {
    width: 20px; height: 20px;
    background: #fff;
    border: 5px solid #0b1018;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* ===================== CELULAR ===================== */

@media (max-width: 1100px) {
    .rv-links { gap: 28px; }
    .rv-links a { font-size: 15px; }
    .rv-layout { grid-template-columns: 24rem minmax(0, 1fr); }
}

@media (max-width: 860px) {
    :root { --rv-nav-alto: 72px; }
    .rv-nav-inner { grid-template-columns: auto 1fr; }
    .rv-links { display: none; }
    .rv-logo img { height: 46px; }
    .rv-nav .user-btn img { width: 36px; height: 36px; }

    .rv-pagina { padding: 12px 12px 16px; }
    .rv-layout { display: flex; flex-direction: column; height: auto; min-height: 0; gap: 12px; }
    .rv-mapa { order: 1; height: 42vh; min-height: 300px; }
    .rv-panel { order: 2; }
    .rv-contenido { overflow: visible; padding: 1.2rem 1.1rem; }
    .rv-tabs { padding: 0 1.1rem; gap: 1rem; }
    .rv-tab { font-size: .93rem; }
}

@media (max-width: 420px) {
    .rv-nav-inner { padding: 0 12px; }
    .rv-nav .user-name { display: none; }
    .rv-nav .user-btn { padding: 4px 10px 4px 4px; }
    .rv-modo-nombre { font-size: .78rem; }
    .rv-modo-tiempo { font-size: .92rem; }
    .rv-dos { grid-template-columns: 1fr; }
}

/* Marcadores del mapa gratis (OpenStreetMap / Leaflet) */
.rv-marca-osm { background: none; border: 0; }
#mapa2d.leaflet-container { background: #0e151f; font-family: Inter, system-ui, sans-serif; }
.rv-mapa .leaflet-control-attribution { background: rgba(11, 16, 24, .8); color: #8b97a5; }
.rv-mapa .leaflet-control-attribution a { color: #2fd47a; }
.rv-mapa .leaflet-top.leaflet-left { top: 60px; }   /* que el zoom no tape los botones Satélite / Mapa */
