/* Estilos para la Web App Independiente de Info Puente Alto */
:root {
    --brand-primary: #059669;
    --brand-secondary: #10b981;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --fuel-amber: #f59e0b;
    --weather-sky: #38bdf8;
    --red-alert: #ef4444;
}

body {
    background-color: #020617;
    color: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbars estilizadas */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Ocultar barra en carruseles táctiles */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Safe areas para notch y barra de navegación de iPhone/Android */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Navegación Inferior Móvil */
.bottom-nav-item.active {
    color: #10b981;
}
.bottom-nav-item.active .nav-icon-bg {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Pestañas de Servicios */
.service-pill-btn.active {
    background-color: #059669;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

/* Chips de Combustible */
.fuel-chip.active {
    background-color: #f59e0b;
    color: #020617;
    font-weight: 800;
    border-color: #f59e0b;
}

/* Tarjeta Clima Gradiente */
.weather-gradient {
    background: linear-gradient(180deg, #0c2438 0%, #0f1e2e 60%, #020617 100%);
}

/* Leaflet Dark Mode Customizations */
.leaflet-container {
    background: #0b1120 !important;
    font-family: inherit !important;
}

/* Teselas Oscuras de OpenStreetMap (100% Libre, Sin API Key, Sin Marcas de Agua, Zoom hasta 19) */
.dark-osm-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(120%) !important;
}
.leaflet-popup-content-wrapper {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7) !important;
}
.leaflet-popup-tip {
    background: #0f172a !important;
}
.leaflet-popup-content {
    margin: 12px 14px !important;
    line-height: 1.4 !important;
}
.leaflet-bar a {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
.leaflet-bar a:hover {
    background-color: #1e293b !important;
}

/* WordPress-Style Post Typography & Reader Sizing */
.article-entry-content {
    color: #cbd5e1;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.85;
    transition: font-size 0.2s ease, line-height 0.2s ease;
}
.article-entry-content.article-size-normal {
    font-size: 1.0625rem; /* ~17px */
    line-height: 1.85;
}
.article-entry-content.article-size-large {
    font-size: 1.25rem; /* ~20px */
    line-height: 1.95;
}
.article-entry-content p {
    margin-bottom: 1.4rem;
}
/* Letra Capitular (Drop Cap) elegante tipo Revista Digital */
.article-entry-content > p:first-of-type::first-letter {
    font-size: 3.25rem;
    float: left;
    line-height: 0.85;
    margin-right: 0.65rem;
    margin-top: 0.15rem;
    color: #10b981;
    font-weight: 900;
}
.article-entry-content h2,
.article-entry-content h3,
.article-entry-content h4 {
    color: #ffffff;
    font-weight: 800;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.article-entry-content h2 { 
    font-size: 1.5rem; 
    border-bottom: 1px solid #1e293b; 
    padding-bottom: 0.5rem; 
}
.article-entry-content h3 { font-size: 1.25rem; }
.article-entry-content h4 { font-size: 1.1rem; }
.article-entry-content blockquote {
    border-left: 4px solid #10b981;
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #94a3b8;
    margin: 1.75rem 0;
    background-color: rgba(15, 23, 42, 0.7);
    border-radius: 0 1rem 1rem 0;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.article-entry-content ul,
.article-entry-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}
.article-entry-content ul { list-style-type: disc; }
.article-entry-content ol { list-style-type: decimal; }
.article-entry-content li { margin-bottom: 0.5rem; }
.article-entry-content strong {
    color: #ffffff;
    font-weight: 700;
}
.article-entry-content a {
    color: #34d399;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}
.article-entry-content img {
    border-radius: 1.25rem;
    margin: 1.75rem 0;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid #1e293b;
}
.article-entry-content figure {
    margin: 1.75rem 0;
    max-width: 100% !important;
}
.article-entry-content figcaption {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}
.article-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
}
.article-entry-content th, .article-entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #1e293b;
}
.article-entry-content th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

/* Trazados de Ferias Libres por las calles (como en la App Android) */
.feria-street-line {
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.7));
    cursor: pointer;
    transition: stroke-width 0.2s ease, opacity 0.2s ease;
}
.feria-street-line:hover {
    stroke-width: 10 !important;
    opacity: 1 !important;
}

/* Íconos Leaflet Transparentes */
.bus-stop-icon, .feria-badge-icon, .custom-leaflet-icon, .user-location-marker {
    background: transparent !important;
    border: none !important;
}

/* Control de Capas Leaflet (Oscuro, Satélite, Calles) */
.leaflet-control-layers {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7) !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
.leaflet-control-layers-toggle {
    filter: invert(1) hue-rotate(180deg);
}
.leaflet-control-layers-base label {
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

