/* ═══════════════════════════════════════════════════════════════════
   Dunes Theme · /gasolineras/ — v2.25.48
   Diseño premium estilo NYT/FT con paleta neutra + acentos por combustible.
═══════════════════════════════════════════════════════════════════ */

.et-gas {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0A0A0A;
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.et-gas__hero {
    text-align: center;
    padding: 28px 0 36px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 36px;
}
.et-gas__hero-inner { max-width: 760px; margin: 0 auto; }
.et-gas__kicker {
    display: inline-flex; align-items: center; gap: 6px;
    background: #FFF8E5; color: #806400;
    border: 1px solid #EFD680;
    padding: 5px 12px; border-radius: 100px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 18px;
}
.et-gas__title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12; letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.et-gas__lede {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.55; color: #4A4A4A;
    margin: 0 auto 18px; max-width: 660px;
}
.et-gas__hero-meta {
    font-size: 12px; color: #9D9D9D;
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.et-gas__hero-meta strong, .et-gas__hero-meta time { color: #5A5A5A; font-weight: 600; }

/* ─── STAT CARDS ───────────────────────────────────────────────── */
.et-gas__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.et-gas__stat {
    position: relative;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    color: #0A0A0A;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column; gap: 4px;
}
.et-gas__stat:hover {
    transform: translateY(-2px);
    border-color: #33519F;
    box-shadow: 0 6px 20px rgba(51,81,159,0.18);
}
.et-gas__stat.is-active {
    border-color: #33519F;
    background: #33519F;
    color: #fff;
}
.et-gas__stat.is-active .et-gas__stat-label,
.et-gas__stat.is-active .et-gas__stat-sub { color: rgba(255,255,255,0.7); }
.et-gas__stat-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: #9D9D9D;
}
.et-gas__stat-value {
    font-family: 'Georgia', serif;
    font-size: 28px; line-height: 1.05; font-weight: 700;
    letter-spacing: -0.02em;
    display: flex; align-items: baseline; gap: 4px;
}
.et-gas__stat-unit {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px; font-weight: 600;
    color: #9D9D9D; letter-spacing: 0;
}
.et-gas__stat.is-active .et-gas__stat-unit { color: rgba(255,255,255,0.6); }
.et-gas__stat-sub { font-size: 11.5px; color: #6A6A6A; }
.et-gas__stat-pill {
    position: absolute; top: 10px; right: 10px;
    background: #fff; color: #33519F;
    font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 100px;
}
.et-gas__stat--green .et-gas__stat-value { color: #15803D; }
.et-gas__stat--red   .et-gas__stat-value { color: #C8102E; }
.et-gas__stat--blue  .et-gas__stat-value { color: #1E3A8A; }
.et-gas__stat--amber .et-gas__stat-value { color: #B45309; }
.et-gas__stat.is-active .et-gas__stat-value { color: #fff; }

/* ─── FILTROS POR ISLA ─────────────────────────────────────────── */
.et-gas__isle-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 6px;
    background: #F2F2F2;
    border-radius: 12px;
}
.et-gas__isle-tab {
    flex: 1; min-width: 110px;
    text-align: center; text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    background: transparent;
    color: #4A4A4A;
    transition: background 0.15s, color 0.15s;
    display: flex; flex-direction: column; gap: 2px;
}
.et-gas__isle-tab:hover { color: #33519F; }
.et-gas__isle-tab.is-active {
    background: #33519F; color: #fff;
    box-shadow: 0 1px 3px rgba(51,81,159,0.25);
}
.et-gas__isle-tab span { font-size: 12.5px; font-weight: 700; }
.et-gas__isle-tab em   { font-style: normal; font-size: 10.5px; color: #9D9D9D; }
.et-gas__isle-tab.is-active em { color: rgba(255,255,255,0.85); }

/* ─── MAPA ─────────────────────────────────────────────────────── */
.et-gas__map-wrap {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
}
.et-gas__map-head {
    padding: 18px 22px 12px;
    border-bottom: 1px solid #EFEFEF;
}
.et-gas__map-title {
    font-family: 'Georgia', serif;
    font-size: 20px; font-weight: 700;
    margin: 0 0 4px; letter-spacing: -0.01em;
}
.et-gas__map-sub {
    font-size: 12.5px; color: #6A6A6A; margin: 0; line-height: 1.5;
}
.et-gas__map {
    height: 460px;
    width: 100%;
    background: #F8F9FA;
}
.et-gas__map .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.et-gas__map .leaflet-popup-content { margin: 14px 16px; min-width: 180px; }

/* ─── TOP 10 RANKING ───────────────────────────────────────────── */
.et-gas__top { margin-bottom: 36px; }
.et-gas__top-head { margin-bottom: 18px; }
.et-gas__top-title {
    font-family: 'Georgia', serif;
    font-size: 24px; font-weight: 700;
    margin: 0 0 6px; letter-spacing: -0.01em;
}
.et-gas__top-sub {
    font-size: 13px; color: #6A6A6A; margin: 0; line-height: 1.55;
}
.et-gas__top-empty {
    padding: 30px; text-align: center;
    background: #FFF8E5; color: #806400;
    border-radius: 12px;
    font-size: 13.5px;
}
.et-gas__top-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.et-gas__top-item {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 16px 20px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.et-gas__top-item:hover {
    transform: translateX(2px);
    border-color: #33519F;
    box-shadow: 0 4px 16px rgba(51,81,159,0.12);
}
.et-gas__top-item.is-podium {
    background: linear-gradient(135deg, #FFFBEA 0%, #fff 60%);
    border-color: #EFD680;
}
.et-gas__top-rank {
    font-family: 'Georgia', serif;
    font-size: 30px; font-weight: 700;
    line-height: 1; text-align: center;
    color: #C8C8C8;
    letter-spacing: -0.02em;
}
.et-gas__top-item.is-podium .et-gas__top-rank { color: #B8860B; }
.et-gas__top-item[data-rank="1"] .et-gas__top-rank { color: #B8860B; }
.et-gas__top-item[data-rank="2"] .et-gas__top-rank { color: #6B7280; }
.et-gas__top-item[data-rank="3"] .et-gas__top-rank { color: #92400E; }
.et-gas__top-body { min-width: 0; }
.et-gas__top-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.et-gas__top-brand {
    font-size: 15px; font-weight: 700;
    color: #0A0A0A;
    letter-spacing: -0.01em;
}
.et-gas__top-isle {
    background: #F2F2F2; color: #4A4A4A;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 100px;
}
.et-gas__top-addr {
    font-size: 12.5px; color: #6A6A6A;
    margin: 0; line-height: 1.45;
}
.et-gas__top-sched {
    font-size: 11.5px; color: #9D9D9D;
    margin: 4px 0 0; font-style: italic;
}
.et-gas__top-price {
    text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.et-gas__top-price-value {
    font-family: 'Georgia', serif;
    font-size: 24px; line-height: 1.05; font-weight: 700;
    color: #0A0A0A;
    letter-spacing: -0.02em;
}
.et-gas__top-price-unit {
    font-size: 10.5px; font-weight: 600;
    color: #9D9D9D; letter-spacing: 0.4px;
}
.et-gas__top-diff em {
    font-style: normal; font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 100px;
}
.et-gas__top-diff em.is-down { background: #DCFCE7; color: #15803D; }
.et-gas__top-diff em.is-up   { background: #FEE2E2; color: #C8102E; }
.et-gas__top-actions {
    display: flex; flex-direction: column; gap: 6px; min-width: 130px;
}
.et-gas__top-action {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600;
    color: #4A4A4A; text-decoration: none;
    padding: 6px 10px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
    justify-content: center;
}
.et-gas__top-action:hover { border-color: #33519F; color: #33519F; }
.et-gas__top-action--primary {
    background: #33519F; color: #fff;
    border-color: #33519F;
}
.et-gas__top-action--primary:hover { background: #2A4485; color: #fff; border-color: #2A4485; }

/* ─── CRÉDITO ──────────────────────────────────────────────────── */
.et-gas__credit {
    margin-top: 24px;
    padding: 18px;
    background: #F8F9FA;
    border-radius: 10px;
    text-align: center;
}
.et-gas__credit p {
    font-size: 12px; color: #6A6A6A;
    line-height: 1.55; margin: 0;
}
.et-gas__credit a { color: #0A0A0A; text-decoration: underline; }

.et-gas__empty {
    padding: 40px; text-align: center;
    background: #FEE2E2; color: #7A0A1A;
    border-radius: 12px;
    font-size: 14px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .et-gas__stats { grid-template-columns: repeat(2, 1fr); }
    .et-gas__top-item {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "rank body"
            "rank price"
            "actions actions";
    }
    .et-gas__top-rank { grid-area: rank; font-size: 22px; }
    .et-gas__top-body { grid-area: body; }
    .et-gas__top-price { grid-area: price; align-items: flex-start; }
    .et-gas__top-actions { grid-area: actions; flex-direction: row; }
    .et-gas__top-actions a { flex: 1; }
}
@media (max-width: 540px) {
    .et-gas { padding: 24px 14px 60px; }
    /* v2.25.62 — Cards 1 columna en móvil para no dejar hueco vacío */
    .et-gas__stats { grid-template-columns: 1fr; gap: 10px; }
    .et-gas__map { height: 360px; }
}

/* v2.25.62 — Móvil: tabs de islas → desplegable premium */
@media (max-width: 720px) {
    .et-gas__isle-tabs { display: none; }
    .et-gas__isle-mobile-dd {
        display: block;
        margin-bottom: 28px;
        position: relative;
    }
    .et-gas__isle-mobile-dd select {
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        padding: 14px 44px 14px 18px;
        background: #fff;
        border: 1px solid #E5E5E5;
        border-radius: 12px;
        font-family: 'Inter', -apple-system, sans-serif;
        font-size: 14.5px;
        font-weight: 700;
        color: #0A0A0A;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: border-color 0.15s;
    }
    .et-gas__isle-mobile-dd select:focus,
    .et-gas__isle-mobile-dd select:hover {
        border-color: #33519F;
        outline: none;
    }
    .et-gas__isle-mobile-dd::after {
        content: '';
        position: absolute;
        right: 18px; top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 8px; height: 8px;
        border-right: 2px solid #33519F;
        border-bottom: 2px solid #33519F;
        pointer-events: none;
    }
}
@media (min-width: 721px) {
    .et-gas__isle-mobile-dd { display: none; }
}
