/**
 * MASTER.CSS - Hoja de estilos principal
 * Desarrollado por Iñaki Serrano para Webcomunica.solutions
 *
 * Diseño: Mapa a pantalla completa con paneles flotantes translúcidos
 *
 * Paleta de colores:
 *   - Principal:    #1a1a2e (azul muy oscuro)
 *   - Secundario:   #16213e (azul marino)
 *   - Acento:       #0f3460 (azul profundo)
 *   - Destacado:    #e94560 (rojo elegante)
 *   - Texto:        #2d2d2d
 *   - Texto suave:  #6c757d
 *   - Blanco:       #ffffff
 */


/* ══════════════════════════════════════
   RESET Y BASE
   ══════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d2d2d;
}


/* ══════════════════════════════════════
   MAPA A PANTALLA COMPLETA
   ══════════════════════════════════════ */

.mapa-completo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


/* ══════════════════════════════════════
   BANNER PUBLICITARIO (franja superior)
   ══════════════════════════════════════ */

.banner-publicitario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    padding: 8px 50px 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: bannerEntrada 0.4s ease;
}

@keyframes bannerEntrada {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.banner-enlace {
    text-decoration: none;
    display: block;
}

.banner-texto {
    color: #c0c0d8;
    font-size: 0.82rem;
    font-weight: 400;
    transition: color 0.2s;
}

.banner-texto strong {
    color: #ffffff;
    font-weight: 600;
}

.banner-enlace:hover .banner-texto {
    color: #ffffff;
}

/* En escritorio: los br de móvil no hacen salto */
.solo-movil {
    display: none;
}

.banner-publicitario.banner-destacado {
    background: linear-gradient(135deg, #e94560, #c0392b);
}

.banner-destacado .banner-texto {
    color: #ffffff;
    font-weight: 500;
}

.banner-cerrar {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.banner-cerrar:hover {
    background: #e94560;
}

/* Cuando el banner está visible, desplazar el panel hacia abajo */
.banner-publicitario ~ .panel-flotante {
    top: 52px;
}

/* Cuando el banner se oculta, volver arriba */
.banner-publicitario.oculto {
    display: none;
}

.banner-publicitario.oculto ~ .panel-flotante {
    top: 20px;
}


/* ══════════════════════════════════════
   PANEL FLOTANTE SUPERIOR (búsqueda)
   ══════════════════════════════════════ */

.panel-flotante {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 10;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 20px 28px;
    width: calc(100% - 40px);
    max-width: 860px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Cabecera dentro del panel */
.panel-cabecera {
    text-align: center;
    margin-bottom: 14px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-acento {
    color: #e94560;
}

.logo-by {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
    transition: color 0.2s;
}

.logo-by:hover {
    color: #e94560;
}

/* Selector de combustible */
.panel-combustible {
    margin-bottom: 14px;
}

.grupo-botones {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.boton-combustible {
    background: rgba(255, 255, 255, 0.08);
    color: #b0b0c8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boton-combustible:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.boton-combustible.activo {
    background: #e94560;
    color: #ffffff;
    border-color: #e94560;
}

/* Acceso Modo Viaje desde panel principal (solo escritorio/tablet) */
.panel-acceso-viaje {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 2px;
    margin-top: 2px;
}

.panel-acceso-viaje::before,
.panel-acceso-viaje::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

@keyframes neon-viaje {
    0%, 100% { text-shadow: 0 0 6px rgba(79,195,247,0.85), 0 0 18px rgba(79,195,247,0.5), 0 0 35px rgba(79,195,247,0.25); }
    50%       { text-shadow: 0 0 4px rgba(79,195,247,0.6),  0 0 10px rgba(79,195,247,0.3), 0 0 20px rgba(79,195,247,0.15); }
}

.boton-acceso-viaje {
    background: none;
    border: none;
    color: #a8e0f7;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    animation: neon-viaje 2.8s ease-in-out infinite;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.boton-acceso-viaje:hover {
    color: #d0f0ff;
    animation: none;
    text-shadow: 0 0 8px rgba(79,195,247,1), 0 0 22px rgba(79,195,247,0.7), 0 0 45px rgba(79,195,247,0.4);
}

.boton-acceso-viaje svg {
    display: block;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Localización */
.panel-localizacion {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.boton-principal {
    background: #e94560;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.boton-principal:hover {
    background: #d63851;
    transform: translateY(-1px);
}

.separador-o {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.campo-direccion {
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: 380px;
    width: 100%;
}

.input-direccion {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-direccion::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-direccion:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.1);
}

.boton-buscar {
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid #ffffff;
    padding: 12px 20px;
    border-radius: 0 10px 10px 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.boton-buscar:hover {
    background: #e94560;
    color: #ffffff;
    border-color: #e94560;
}


/* ══════════════════════════════════════
   INDICADOR DE CARGA (centrado en pantalla)
   ══════════════════════════════════════ */

.cargando {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.cargando-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e94560;
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: girar 0.8s linear infinite;
}

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

.cargando-texto {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}


/* ══════════════════════════════════════
   PANEL COLAPSADO (móvil, tras buscar)
   ══════════════════════════════════════ */

.panel-flotante.colapsado {
    display: none !important;
}

.banner-publicitario.colapsado-banner {
    display: none !important;
}


/* ══════════════════════════════════════
   BOTÓN REABRIR PANEL (móvil)
   ══════════════════════════════════════ */

.boton-reabrir {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #a0a0b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.boton-reabrir span {
    color: #e94560;
    font-weight: 700;
}

.boton-reabrir:hover {
    background: rgba(26, 26, 46, 0.98);
    color: #ffffff;
}


/* ══════════════════════════════════════
   BOTÓN VER LISTA (flotante abajo derecha)
   ══════════════════════════════════════ */

.boton-ver-lista {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.boton-ver-lista:hover {
    background: rgba(20, 20, 40, 0.95);
    transform: translateY(-2px);
}

.boton-ver-lista span {
    color: #e94560;
    font-weight: 700;
}


/* ══════════════════════════════════════
   BARRA INFERIOR (WhatsApp + Instalar)
   ══════════════════════════════════════ */

.barra-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 12;
    display: flex;
    animation: barraEntrada 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes barraEntrada {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.barra-boton {
    flex: 1;
    border: none;
    padding: 14px 10px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    color: #ffffff;
    transition: filter 0.2s ease;
}

.barra-boton:hover {
    filter: brightness(1.1);
}

.barra-whatsapp {
    background: #25d366;
}

.barra-instalar {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

.barra-boton-titulo {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.barra-boton-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}


/* ══════════════════════════════════════
   PIE LEGAL (footer fijo sobre la barra inferior)
   ══════════════════════════════════════ */

.pie-legal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    padding: 6px 10px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
}

.pie-legal p {
    margin-bottom: 2px;
}

.pie-legal-enlaces {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pie-legal-enlaces a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.pie-legal-enlaces a:hover {
    color: #e94560;
}


/* ══════════════════════════════════════
   MODO VIAJE
   ══════════════════════════════════════ */

/* Botón flotante Viaje (siempre visible, izquierda) */
.boton-viaje-flotante {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.boton-viaje-flotante:hover {
    background: rgba(20, 20, 40, 0.95);
    transform: translateY(-2px);
}

/* Panel viaje (lado izquierdo) - mismo estilo que panel-lista */
.panel-viaje {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    max-width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-viaje.abierto {
    left: 0;
}

.panel-viaje-cabecera {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    gap: 10px;
}

.viaje-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.boton-cerrar-viaje {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: inherit;
}

.boton-cerrar-viaje:hover {
    background: #e94560;
}

.panel-viaje-cuerpo {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.boton-gps-origen {
    width: 100%;
}

.boton-gps-origen:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Separador "o" dentro del panel viaje (fondo blanco) */
.panel-viaje-cuerpo .separador-o {
    display: block;
    color: rgba(26, 26, 46, 0.3);
    text-align: center;
    margin: 0;
}

.input-viaje {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.input-viaje::placeholder {
    color: rgba(26, 26, 46, 0.4);
}

.input-viaje:focus {
    border-color: #0f3460;
}

.viaje-mensaje {
    color: rgba(26, 26, 46, 0.5);
    font-size: 0.82rem;
    text-align: center;
    padding: 20px 16px;
}

/* #listaViaje hereda todo de .lista-gasolineras — no necesita reglas propias */

/* Ruta en el mapa */
.viaje-ruta-info {
    padding: 6px 16px;
    font-size: 0.75rem;
    color: rgba(26, 26, 46, 0.45);
    text-align: center;
    flex-shrink: 0;
}

.panel-viaje-resultados-cabecera {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.boton-nueva-ruta {
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: 1px solid rgba(15, 52, 96, 0.25);
    color: #0f3460;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s;
}

.boton-nueva-ruta:hover {
    background: #0f3460;
    color: #fff;
}

.tarjeta-viaje-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tarjeta-estacion.es-mejor .tarjeta-viaje-num {
    background: #e94560;
}

/* Responsive móvil */
@media (max-width: 768px) {
    /* En móvil el botón flotante "Ruta en Viaje" ya está visible → ocultar el del panel */
    .panel-acceso-viaje {
        display: none;
    }

    .panel-viaje {
        width: 100%;
        left: -100%;
    }
    .panel-viaje.abierto {
        left: 0;
    }
}


/* ══════════════════════════════════════
   BADGE DKV
   ══════════════════════════════════════ */

.badge-dkv {
    height: 22px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-left: 6px;
    border-radius: 3px;
    display: inline-block !important;
    max-width: none !important;
}

@media (max-width: 768px) {
    .badge-dkv {
        height: 13px !important;
    }
}


/* ══════════════════════════════════════
   ESTILOS PÁGINAS LEGALES
   ══════════════════════════════════════ */

.legal-contenido {
    padding-top: 30px;
    padding-bottom: 60px;
}

.legal-contenido h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 28px 0 10px;
}

.legal-contenido h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin: 20px 0 8px;
}

.legal-contenido p {
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-contenido ul {
    margin: 8px 0 16px 20px;
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.7;
}

.legal-fecha {
    text-align: center;
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.legal-volver {
    text-align: center;
    margin-top: 40px;
}

.legal-volver .boton-principal {
    display: inline-block;
    text-decoration: none;
}


/* ══════════════════════════════════════
   PANEL LISTA LATERAL (deslizable)
   ══════════════════════════════════════ */

.panel-lista {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    animation: deslizarEntrada 0.3s ease;
}

@keyframes deslizarEntrada {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.panel-lista-cabecera {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    backdrop-filter: blur(10px);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.panel-lista-cabecera h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
}

.lista-total {
    font-size: 0.85rem;
    color: #e94560;
    font-weight: 600;
}

.boton-cerrar-lista {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.boton-cerrar-lista:hover {
    background: #e94560;
}

/* Tarjetas dentro de la lista */
.lista-gasolineras {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.tarjeta-estacion {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
}

.tarjeta-estacion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.tarjeta-estacion.es-mejor {
    border: 2px solid #43a06b;
    background: #d6f0e0;
    position: relative;
    overflow: visible;
    padding-top: 30px;
}

.tarjeta-estacion.es-mejor::before {
    content: 'MEJOR OPCIÓN';
    position: absolute;
    top: -2px;
    left: -2px;
    background: #43a06b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 13px;
    border-radius: 10px 0 8px 0;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.estacion-info {
    flex: 1;
    min-width: 0;
}

.estacion-rotulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.estacion-direccion {
    font-size: 0.8rem;
    color: #6c757d;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.estacion-distancia-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}
.estacion-distancia-row > span {
    font-size: 0.8rem;
    color: #0f3460;
    font-weight: 500;
}

/* Badges de estado abierto/cerrado y 24H */
.badge-24h {
    display: inline-flex;
    align-items: center;
    background: #00c853;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1;
}
.badge-24h-nombre {
    margin-left: 5px;
    font-size: 0.55rem;
}
.badge-abierta {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.badge-cerrada {
    display: inline-flex;
    align-items: center;
    background: #fce4e4;
    color: #c62828;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.estacion-distancia {
    font-size: 0.8rem;
    color: #0f3460;
    font-weight: 500;
    margin-top: 2px;
}

.estacion-precio {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    white-space: nowrap;
}

.estacion-precio-unidad {
    font-size: 0.7rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
    text-align: right;
}


/* ══════════════════════════════════════
   POPUP DEL MAPA (InfoWindow de Google)
   ══════════════════════════════════════ */

.popup-mapa {
    font-family: 'Inter', sans-serif;
    padding: 2px 2px 4px;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
}

.popup-etiqueta {
    display: inline-block;
    background: #e94560;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 10px;
}

.popup-precio {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    margin-top: 2px;
}

.popup-nombre {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 3px;
    word-wrap: break-word;
}

.popup-direccion {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 1px;
    word-wrap: break-word;
}

.popup-distancia {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e94560;
    margin-top: 2px;
}

.popup-horario {
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 1px;
}

.popup-ir {
    display: inline-block;
    margin-top: 4px;
    background: #1a1a2e;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s;
}

.popup-ir:hover {
    background: #e94560;
}

/* Forzar estilos del InfoWindow de Google Maps */
.gm-style-iw-c {
    padding: 4px !important;
    border-radius: 10px !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Ocultar X de cierre */
.gm-style-iw-c button.gm-ui-hover-effect,
.gm-style-iw-chr {
    display: none !important;
}

/* Quitar flecha inferior */
.gm-style-iw-tc {
    display: none !important;
}


/* ══════════════════════════════════════
   MODAL DE AVISOS
   ══════════════════════════════════════ */

.modal-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-caja {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
    animation: modalSubir 0.25s ease;
}

@keyframes modalSubir {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.modal-mensaje {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-boton {
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    padding: 12px 36px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-boton:hover {
    background: #e94560;
}

/* ──── Modal publicidad ──── */

.modal-publicidad {
    position: relative;
    padding: 36px 28px 28px;
}

.modal-subtitulo {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #2d2d2d;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #0f3460;
}

.modal-textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #2d2d2d;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

.modal-textarea:focus {
    border-color: #0f3460;
}

.modal-boton-enviar {
    width: 100%;
    background: #e94560;
    padding: 14px;
    font-size: 1rem;
}

.modal-boton-enviar:hover {
    background: #1a1a2e;
}

.modal-boton-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e0e0e0;
    color: #2d2d2d;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-boton-cerrar:hover {
    background: #e94560;
    color: #ffffff;
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {

    /* Banner ajuste móvil */
    .banner-publicitario {
        padding: 8px 40px 8px 12px;
        text-align: center;
    }

    .solo-movil {
        display: inline;
    }

    .banner-texto {
        font-size: 0.72rem;
        text-align: center;
    }

    .banner-publicitario ~ .panel-flotante {
        top: 92px;
    }

    .panel-flotante {
        top: 34px;
        transform: translateX(-50%);
        padding: 14px 16px;
        width: calc(100% - 20px);
        border-radius: 14px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-by {
        font-size: 0.75rem;
    }


    .grupo-botones {
        gap: 4px;
    }

    .boton-combustible {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .panel-localizacion {
        flex-direction: column;
        gap: 8px;
    }

    .boton-principal {
        width: 100%;
        padding: 12px;
    }

    .separador-o {
        display: none;
    }

    .campo-direccion {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .input-direccion {
        padding: 10px 10px;
        font-size: 0.82rem;
    }

    .boton-buscar {
        padding: 10px 12px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    /* Botón ver lista: subir para dejar espacio a la barra de compartir */
    .boton-ver-lista {
        right: 10px;
        bottom: 100px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .boton-viaje-flotante {
        left: 10px;
        bottom: 100px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    /* Panel lista: ancho completo en móvil */
    .panel-lista {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .panel-flotante {
        top: 10px;
        padding: 10px 12px;
    }

    .banner-publicitario ~ .panel-flotante {
        top: 88px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-by {
        font-size: 0.7rem;
    }

    .boton-combustible {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
}


/* ══════════════════════════════════════
   BANNER INSTALAR PWA
   ══════════════════════════════════════ */

.banner-instalar {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 14;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 50px 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: calc(100% - 30px);
    animation: compartirEntrada 0.4s ease;
}

.instalar-texto {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
}

.instalar-texto strong {
    display: block;
    font-size: 0.95rem;
}

.instalar-texto span {
    color: #a0a0b8;
    font-size: 0.78rem;
}

.instalar-boton {
    background: #e94560;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.instalar-boton:hover {
    background: #d63851;
}

.instalar-cerrar {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instalar-cerrar:hover {
    background: #e94560;
}


/* ══════════════════════════════════════
   PÁGINAS SEO (gasolineras-baratas)
   ══════════════════════════════════════ */

.seo-cabecera {
    background: #1a1a2e;
    padding: 24px 0;
    text-align: center;
}

.seo-contenedor {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 40px 0 12px;
    text-align: center;
}

.seo-intro {
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.seo-cta {
    text-align: center;
    margin: 30px 0;
}

.seo-cta .boton-principal {
    display: inline-block;
    text-decoration: none;
}

/* Grid de provincias */
.seo-grid-provincias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.seo-provincia-enlace {
    background: #ffffff;
    color: #1a1a2e;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.seo-provincia-enlace:hover {
    background: #e94560;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Tabla de precios */
.seo-tabla-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.seo-tabla {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.seo-tabla th {
    background: #1a1a2e;
    color: #ffffff;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-tabla td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #2d2d2d;
}

.seo-tabla small {
    color: #6c757d;
    font-size: 0.78rem;
}

.seo-posicion {
    font-weight: 700;
    color: #6c757d;
    text-align: center;
    width: 40px;
}

.seo-precio {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a2e;
    white-space: nowrap;
}

.seo-fila-mejor {
    background: #fff5f7;
}

.seo-fila-mejor .seo-posicion {
    color: #e94560;
}

.seo-fila-mejor .seo-precio {
    color: #e94560;
}

.seo-provincias-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.seo-provincias-footer h2 {
    text-align: center;
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.seo-pie {
    background: #1a1a2e;
    color: #6c757d;
    text-align: center;
    padding: 24px 20px;
    margin-top: 50px;
    font-size: 0.82rem;
}

.seo-pie a {
    color: #a0a0b8;
    text-decoration: none;
}

.seo-pie a:hover {
    color: #e94560;
}


/* ══════════════════════════════════════
   ELECTROLINERAS (puntos de carga eléctrica)
   ══════════════════════════════════════ */

/* Botón eléctrico en el selector de combustible */
.boton-electrico {
    border-color: rgba(0, 200, 83, 0.4) !important;
}
.boton-electrico:hover {
    background: rgba(0, 200, 83, 0.15) !important;
    color: #69f0ae !important;
}
.boton-electrico.activo {
    background: #00c853 !important;
    color: #ffffff !important;
    border-color: #00c853 !important;
}

/* Popup electrolinera */
.popup-electrico {
    text-align: left;
}
.popup-etiqueta-electrico {
    background: #00c853;
}
.popup-electrico-nombre {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 4px;
    word-wrap: break-word;
}
.popup-conectores {
    font-size: 0.68rem;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 3px;
    word-wrap: break-word;
}

/* Tarjeta de la lista de electrolineras */
.tarjeta-electrica .estacion-conectores {
    font-size: 0.72rem;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.tarjeta-electrica.es-mejor {
    border-left: 4px solid #00c853;
}
.tarjeta-electrica.es-mejor::before {
    background: #00c853;
    content: 'MÁS CERCANO';
}
.electrico-icono {
    font-size: 1.6rem;
    color: #00c853;
    display: flex;
    align-items: center;
    padding-left: 8px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════
   SEO PAGES - NUEVOS COMPONENTES
   ══════════════════════════════════════ */

/* Breadcrumb */
.seo-breadcrumb {
    font-size: 0.82rem;
    color: #6c757d;
    margin: 0 0 16px;
}
.seo-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}
.seo-breadcrumb a:hover { color: #e94560; }

/* Tabs de combustible */
.seo-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    justify-content: center;
}
.seo-tab {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a2e;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.seo-tab:hover { border-color: #1a1a2e; }
.seo-tab.activo {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
}

/* Tarjetas de estadísticas */
.seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 28px;
}
@media (max-width: 600px) {
    .seo-stats-grid { grid-template-columns: 1fr; }
}
.seo-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.seo-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}
.seo-stat-valor {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
}
.seo-stat-alto { color: #c62828; }
.seo-stat-sub {
    font-size: 0.78rem;
    color: #6c757d;
}

/* Texto SEO rico */
.seo-texto-rico {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.7;
    color: #2d2d2d;
    font-size: 0.95rem;
}
.seo-texto-rico p + p { margin-top: 12px; }
.seo-texto-rico a { color: #0f3460; }

/* Badge 24H en tablas SEO */
.seo-badge-24h {
    display: inline-block;
    background: #00c853;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Enlace municipio en tabla */
.seo-mun-link {
    color: #0f3460;
    text-decoration: none;
    font-weight: 500;
}
.seo-mun-link:hover { text-decoration: underline; }

/* Grid de municipios */
.seo-municipios-seccion {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.seo-municipios-seccion h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.seo-grid-municipios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.seo-municipio-enlace {
    background: #f8f9fa;
    color: #1a1a2e;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #e8e8e8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.seo-municipio-enlace:hover {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
}
.seo-mun-count {
    background: #e0e0e0;
    color: #6c757d;
    font-size: 0.72rem;
    padding: 1px 5px;
    border-radius: 10px;
}
.seo-municipio-enlace:hover .seo-mun-count {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* FAQ */
.seo-faq {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.seo-faq h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.seo-faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}
.seo-faq-pregunta {
    padding: 16px 20px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
    cursor: default;
    border-left: 3px solid #e94560;
}
.seo-faq-respuesta {
    padding: 0 20px 16px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}
.seo-faq-respuesta a { color: #0f3460; }

/* CTA instalar app */
.seo-instalar-app {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border-radius: 16px;
    padding: 24px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    flex-wrap: wrap;
}
.seo-instalar-icono {
    font-size: 2.4rem;
    flex-shrink: 0;
}
.seo-instalar-app > div {
    flex: 1;
    min-width: 200px;
}
.seo-instalar-app strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.seo-instalar-app p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.5;
}
.seo-instalar-app .boton-principal {
    background: #e94560;
    flex-shrink: 0;
}
.seo-instalar-app .boton-principal:hover {
    background: #c73652;
}

/* Links útiles */
.seo-links-utiles {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.seo-links-utiles h2 {
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

/* Banner afiliado seguros */
.seo-banner-seguro {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 2px solid #e8f0fe;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-wrap: wrap;
}
.seo-banner-seguro:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 20px rgba(26,115,232,0.12);
}
.seo-banner-seguro-icono {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.seo-banner-seguro-texto {
    flex: 1;
    min-width: 180px;
}
.seo-banner-seguro-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}
.seo-banner-seguro-sub {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}
.seo-banner-seguro-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}
.seo-banner-seguro-btn {
    display: inline-block;
    background: #1a73e8;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.seo-banner-seguro:hover .seo-banner-seguro-btn {
    background: #1557b0;
}
@media (max-width: 500px) {
    .seo-banner-seguro { flex-direction: column; align-items: flex-start; }
    .seo-banner-seguro-btn { width: 100%; text-align: center; }
}
