/* --- 1. ESTILOS GENERALES Y RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #212529;
}
.texto-azul-mar {
    color: #1a4263 !important; 
    font-weight: bold !important;
}
.encabezado-principal {
    background-color: #6c757d;
    color: #ffffff;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 136px;
}

.contenedor-encabezado {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.titulo-principal {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.contenedor-logo {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.logo-empresa {
    max-height: 120px;
    width: auto;
    display: block;
}
.seccion-estado {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.barra-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mensaje-info {
    color: #0056b3; 
    font-weight: 700;
    display: flex;
    align-items: center;
}

.mensaje-info i {
    margin-right: 0.5rem;
}

.etiqueta-estado {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    background-color: #6c757d;
}
.contenedor-principal {
    max-width: 1320px;
    margin: 1.5rem auto 2rem auto; 
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem; 
    border: 1px solid #dee2e6; 
}

.columna-mapa,
.columna-graficos {
    flex: 1 1 0%;
    min-width: 300px;
    min-height: 600px;
}

#mapa {
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.columna-graficos {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.contenedor-imagen {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.contenedor-imagen img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    height: auto;
}
.pie-pagina {
    margin-top: 3rem;
    padding: 3rem 0;
    border-top: 1px solid #dee2e6;
}

.contenedor-footer {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-marca {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-footer {
    max-height: 120px;
    width: auto;
    display: block;
}

.descripcion-empresa {
    color: #0056b3; 
    max-width: 250px;
    margin: 0;
    line-height: 1.4;
}

.footer-contacto {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #0056b3; 
}

.item-contacto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-contacto i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .contenedor-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .contenedor-encabezado {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contenedor-logo {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
    
    .barra-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .contenedor-principal {
        flex-direction: column;
    }
    
    .columna-mapa,
    .columna-graficos {
        min-height: auto;
        height: auto;
    }
    
    #mapa {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .footer-marca {
        flex-direction: column;
        align-items: flex-start;
    }
}
#fecha-actualizacion {
    margin-left: 0.35rem; 
}