.zas-tiempo-card,
.zas-tiempo-card * { box-sizing: border-box; }

.zas-tiempo-card {
    --zas-weather-accent: #ffd400;
    --zas-weather-button: #e51b23;
    --zas-weather-bg-start: #0875cb;
    --zas-weather-bg-end: #061a42;
    --zas-weather-text: #fff;
    --zas-weather-muted: #c9def5;
    --zas-weather-radius: 22px;
    --zas-logo-sidebar: 138px;
    --zas-logo-full: 230px;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--zas-weather-radius);
    color: var(--zas-weather-text);
    background:
        radial-gradient(circle at 12% 6%, rgba(255,221,0,.28), transparent 21%),
        radial-gradient(circle at 92% 20%, rgba(91,193,255,.28), transparent 28%),
        linear-gradient(145deg, var(--zas-weather-bg-start), var(--zas-weather-bg-end) 72%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.3;
}

.zas-tiempo-card.has-shadow { box-shadow: 0 18px 45px rgba(3,24,57,.28); }
.zas-tiempo-card [hidden] { display: none !important; }
.zas-tiempo-card button,
.zas-tiempo-card input { font: inherit; }
.zas-tiempo-card button { color: inherit; }
.zas-tiempo-card svg { display: block; }

.zas-tiempo-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: .78;
    pointer-events: none;
}
.zas-tiempo-sky::before,
.zas-tiempo-sky::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}
.zas-tiempo-sky::before { width: 390px; height: 390px; top: -250px; right: -90px; }
.zas-tiempo-sky::after { width: 280px; height: 280px; top: -188px; right: -35px; }

.zas-tiempo-sun {
    position: absolute;
    top: 34px;
    left: -18px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffe25b;
    box-shadow: 0 0 20px #ffe25b, 0 0 70px rgba(255,211,0,.55);
}
.zas-tiempo-cloud {
    position: absolute;
    width: 110px;
    height: 34px;
    border-radius: 40px;
    background: rgba(255,255,255,.16);
    filter: blur(.2px);
}
.zas-tiempo-cloud::before,
.zas-tiempo-cloud::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
}
.zas-tiempo-cloud::before { left: 18px; width: 46px; height: 46px; }
.zas-tiempo-cloud::after { right: 16px; width: 58px; height: 58px; }
.cloud-a { top: 56px; right: -25px; }
.cloud-b { bottom: 75px; left: -35px; transform: scale(.8); opacity: .4; }
.zas-tiempo-rain,
.zas-tiempo-bolt { display: none; }
.weather-rain .zas-tiempo-rain,
.weather-storm .zas-tiempo-rain {
    display: block;
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(110deg, transparent 0 18px, rgba(120,208,255,.11) 19px 21px);
}
.weather-storm .zas-tiempo-bolt {
    display: block;
    position: absolute;
    top: 105px;
    right: 30px;
    width: 18px;
    height: 52px;
    clip-path: polygon(58% 0,100% 0,70% 39%,100% 39%,18% 100%,42% 53%,10% 53%);
    background: var(--zas-weather-accent);
    filter: drop-shadow(0 0 8px rgba(255,217,0,.8));
}
.weather-night { background: radial-gradient(circle at 80% 12%, rgba(159,183,255,.24), transparent 25%), linear-gradient(145deg, #102a67, #06102b 76%); }

.zas-tiempo-inner { position: relative; padding: 16px; }
.zas-tiempo-widget-title { margin: 0 0 9px; color: inherit; font-size: 17px; line-height: 1.15; }

.zas-tiempo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
}
.zas-tiempo-logo {
    display: block;
    width: var(--zas-logo-sidebar);
    max-width: 62%;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 7px 9px rgba(0,0,0,.32));
}
.zas-tiempo-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(1,21,55,.34);
    color: rgba(255,255,255,.9);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    white-space: nowrap;
}
.zas-tiempo-live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #5cff91; box-shadow: 0 0 8px #5cff91; }

.zas-tiempo-location-row {
    display: flex;
    gap: 7px;
    align-items: stretch;
    margin-top: 8px;
}
.zas-tiempo-location-button,
.zas-tiempo-use-location {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(3,29,69,.32);
    box-shadow: inset 0 1px rgba(255,255,255,.06);
    cursor: pointer;
}
.zas-tiempo-location-button {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border-radius: 11px;
    text-align: left;
}
.zas-tiempo-location-button.is-static { cursor: default; }
.zas-tiempo-location-button > svg:first-child { width: 16px; height: 16px; fill: none; stroke: var(--zas-weather-accent); stroke-width: 2; }
.zas-tiempo-location-name { overflow: hidden; flex: 1; font-size: 12px; font-weight: 760; white-space: nowrap; text-overflow: ellipsis; }
.zas-tiempo-chevron { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.zas-tiempo-location-button.is-static .zas-tiempo-chevron { display: none; }
.zas-tiempo-use-location {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    padding: 0;
    border-radius: 11px;
}
.zas-tiempo-use-location svg { width: 18px; height: 18px; fill: none; stroke: var(--zas-weather-accent); stroke-width: 2; }
.zas-tiempo-use-location.is-loading svg { animation: zas-spin 1s linear infinite; }

.zas-tiempo-search {
    position: absolute;
    z-index: 8;
    top: 80px;
    right: 12px;
    left: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    background: rgba(3,20,50,.97);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
}
.zas-tiempo-search-box { display: flex; align-items: center; gap: 8px; padding: 9px; border-bottom: 1px solid rgba(255,255,255,.1); }
.zas-tiempo-search-box > svg { width: 18px; height: 18px; fill: none; stroke: var(--zas-weather-accent); stroke-width: 2; }
.zas-tiempo-search-input { min-width: 0; flex: 1; height: 36px; padding: 0 4px; border: 0 !important; outline: 0; color: #fff !important; background: transparent !important; box-shadow: none !important; }
.zas-tiempo-search-input::placeholder { color: rgba(255,255,255,.55); }
.zas-tiempo-search-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); cursor: pointer; font-size: 22px; }
.zas-tiempo-search-results { max-height: 250px; overflow: auto; padding: 5px; }
.zas-tiempo-result { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.zas-tiempo-result:hover { background: rgba(255,255,255,.08); }
.zas-tiempo-result span { display: flex; flex-direction: column; min-width: 0; }
.zas-tiempo-result strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zas-tiempo-result small { margin-top: 2px; color: var(--zas-weather-muted); font-size: 10px; }
.zas-tiempo-result b { color: var(--zas-weather-accent); font-size: 20px; }
.zas-tiempo-searching,
.zas-tiempo-no-results { padding: 15px; color: var(--zas-weather-muted); font-size: 12px; text-align: center; }

.zas-tiempo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    color: var(--zas-weather-muted);
    font-size: 12px;
    text-align: center;
}
.zas-tiempo-status.is-error { color: #ffd4d4; }
.zas-tiempo-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--zas-weather-accent); border-radius: 50%; animation: zas-spin .8s linear infinite; }
@keyframes zas-spin { to { transform: rotate(360deg); } }

.zas-tiempo-current {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 102px;
    padding: 6px 0 3px;
}
.zas-tiempo-main-icon { flex: 0 0 92px; width: 92px; height: 92px; }
.zas-tiempo-main-icon .wx-icon { width: 100%; height: 100%; filter: drop-shadow(0 8px 11px rgba(0,0,0,.2)); }
.zas-tiempo-current-copy { min-width: 0; flex: 1; }
.zas-tiempo-temperature { display: flex; align-items: flex-start; font-size: 58px; font-weight: 900; line-height: .9; letter-spacing: -.055em; }
.zas-tiempo-temperature sup { margin: 3px 0 0 3px; color: var(--zas-weather-accent); font-size: 16px; letter-spacing: 0; }
.zas-tiempo-condition { margin-top: 7px; font-size: 14px; font-weight: 800; }
.zas-tiempo-high-low { margin-top: 2px; color: var(--zas-weather-muted); font-size: 11px; font-weight: 650; }

.zas-tiempo-alert {
    margin: 5px 0 9px;
    padding: 8px 9px;
    border: 1px solid rgba(255,220,90,.28);
    border-radius: 10px;
    background: rgba(255,181,0,.14);
    color: #fff6c5;
    font-size: 10px;
    line-height: 1.35;
}
.zas-tiempo-alert span { margin-right: 5px; }

.zas-tiempo-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 4px;
}
.zas-tiempo-metric {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.075);
}
.zas-tiempo-metric svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--zas-weather-accent); stroke-width: 1.8; }
.zas-tiempo-metric span { display: flex; flex-direction: column; min-width: 0; }
.zas-tiempo-metric small { color: var(--zas-weather-muted); font-size: 8px; line-height: 1; }
.zas-tiempo-metric strong { overflow: hidden; margin-top: 3px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }

.zas-tiempo-forecast-wrap { margin-top: 10px; }
.zas-tiempo-forecast-title { margin-bottom: 6px; color: var(--zas-weather-muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.zas-tiempo-days { display: grid; grid-template-columns: repeat(var(--zas-day-count, 3), minmax(0, 1fr)); gap: 5px; }
.zas-tiempo-day {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1px 4px;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(1,25,62,.25);
}
.zas-tiempo-day.is-today { border-color: color-mix(in srgb, var(--zas-weather-accent) 55%, transparent); background: rgba(255,218,0,.1); }
.zas-tiempo-day-name { grid-column: 1 / -1; overflow: hidden; color: var(--zas-weather-muted); font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.zas-tiempo-day-icon { grid-row: 2 / 4; width: 28px; height: 28px; }
.zas-tiempo-day-icon .wx-icon { width: 100%; height: 100%; }
.zas-tiempo-day strong { align-self: end; font-size: 11px; line-height: 1; }
.zas-tiempo-day small { align-self: start; color: var(--zas-weather-muted); font-size: 8px; }
.zas-tiempo-day-rain { grid-column: 1 / -1; margin-top: 2px; color: #a9dcff; font-size: 7px; }

.zas-tiempo-footer { margin-top: 10px; text-align: center; }
.zas-tiempo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 35px;
    border-radius: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--zas-weather-button), color-mix(in srgb, var(--zas-weather-button) 70%, #6b0010));
    box-shadow: 0 7px 16px color-mix(in srgb, var(--zas-weather-button) 22%, transparent);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none !important;
}
.zas-tiempo-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.zas-tiempo-updated { margin-top: 6px; color: var(--zas-weather-muted); font-size: 8px; }
.zas-tiempo-source { display: inline-block; margin-top: 4px; color: rgba(255,255,255,.48) !important; font-size: 7px; text-decoration: none !important; }
.zas-tiempo-toast { position: absolute; z-index: 20; right: 10px; bottom: 10px; left: 10px; padding: 10px; border-radius: 10px; color: #fff; background: rgba(1,14,37,.95); box-shadow: 0 12px 30px rgba(0,0,0,.32); font-size: 11px; text-align: center; }

/* Preset bajo: pensado para sidebar corto. */
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-inner { padding: 11px 12px 12px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-header { min-height: 42px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-logo { width: min(var(--zas-logo-sidebar), 126px); height: 44px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-live-badge { padding: 4px 7px; font-size: 7px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-location-row { margin-top: 5px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-location-button,
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-use-location { height: 32px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-use-location { flex-basis: 32px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-current { min-height: 74px; gap: 8px; padding: 2px 0; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-main-icon { flex-basis: 62px; width: 62px; height: 62px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-temperature { font-size: 43px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-condition { margin-top: 4px; font-size: 11px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-high-low { font-size: 9px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-alert { margin: 3px 0 5px; padding: 6px 7px; font-size: 8px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-metrics { gap: 4px; margin-top: 2px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-metric { padding: 5px 6px; border-radius: 8px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-metric svg { width: 14px; height: 14px; flex-basis: 14px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-metric small { font-size: 7px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-metric strong { margin-top: 1px; font-size: 9px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-forecast-wrap { margin-top: 6px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-forecast-title { display: none; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-day { padding: 5px; border-radius: 8px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-day-icon { width: 22px; height: 22px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-day-rain { display: none; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-footer { margin-top: 6px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-more { min-height: 30px; font-size: 9px; }
.zas-tiempo-card.is-sidebar.density-slim .zas-tiempo-source { display: none; }
.zas-tiempo-card.is-sidebar.density-compact .zas-tiempo-inner { padding: 14px; }
.zas-tiempo-card.is-sidebar.density-compact .zas-tiempo-logo { height: 50px; }
.zas-tiempo-card.is-sidebar.density-compact .zas-tiempo-current { min-height: 88px; }
.zas-tiempo-card.is-sidebar.density-compact .zas-tiempo-main-icon { flex-basis: 76px; width: 76px; height: 76px; }
.zas-tiempo-card.is-sidebar.density-compact .zas-tiempo-temperature { font-size: 50px; }

/* Iconografía */
.wx-icon { overflow: visible; }
.wx-sun-core { fill: #ffd83d; stroke: #fff2a9; stroke-width: 2; }
.wx-rays path { fill: none; stroke: #ffd83d; stroke-linecap: round; stroke-width: 5; }
.wx-cloud { fill: #f4f9ff; stroke: #c6def4; stroke-width: 2; }
.wx-rain path { fill: none; stroke: #42c7ff; stroke-linecap: round; stroke-width: 5; }
.wx-moon { fill: #fff2a5; stroke: #fff8d3; stroke-width: 2; }
.wx-bolt { fill: #ffd500; stroke: #fff2a0; stroke-width: 1.5; }
.wx-fog path { fill: none; stroke: #d8edff; stroke-linecap: round; stroke-width: 5; }
.wx-snow path { fill: none; stroke: #dcf4ff; stroke-linecap: round; stroke-width: 3; }

/* Página completa */
.zas-tiempo-card.is-full { max-width: 1180px; margin: 20px auto; overflow: visible; }
.zas-tiempo-card.is-full .zas-tiempo-inner { padding: clamp(20px, 4vw, 42px); }
.zas-tiempo-card.is-full .zas-tiempo-widget-title { margin-bottom: 18px; font-size: clamp(26px, 4vw, 46px); font-weight: 950; letter-spacing: -.035em; }
.zas-tiempo-card.is-full .zas-tiempo-header { min-height: 84px; }
.zas-tiempo-card.is-full .zas-tiempo-logo { width: var(--zas-logo-full); max-width: 46%; height: 94px; }
.zas-tiempo-card.is-full .zas-tiempo-live-badge { padding: 8px 12px; font-size: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-location-row { max-width: 640px; margin-top: 14px; }
.zas-tiempo-card.is-full .zas-tiempo-location-button { height: 46px; padding: 0 14px; }
.zas-tiempo-card.is-full .zas-tiempo-use-location { flex-basis: 46px; height: 46px; }
.zas-tiempo-card.is-full .zas-tiempo-location-name { font-size: 14px; }
.zas-tiempo-card.is-full .zas-tiempo-search { top: 150px; right: auto; left: clamp(20px,4vw,42px); width: min(620px, calc(100% - 40px)); }
.zas-tiempo-card.is-full .zas-tiempo-current { gap: 25px; min-height: 230px; padding: 18px 0 8px; }
.zas-tiempo-card.is-full .zas-tiempo-main-icon { flex-basis: 190px; width: 190px; height: 190px; }
.zas-tiempo-card.is-full .zas-tiempo-temperature { font-size: clamp(86px, 13vw, 150px); }
.zas-tiempo-card.is-full .zas-tiempo-temperature sup { margin-top: 12px; font-size: 28px; }
.zas-tiempo-card.is-full .zas-tiempo-condition { margin-top: 12px; font-size: clamp(20px, 3vw, 32px); }
.zas-tiempo-card.is-full .zas-tiempo-high-low { margin-top: 5px; font-size: 14px; }
.zas-tiempo-card.is-full .zas-tiempo-alert { max-width: 780px; margin: 8px 0 18px; padding: 12px 14px; font-size: 13px; }
.zas-tiempo-card.is-full .zas-tiempo-sidebar-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-metric { padding: 12px; }
.zas-tiempo-card.is-full .zas-tiempo-metric svg { width: 23px; height: 23px; flex-basis: 23px; }
.zas-tiempo-card.is-full .zas-tiempo-metric small { font-size: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-metric strong { font-size: 14px; }
.zas-tiempo-card.is-full .zas-tiempo-forecast-wrap { margin-top: 24px; }
.zas-tiempo-card.is-full .zas-tiempo-forecast-title { font-size: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-days { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.zas-tiempo-card.is-full .zas-tiempo-day { flex: 0 0 120px; min-height: 116px; padding: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-day-name { font-size: 9px; }
.zas-tiempo-card.is-full .zas-tiempo-day-icon { width: 42px; height: 42px; }
.zas-tiempo-card.is-full .zas-tiempo-day strong { font-size: 17px; }
.zas-tiempo-card.is-full .zas-tiempo-day small { font-size: 11px; }
.zas-tiempo-card.is-full .zas-tiempo-day-rain { font-size: 9px; }
.zas-tiempo-card.is-full .zas-tiempo-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.zas-tiempo-card.is-full .zas-tiempo-updated { font-size: 10px; }
.zas-tiempo-card.is-full .zas-tiempo-source { font-size: 9px; }

.zas-tiempo-full-details { margin-top: 30px; }
.zas-full-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.zas-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.zas-section-heading span { font-size: 13px; font-weight: 950; letter-spacing: .08em; }
.zas-section-heading small { color: var(--zas-weather-muted); font-size: 11px; }
.zas-tiempo-details-grid,
.zas-tiempo-sun-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.zas-tiempo-sun-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.zas-detail-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 88px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
}
.zas-detail-icon { flex: 0 0 29px; font-size: 25px; }
.zas-detail-card > div { display: flex; flex-direction: column; min-width: 0; }
.zas-detail-card small { color: var(--zas-weather-muted); font-size: 9px; }
.zas-detail-card strong { overflow: hidden; margin-top: 4px; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.zas-detail-card em { overflow: hidden; margin-top: 3px; color: rgba(255,255,255,.58); font-size: 8px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }

.zas-tiempo-hourly { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.zas-hour-card {
    display: flex;
    flex: 0 0 104px;
    flex-direction: column;
    align-items: center;
    min-height: 155px;
    padding: 12px 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(1,25,62,.28);
    scroll-snap-align: start;
}
.zas-hour-card.is-now { border-color: color-mix(in srgb, var(--zas-weather-accent) 55%, transparent); background: rgba(255,218,0,.1); }
.zas-hour-time { color: var(--zas-weather-muted); font-size: 9px; font-weight: 850; }
.zas-hour-icon { width: 48px; height: 48px; margin: 7px 0; }
.zas-hour-icon .wx-icon { width: 100%; height: 100%; }
.zas-hour-card strong { font-size: 19px; }
.zas-hour-card small { margin-top: 5px; color: #a9dcff; font-size: 9px; }
.zas-hour-card em { margin-top: 4px; color: rgba(255,255,255,.55); font-size: 8px; font-style: normal; }

.zas-tiempo-daily-detailed { display: grid; gap: 8px; }
.zas-daily-card {
    display: grid;
    grid-template-columns: minmax(120px,1.1fr) minmax(200px,2fr) 85px repeat(3,minmax(95px,1fr));
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}
.zas-daily-card.is-today { border-color: color-mix(in srgb, var(--zas-weather-accent) 50%, transparent); background: rgba(255,218,0,.085); }
.zas-daily-name,
.zas-daily-condition > div,
.zas-daily-stat { display: flex; flex-direction: column; min-width: 0; }
.zas-daily-name strong { text-transform: capitalize; font-size: 13px; }
.zas-daily-name small,
.zas-daily-condition small,
.zas-daily-stat small,
.zas-daily-stat em { margin-top: 3px; color: var(--zas-weather-muted); font-size: 8px; font-style: normal; }
.zas-daily-condition { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zas-daily-condition > span { flex: 0 0 46px; width: 46px; height: 46px; }
.zas-daily-condition .wx-icon { width: 100%; height: 100%; }
.zas-daily-condition strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.zas-daily-temps { display: flex; align-items: baseline; gap: 7px; }
.zas-daily-temps strong { font-size: 24px; }
.zas-daily-temps span { color: var(--zas-weather-muted); font-size: 15px; }
.zas-daily-stat strong { margin-top: 3px; font-size: 12px; }

@media (max-width: 900px) {
    .zas-tiempo-details-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .zas-tiempo-sun-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .zas-daily-card { grid-template-columns: 1fr 1.5fr 70px 1fr; }
    .zas-daily-card .zas-daily-stat:nth-last-child(-n+2) { display: none; }
}

@media (max-width: 620px) {
    .zas-tiempo-card.is-full { margin: 8px 0; border-radius: min(var(--zas-weather-radius), 18px); }
    .zas-tiempo-card.is-full .zas-tiempo-inner { padding: 18px 14px; }
    .zas-tiempo-card.is-full .zas-tiempo-header { min-height: 62px; }
    .zas-tiempo-card.is-full .zas-tiempo-logo { width: min(var(--zas-logo-full), 180px); height: 70px; max-width: 60%; }
    .zas-tiempo-card.is-full .zas-tiempo-live-badge { font-size: 7px; }
    .zas-tiempo-card.is-full .zas-tiempo-current { gap: 8px; min-height: 150px; }
    .zas-tiempo-card.is-full .zas-tiempo-main-icon { flex-basis: 105px; width: 105px; height: 105px; }
    .zas-tiempo-card.is-full .zas-tiempo-temperature { font-size: 70px; }
    .zas-tiempo-card.is-full .zas-tiempo-condition { font-size: 17px; }
    .zas-tiempo-card.is-full .zas-tiempo-sidebar-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .zas-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .zas-tiempo-details-grid,
    .zas-tiempo-sun-grid { grid-template-columns: 1fr 1fr; }
    .zas-detail-card { min-height: 76px; padding: 10px; }
    .zas-detail-icon { flex-basis: 24px; font-size: 21px; }
    .zas-daily-card { grid-template-columns: 1fr 1.4fr 62px; padding: 10px; }
    .zas-daily-card .zas-daily-stat { display: none; }
    .zas-daily-condition > span { flex-basis: 38px; width: 38px; height: 38px; }
}

@media (max-width: 350px) {
    .zas-tiempo-inner { padding-right: 10px; padding-left: 10px; }
    .zas-tiempo-logo { max-width: 58%; }
    .zas-tiempo-live-badge { font-size: 6px; }
    .zas-tiempo-temperature { font-size: 42px; }
    .zas-tiempo-main-icon { flex-basis: 62px; width: 62px; height: 62px; }
}

/* =========================================================
   ZAS Tiempo Pro 3.0 · Diseños adaptables
   ========================================================= */
.zas-tiempo-slot {
    container-type: inline-size;
    width: min(100%, var(--zas-card-target-width, 100%));
    max-width: 100%;
    margin-inline: auto;
}
.zas-tiempo-slot.fit-container {
    width: 100%;
    max-width: var(--zas-card-target-width, 100%);
}
.zas-tiempo-slot > .zas-tiempo-card {
    width: 100%;
    max-width: none;
}
.zas-tiempo-slot.layout-compact > .zas-tiempo-card { min-height: min(var(--zas-card-target-height, 410px), 1000px); }
.zas-tiempo-slot.layout-vertical > .zas-tiempo-card { min-height: min(var(--zas-card-target-height, 620px), 1400px); }
.zas-tiempo-slot.layout-custom > .zas-tiempo-card { min-height: min(var(--zas-card-target-height, 420px), 1600px); }

/* Compacto: menos altura sin perder temperatura, ubicación ni días. */
.zas-tiempo-slot.layout-compact .zas-tiempo-inner { padding: 10px 11px 11px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-header { min-height: 38px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-logo { width: min(var(--zas-logo-sidebar), 118px); height: 39px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-live-badge { padding: 3px 6px; font-size: 6px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-location-row { margin-top: 3px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-location-button,
.zas-tiempo-slot.layout-compact .zas-tiempo-use-location { height: 30px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-use-location { flex-basis: 30px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-current { min-height: 68px; gap: 7px; padding: 1px 0; }
.zas-tiempo-slot.layout-compact .zas-tiempo-main-icon { flex-basis: 58px; width: 58px; height: 58px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-temperature { font-size: 40px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-condition { margin-top: 3px; font-size: 10px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-high-low { font-size: 8px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-alert { margin: 2px 0 4px; padding: 5px 6px; font-size: 7px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-metrics { gap: 4px; margin-top: 2px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-metric { padding: 5px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-metric svg { width: 13px; height: 13px; flex-basis: 13px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-metric small { font-size: 6px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-metric strong { font-size: 8px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-forecast-wrap { margin-top: 5px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-forecast-title { display: none; }
.zas-tiempo-slot.layout-compact .zas-tiempo-day { padding: 4px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-day-icon { width: 21px; height: 21px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-day-rain { display: none; }
.zas-tiempo-slot.layout-compact .zas-tiempo-footer { margin-top: 5px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-more { min-height: 28px; font-size: 8px; }
.zas-tiempo-slot.layout-compact .zas-tiempo-source { display: none; }

/* Vertical: tarjeta visual para sidebar ancho o bloque editorial. */
.zas-tiempo-slot.layout-vertical .zas-tiempo-card,
.zas-tiempo-slot.layout-custom .zas-tiempo-card {
    display: flex;
}
.zas-tiempo-slot.layout-vertical .zas-tiempo-inner,
.zas-tiempo-slot.layout-custom .zas-tiempo-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.zas-tiempo-slot.layout-vertical .zas-tiempo-content,
.zas-tiempo-slot.layout-custom .zas-tiempo-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.zas-tiempo-slot.layout-vertical .zas-tiempo-footer,
.zas-tiempo-slot.layout-custom .zas-tiempo-footer { margin-top: auto; }

/* Mixin horizontal aplicado al banner fijo y al modo automático ancho. */
@container (min-width: 980px) {
    .zas-tiempo-slot.layout-horizontal > .zas-tiempo-card,
    .zas-tiempo-slot.layout-auto > .zas-tiempo-card {
        height: max(220px, var(--zas-card-target-height, 241px));
        min-height: 220px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-inner,
    .zas-tiempo-slot.layout-auto .zas-tiempo-inner {
        display: grid;
        grid-template-columns: clamp(175px, 18cqw, 250px) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        gap: 5px clamp(14px, 2cqw, 28px);
        height: 100%;
        padding: 12px clamp(15px, 2cqw, 28px);
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-widget-title,
    .zas-tiempo-slot.layout-auto .zas-tiempo-widget-title {
        position: absolute;
        top: 7px;
        left: 18px;
        margin: 0;
        font-size: 11px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-header,
    .zas-tiempo-slot.layout-auto .zas-tiempo-header {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        min-height: 66px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-logo,
    .zas-tiempo-slot.layout-auto .zas-tiempo-logo {
        width: min(var(--zas-logo-sidebar), 190px);
        max-width: 82%;
        height: 68px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-live-badge,
    .zas-tiempo-slot.layout-auto .zas-tiempo-live-badge {
        position: absolute;
        top: 11px;
        right: 13px;
        padding: 4px 7px;
        font-size: 6px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-location-row,
    .zas-tiempo-slot.layout-auto .zas-tiempo-location-row {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin-top: 0;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-location-button,
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-use-location,
    .zas-tiempo-slot.layout-auto .zas-tiempo-location-button,
    .zas-tiempo-slot.layout-auto .zas-tiempo-use-location { height: 34px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-use-location,
    .zas-tiempo-slot.layout-auto .zas-tiempo-use-location { flex-basis: 34px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-search,
    .zas-tiempo-slot.layout-auto .zas-tiempo-search {
        position: absolute;
        z-index: 30;
        top: 80px;
        left: 15px;
        width: min(420px, calc(100% - 30px));
        margin: 0;
        background: rgba(3, 20, 50, .97);
        box-shadow: 0 18px 45px rgba(0,0,0,.35);
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-status,
    .zas-tiempo-slot.layout-auto .zas-tiempo-status {
        grid-column: 2;
        grid-row: 1 / 3;
        min-height: 0;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-content,
    .zas-tiempo-slot.layout-auto .zas-tiempo-content {
        grid-column: 2;
        grid-row: 1 / 3;
        display: grid;
        grid-template-columns: minmax(190px, .8fr) minmax(230px, 1fr) minmax(340px, 1.45fr);
        grid-template-rows: auto 1fr auto;
        gap: 5px clamp(10px, 1.5cqw, 24px);
        align-items: center;
        min-width: 0;
        height: 100%;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-current,
    .zas-tiempo-slot.layout-auto .zas-tiempo-current {
        grid-column: 1;
        grid-row: 1 / 4;
        min-height: 0;
        gap: 8px;
        padding: 0;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-main-icon,
    .zas-tiempo-slot.layout-auto .zas-tiempo-main-icon { flex-basis: 72px; width: 72px; height: 72px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-temperature,
    .zas-tiempo-slot.layout-auto .zas-tiempo-temperature { font-size: clamp(43px, 4cqw, 62px); }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-condition,
    .zas-tiempo-slot.layout-auto .zas-tiempo-condition { margin-top: 4px; font-size: 12px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-high-low,
    .zas-tiempo-slot.layout-auto .zas-tiempo-high-low { font-size: 9px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-alert,
    .zas-tiempo-slot.layout-auto .zas-tiempo-alert {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding: 5px 7px;
        font-size: 7px;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-metrics,
    .zas-tiempo-slot.layout-auto .zas-tiempo-metrics {
        grid-column: 2;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 5px;
        margin: 0;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-metric,
    .zas-tiempo-slot.layout-auto .zas-tiempo-metric { padding: 6px 7px; border-radius: 9px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-metric svg,
    .zas-tiempo-slot.layout-auto .zas-tiempo-metric svg { width: 15px; height: 15px; flex-basis: 15px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-metric small,
    .zas-tiempo-slot.layout-auto .zas-tiempo-metric small { font-size: 6px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-metric strong,
    .zas-tiempo-slot.layout-auto .zas-tiempo-metric strong { font-size: 9px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-forecast-wrap,
    .zas-tiempo-slot.layout-auto .zas-tiempo-forecast-wrap {
        grid-column: 3;
        grid-row: 1 / 3;
        min-width: 0;
        margin: 0;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-forecast-title,
    .zas-tiempo-slot.layout-auto .zas-tiempo-forecast-title { margin-bottom: 5px; font-size: 7px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-day,
    .zas-tiempo-slot.layout-auto .zas-tiempo-day { padding: 6px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-day-icon,
    .zas-tiempo-slot.layout-auto .zas-tiempo-day-icon { width: 25px; height: 25px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-day-rain,
    .zas-tiempo-slot.layout-auto .zas-tiempo-day-rain { font-size: 6px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-footer,
    .zas-tiempo-slot.layout-auto .zas-tiempo-footer {
        grid-column: 2 / 4;
        grid-row: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 9px;
        min-width: 0;
        margin: 0;
        text-align: right;
    }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-more,
    .zas-tiempo-slot.layout-auto .zas-tiempo-more { width: auto; min-width: 165px; min-height: 28px; padding: 0 14px; font-size: 8px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-updated,
    .zas-tiempo-slot.layout-auto .zas-tiempo-updated { margin: 0; font-size: 7px; }
    .zas-tiempo-slot.layout-horizontal .zas-tiempo-source,
    .zas-tiempo-slot.layout-auto .zas-tiempo-source { display: none; }
}

/* Horizontal forzado cuando se desactiva la adaptación automática. */
.zas-tiempo-slot.layout-horizontal:not(.responsive-collapse) {
    min-width: min(980px, 100%);
}

/* Modo automático en espacios medianos: vertical limpio. */
@container (min-width: 480px) and (max-width: 979px) {
    .zas-tiempo-slot.layout-auto .zas-tiempo-card { min-height: 500px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-inner { padding: 15px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-current { min-height: 100px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* Cualquier horizontal se repliega en tablet/móvil sin desbordar. */
@container (max-width: 979px) {
    .zas-tiempo-slot.layout-horizontal.responsive-collapse > .zas-tiempo-card {
        height: auto;
        min-height: 0;
    }
}

/* En móvil, automático y horizontal responsivo pasan al compacto. */
@container (max-width: 479px) {
    .zas-tiempo-slot.layout-auto .zas-tiempo-inner,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-inner { padding: 10px 11px 11px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-logo,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-logo { width: min(var(--zas-logo-sidebar), 118px); height: 40px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-current,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-current { min-height: 70px; gap: 7px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-main-icon,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-main-icon { flex-basis: 58px; width: 58px; height: 58px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-temperature,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-temperature { font-size: 41px; }
    .zas-tiempo-slot.layout-auto .zas-tiempo-forecast-title,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-forecast-title,
    .zas-tiempo-slot.layout-auto .zas-tiempo-day-rain,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-day-rain,
    .zas-tiempo-slot.layout-auto .zas-tiempo-source,
    .zas-tiempo-slot.layout-horizontal.responsive-collapse .zas-tiempo-source { display: none; }
}

/* Fallback para navegadores sin container queries. */
@supports not (container-type: inline-size) {
    @media (min-width: 1100px) {
        .zas-tiempo-slot.layout-horizontal > .zas-tiempo-card { min-height: var(--zas-card-target-height, 241px); }
    }
}
