/* =====================================================
   SEVILLA EN DIRECTO
   DISEÑO VISUAL PROFESIONAL
   ===================================================== */
/* =====================================
   1. CONFIGURACIÓN GENERAL
===================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --principal: #087f83;
    --principal-oscuro: #075b60;
    --secundario: #13aaa5;
    --turquesa-claro: #e5f5f3;
    --fondo: #f2f5f7;
    --blanco: #ffffff;
    --texto: #263746;
    --texto-suave: #71808a;
    --borde: #e4eaee;
    --sombra: 0 5px 20px rgba(25, 55, 70, 0.07);
    --sombra-fuerte: 0 10px 30px rgba(25, 55, 70, 0.12);
    --radio: 18px;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button,
input {
    font-family: inherit;
}
button {
    -webkit-tap-highlight-color: transparent;
}
/* =====================================
   2. CABECERA PRINCIPAL
===================================== */
.cabecera {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #063f45 0%,
        #087f83 55%,
        #16aaa5 100%
    );
    color: white;
    padding: 42px 20px 38px;
    text-align: center;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 8px 25px rgba(0, 70, 75, 0.20);
}
.cabecera::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -110px;
    right: -65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.cabecera::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    bottom: -100px;
    left: -55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.cabecera h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(27px, 6vw, 38px);
    font-weight: 850;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.cabecera p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}
/* =====================================
   3. CONTENIDO GENERAL
===================================== */
main,
.contenedor {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 22px;
}
h2 {
    color: var(--principal-oscuro);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 13px;
    letter-spacing: -0.3px;
}
h3 {
    color: var(--principal-oscuro);
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 9px;
}
p {
    margin-bottom: 8px;
}
/* =====================================
   4. CATEGORÍAS PRINCIPALES
===================================== */
.categorias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}
.categorias button {
    min-height: 66px;
    padding: 14px 10px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 16px;
    color: var(--principal-oscuro);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: var(--sombra);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.categorias button:hover,
.categorias button:focus {
    background: linear-gradient(
        135deg,
        var(--principal),
        var(--secundario)
    );
    color: white;
    border-color: var(--principal);
    box-shadow: 0 6px 17px rgba(8, 127, 131, 0.22);
    transform: translateY(-2px);
}
.categorias button:active {
    transform: scale(0.97);
}
/* =====================================
   5. PANELES GENERALES
===================================== */
.panel,
.panel-tiempo,
.panel-meteorologico,
.mapa-seccion,
.eventos-seccion,
.buscador-seccion {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 20px;
    margin: 18px 0;
    box-shadow: var(--sombra);
}
/* =====================================
   6. METEOROLOGÍA
===================================== */
#panel-tiempo {
    background: linear-gradient(
        145deg,
        #ffffff,
        #f0f8fa
    );
    border: 1px solid #dce9ed;
    border-radius: 20px;
    padding: 21px;
    margin: 20px 0;
    color: var(--texto);
    box-shadow: var(--sombra);
}
#panel-tiempo h2,
#panel-tiempo h3 {
    color: var(--principal-oscuro);
    margin-bottom: 14px;
}
#panel-tiempo p {
    color: #526774;
    line-height: 1.6;
    margin: 7px 0;
}
#panel-tiempo strong {
    color: var(--principal);
}
.tiempo-actual {
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    border: 1px solid #dceeed;
    border-radius: 17px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(25, 55, 70, 0.04);
}
.tiempo-icono {
    font-size: 52px;
    line-height: 1;
}
.tiempo-resumen {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tiempo-resumen strong {
    font-size: 16px;
    color: var(--principal-oscuro);
}
.tiempo-temperatura {
    font-size: 36px;
    font-weight: 850;
    color: #173b4a;
    letter-spacing: -1px;
}
.tiempo-detalles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 23px;
}
.tiempo-dato {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--borde);
    border-radius: 14px;
    padding: 12px 10px;
    min-width: 0;
}
.tiempo-dato-icono {
    font-size: 22px;
}
.tiempo-dato-contenido {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tiempo-dato-etiqueta {
    font-size: 11px;
    color: var(--texto-suave);
}
.tiempo-dato-valor {
    font-size: 14px;
    font-weight: 750;
    color: var(--principal-oscuro);
}
.tiempo-titulo-prevision {
    margin: 22px 0 13px;
}
.tiempo-prevision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}
.tiempo-dia {
    background: white;
    border: 1px solid var(--borde);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 9px rgba(30, 60, 70, 0.04);
    transition: transform 0.2s ease;
}
.tiempo-dia:hover {
    transform: translateY(-2px);
}
.tiempo-dia-fecha {
    display: block;
    color: var(--principal-oscuro);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 7px;
}
.tiempo-dia-estado {
    font-weight: 650;
    color: var(--texto);
}
.tiempo-dia-temperaturas {
    font-size: 14px;
    font-weight: 800;
    color: #24566a;
}
.tiempo-dia p {
    font-size: 13px;
    color: var(--texto-suave);
    margin: 6px 0;
}
.tiempo-actualizacion,
.tiempo-fuente {
    color: var(--texto-suave);
    font-size: 12px;
    margin-top: 13px;
}
#panel-tiempo .tarjeta-tiempo,
#panel-tiempo .tarjeta-prevision {
    background: white;
    border: 1px solid #e0ebee;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(25, 55, 70, 0.05);
}
#panel-tiempo a,
#panel-movilidad a {
    color: var(--principal);
    font-weight: 750;
    text-decoration: none;
}
#panel-tiempo a:hover,
#panel-movilidad a:hover {
    text-decoration: underline;
}
/* =====================================
   7. MOVILIDAD Y TRÁFICO
===================================== */
#panel-movilidad {
    background: linear-gradient(
        145deg,
        #edf3f8,
        #ffffff
    ) !important;
    border: 1px solid var(--borde);
    border-radius: 19px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    color: var(--texto) !important;
    box-shadow: var(--sombra);
}
#panel-movilidad h2 {
    color: var(--principal-oscuro);
}
#panel-movilidad article {
    background: white !important;
    border: 1px solid var(--borde);
    border-radius: 15px !important;
    padding: 16px !important;
    margin: 13px 0 !important;
    box-shadow: 0 3px 10px rgba(30, 60, 70, 0.05);
}
#panel-movilidad article h3 {
    font-size: 16px;
    color: var(--principal-oscuro);
}
#panel-movilidad article p {
    font-size: 14px;
    color: var(--texto-suave);
}
/* =====================================
   8. BUSCADOR DEL MAPA
===================================== */
.buscador-seccion {
    background: linear-gradient(
        145deg,
        #ffffff,
        #f2f9fa
    );
    border: 1px solid #dce9ed;
    border-radius: 19px;
    padding: 21px;
    box-shadow: var(--sombra);
    margin-bottom: 17px;
}
.buscador-fila {
    display: flex;
    gap: 9px;
    width: 100%;
}
#busqueda-mapa {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #cbdde1;
    border-radius: 13px;
    background: white;
    color: var(--texto);
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
#busqueda-mapa:focus {
    border-color: var(--principal);
    box-shadow: 0 0 0 4px rgba(8, 127, 131, 0.12);
}
#boton-buscar {
    padding: 13px 19px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--principal),
        var(--secundario)
    );
    color: white;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(8, 127, 131, 0.15);
    transition: transform 0.2s ease;
}
#boton-buscar:disabled {
    opacity: 0.6;
    cursor: wait;
}
#boton-buscar:active {
    transform: scale(0.97);
}
#resultados-busqueda {
    margin-top: 11px;
}
.resultado-busqueda {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    text-align: left;
    background: #f5f9fa;
    border: 1px solid var(--borde);
    border-radius: 11px;
    color: var(--texto);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.resultado-busqueda:hover {
    background: #e5f4f3;
    border-color: var(--principal);
}
/* =====================================
   9. MAPA PRINCIPAL
===================================== */
#mapa {
    width: 100%;
    height: 450px;
    min-height: 350px;
    border-radius: 17px;
    border: 1px solid var(--borde);
    overflow: hidden;
    z-index: 1;
}
.mapa-seccion {
    padding: 13px;
    overflow: hidden;
    border-radius: 20px;
}
.leaflet-container {
    font-family: inherit;
}
.leaflet-control-layers {
    border-radius: 12px !important;
    border: 1px solid var(--borde) !important;
    box-shadow: var(--sombra) !important;
}
.leaflet-popup-content-wrapper {
    border-radius: 14px;
}
.leaflet-popup-content {
    line-height: 1.55;
}
.leaflet-popup-content h3 {
    margin-bottom: 8px;
}
/* =====================================
   10. LEYENDA DE TRÁFICO
===================================== */
.leyenda-trafico {
    background: rgba(255, 255, 255, 0.97);
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
    border: 1px solid #dce6e9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: #263238;
    min-width: 145px;
}
.leyenda-trafico strong {
    display: block;
    font-size: 13px;
    color: var(--principal-oscuro);
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5edef;
}
.leyenda-trafico div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.leyenda-trafico span {
    flex-shrink: 0;
}
/* =====================================
   11. LEYENDA DE EVENTOS
===================================== */
.leyenda-eventos {
    background: rgba(255, 255, 255, 0.97);
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    border: 1px solid #dce6e9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: #263238;
}
.leyenda-eventos strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--principal-oscuro);
}
.leyenda-fila {
    display: flex;
    align-items: center;
    gap: 7px;
}
.leyenda-punto {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.leyenda-punto.procesiones {
    background: #d97706;
}
.leyenda-punto.cultura {
    background: #8b5cf6;
}
.leyenda-punto.deportes {
    background: #16a34a;
}
.leyenda-punto.otros {
    background: #64748b;
}
/* =====================================
   12. VISIBILIDAD DE INCIDENCIAS DGT
===================================== */
.leaflet-overlay-pane path.leaflet-interactive {
    filter: drop-shadow(
        0 2px 3px rgba(0, 0, 0, 0.35)
    );
}
.leaflet-overlay-pane circle {
    filter: drop-shadow(
        0 2px 3px rgba(0, 0, 0, 0.4)
    );
}
.leaflet-overlay-pane path.leaflet-interactive:hover {
    filter: drop-shadow(
        0 0 5px rgba(0, 0, 0, 0.55)
    );
}
/* =====================================
   13. FILTROS DE EVENTOS
===================================== */
#filtros-eventos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}
#filtros-eventos button {
    padding: 10px 14px !important;
    border: 1px solid var(--principal) !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}
#filtros-eventos button:hover {
    filter: brightness(0.94);
}
#filtros-eventos button:active {
    transform: scale(0.96);
}
/* =====================================
   14. LISTA DE EVENTOS
===================================== */
#lista-eventos {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 17px;
    margin-top: 18px;
}
.evento {
    position: relative;
    padding: 20px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e1e9eb !important;
    border-left: 5px solid var(--principal) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.evento:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-fuerte);
}
.evento:active {
    transform: scale(0.99);
}
.evento h3 {
    margin: 0 0 12px;
    color: #173b43;
    font-size: 17px;
    line-height: 1.4;
}
.evento p {
    margin: 9px 0;
    color: #52646b;
    font-size: 14px;
    line-height: 1.55;
}
/* Categoría del evento */
.evento .evento-categoria {
    display: inline-block;
    width: fit-content;
    padding: 5px 11px;
    margin: 0 0 11px;
    background: #e5f5f3;
    color: #007f79;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}
/* Descripción */
.evento .evento-descripcion {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f1;
    color: #52646b;
    font-size: 13px;
}
/* Enlaces de eventos */
.evento a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--principal);
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}
.evento a:hover {
    background: var(--principal-oscuro);
}
/* Botón para localizar en el mapa */
.evento .boton-localizar-evento {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px 15px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        #007f83,
        #00aaa5
    );
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.evento .boton-localizar-evento:active {
    opacity: 0.8;
    transform: scale(0.98);
}
/* =====================================
   15. ESTADO DE LA AGENDA
===================================== */
#aviso-agenda:empty {
    margin: 0;
}
#estado-eventos,
#aviso-agenda:not(:empty) {
    margin-top: 14px;
    padding: 13px;
    background: #edf6f6;
    border: 1px solid #dceeed;
    border-radius: 12px;
    color: var(--principal-oscuro);
    font-size: 12px;
    line-height: 1.5;
}
/* =====================================
   16. PIE DE PÁGINA
===================================== */
footer {
    margin-top: 32px;
    padding: 27px 18px;
    background: linear-gradient(
        135deg,
        #123b43,
        #173b46
    );
    color: white;
    text-align: center;
    font-size: 12px;
}
footer p {
    margin-bottom: 7px;
}
footer a {
    color: #a9e7e3;
    text-decoration: none;
    font-weight: 700;
}
/* =====================================
   17. DETALLES GENERALES
===================================== */
::selection {
    background: rgba(8, 127, 131, 0.2);
    color: var(--principal-oscuro);
}
input::placeholder {
    color: #9aa8af;
    opacity: 1;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(19, 170, 165, 0.35);
    outline-offset: 3px;
}
/* =====================================
   18. ADAPTACIÓN A IPHONE
===================================== */
@media (max-width: 480px) {
    .cabecera {
        padding: 34px 16px 30px;
        border-radius: 0 0 21px 21px;
    }
    .cabecera h1 {
        font-size: 27px;
    }
    .cabecera p {
        font-size: 13px;
    }
    main,
    .contenedor {
        padding: 13px;
    }
    h2 {
        font-size: 19px;
    }
    h3 {
        font-size: 16px;
    }
    .categorias {
        gap: 10px;
    }
    .categorias button {
        min-height: 59px;
        font-size: 13px;
        border-radius: 14px;
    }
    .panel,
    .panel-tiempo,
    .panel-meteorologico,
    .mapa-seccion,
    .eventos-seccion,
    .buscador-seccion {
        padding: 15px;
        border-radius: 15px;
    }
    #panel-tiempo {
        padding: 16px;
        border-radius: 16px;
    }
    #panel-tiempo .tarjeta-tiempo,
    #panel-tiempo .tarjeta-prevision {
        padding: 11px;
    }
    .tiempo-actual {
        padding: 15px;
        gap: 13px;
    }
    .tiempo-icono {
        font-size: 43px;
    }
    .tiempo-temperatura {
        font-size: 30px;
    }
    .tiempo-detalles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .tiempo-dato {
        padding: 9px 7px;
        gap: 6px;
    }
    .tiempo-dato-icono {
        font-size: 18px;
    }
    .tiempo-dato-etiqueta {
        font-size: 10px;
    }
    .tiempo-dato-valor {
        font-size: 13px;
    }
    .tiempo-dia {
        padding: 12px;
    }
    #panel-movilidad {
        padding: 15px !important;
    }
    #panel-movilidad article {
        padding: 13px !important;
    }
    #mapa {
        height: 390px;
        min-height: 350px;
        border-radius: 14px;
    }
    .mapa-seccion {
        padding: 9px;
    }
    .buscador-seccion {
        padding: 15px;
    }
    .buscador-fila {
        flex-direction: column;
    }
    #busqueda-mapa {
        width: 100%;
        font-size: 14px;
    }
    #boton-buscar {
        width: 100%;
        padding: 14px;
    }
    #filtros-eventos {
        gap: 7px;
    }
    #filtros-eventos button {
        font-size: 12px !important;
        padding: 8px 11px !important;
    }
    #lista-eventos {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .evento {
        padding: 17px !important;
        border-radius: 14px !important;
    }
    .evento h3 {
        font-size: 16px;
    }
    .evento p {
        font-size: 13px;
    }
    .evento .boton-localizar-evento {
        padding: 13px;
        font-size: 14px;
    }
    .leyenda-trafico {
        padding: 10px 12px;
        font-size: 11px;
        min-width: 130px;
    }
    .leyenda-eventos {
        padding: 9px 11px;
        font-size: 11px;
    }
}
/* =====================================
   19. TABLETS
===================================== */
@media (min-width: 700px) {
    .categorias {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tiempo-prevision {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #lista-eventos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* =====================================
   20. ORDENADORES
===================================== */
@media (min-width: 1000px) {
    main,
    .contenedor {
        padding: 26px;
    }
    .tiempo-prevision {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    #lista-eventos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #mapa {
        height: 520px;
    }
}
/* =====================================
   21. REDUCIR ANIMACIONES SI SE SOLICITA
===================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =====================================
   SELECTOR DE CAPAS DEL MAPA
===================================== */

.capas-mapa {
    background: #ffffff;
    padding: 12px;
    margin: 12px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.capas-mapa h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #263747;
}

.capas-mapa-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.capas-mapa-opciones label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    background: #f1f5f8;
    border: 1px solid #dce5ec;
    border-radius: 9px;
    font-size: 13px;
    color: #263747;
    cursor: pointer;
}

.capas-mapa-opciones input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #16804a;
}

/* =====================================
   LEYENDA DEL MAPA
===================================== */

.leyenda-mapa {
    background: #ffffff;
    padding: 14px;
    margin: 12px 0 18px;
    border-radius: 12px;
    border: 1px solid #e1e7ec;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
}

.leyenda-mapa h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #263747;
}

.leyenda-mapa-elementos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #405365;
}

.leyenda-icono {
    font-size: 19px;
    min-width: 23px;
    text-align: center;
}

/* LEYENDA DE TRAFICO DGT DEBAJO DEL MAPA */


.leyenda-trafico-panel {
    background: #ffffff;
    padding: 13px;
    margin: 12px 0;
    border: 1px solid #e1e7ec;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
    font-size: 13px;
    line-height: 1.8;
    color: #263238;
}

.leyenda-trafico-panel summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.leyenda-trafico-panel #leyenda-trafico-contenido {
    padding-top: 10px;
}

/* BOTÓN MI UBICACIÓN */

.boton-mi-ubicacion {
    background: #ffffff;
    border: 1px solid #dce5ec;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #263747;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0,0,0,0.18);
}

/* =====================================
   PANEL DE TRÁFICO Y MOVILIDAD
===================================== */

.movilidad-panel {
    margin-top: 20px;
}

.movilidad-panel > h2 {
    color: #075b60;
    margin-bottom: 10px;
}

.movilidad-bloque {
    background: #f7fafb;
    border: 1px solid #e1e9ed;
    border-radius: 12px;
    padding: 15px;
    margin: 13px 0;
}

.movilidad-bloque h3 {
    color: #263f4b;
    font-size: 16px;
    margin: 0 0 9px;
}

.movilidad-bloque p {
    color: #586b75;
    font-size: 14px;
    line-height: 1.6;
    margin: 7px 0;
}

.movilidad-bloque a {
    display: inline-block;
    color: #087f83;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
}

.movilidad-bloque a:active {
    opacity: 0.7;
}

.movilidad-fuentes {
    color: #71808a;
    font-size: 12px;
    margin-top: 18px;
}

/* =====================================
   TARJETAS DE INCIDENCIAS DGT
===================================== */

.incidencia-dgt {
    background: #ffffff;
    border: 1px solid #dce7eb;
    border-left: 4px solid #e58a32;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.incidencia-dgt h4 {
    color: #075b60;
    font-size: 15px;
    margin: 0 0 8px;
}

.incidencia-dgt p {
    color: #465963;
    font-size: 13px;
    line-height: 1.5;
    margin: 6px 0;
}

.incidencia-dgt small {
    display: block;
    color: #71808a;
    font-size: 11px;
    margin-top: 8px;
}

/* =====================================
   RESUMEN VISUAL DE INCIDENCIAS DGT
===================================== */

.resumen-incidencias-dgt {
    background: #edf5f6;
    border: 1px solid #d5e5e8;
    border-radius: 12px;
    padding: 13px;
    margin: 12px 0 16px;
}

.resumen-incidencias-dgt h4 {
    color: #075b60;
    font-size: 15px;
    margin: 0 0 10px;
}

.resumen-incidencias-dgt p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #344c56;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* BOTÓN PARA LIMPIAR FILTRO DGT */

.boton-limpiar-filtro {
    display: inline-block;
    background: #075b60;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 8px 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.boton-limpiar-filtro:active {
    opacity: 0.75;
}

/* BUSCADOR DE INCIDENCIAS DGT */
.buscador-incidencias-dgt {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    margin: 12px 0;
    border: 1px solid #cbdadd;
    border-radius: 8px;
    font-size: 14px;
}

/* BOTÓN MOSTRAR TODAS */
.boton-limpiar-filtro {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    margin: 12px 0 18px;
    border-radius: 8px;
    font-size: 14px;
}
/* AVISOS IMPORTANTES DGT */
.avisos-importantes-dgt {
    background: #fff8e6;
    border: 1px solid #e5c46b;
    border-radius: 12px;
    padding: 14px;
    margin: 15px 0;
}

.avisos-importantes-dgt h3 {
    margin-top: 0;
    color: #8a4b08;
}

.avisos-importantes-dgt p {
    margin: 8px 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
}

#estado-camaras:empty,
#estado-aparcamientos:empty {
    margin: 0;
}

.foto-camara-dgt {
    display: block;
    width: 100%;
    max-width: 260px;
}
