/* 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;
}
.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 */
.article-entry-content {
    color: #cbd5e1;
    font-size: 1.0625rem;
    line-height: 1.85;
}
.article-entry-content p {
    margin-bottom: 1.35rem;
}
.article-entry-content h2,
.article-entry-content h3,
.article-entry-content h4 {
    color: #ffffff;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.article-entry-content h2 { font-size: 1.4rem; }
.article-entry-content h3 { font-size: 1.2rem; }
.article-entry-content blockquote {
    border-left: 4px solid #10b981;
    padding-left: 1.25rem;
    font-style: italic;
    color: #94a3b8;
    margin: 1.75rem 0;
    background-color: rgba(15, 23, 42, 0.6);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0 0.75rem 0.75rem 0;
}
.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;
}
.article-entry-content img {
    border-radius: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
}
