

:root {
    --primary: #00843D;       
    --primary-dark: #00662F;  
    --accent: #0284c7;        
    --magna: #00843D;         
    --premium: #C8102E;       
    --diesel: #37474F;        
    --bg-dark: #f8fafc;       
    --panel-dark: #ffffff;    
    --text-light: #0f172a;    
    --text-muted: #64748b;    
    --border: #94a3b8;        
    --card-hover: #f1f5f9;    
    --fondo-color: #265192;
    --azul-f1: #09377ee8;
}


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

body {
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

.seo-dynamic-content {
    content-visibility: visible;
}


header.app-header {
    background: #265192; 
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    gap: 0.8rem;
    flex-shrink: 0 !important;
    position: sticky;
    top: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}


.header-national-averages {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}


.header-avg-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.918);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.header-badge {
    padding: 0.30rem 0.4rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}




.badge-magna { background: #e6f4ea; color: #00843D; border: 1px solid #00843D; }
.badge-premium { background: #fce8ea; color: #C8102E; border: 1px solid #C8102E; }
.badge-diesel { background: #f1f5f9; color: #37474F; border: 1px solid #64748b; }


.btn-near-me {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-near-me:hover {
    background: #d89f01; 
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}


.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--bg-dark);
}


.sidebar-estados {
    width: 350px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    padding: 0.9rem;
    
    background-color: #265192;
    color: #000;
}


.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.search-box input {
    padding-left: 2.3rem;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #94a3b8;
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
}

.search-box input:focus {
    border-color: #00843D;
    box-shadow: 0 0 0 5px rgba(0, 132, 61, 0.15);
}


.estados-section {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-color: var(--fondo-color);
    scrollbar-width: 1rem;
    scrollbar-color: gree;
}


.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fffffffb;
    text-align: center;
}

.grid-estados {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.state-btn {
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: #1e293b;
    padding: 0.6rem 0.45rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.state-btn:hover {
    background: #f1f5f9;
    border-color: #00843D;
    color: #00843D;
    transform: translateY(-1px);
}

.state-btn.active {
    background: #00843D !important;
    color: #ffffff !important;
    border-color: #00662F !important;
    box-shadow: 0 4px 10px rgba(0, 132, 61, 0.3);
    font-weight: 700;
}


.main-content-panel {
    flex: 1;
    overflow-y: auto;
    padding-bottom: -1rem; 
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}


.zone-line {
    background: var(--panel-dark);
    border-radius: 14px;
    padding: 1.25rem;
    border: 10px solid #449feb; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.zone-line-green-1 {
    border-left: 3px none #07ff7b; 
    border-top: 3px none #2b6647; 
    border-right: 3px none #2b6647; 
    border-bottom: 3px none #2b6647; 
    padding: 0.5rem 0.8rem;
    width: fit-content;
    max-width: 100%;

}

#estatal-stats-container .stats-section-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}


.zone-line-green-2 {
    border-left: 5px none #C8102E; 
    border-top: 5px none #C8102E; 
    border-right: 5px none #C8102E; 
    border-bottom: 5px none #C8102E; 
    padding: 0.5rem 0.8rem;
    width: fit-content;
    max-width: 100%;
}



.zone-line-purple-4 {
    border-left: 5px none #C8102E; 
    border-top: 5px none #C8102E; 
    border-right: 5px none #C8102E; 
    border-bottom: 5px none #C8102E;
}


.zone-line-blue-3 {
    background-color: #ffffff;
    border-left: 5px none #C8102E; 
    border-top: 5px none #C8102E; 
    border-right: 5px none #C8102E; 
    border-bottom: 5px none #C8102E;
}



.grid-municipios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.muni-btn {
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: #334155;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    border-left: 3px out #000000;
    border-top: 3px out #000000;
    border-right: 3px out #000000;
    border-bottom: 3px out #000000;
}


.muni-btn:hover {
    background: #d9e4eb; 
    color: #125169; 
    border-color: #0822b1; 
}


.muni-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}


.combustible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fuel-filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.filter-label {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
}

.fuel-btn {
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: var(--text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fuel-btn[data-fuel="magna"].active {
    background: #00843D;
    color: #ffffff;
    border-color: #00662F;
    box-shadow: 0 2px 8px rgba(0, 132, 61, 0.3);
}

.fuel-btn[data-fuel="premium"].active {
    background: #C8102E;
    color: #ffffff;
    border-color: #990b22;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.fuel-btn[data-fuel="diesel"].active {
    background: #37474F;
    color: #ffffff;
    border-color: #263238;
    box-shadow: 0 2px 8px rgba(55, 71, 79, 0.3);
}

.muted-placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    padding: 1.6rem;
    grid-column: 1 / -1;
}


.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 2px solid #94a3b8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.stations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}


.stations-table th {
    background: #f1de6e;
    color: #000000; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}


.stations-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #2c3441; 
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.07em;
    vertical-align: middle;
}

.stations-table tbody tr {
    transition: background 0.15s ease;
    border-left: 3px solid #000000;
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
}

.stations-table tbody tr:hover {
    background: #cbcfd3;
}


.tbl-st-name {
    font-weight: 700;
    font-size: 1rem;
    color: #000000; 
    display: block;
}


.tbl-st-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul-f1);
}


.tbl-price {
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.82rem;
    display: inline-block;
}


.tbl-price-magna { background: #e6f4ea; color: #00843D; border: 1px solid #00843D; font-size: 1rem;}
.tbl-price-premium { background: #fce8ea; color: #C8102E; border: 1px solid #C8102E; font-size: 1rem;}
.tbl-price-diesel { background: #fff7ed; color: #c2410c; border: 1px solid #f97316; font-size: 1rem;}

.tbl-price-none {
    color: var(--text-muted);
    font-size: 0.75rem;
}


.table-maps-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0369a1 !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}

.table-maps-btn:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
    border-color: #075985 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4) !important;
    transform: translateY(-1px);
}


.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.05rem;
    padding-top: 0.6rem;
    border-top: 1px none var(--border);
}

.pag-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pag-btn:hover:not(:disabled) {
    background: var(--card-hover);
    border-color: #00843D;
    color: #00843D;
}

.pag-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pag-info {
    font-size: 1rem;
    color: #000000;
    font-weight: 500;
}


.mapa-near-view {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mapa-near-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.btn-close-map {
    background: #C8102E;
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-close-map:hover {
    background: #990b22;
}

.near-body-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1rem;
    height: auto;
    min-height: 450px;
}

.near-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 160px);
    overflow: hidden;
    padding-top: -50px;
}

.stations-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    padding-top: 50rem;
}


.near-controls {
    background: #ffffff;
    padding: 0.5rem;
    
    
    flex-shrink: 0;
    margin-top: -10px;
}

.near-map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px; 
    border-radius: 13x;
    overflow: -moz-hidden-unscrollable;
    border: 1px solid var(--border);
}

.near-map {
    width: 100%;
    height: 100%;
    min-height: 450px;
}


.logo {
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a !important;
    letter-spacing: -0.01em;
    margin: 0;
}

.logo-text {
    color: #fefeffd8 !important;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-icon {
    background: #e6f4ea;
    color: #00843D;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background: #f3f3f36b;
    color: #f3f5f8d5 !important;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn:hover {
    background: #e0f2fe;
    color: #61ec11 !important; 
    border-color: #61ec11;
}

.app-stats {
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #38bdf8;
}

main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

aside {
    width: 380px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.filters-panel {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

select,
input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

select:focus,
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}


.sorting-tabs {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.2rem;
    min-width: 0;
    width: 100%;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.45rem 0.3rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.tab-btn[data-sort="distancia"].active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.tab-btn[data-sort="magna"].active {
    background: #00843D;
    color: #ffffff;
    border-color: #00662F;
    box-shadow: 0 2px 8px rgba(0, 132, 61, 0.3);
}

.tab-btn[data-sort="premium"].active {
    background: #C8102E;
    color: #ffffff;
    border-color: #990b22;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.tab-btn[data-sort="diesel"].active {
    background: #37474F;
    color: #ffffff;
    border-color: #263238;
    box-shadow: 0 2px 8px rgba(55, 71, 79, 0.3);
}


.stations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}



.station-card {
    background: #ffffff;
    border: 3px solid var(--border);
    border-left: 8px solid #00843D;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.station-card:hover {
    background: #f8fafc;
    transform: translateX(3px);
    border-left-color: #0284c7;
}

.station-card.active {
    border-left-color: #0284c7;
    background: #e0f2fe;
}

.station-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    display: block;
    color: var(--text-light);
}

.prices-grid {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.price-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}


.badge-magna {
    background: #e6f4ea;
    color: #00843D;
    border: 1px solid #00843D;
}

.badge-premium {
    background: #fce8ea;
    color: #C8102E;
    border: 1px solid #C8102E;
}

.badge-diesel {
    background: #f1f5f9;
    color: #37474F;
    border: 1px solid #64748b;
}

.badge-no-report {
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px dashed #cbd5e1;
    font-size: 0.7rem;
}

#map {
    flex: 1;
    background: #f1f5f9;
}


.leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.leaflet-popup-tip {
    background: #ffffff;
}

.popup-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #00843D;
}

.popup-prices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.popup-btn {
    display: block;
    background: #00843D;
    color: white !important;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(0, 132, 61, 0.35) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #00843D !important;
    color: white !important;
    font-weight: bold;
    border-radius: 50%;
}


.leaflet-control-layers {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    font-family: 'Roboto', 'Inter', sans-serif !important;
}

.leaflet-control-layers-expanded {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    min-width: 150px !important;
    padding: 10px 15px !important;
}

.leaflet-control-layers label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0.5rem !important;
    cursor: pointer !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
}

.leaflet-control-layers label:last-child {
    margin-bottom: 0 !important;
}

.leaflet-control-layers-selector {
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #00843D !important;
    width: auto !important;
    height: auto !important;
}

.leaflet-control-layers span {
    color: #0f172a !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}


.loader {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-list-btn {
    display: none;
}

.nav-tabs {
    display: flex;
    gap: 0.4rem;
}

.mobile-tabs {
    display: none;
}

.mobile-stats {
    text-align: center;
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: -0.25rem !important;
    margin-bottom: -0.2rem !important;
}

.update-info {
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.25rem 0.4rem;
    border-radius: 0.4rem;
    text-align: center;
    margin-bottom: 0 !important;
    font-weight: 500;
    line-height: 1.3;
}


.cre-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
    flex-shrink: 0;
}

.cre-badge em {
    font-style: normal;
    color: #00843D;
}

.nav-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nav-tab.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.view-container {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex: 1;
}

.view-container.active {
    display: flex;
}

.nacional-sidebar {
    width: 380px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.nacional-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-range-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.3rem;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
}

.fuel-range-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fuel-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.range-inputs {
    display: flex;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.5rem;
    font-size: 0.85rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.range-inputs input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.stats-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a; 
    margin: 0;
    margin-bottom: 0.85rem;
     
    padding-left: 0.7rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

#estatal-stats-container .stats-row {
    display: flex;
    gap: 0.8rem;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    padding: 0.6rem 0.9rem 0.5rem 2rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    margin-right: 0.5px;
}

#estatal-stats-container .stat-card {
    flex: 0 0 170px;
    max-width: 170px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}


.stat-card.magna-glow {
    border-left: 10px solid #00843D;
    border-right: 3px solid #00843d;
    border-top: 3px solid #00843d;
    border-bottom: 3px solid #00843d;
    background: #f0fdf4;
}


.stat-card.magna-glow .stat-value {
    color: #00843D;
}


.stat-card.magna-glow:hover {
    box-shadow: 0 4px 14px rgba(0, 132, 61, 0.15);
}


.stat-card.premium-glow {
    border-left: 10px solid #C8102E;
    border-right: 3px solid #C8102E;
    border-top: 3px solid #C8102E;
    border-bottom: 3px solid #C8102E;
    background: #fef2f2;
}


.stat-card.premium-glow .stat-value {
    color: #C8102E;
}


.stat-card.premium-glow:hover {
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.15);
}


.stat-card.diesel-glow {
    border-left: 10px solid #37474F;
    border-right: 3px solid #37474F;
    border-top: 3px solid #37474F;
    border-bottom: 3px solid #37474F;
    background: #f8fafc;
}


.stat-card.diesel-glow .stat-value {
    color: #37474F;
}


.stat-card.diesel-glow:hover {
    box-shadow: 0 4px 14px rgba(55, 71, 79, 0.15);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d8fa17;  
}

.stat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.barata-card {
    background: #ffffff;
    
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}


.barata-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.barata-card.magna-glow {
    border-left: 4px solid #00843D;
    border-right: 4px solid #00662F;
    border-top: 4px solid #00843d;
    border-bottom: 4px solid #00843d;
}

.barata-card.magna-glow .barata-price {
    color: #00843D;
}

.barata-card.magna-glow:hover {
    box-shadow: 0 4px 14px rgba(0, 132, 61, 0.15);
}

.barata-card.premium-glow {
    border-left: 4px solid #C8102E;
    border-right: 4px solid #C8102E;
    border-top: 4px solid #C8102E;
    border-bottom: 4px solid #C8102E;
}

.barata-card.premium-glow .barata-price {
    color: #C8102E;
}

.barata-card.premium-glow:hover {
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.15);
}

.barata-card.diesel-glow {
    border-left: 4px solid #37474F;
    border-right: 4px solid #37474F;
    border-top: 4px solid #37474F;
    border-bottom: 4px solid #37474F;
}

.barata-card.diesel-glow .barata-price {
     color: #37474F; 
}

.barata-card.diesel-glow:hover {
    box-shadow: 0 4px 14px rgba(55, 71, 79, 0.15);
}

.barata-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.barata-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.barata-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
}

.cards-grid .station-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.st-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-loc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.st-prices {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.st-price-badge {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.2rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.st-price-badge.magna {
    background: rgba(27, 94, 32, 0.25);
    color: #A5D6A7;
    border: 1px solid rgba(46, 125, 50, 0.4);
}

.st-price-badge.premium {
    background: rgba(127, 0, 0, 0.25);
    color: #FFCDD2;
    border: 1px solid rgba(183, 28, 28, 0.4);
}

.st-price-badge.diesel {
    background: rgba(230, 81, 0, 0.2);
    color: #FFE0B2;
    border: 1px solid rgba(245, 124, 0, 0.4);
}

.st-price-badge.none {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.st-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0.4rem;
    padding: 0.2rem 0.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .nacional-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .barata-price {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        align-items: stretch;
    }

    .logo {
        justify-content: space-between;
        font-size: 1.05rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-controls {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .header-controls.show {
        display: flex;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .app-stats {
        width: 100%;
        text-align: center;
    }

    .view-container {
        position: relative;
        flex-direction: column;
    }

    aside,
    .nacional-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        box-shadow: none;
        max-height: none;
    }

    .filters-panel {
        pointer-events: auto;
        background: rgba(22, 27, 34, 0.97);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1.5rem 1rem;
        gap: 1rem;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        box-sizing: border-box;
        height: 100vh;
        z-index: 2002;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
        border: none;
        border-left: 2px solid rgba(46, 125, 50, 0.4);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-tabs {
        display: flex;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-tabs .nav-tab {
        flex: 1;
    }

    .desktop-tabs,
    .desktop-only {
        display: none !important;
    }

    body.show-mobile-menu .filters-panel {
        right: 0;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    body.show-mobile-menu .mobile-overlay {
        display: block;
        opacity: 1;
    }

    body.show-mobile-menu .header-controls {
        display: flex;
    }

    body.show-mobile-menu .leaflet-top,
    body.show-mobile-menu .leaflet-bottom {
        z-index: 990 !important;
    }

    .toggle-list-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: rgba(22, 27, 34, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: none;
        border-top: 1px solid rgba(46, 125, 50, 0.3);
        color: #A5D6A7;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 998;
        font-size: 1.1rem;
        pointer-events: auto;
        margin-top: auto;
        transition: all 0.3s ease;
    }

    .toggle-list-btn.collapsed {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)) !important;
    }

    .toggle-list-btn .toggle-arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .toggle-list-btn.collapsed .toggle-arrow {
        transform: rotate(180deg);
    }

    #loader,
    #stations-list {
        pointer-events: auto;
        margin-top: 0;
        background: rgba(22, 27, 34, 0.5);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        max-height: 45vh;
        border-top: none;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
        width: 100%;
        position: relative;
        overflow-y: auto;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    }

    #stations-list.collapsed {
        max-height: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        flex: none !important;
    }

    #loader {
        margin-top: auto;
        max-height: none;
    }

    #map {
        min-height: 100%;
        width: 100%;
    }

    .nacional-content {
        padding: 0.75rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        height: 100%;
        overflow-y: auto;
        gap: 1.25rem;
    }

    .input-group label {
        font-size: 0.6rem;
        margin-bottom: 0;
    }

    select,
    input {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    .sorting-tabs {
        margin-top: 0.1rem;
    }

    .tab-btn {
        padding: 0.3rem;
        font-size: 0.65rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.9rem 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .stat-card .stat-label {
        margin-bottom: 0;
        min-width: 60px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
        flex: 1;
    }

    .stat-card .stat-meta {
        margin-top: 0;
        text-align: right;
        font-size: 0.7rem;
    }

    .barata-card {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }

    .barata-card>div:first-child {
        flex: 1;
        min-width: 0;
    }

    .barata-card>a.table-maps-btn {
        flex-shrink: 0;
        width: auto !important;
        white-space: nowrap;
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
    }

    .barata-price {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }

    .barata-name {
        font-size: 0.78rem;
        margin-bottom: 0.1rem;
    }

    .barata-location {
        font-size: 0.68rem;
        margin-bottom: 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .stats-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .stats-section-title::before {
        content: '';
    }

    .cards-grid .station-card {
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .st-prices {
        flex-wrap: wrap;
    }

    .st-price-badge {
        min-width: 0;
        flex: 1 1 auto;
    }

    .cre-badge {
        display: none;
    }

    .leaflet-control.custom-geo-btn {
        background-color: var(--panel-dark);
        color: var(--text-light);
        border: 2px solid rgba(0, 0, 0, 0.2);
        background-clip: padding-box;
        border-radius: 4px;
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    }

    .leaflet-control.custom-geo-btn:hover {
        background-color: var(--card-hover);
    }

    .leaflet-control.custom-geo-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

.leaflet-control.custom-geo-btn {
    background-color: var(--panel-dark);
    color: var(--text-light);
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.leaflet-control.custom-geo-btn:hover {
    background-color: var(--card-hover);
}

.leaflet-control.custom-geo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pulsing-dot {
    width: 100%;
    height: 100%;
    background-color: #F9A825;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.pulsing-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #F9A825;
    border-radius: 50%;
    animation: pulse-radar 1.5s infinite ease-out;
    z-index: -1;
}

@keyframes pulse-radar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.seo-info-section {
    margin-top: 0.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.seo-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffffff;

}

.seo-text {
    font-size: 0.95rem;
    line-height: 1.5;
    
    
    border-bottom: 5rem;;
    padding-bottom: 0.8rem;
}

.seo-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.seo-faq-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.6rem;
}

.seo-faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.seo-faq-answer {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #f0d6af;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 14, 0.801); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-content {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(240, 246, 252, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(240, 246, 252, 0.1);
    background: rgba(22, 27, 34, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffffff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    color: #ffffffff;
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.modal-body p {
    margin: 0;
    color: rgba(241, 225, 225, 0.959);
}

.modal-body ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-body li {
    list-style-type: disc;
}

.modal-section-box {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-section-box h4 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.modal-section-box p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.45;
}

.alert-box {
    background: rgba(249, 168, 37, 0.05);
    border-left-color: #F9A825;
    color: #FFE082;
}

.alert-box h4 {
    color: #F9A825;
}

.info-box {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

.info-box h4 {
    color: #3b82f6;
}

.modal-footer {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid rgba(240, 246, 252, 0.1);
    display: flex;
    justify-content: flex-end;
    background: rgba(22, 27, 34, 0.98);
}

.modal-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-btn:hover {
    background: #2563eb;
}

.modal-btn:active {
    transform: scale(0.97);
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.75rem;
    }
    .modal-content {
        max-height: 90vh;
    }
    .modal-header h2 {
        font-size: 1.15rem;
    }
    .modal-body {
        padding: 1rem;
    }
    .modal-footer {
        padding: 1rem;
    }
    .modal-btn {
        width: 100%;
        text-align: center;
    }
}

.header-right-actions {
    margin-left: auto;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.action-btn:hover {
    background: rgba(249, 168, 37, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(249, 168, 37, 0.2);
}

.action-btn:active {
    transform: scale(0.97);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    margin-top: -0.2rem;
}

.modal-close-btn:hover {
    color: var(--text-light);
    background: rgb(185, 4, 4); 
}

.mobile-only-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.mobile-only-links .action-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
}

@media (max-width: 768px) {
    .mobile-only-links {
        display: flex;
    }
}

.geo-tooltip {
    position: absolute;
    background-color: var(--panel-dark);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-100%) scale(0.95);
    transform-origin: bottom right;
}

.geo-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-100%) scale(1);
}

.geo-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 15px; 
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--panel-dark) transparent;
    display: block;
    width: 0;
}

.geo-tooltip::before {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 14px;
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: var(--border) transparent;
    display: block;
    width: 0;
    z-index: -1;
}

.geo-tooltip-close {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    transition: color 0.2s;
}
.geo-tooltip-close:hover {
    color: var(--accent);
}


.geo-tooltip {
    position: absolute;
    background-color: #ffffff;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-100%) scale(0.95);
    transform-origin: bottom right;
}

.geo-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-100%) scale(1);
}

.geo-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 15px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #ffffff transparent;
    display: block;
    width: 0;
}

.geo-tooltip::before {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 14px;
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: var(--border) transparent;
    display: block;
    width: 0;
    z-index: -1;
}

.geo-tooltip-close {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    transition: color 0.2s;
}
.geo-tooltip-close:hover {
    color: #0284c7;
}


.app-footer {
    position: relative;
    z-index: 2000;
    background: rgba(255, 255, 255, 0);
    
    width: 100%;
    flex-shrink: 0;
}

.footer-bar {
    background: var(--fondo-color);
    border-top: 0.02px none var(--fondo-color);
    padding: 0.35rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: rgba(233, 191, 2, 0.959);
}

.footer-seo-btn {
    background: #e0f2fe;
    border: 1px solid #38bdf8;
    color: #0284c7; 
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.footer-seo-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.footer-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.footer-arrow.open {
    transform: rotate(180deg);
}

.footer-seo-drawer {
    max-height: 0;
    overflow: hidden;
    background: var(--fondo-color); 
    border-bottom: 1px solid var(--border);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-seo-drawer.open {
    max-height: 400px;
    overflow-y: auto;
}

.footer-seo-content {
    padding: 1.4rem 1.6rem;
}

.footer-seo-header {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0rem;
}

.footer-seo-header .stats-section-title{
    color: #e4c514;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.4rem;
    transition: color 0.2s;
}

.drawer-close-btn:hover {
    color: #c50505;
}

.seo-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: #e4c514;
}

.seo-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffffff;
    margin-bottom: 0.8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
    margin-top: 0.7rem;
}

.faq-card {
    border: 1px solid var(--border);
    background: #f8fafc;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
}

.faq-card h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #00843D;
}

.faq-card p {
    font-size: 0.95rem;
    color: rgb(0, 0, 0);
    line-height: 1.45;
}


.mobile-only-links {
    display: none !important;
}


.menu-bottom-footer {
    display: none !important;
}


@media (max-width: 768px) {
    .filters-panel {
        padding-bottom: 0.4rem !important;
        gap: 0.4rem !important;
    }

    .mobile-only-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        width: 100%;
        margin-top: auto;
    }

    .mobile-only-links .action-btn {
        width: 100%;
        padding: 0.45rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 600;
        text-align: center;
        border-radius: 0.4rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--text-light);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-only-links .action-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--accent);
    }

    .app-footer {
        position: static;
        background: transparent;
        border: none;
    }

    .footer-bar {
        display: none !important;
    }

    .footer-seo-drawer {
        display: none;
    }

    .footer-seo-drawer.open {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh !important;
        z-index: 9999;
        background: var(--bg-dark);
        overflow-y: auto;
        padding: 1rem;
    }

    .menu-bottom-footer {
        display: block !important;
        margin-top: 0.15rem;
        padding-top: 0.2rem;
        padding-bottom: 0.1rem;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-footer-bar {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        align-items: center;
        text-align: center;
    }

    .menu-footer-copy {
        font-size: 0.65rem;
        color: var(--text-muted);
        line-height: 1.2;
        margin: 0;
    }

    .menu-bottom-footer .footer-seo-btn {
        width: 100%;
        justify-content: center;
        padding: 0.25rem 0.5rem;
        font-size: 0.73rem;
    }
}