/* ============================================================
   Infolenca — Volumen II: herramientas interactivas.
   Se carga después de edicion.css y reutiliza sus tokens.
   ============================================================ */

.ed-tool-page {
    padding-bottom: 72px;
}

.ed-tool-head {
    padding-top: 8px;
}

.ed-tool-cover {
    width: min(1080px, 94%);
    margin: 28px auto 0;
}

.ed-tool-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ed-rule);
}

.ed-tool-cover figcaption {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ed-rule);
    color: var(--ed-muted);
    font-size: .76rem;
}

.ed-tool {
    width: min(1080px, 94%);
    margin: 34px auto 0;
    border: 1px solid var(--ed-rule);
    background: var(--ed-surface);
}

.ed-tool__head {
    padding: 24px 26px 0;
}

.ed-tool__eyebrow {
    margin: 0 0 6px;
    color: var(--ed-terra);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ed-tool__title {
    margin: 0 0 10px;
    font-family: var(--ed-serif);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.ed-tool__lede {
    max-width: 70ch;
    margin: 0;
    color: var(--ed-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.ed-tool__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid var(--ed-rule);
}

.ed-tool__form {
    padding: 22px 26px 24px;
    border-right: 1px solid var(--ed-rule);
    display: grid;
    gap: 14px;
}

.ed-field {
    display: grid;
    gap: 5px;
}

.ed-field label {
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
    color: var(--ed-ink-soft);
}

.ed-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ed-rule);
    border-radius: 2px;
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
}

.ed-field input:focus {
    outline: 2px solid var(--ed-navy);
    outline-offset: 1px;
}

.ed-field__help {
    color: var(--ed-muted);
    font-size: .68rem;
    line-height: 1.35;
}

.ed-tool__formnote {
    margin: 4px 0 0;
    color: var(--ed-muted);
    font-size: .68rem;
    line-height: 1.45;
}

.ed-tool__result {
    padding: 22px 26px 26px;
    background: var(--ed-forest-soft);
}

.ed-tool__label {
    margin: 0 0 4px;
    color: var(--ed-forest);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ed-tool__big {
    margin: 0 0 2px;
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.03em;
}

.ed-tool__big span {
    font-family: var(--ed-sans);
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--ed-muted);
}

.ed-tool__sub {
    margin: 0;
    color: var(--ed-ink-soft);
    font-size: .88rem;
}

.ed-tool__badge {
    display: inline-block;
    margin: 12px 0 0;
    padding: 5px 10px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .03em;
}

.ed-tool__badge--low { color: var(--ed-forest); }
.ed-tool__badge--mid { color: var(--ed-amber); }
.ed-tool__badge--high { color: var(--ed-terra); }

.ed-tool__year {
    margin: 10px 0 0;
    color: var(--ed-muted);
    font-size: .78rem;
}

.ed-tool__bars {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.ed-bar {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 56px;
    gap: 8px;
    align-items: center;
    font-size: .72rem;
}

.ed-bar__label {
    color: var(--ed-ink-soft);
    font-weight: 650;
}

.ed-bar__track {
    height: 8px;
    background: color-mix(in srgb, var(--ed-rule) 55%, transparent);
    overflow: hidden;
}

.ed-bar__fill {
    display: block;
    height: 100%;
    background: var(--ed-forest);
}

.ed-bar__fill--ducha { background: var(--ed-forest); }
.ed-bar__fill--inodoro { background: var(--ed-amber); }
.ed-bar__fill--ropa { background: var(--ed-navy); }
.ed-bar__fill--riego { background: var(--ed-terra); }
.ed-bar__fill--otros { background: var(--ed-muted); }

.ed-bar__value {
    color: var(--ed-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ed-tool__foot {
    padding: 18px 26px 22px;
    border-top: 1px solid var(--ed-rule);
    color: var(--ed-muted);
    font-size: .74rem;
    line-height: 1.55;
}

.ed-tool__foot p {
    margin: 0 0 8px;
}

.ed-tool__foot p:last-child {
    margin-bottom: 0;
}

.ed-tool__foot b {
    color: var(--ed-ink-soft);
}

.ed-tool__fallback {
    padding: 0 26px 24px;
    font-size: .82rem;
}

.ed-tool__fallback table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: .78rem;
}

.ed-tool__fallback th,
.ed-tool__fallback td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--ed-rule);
    text-align: left;
}

.ed-tool-body {
    width: min(820px, 92%);
    margin: 38px auto 0;
}

.ed-tool-content {
    font-size: 1.1rem;
}

.ed-tool-note {
    width: min(1080px, 94%);
    margin: 30px auto 0;
    color: var(--ed-muted);
    font-size: .8rem;
}

.ed-tool-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 860px) {
    .ed-tool__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-tool__form {
        border-right: 0;
        border-bottom: 1px solid var(--ed-rule);
    }

    .ed-bar {
        grid-template-columns: 64px minmax(0, 1fr) 50px;
    }
}

@media (max-width: 520px) {
    .ed-tool__head,
    .ed-tool__form,
    .ed-tool__result,
    .ed-tool__foot {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ed-tool__big {
        font-size: 2.6rem;
    }
}

.ed-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 11px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink-soft);
    font-size: .76rem;
    line-height: 1.4;
    cursor: pointer;
}

.ed-check input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--ed-forest);
    flex: 0 0 auto;
}

.ed-detail {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
    border-top: 1px solid var(--ed-rule);
}

.ed-detail > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--ed-rule);
    font-size: .78rem;
}

.ed-detail dt {
    color: var(--ed-muted);
}

.ed-detail dd {
    margin: 0;
    color: var(--ed-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ed-tool__currency {
    font-family: var(--ed-sans);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ed-muted);
    vertical-align: .55em;
    margin-right: 3px;
}


/* Las tablas del artículo pueden ser anchas: scroll interno, nunca scroll de página. */
.ed-tool-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ed-tool-content table th,
.ed-tool-content table td {
    min-width: 84px;
}

/* Mapa interactivo */
.ed-map-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    margin-top: 22px;
    border-top: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
}

.ed-map {
    position: relative;
    z-index: 1;
    min-height: 520px;
    background: var(--ed-forest-soft);
    border-right: 1px solid var(--ed-rule);
}

.ed-map__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: var(--ed-muted);
    font-size: .8rem;
}

.ed-map--failed {
    display: grid;
    place-items: center;
    padding: 28px;
    color: var(--ed-muted);
    font-size: .85rem;
    text-align: center;
}

.ed-map .leaflet-container {
    font-family: var(--ed-sans);
}

.ed-map-popup {
    display: grid;
    gap: 3px;
    min-width: 180px;
}

.ed-map-popup strong {
    font-family: var(--ed-serif);
    font-size: 1rem;
    line-height: 1.15;
}

.ed-map-popup span {
    color: #4b5563;
    font-size: .74rem;
}

.ed-map-popup em {
    color: #1f5c46;
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ed-map-side {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--ed-surface);
}

.ed-map-side__head {
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px;
    color: var(--ed-forest);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ed-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    max-height: 430px;
    overflow-y: auto;
}

.ed-map-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid var(--ed-rule);
    background: transparent;
    color: var(--ed-ink);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ed-map-list__item:hover,
.ed-map-list__item.is-active {
    background: var(--ed-forest-soft);
}

.ed-map-list__num {
    color: var(--ed-terra);
    font-size: .68rem;
    font-weight: 850;
    padding-top: 2px;
}

.ed-map-list__body {
    display: grid;
    gap: 2px;
}

.ed-map-list__name {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
}

.ed-map-list__meta {
    color: var(--ed-muted);
    font-size: .68rem;
}

.ed-map-side__note {
    margin: 12px 0 0;
    color: var(--ed-muted);
    font-size: .66rem;
    line-height: 1.4;
}

@media (max-width: 860px) {
    .ed-map-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-map {
        min-height: 380px;
        border-right: 0;
        border-bottom: 1px solid var(--ed-rule);
    }

    .ed-map-list {
        max-height: 300px;
    }
}

/* Clima */
.ed-map-shell--clima {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.ed-map--clima {
    min-height: 560px;
}

.ed-clima {
    gap: 8px;
}

.ed-clima__label {
    color: var(--ed-forest);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ed-clima__select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: .8rem;
}

.ed-clima-current {
    padding: 12px 0 4px;
}

.ed-clima__city {
    margin: 0;
    color: var(--ed-muted);
    font-size: .74rem;
    font-weight: 650;
}

.ed-clima__temp {
    margin: 2px 0 0;
    font-family: var(--ed-serif);
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -.03em;
}

.ed-clima__temp span {
    font-family: var(--ed-sans);
    font-size: .9rem;
    font-weight: 650;
    color: var(--ed-muted);
}

.ed-clima__desc {
    margin: 4px 0 0;
    color: var(--ed-forest);
    font-size: .8rem;
    font-weight: 750;
}

.ed-clima__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ed-rule);
}

.ed-clima__metrics > div {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: .72rem;
}

.ed-clima__metrics dt {
    color: var(--ed-muted);
}

.ed-clima__metrics dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ed-clima-forecast {
    display: grid;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--ed-rule);
}

.ed-forecast-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 60px 48px;
    gap: 6px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--ed-rule);
    font-size: .68rem;
}

.ed-forecast-row__day {
    color: var(--ed-ink);
    font-weight: 750;
    text-transform: capitalize;
}

.ed-forecast-row__label {
    color: var(--ed-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ed-forecast-row__temps {
    color: var(--ed-ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ed-forecast-row__rain {
    color: var(--ed-navy);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 860px) {
    .ed-map-shell--clima {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-map--clima {
        min-height: 380px;
    }
}

/* Sismos */
.ed-sismos-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
}

.ed-sismos-filters label {
    display: grid;
    gap: 4px;
    color: var(--ed-ink-soft);
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ed-sismos-filters select {
    padding: 7px 9px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: .76rem;
    text-transform: none;
    letter-spacing: 0;
}

.ed-sismos-status {
    margin: 0 0 0 auto;
    color: var(--ed-muted);
    font-size: .7rem;
}

.ed-map-shell--sismos {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    margin-top: 0;
    border-top: 0;
}

.ed-map--sismos {
    min-height: 560px;
}

.ed-sismos-side {
    padding: 16px;
}

.ed-quakes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-height: 500px;
    overflow-y: auto;
}

.ed-quake {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid var(--ed-rule);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ed-quake:hover {
    background: var(--ed-forest-soft);
}

.ed-quake__mag {
    font-size: .78rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.ed-quake__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ed-quake__place {
    color: var(--ed-ink);
    font-size: .74rem;
    font-weight: 650;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ed-quake__meta {
    color: var(--ed-muted);
    font-size: .64rem;
}

.ed-quake-popup {
    display: grid;
    gap: 3px;
    min-width: 190px;
}

.ed-quake-popup strong {
    font-family: var(--ed-serif);
    font-size: 1.1rem;
    color: #b5533c;
}

.ed-quake-popup span {
    color: #374151;
    font-size: .76rem;
}

.ed-quake-popup em {
    color: #6b7280;
    font-size: .68rem;
    font-style: normal;
}

.ed-quake-popup a {
    margin-top: 4px;
    color: #1f5c46;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 860px) {
    .ed-map-shell--sismos {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-map--sismos {
        min-height: 400px;
    }

    .ed-sismos-status {
        margin-left: 0;
        flex-basis: 100%;
    }

    .ed-quakes {
        max-height: 340px;
    }
}

/* Centro histórico */
.ed-map-shell--centro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
}

.ed-map--centro {
    min-height: 560px;
}

.ed-centro-marker {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ed-paper);
    border-radius: 50%;
    background: var(--ed-forest);
    color: var(--ed-paper);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-family: var(--ed-sans);
    font-size: .7rem;
    font-weight: 850;
}

.ed-centro-popup {
    display: grid;
    gap: 3px;
    min-width: 200px;
    max-width: 260px;
}

.ed-centro-popup strong {
    font-family: var(--ed-serif);
    font-size: 1rem;
    line-height: 1.15;
}

.ed-centro-popup em {
    color: #1f5c46;
    font-size: .64rem;
    font-style: normal;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ed-centro-popup p {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: .72rem;
    line-height: 1.4;
}

@media (max-width: 860px) {
    .ed-map-shell--centro {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-map--centro {
        min-height: 400px;
    }
}

/* Rutas de buses */
.ed-buses-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 16px;
    padding: 16px 18px;
    border-top: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
}

.ed-buses-search,
.ed-buses-fare {
    display: grid;
    gap: 4px;
    color: var(--ed-ink-soft);
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ed-buses-search {
    flex: 1 1 260px;
}

.ed-buses-search input,
.ed-buses-fare select {
    padding: 8px 10px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: .8rem;
    text-transform: none;
    letter-spacing: 0;
}

.ed-buses-count {
    margin: 0 0 4px auto;
    color: var(--ed-muted);
    font-size: .7rem;
}

.ed-bus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--ed-rule);
}

.ed-bus {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-right: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    background: var(--ed-surface);
}

.ed-bus[hidden] {
    display: none;
}

.ed-bus:nth-child(3n) {
    border-right: 0;
}

.ed-bus__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.ed-bus__num {
    color: var(--ed-forest);
    font-family: var(--ed-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.ed-bus__fare {
    color: var(--ed-terra);
    font-size: .78rem;
    font-weight: 850;
}

.ed-bus__title {
    margin: 2px 0 0;
    font-family: var(--ed-sans);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.3;
}

.ed-bus__streets {
    margin: 0;
    color: var(--ed-muted);
    font-size: .68rem;
    line-height: 1.45;
}

.ed-bus__note {
    margin: 0;
    color: var(--ed-ink-soft);
    font-size: .68rem;
    line-height: 1.4;
}

.ed-bus__source {
    margin: auto 0 0;
    padding-top: 8px;
    font-size: .68rem;
}

.ed-bus__source a {
    color: var(--ed-forest);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ed-bus-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 18px;
    color: var(--ed-muted);
    font-size: .8rem;
}

@media (max-width: 980px) {
    .ed-bus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ed-bus:nth-child(3n) {
        border-right: 1px solid var(--ed-rule);
    }

    .ed-bus:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .ed-bus-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-bus,
    .ed-bus:nth-child(2n),
    .ed-bus:nth-child(3n) {
        border-right: 0;
    }

    .ed-buses-count {
        margin-left: 0;
    }
}

/* Presupuesto */
.ed-budget-rule {
    padding: 18px;
    border-top: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
}

.ed-budget-rule__head {
    margin: 0 0 10px;
    color: var(--ed-forest);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ed-budget-rule__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--ed-rule);
    border: 1px solid var(--ed-rule);
}

.ed-budget-rule__grid > div {
    display: grid;
    gap: 3px;
    padding: 12px;
    background: var(--ed-paper);
}

.ed-budget-rule__grid span {
    color: var(--ed-muted);
    font-size: .66rem;
    font-weight: 650;
}

.ed-budget-rule__grid b {
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.ed-budget-rule__grid small {
    color: var(--ed-muted);
    font-size: .62rem;
}

@media (max-width: 640px) {
    .ed-budget-rule__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Conversor de medidas */
.ed-medidas-swap {
    justify-self: start;
    padding: 8px 12px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-forest);
    font: inherit;
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
}

.ed-medidas-swap:hover {
    background: var(--ed-forest);
    color: var(--ed-paper);
}

@media (max-width: 520px) {
    .ed-medidas-swap {
        width: 100%;
    }
}

/* Precio por m² */
.ed-m2-label {
    margin: 4px 0 0;
    color: var(--ed-forest);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ed-m2-label--b {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ed-rule);
}

.ed-m2-label--b span {
    color: var(--ed-muted);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* Departamentos */
.ed-dept-table-wrap {
    border-top: 1px solid var(--ed-rule);
    overflow-x: auto;
}

.ed-dept-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}

.ed-dept-table th,
.ed-dept-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--ed-rule);
    text-align: left;
    white-space: nowrap;
}

.ed-dept-table th {
    color: var(--ed-forest);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--ed-forest-soft);
}

.ed-dept-table td:nth-child(3),
.ed-dept-table td:nth-child(4),
.ed-dept-table td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ed-dept-table tr[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .ed-dept-table th,
    .ed-dept-table td {
        padding: 8px 10px;
        font-size: .72rem;
    }
}

/* Hipoteca */
.ed-hip-table-wrap {
    border-top: 1px solid var(--ed-rule);
    overflow-x: auto;
}

.ed-hip-table__head {
    margin: 0;
    padding: 12px 18px;
    color: var(--ed-forest);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--ed-forest-soft);
}

.ed-hip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .74rem;
}

.ed-hip-table th,
.ed-hip-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--ed-rule);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ed-hip-table th:first-child,
.ed-hip-table td:first-child {
    text-align: left;
}

.ed-hip-table th {
    color: var(--ed-muted);
    font-size: .62rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Volcanes */
.ed-map-shell--volcanes {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
}

.ed-map--volcanes {
    min-height: 560px;
}

.ed-volcan-popup {
    display: grid;
    gap: 3px;
    min-width: 190px;
}

.ed-volcan-popup strong {
    font-family: var(--ed-serif);
    font-size: 1.05rem;
    line-height: 1.15;
}

.ed-volcan-popup span {
    color: #374151;
    font-size: .74rem;
}

.ed-volcan-popup em {
    color: #1f5c46;
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 860px) {
    .ed-map-shell--volcanes {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-map--volcanes {
        min-height: 400px;
    }
}

/* Energía */
.ed-energy-tariff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
}

.ed-energy-tariff label {
    font-size: .72rem;
    font-weight: 750;
    color: var(--ed-ink-soft);
}

.ed-energy-tariff input {
    width: 110px;
    padding: 7px 9px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: .8rem;
}

.ed-energy-tariff p {
    flex: 1 1 260px;
    margin: 0;
    color: var(--ed-muted);
    font-size: .66rem;
    line-height: 1.4;
}

.ed-energy-table-wrap {
    overflow-x: auto;
}

.ed-energy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .74rem;
}

.ed-energy-table th,
.ed-energy-table td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--ed-rule);
    text-align: right;
    white-space: nowrap;
}

.ed-energy-table th:first-child,
.ed-energy-table td:first-child {
    text-align: left;
}

.ed-energy-table th {
    color: var(--ed-forest);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--ed-forest-soft);
}

.ed-energy-table input {
    width: 64px;
    padding: 4px 5px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-paper);
    color: var(--ed-ink);
    font: inherit;
    font-size: .74rem;
    text-align: right;
}

.ed-energy-result {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--ed-rule);
    background: var(--ed-surface);
}

@media (max-width: 640px) {
    .ed-energy-result {
        grid-template-columns: minmax(0, 1fr);
    }

    .ed-energy-table input {
        width: 54px;
    }
}
