/* =========================================================
   SATÉLITE Y RADAR
   El Tiempo Sevilla · EUMETSAT + AEMET
========================================================= */

.satelite-radar-page > .contenedor {
    overflow: hidden;
}

.sr-cabecera {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dce7ed;
}

.sr-supra,
.sr-kicker {
    margin: 0 0 7px;
    color: #6f96ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sr-cabecera h1 {
    margin: 0;
    color: #294c62;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.sr-entradilla {
    max-width: 1040px;
    margin: 15px 0 0;
    color: #647b88;
    font-size: 14px;
    line-height: 1.68;
    text-align: justify;
    text-justify: inter-word;
}

.sr-seccion {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid #dfe9ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(39, 72, 91, .055);
}

.sr-seccion-satelite { border-top: 3px solid #7698b2; }
.sr-seccion-radar { border-top: 3px solid #6f8ea0; }
.sr-seccion-lectura { border-top: 3px solid #bfd2dd; }

.sr-titulo-bloque {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.sr-titulo-bloque h2 {
    margin: 0;
    color: #31566c;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.012em;
}

.sr-titulo-bloque-simple { margin-bottom: 16px; }

.sr-marca-fuente {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 6px 9px;
    border: 1px solid #dbe7ee;
    border-radius: 6px;
    background: #f6fafc;
    color: #587f98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sr-marca-aemet {
    border-color: #dce8df;
    background: #f7faf8;
    color: #5d7d68;
}

.sr-intro {
    max-width: 1060px;
    margin: 0 0 17px;
    color: #667d8a;
    font-size: 13px;
    line-height: 1.68;
    text-align: justify;
    text-justify: inter-word;
}

.sr-controles {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sr-control,
.sr-recargar,
.sr-chip-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid #d8e4ea;
    border-radius: 8px;
    background: #f8fbfc;
    color: #5f7785;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.sr-control,
.sr-recargar {
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.sr-control:hover,
.sr-control:focus-visible,
.sr-recargar:hover,
.sr-recargar:focus-visible {
    border-color: #c1d7e2;
    background: #f1f7fa;
    color: #32647f;
    outline: none;
}

.sr-control.activo {
    border-color: #acc8d8;
    background: #edf6fa;
    color: #27617f;
    box-shadow: inset 0 -2px 0 rgba(66, 133, 170, .18);
}

.sr-control-icono {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(41, 76, 98, .18);
}

.sr-control-icono-rgb {
    background: linear-gradient(90deg, #d83c3c 0 33.33%, #35a85a 33.33% 66.66%, #3c6fd8 66.66% 100%);
}

.sr-control-icono-ir {
    background: linear-gradient(135deg, #35444e, #d8e0e4);
}

.sr-control-icono-wv {
    background: linear-gradient(135deg, #343b58, #b8bfd1);
}

.sr-recargar {
    margin-left: auto;
    background: #fff;
}

.sr-recargar svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-controles-radar { justify-content: space-between; }

.sr-chip-producto {
    justify-content: flex-start;
    cursor: default;
    background: #fbfdfd;
}

.sr-chip-punto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6e96aa;
}

.sr-visor {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #cddbe3;
    border-radius: 10px;
    background:
        linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.35) 75%),
        linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.35) 75%),
        #edf2f5;
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.sr-visor-satelite { aspect-ratio: 5 / 3; }

.sr-visor img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #e9eef1;
}

.sr-visor-radar {
    min-height: 540px;
    background-color: #f1f4f5;
}

.sr-visor-radar img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 760px;
    background: transparent;
}

.sr-cargando {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #82949e;
    font-size: 11px;
    font-weight: 650;
}

.sr-cargando span {
    width: 15px;
    height: 15px;
    border: 2px solid #cddbe2;
    border-top-color: #6c98b1;
    border-radius: 50%;
    animation: sr-giro .8s linear infinite;
}

@keyframes sr-giro { to { transform: rotate(360deg); } }

.sr-error {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f7fafb;
    color: #788c97;
    font-size: 12px;
    text-align: center;
}

.sr-error[hidden] { display: none; }

.sr-visor-pie {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 9px;
    color: #8999a2;
    font-size: 10px;
    line-height: 1.45;
}

.sr-visor-pie strong {
    color: #637b88;
    font-weight: 750;
}

.sr-nota {
    display: flex;
    gap: 7px;
    align-items: baseline;
    margin-top: 13px;
    padding: 11px 13px;
    border-left: 3px solid #7f9db1;
    background: #f8fbfc;
    color: #71838e;
    font-size: 11px;
    line-height: 1.55;
}

.sr-nota strong {
    flex: 0 0 auto;
    color: #4d6878;
}

.sr-nota-radar {
    border-left-color: #779182;
    background: #f9fbfa;
}

.sr-radar-pendiente {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 18px;
    border: 1px dashed #cfdde4;
    border-radius: 10px;
    background: #f8fbfc;
}

.sr-radar-pendiente-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #eaf2f6;
    color: #66899d;
}

.sr-radar-pendiente-icono svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-radar-pendiente strong {
    display: block;
    margin: 1px 0 5px;
    color: #496878;
    font-size: 13px;
}

.sr-radar-pendiente p {
    margin: 0;
    color: #758994;
    font-size: 11px;
    line-height: 1.6;
}

.sr-lectura-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sr-lectura-item {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e0e9ed;
    border-radius: 10px;
    background: #fbfdfe;
}

.sr-lectura-num {
    flex: 0 0 auto;
    color: #9eb4c0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.sr-lectura-item h3 {
    margin: 0 0 6px;
    color: #49697a;
    font-size: 13px;
    line-height: 1.25;
}

.sr-lectura-item p {
    margin: 0;
    color: #748791;
    font-size: 11px;
    line-height: 1.58;
}

@media (max-width: 800px) {
    .sr-cabecera {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .sr-entradilla {
        font-size: 13px;
        line-height: 1.65;
        text-align: justify;
        text-justify: inter-word;
    }

    .sr-seccion {
        margin-top: 22px;
        padding: 16px;
        border-radius: 12px;
    }

    .sr-titulo-bloque { gap: 12px; }
    .sr-titulo-bloque h2 { font-size: 19px; }

    .sr-intro {
        font-size: 12px;
        line-height: 1.62;
        text-align: justify;
        text-justify: inter-word;
    }

    .sr-controles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sr-control { width: 100%; }
    .sr-recargar { margin-left: 0; grid-column: 1 / -1; }

    .sr-controles-radar {
        display: flex;
        justify-content: space-between;
    }

    .sr-controles-radar .sr-recargar {
        width: auto;
        flex: 0 0 auto;
    }

    .sr-visor {
        min-height: 0;
        border-radius: 8px;
    }

    .sr-visor-satelite { aspect-ratio: 5 / 3; }
    .sr-visor-radar { min-height: 360px; }

    .sr-visor-pie {
        display: block;
    }

    .sr-consulta {
        display: block;
        margin-top: 3px;
    }

    .sr-nota {
        display: block;
        font-size: 10.5px;
    }

    .sr-nota strong {
        display: block;
        margin-bottom: 2px;
    }

    .sr-lectura-grid { grid-template-columns: 1fr; }

    .sr-radar-pendiente {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sr-marca-fuente {
        padding: 5px 7px;
        font-size: 9px;
    }

    .sr-control,
    .sr-recargar,
    .sr-chip-producto {
        min-height: 36px;
        font-size: 10px;
    }

    .sr-controles-radar {
        align-items: stretch;
        flex-direction: column;
    }

    .sr-controles-radar .sr-recargar { width: 100%; }
    .sr-visor-radar { min-height: 300px; }
}

/* =========================================================
   V2 · ENCUADRE IBÉRICO + ANIMACIÓN RADAR
========================================================= */

.sr-control-icono-vis {
    background: linear-gradient(135deg, #30383d, #f1f3f4);
}

.sr-control-icono-wv {
    background: linear-gradient(135deg, #273b67, #7d73aa 52%, #c7c8df);
}

.sr-control-icono-airmass {
    background: linear-gradient(135deg, #3a235f 0 32%, #b84d79 32% 63%, #4fa3bd 63% 100%);
}

.sr-control-icono-conv {
    background: linear-gradient(135deg, #7b284d 0 28%, #e25b39 28% 58%, #f4df58 58% 100%);
}


.sr-visor-satelite {
    aspect-ratio: 10 / 7;
}

.sr-selector-radar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sr-selector-radar .sr-control {
    min-width: 118px;
}

.sr-controles-radar .sr-recargar {
    margin-left: auto;
}

.sr-radar-tiempo {
    display: grid;
    grid-template-columns: 36px auto 36px minmax(220px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding: 10px 11px;
    border: 1px solid #dce6eb;
    border-radius: 9px;
    background: #f9fbfc;
}

.sr-radar-nav,
.sr-radar-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    border: 1px solid #d3e0e7;
    border-radius: 7px;
    background: #fff;
    color: #557686;
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.sr-radar-nav {
    width: 36px;
    padding: 0;
}

.sr-radar-play {
    min-width: 102px;
    padding: 0 10px;
}

.sr-radar-nav:hover:not(:disabled),
.sr-radar-play:hover:not(:disabled),
.sr-radar-nav:focus-visible,
.sr-radar-play:focus-visible {
    border-color: #b7cfdb;
    background: #f0f7fa;
    color: #2e6681;
    outline: none;
}

.sr-radar-nav:disabled,
.sr-radar-play:disabled {
    opacity: .42;
    cursor: default;
}

.sr-radar-nav svg,
.sr-radar-play svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-radar-play .sr-icon-play {
    fill: currentColor;
    stroke: none;
}

.sr-radar-play .sr-icon-pausa {
    display: none;
}

.sr-radar-play.reproduciendo .sr-icon-play {
    display: none;
}

.sr-radar-play.reproduciendo .sr-icon-pausa {
    display: block;
}

.sr-radar-slider-wrap {
    min-width: 0;
    padding: 0 5px;
}

.sr-radar-slider-wrap input[type="range"] {
    display: block;
    width: calc(100% - 28px);
    height: 20px;
    margin: 0 14px;
    accent-color: #5f8da5;
    cursor: pointer;
}

.sr-radar-slider-wrap input[type="range"]:disabled {
    opacity: .45;
    cursor: default;
}

.sr-radar-extremos {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 3px;
    color: #9aa8af;
    font-size: 9px;
    line-height: 1;
}

.sr-radar-momento {
    min-width: 84px;
    text-align: right;
    white-space: nowrap;
}

.sr-radar-momento strong,
.sr-radar-momento span {
    display: block;
}

.sr-radar-momento strong {
    color: #4f6f7e;
    font-size: 11px;
    line-height: 1.25;
}

.sr-radar-momento span {
    margin-top: 2px;
    color: #9aa8af;
    font-size: 9px;
}

.sr-lectura-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
    .sr-visor-satelite {
        aspect-ratio: 10 / 7;
    }

    .sr-controles-satelite {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sr-controles-radar {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sr-selector-radar {
        flex: 1 1 auto;
    }

    .sr-selector-radar .sr-control {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

    .sr-controles-radar .sr-recargar {
        flex: 0 0 auto;
        width: auto;
        grid-column: auto;
    }

    .sr-radar-tiempo {
        grid-template-columns: 36px minmax(100px, auto) 36px 1fr;
    }

    .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 2px 1px 0;
    }

    .sr-radar-momento {
        grid-column: 4;
        grid-row: 1;
    }

    .sr-lectura-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sr-controles-radar {
        align-items: stretch;
        flex-direction: column;
    }

    .sr-selector-radar {
        width: 100%;
    }

    .sr-controles-radar .sr-recargar {
        width: 100%;
    }

    .sr-radar-tiempo {
        grid-template-columns: 36px 1fr 36px;
        gap: 7px;
        padding: 9px;
    }

    .sr-radar-play {
        width: 100%;
        min-width: 0;
    }

    .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .sr-radar-momento {
        grid-column: 1 / -1;
        grid-row: 3;
        min-width: 0;
        padding-top: 1px;
        text-align: center;
    }

    .sr-radar-momento strong,
    .sr-radar-momento span {
        display: inline;
    }

    .sr-radar-momento span::before {
        content: " · ";
    }
}

/* =========================================================
   V3 · HORA SATÉLITE + RADAR DOBLE SOBRE MAPA
========================================================= */

/* Satélite: el IR es ahora el producto principal. */
.sr-controles-satelite .sr-control {
    white-space: nowrap;
}

.sr-controles-satelite { flex-wrap: wrap; }

/* Dos productos radar a la misma escala visual. */
.sr-radar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.sr-radar-panel {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce6eb;
    border-radius: 11px;
    background: #fbfdfe;
}

.sr-radar-panel-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 45px;
    margin-bottom: 10px;
}

.sr-radar-panel-cabecera h3 {
    margin: 2px 0 0;
    color: #3f6274;
    font-size: 15px;
    line-height: 1.15;
}

.sr-radar-panel-kicker {
    display: block;
    color: #8aa0ac;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.sr-recargar-mini {
    min-height: 30px;
    margin-left: 0;
    padding: 6px 9px;
    font-size: 9.5px;
}

.sr-recargar-mini svg {
    width: 12px;
    height: 12px;
}

.sr-selector-sec {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.sr-control-mini {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 9.5px;
    white-space: nowrap;
}

/* El PNG de AEMET es una capa georreferenciada transparente. El mapa
   del IGN se coloca exactamente debajo usando el mismo BBOX. */
.sr-visor-radar {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8eef1;
}

.sr-visor-radar img,
.sr-visor-radar .sr-radar-mapa,
.sr-visor-radar .sr-radar-capa {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: fill;
    background: transparent;
}

.sr-visor-radar .sr-radar-mapa {
    z-index: 1;
    opacity: .82;
    filter: saturate(.72) brightness(1.04) contrast(.94);
}

.sr-visor-radar .sr-radar-capa {
    z-index: 2;
}

.sr-visor-radar .sr-cargando {
    z-index: 5;
    background: rgba(246, 249, 250, .82);
}

.sr-visor-radar .sr-error {
    z-index: 7;
    background: rgba(247, 250, 251, .94);
}

.sr-map-attrib {
    position: absolute;
    right: 6px;
    bottom: 5px;
    z-index: 6;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255,255,255,.78);
    color: #6f7f87;
    font-size: 8px;
    line-height: 1.2;
    pointer-events: none;
}

.sr-radar-panel .sr-radar-tiempo {
    grid-template-columns: 34px auto 34px minmax(120px, 1fr) auto;
    gap: 6px;
    margin-top: 9px;
    padding: 8px;
}

.sr-radar-panel .sr-radar-nav {
    width: 34px;
    height: 32px;
}

.sr-radar-panel .sr-radar-play {
    min-width: 94px;
    height: 32px;
    padding: 0 8px;
}

.sr-radar-panel .sr-radar-momento {
    min-width: 72px;
}

.sr-radar-sec-pie {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin-top: 9px;
    padding: 7px 2px 0;
    color: #83949d;
    font-size: 9.5px;
    line-height: 1.35;
}

.sr-radar-sec-pie strong {
    flex: 0 0 auto;
    color: #506f7e;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.sr-radar-fuente-pie {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .sr-radar-panel .sr-radar-tiempo {
        grid-template-columns: 34px minmax(84px, auto) 34px 1fr;
    }

    .sr-radar-panel .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 2px;
    }

    .sr-radar-panel .sr-radar-momento {
        grid-column: 4;
        grid-row: 1;
    }

    .sr-radar-panel-cabecera-sec {
        align-items: flex-start;
        flex-direction: column;
        min-height: 74px;
    }

    .sr-selector-sec {
        width: 100%;
    }

    .sr-selector-sec .sr-control-mini {
        flex: 1 1 0;
    }
}

@media (max-width: 760px) {
    .sr-radar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sr-radar-panel {
        padding: 10px;
    }

    .sr-radar-panel-cabecera-sec {
        min-height: 0;
    }

    .sr-visor-radar {
        aspect-ratio: 1 / 1;
    }

    .sr-radar-sec-pie {
        display: block;
    }

    .sr-radar-sec-pie strong {
        display: block;
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .sr-radar-panel-cabecera {
        align-items: flex-start;
    }

    .sr-recargar-mini {
        width: auto !important;
    }

    .sr-radar-panel .sr-radar-tiempo {
        grid-template-columns: 34px 1fr 34px;
    }

    .sr-radar-panel .sr-radar-momento {
        grid-column: 1 / -1;
        grid-row: 3;
        text-align: center;
    }
}

/* =========================================================
   V4 · COBERTURA REGIONAL AEMET 240 KM
========================================================= */

/* Reflectividad y Echotop llegan ya renderizados por AEMET con
   relieve, límites, topónimos, leyenda y círculo de cobertura. */
.sr-radar-mapa[hidden],
.sr-map-attrib[hidden] {
    display: none !important;
}

.sr-visor-radar.sr-radar-aemet-rendered {
    background: #707070;
}

.sr-visor-radar.sr-radar-aemet-rendered .sr-radar-capa {
    object-fit: contain;
    background: #707070;
}

.sr-visor-radar.sr-radar-aemet-rendered .sr-cargando {
    background: rgba(245, 247, 248, .90);
}

/* =========================================================
   V4.2 · CONTROLES INDEPENDIENTES + FUENTES DISCRETAS
========================================================= */

/* Misma barra temporal en los dos paneles, con acceso directo
   al último fotograma disponible. */
.sr-radar-panel .sr-radar-tiempo {
    grid-template-columns: 34px auto 34px auto minmax(110px, 1fr) auto;
}

.sr-radar-ultima {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 88px;
    padding: 0 9px;
    border: 1px solid #d3e0e7;
    border-radius: 7px;
    background: #fff;
    color: #557686;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.sr-radar-ultima:hover:not(:disabled),
.sr-radar-ultima:focus-visible {
    border-color: #b7cfdb;
    background: #f0f7fa;
    color: #2e6681;
    outline: none;
}

.sr-radar-ultima:disabled {
    opacity: .42;
    cursor: default;
}

/* Fuente al estilo discreto usado en otros bloques de la web. */
.sr-fuente-discreta {
    margin-top: 12px;
    padding: 9px 4px 0;
    border-top: 1px solid #e4ebee;
    color: #8a9aa3;
    font-size: 10px;
    line-height: 1.45;
}

.sr-fuente-discreta strong {
    color: #6f828d;
    font-weight: 750;
}

.sr-fuente-aux {
    color: #98a5ac;
}

/* Con los dos paneles dotados de control temporal ya no hace falta
   reservar altura extra para un pie específico del Echotop. */
.sr-radar-tiempo-sec {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    .sr-radar-panel .sr-radar-tiempo {
        grid-template-columns: 34px minmax(84px, auto) 34px minmax(86px, auto) 1fr;
    }

    .sr-radar-panel .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 2px;
    }

    .sr-radar-panel .sr-radar-momento {
        grid-column: 5;
        grid-row: 1;
    }
}

@media (max-width: 480px) {
    .sr-radar-panel .sr-radar-tiempo {
        grid-template-columns: 34px 1fr 34px;
    }

    .sr-radar-panel .sr-radar-ultima {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .sr-radar-panel .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .sr-radar-panel .sr-radar-momento {
        grid-column: 1 / -1;
        grid-row: 4;
        text-align: center;
    }

    .sr-fuente-discreta {
        font-size: 9.5px;
    }

    .sr-fuente-aux {
        display: block;
        margin-top: 2px;
    }
}


/* =========================================================
   V4.4 · ANIMACIÓN SATÉLITE 12 H + RADAR SIMPLIFICADO
========================================================= */

/* Barra temporal del satélite, equivalente a la del radar pero
   a todo el ancho del visor. */
.sr-sat-tiempo {
    grid-template-columns: 36px auto 36px auto minmax(240px, 1fr) auto;
    margin-top: 11px;
}

.sr-sat-tiempo .sr-radar-ultima {
    height: 34px;
}

@media (max-width: 900px) {
    .sr-sat-tiempo {
        grid-template-columns: 36px minmax(100px, auto) 36px minmax(92px, auto) 1fr;
    }

    .sr-sat-tiempo .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 2px;
    }

    .sr-sat-tiempo .sr-radar-momento {
        grid-column: 5;
        grid-row: 1;
    }
}

/* Al quedar el panel derecho dedicado exclusivamente al Echotop,
   su cabecera recupera la misma altura limpia que Reflectividad. */
.sr-radar-panel-cabecera-sec {
    min-height: 45px;
    align-items: center;
    flex-direction: row;
}

@media (max-width: 480px) {
    .sr-sat-tiempo {
        grid-template-columns: 36px 1fr 36px;
        gap: 7px;
        padding: 9px;
    }

    .sr-sat-tiempo .sr-radar-ultima {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .sr-sat-tiempo .sr-radar-slider-wrap {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .sr-sat-tiempo .sr-radar-momento {
        grid-column: 1 / -1;
        grid-row: 4;
        min-width: 0;
        text-align: center;
    }

    .sr-sat-tiempo .sr-radar-momento strong,
    .sr-sat-tiempo .sr-radar-momento span {
        display: inline;
    }

    .sr-sat-tiempo .sr-radar-momento span::before {
        content: " · ";
    }
}

/* =========================================================
   TEXTOS DESCRIPTIVOS · JUSTIFICADO REAL EN TODO EL ANCHO
   La hoja responsive se carga después de esta hoja; por eso
   se refuerza la regla para escritorio y móvil.
========================================================= */
.satelite-radar-page p.sr-entradilla,
.satelite-radar-page p.sr-intro {
    width: 100% !important;
    max-width: none !important;
    text-align: justify !important;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}


/* V4.15 · iconografía compacta de productos satelitales */
.sr-control-rayo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    font-size: 12px;
    line-height: 1;
    color: #c98218;
    transform: translateY(-.2px);
}


/* V4.16 · icono de tormenta aportado por el usuario */
.sr-control-tormenta {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: cover;
    mix-blend-mode: multiply;
}

/* Límites cartográficos locales para productos MSG/SEVIRI.
   El PNG usa exactamente el mismo encuadre y relación 10:7 que WV,
   Airmass y Convección, por lo que permanece alineado al escalar. */
.sr-sat-limites-msg {
    position: absolute !important;
    inset: 0;
    z-index: 4 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    pointer-events: none;
    user-select: none;
    background: transparent !important;
}

.sr-sat-limites-msg[hidden] {
    display: none !important;
}



/* V4.21 · Dust RGB y estimación satelital de precipitación */
.sr-control-icono-dust {
    background: linear-gradient(135deg, #7b4b35 0%, #c58a62 48%, #e0b985 100%);
}

.sr-control-icono-precip {
    background: radial-gradient(circle at 35% 30%, #c8efff 0 18%, #61b7e8 20% 55%, #2e6fa2 58% 100%);
}

/* V4.23 · selector satelital en dos filas */
.sr-controles-satelite {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 14px;
}

.sr-sat-botones {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.sr-sat-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sr-controles-satelite > .sr-recargar {
    margin-left: 0;
    align-self: end;
}

/* WV: punto sencillo, en sintonía con IR/VIS. */
.sr-control-icono-wv {
    background: linear-gradient(135deg, #35444e, #d8e0e4);
}

/* Icono LI aportado por el usuario. */
.sr-control-li {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    object-fit: cover;
    mix-blend-mode: multiply;
}

@media (max-width: 720px) {
    .sr-controles-satelite {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sr-sat-fila {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sr-sat-fila .sr-control {
        width: 100%;
    }

    .sr-controles-satelite > .sr-recargar {
        width: 100%;
        grid-column: 1;
    }
}


/* V4.25 · separación del cursor respecto a las horas extremas */
/* El thumb del range queda ligeramente metido hacia dentro para que,
   en el primer y último fotograma, no invada las etiquetas horarias. */

/* =========================================================
   V4.26 · RESPONSIVE MÓVIL ESPECÍFICO
   En móvil se simplifican textos, productos satelitales y radar.
========================================================= */
.sr-texto-movil,
.sr-radar-movil-alternar {
    display: none;
}

@media (max-width: 720px) {
    .sr-texto-escritorio {
        display: none !important;
    }

    .sr-texto-movil {
        display: inline;
    }

    /* Textos más breves y aire más contenido. */
    .sr-cabecera .sr-entradilla,
    .sr-seccion .sr-intro {
        margin-top: 6px;
        margin-bottom: 10px;
        line-height: 1.45;
    }

    .sr-seccion {
        margin-top: 12px;
    }

    /* Satélite: en móvil solo IR, GeoColour y Visible. */
    .sr-sat-fila-especializada,
    .sr-sat-fila-principal [data-producto-satelite="wv"] {
        display: none !important;
    }

    .sr-sat-fila-principal {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sr-sat-fila-principal .sr-control {
        width: 100%;
        min-width: 0;
        min-height: 32px;
        padding: 6px 5px;
        gap: 5px;
        font-size: 9.5px;
        white-space: nowrap;
    }

    .sr-sat-fila-principal .sr-control-icono {
        width: 10px;
        height: 10px;
        flex-basis: 10px;
    }

    .sr-controles-satelite {
        gap: 6px;
    }

    .sr-controles-satelite > .sr-recargar {
        width: auto !important;
        min-height: 30px;
        justify-self: end;
        padding: 6px 10px;
        font-size: 9.5px;
    }

    /* El texto técnico del producto ocupa demasiado en móvil: queda la fuente y la hora. */
    .sr-seccion-satelite .sr-visor-pie #sr-producto-descripcion,
    .sr-seccion-satelite .sr-visor-pie #sr-producto-descripcion + br {
        display: none;
    }

    .sr-seccion-satelite .sr-visor-pie,
    .sr-radar-fuente-pie {
        font-size: 9px;
        line-height: 1.35;
    }

    /* Radar: un único mapa en pantalla, alternable Reflectividad / Echotop. */
    .sr-radar-movil-alternar {
        display: flex;
        justify-content: flex-end;
        margin: -2px 0 8px;
    }

    .sr-radar-movil-toggle {
        min-height: 30px;
        padding: 6px 11px;
        font-size: 9.5px;
    }

    .sr-radar-grid {
        display: block;
    }

    .sr-radar-grid .sr-radar-panel-principal {
        display: block;
    }

    .sr-radar-grid .sr-radar-panel-secundario {
        display: none;
    }

    .sr-radar-grid.sr-movil-echotop .sr-radar-panel-principal {
        display: none;
    }

    .sr-radar-grid.sr-movil-echotop .sr-radar-panel-secundario {
        display: block;
    }

    .sr-radar-panel {
        padding: 8px;
    }

    .sr-radar-panel-cabecera {
        min-height: 38px;
        margin-bottom: 7px;
    }

    .sr-radar-panel-cabecera h3 {
        font-size: 14px;
    }

    .sr-radar-panel-kicker {
        font-size: 8px;
    }

    .sr-radar-panel .sr-radar-tiempo,
    .sr-sat-tiempo {
        margin-top: 7px;
    }

    .sr-radar-fuente-pie {
        margin-top: 7px;
    }
}

@media (max-width: 420px) {
    .sr-sat-fila-principal .sr-control {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 9px;
    }

    .sr-sat-fila-principal .sr-control-icono {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }
}

/* =========================================================
   V4.28 · MÓVIL · SOLO ZONA DE ENTRADILLA
   Se elimina la entradilla superior y se reduce únicamente
   el espacio entre el título de página y el bloque satelital.
========================================================= */
@media (max-width: 720px) {
    .sr-cabecera .sr-entradilla {
        display: none !important;
    }

    .sr-cabecera {
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    .sr-cabecera + .sr-seccion-satelite {
        margin-top: 10px;
    }
}

/* =========================================================
   V4.29 · MÓVIL · HORA ACTUAL REDUNDANTE EN EL SLIDER
   La hora seleccionada y el contador de fotogramas se ocultan
   en responsive porque las horas extremas ya aparecen bajo el range.
========================================================= */
@media (max-width: 720px) {
    .sr-sat-tiempo .sr-radar-momento,
    .sr-radar-panel .sr-radar-momento {
        display: none !important;
    }
}

/* =========================================================
   V4.30 · MÓVIL · OCULTAR ACTUALIZAR SATÉLITE
   En responsive se elimina el botón de actualización manual
   del bloque satelital. Escritorio permanece sin cambios.
========================================================= */
@media (max-width: 720px) {
    .sr-seccion-satelite .sr-recargar[data-recargar] {
        display: none !important;
    }
}

/* =========================================================
   V4.31 · MÓVIL · SLIDER INMEDIATAMENTE BAJO LA IMAGEN
   Orden visual responsive:
   imagen → barra temporal → anterior / reproducir / siguiente
   → última imagen.
   Escritorio permanece sin cambios.
========================================================= */
@media (max-width: 720px) {
    .sr-sat-tiempo,
    .sr-radar-panel .sr-radar-tiempo {
        grid-template-columns: 36px minmax(0, 1fr) 36px !important;
        gap: 7px;
    }

    .sr-sat-tiempo .sr-radar-slider-wrap,
    .sr-radar-panel .sr-radar-slider-wrap {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        padding-top: 0;
        padding-bottom: 3px;
    }

    .sr-sat-tiempo > .sr-radar-nav,
    .sr-sat-tiempo > .sr-radar-play,
    .sr-radar-panel .sr-radar-tiempo > .sr-radar-nav,
    .sr-radar-panel .sr-radar-tiempo > .sr-radar-play {
        grid-row: 2 !important;
    }

    .sr-sat-tiempo .sr-radar-play,
    .sr-radar-panel .sr-radar-play {
        width: 100%;
        min-width: 0;
    }

    .sr-sat-tiempo .sr-radar-ultima,
    .sr-radar-panel .sr-radar-ultima {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        width: 100%;
    }
}
