/* versión 21 20250911 */
/* Nuevo: Corrección de la maquetación en móviles. Se ajusta el margen de la sección de descarga. */

/* Define local fonts */
@font-face {
    font-family: 'Overpass Mono';
    src: url('fonts/OverpassMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
}

@font-face {
    font-family: 'League Spartan';
    src: url('fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styles */
body {
    font-family: 'Overpass', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header.header-panel {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    width: 100%;
    padding: 1px 0;
}

.header-panel.flex { 
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 10px 10px 10px 10px;
}

.header-panel.large {
    min-height: 4rem;
}

.flex-none {
    flex: none;
}

.self-center {
    align-self: center;
}

.ms-4 {
    margin-left: 16px;
}

.ms-auto {
    margin-left: auto;
}

.logo-img-btn img {
    max-height: 48px;
    max-width: 48px;
    margin-left: 15px;
}

.logo-img-btn.large img {
    height: 50px;
}

.pointer-events-none {
    pointer-events: none;
}

.shrink {
    flex-shrink: 1;
}

.overflow-hidden {
    overflow: hidden;
}

.flex.flex-col {
    display: flex;
    flex-direction: column;
}

h1.title {    
    font-family: 'Overpass', sans-serif;
    font-size: clamp(1.625rem, 4vw, 1.625rem);
    font-weight: 300;
    color: #1f3864;
    margin-top: -17px;
    margin-right: 8px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: 0.45px;
}

h2.subtitle {
    font-family: 'Overpass', sans-serif;
    font-size: clamp(0.85rem, 3vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #526688;
    margin: 0;
    line-height: 0.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

h3 {
    font-family: 'Overpass', sans-serif;
    font-size: clamp(0.9rem, 3vw, 0.98rem);
}

.mb-0 {
    margin-bottom: 0;
}

.me-2 {
    margin-right: 8px;
}

.mt-0 {
    margin-top: 0;
}

.leading-none {
    line-height: 1;
}

/* Nav menu styles */
.nav-menu {
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu ul li a.active {
    color: #000000;
    font-weight: bold;
}

.nav-menu a {
    font-family: Overpass, sans-serif;
    text-decoration: none;
    color: #00597C;
    font-weight: 500;
    font-size: 1rem;
}    

.nav-menu a:hover {
    color: #003087;
}

/* Container layout */
.container {
    display: flex;
    width: 100%;
    margin: 0 auto 20px auto;
    padding: 0px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}
.container-alt {
    display: flex;
    width: 100%;
    padding: 0px 10px 10px 10px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* New iframe container styles */
.iframe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
    min-height: 400px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sidebar {
    width: 300px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
}

.sidebar h3 {    
    font-family: 'Overpass', sans-serif;
    font-size: 18px;
    color: #003087;
    margin-bottom: 10px;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group label {
    font-family: 'Overpass', sans-serif;
    display: block;
    font-weight: 700;
    color: #00597C;
}

.filter-group select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Overpass', sans-serif;
}

.stats {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.stats p {
    font-family: 'Overpass', sans-serif;
    margin: 5px 0;
}

.main-content {
    flex: 1;
    width: 100%;
    padding: 0.5px;
    background-color: #fff;
    border: 1px solid #ddd;
}
.main-content-alt {
    flex: 1;
    width: 100%;
    padding: 0.5px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
}
.download-section {
    margin: 20px;
}

/* V21: Alineación de listas en la sección de descarga */
.download-section ul {
    padding-left: 20px; 
}

.download-section ul li {
    list-style-type: disc;
    padding-left: 0;
}

.custom-list {
    list-style-type: disc;
    padding-left: 20px;
}

.custom-list li {
    font-family: 'Overpass', sans-serif;
    position: relative;
    margin-bottom: 5px;
}

.custom-list a {
    color: #00597C;
    text-decoration: none;
    font-weight: 700;
}

.custom-list a:hover {
    color: #003087;
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #fff;
    padding: 2px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    font-family: 'Overpass', sans-serif;
    font-size: 12px;
    color: #666;
}

/* FOOTER NUEVO CON MENÚ Y DERECHOS */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0px;
}
  
.nav-menu-footer ul li a.active {
    color: #000000;
    font-weight: bold;
}

.nav-menu-footer {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.nav-menu-footer a {
    font-family: Overpass, sans-serif;
    text-decoration: none;
    color: #00597C;
    font-weight: 500;
    font-size: 1rem;
}    

.nav-menu-footer a:hover {
    color: #003087;
}
  
.nav-menu-footer ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
  
.nav-menu-footer ul li {
    margin: 0 15px;
}
  
.nav-menu-footer ul li a {
    text-decoration: none;
    color: inherit;
}
  
.derechos {
    margin: -100px;
    text-align: right;
    white-space: nowrap;
}

/* END FOOTER NUEVO CON MENÚ Y DERECHOS */

/* Cookie Banner styles */
.cookie-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.cookie-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.cookie-content p {
    font-family: 'Overpass', sans-serif;
    margin-bottom: 15px;
    color: #333;
}

.cookie-content a {
    color: #00597C;
    text-decoration: none;
    font-weight: 700;
}

.cookie-content a:hover {
    color: #003087;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-accept {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

.cookie-accept:hover {
    background-color: #218838;
}

.cookie-reject {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

.cookie-reject:hover {
    background-color: #c82333;
}

.cookie-configure {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

.cookie-configure:hover {
    background-color: #5a6268;
}

/* Cookie Settings styles */
.cookie-settings {
    margin: 20px 0;
    font-family: 'Overpass', sans-serif;
}

.cookie-settings label {
    margin: 10px 0;
    display: block;
}

.cookie-settings input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-settings input[type="checkbox"][disabled] {
    cursor: not-allowed;
}

.cookie-settings button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

.cookie-settings button:hover {
    background-color: #218838;
}

/* Privacy list styles */
.main-content a[href^="mailto"] {
    color: #00597C;
    text-decoration: none;
    font-weight: 700;
}

.main-content a[href^="mailto"]:hover {
    color: #003087;
    text-decoration: underline;
}

/* V21: Estilos para escritorios (> 992px) */
@media (min-width: 993px) {
    body {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .header-panel {
        flex-shrink: 0; 
        position: static; 
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        flex-shrink: 0; 
    }
    
    footer {
        position: static; 
        margin-top: auto; 
    }

    .content-scroll {
        flex-grow: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container, .container-alt {
        flex-direction: row;
    }
    .sidebar {
        width: 300px;
    }
    .main-content, .main-content-alt {
        flex: 1;
    }
    .download-section {
        margin: 20px;
    }
    .download-section ul {
        padding-left: 20px; 
    }
    .nav-menu-footer ul {
        flex-direction: row;
    }
    .derechos {
        margin: 0;
        text-align: right;
    }
}

/* V21: Estilos para móviles y tablets (< 992px) */
@media (max-width: 992px) {
    body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .header-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .content-scroll {
        padding-top: 110px;
        overflow-y: visible;
    }

    .header-panel.flex {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 10px 10px;
    }

    .logo-img-btn.large img {
        height: 60px;
    }

    .flex.flex-col {
        align-items: center;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .ms-4 {
        margin-left: 0;
    }

    h1.title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        text-align: center;
        font-size: clamp(1.2rem, 3.5vw, 1.625rem);
        padding: 0 10px;
    }

    h2.subtitle {
        white-space: normal;
        line-height: 1.2;
        padding: 0 10px;
        text-align: center;
    }
    
    /* V21: Se ajusta el margen de la sección de descarga. */
    .download-section {
        margin: 20px 10px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        margin: 0 auto; 
    }
    .nav-menu-footer {
        width: 100%;
        text-align: center;
    }
    .nav-menu-footer ul {
        flex-direction: column;
        align-items: center;
    }
    .nav-menu-footer ul li {
        margin: 5px 0;
    }
    .derechos {
        margin-top: 10px;
        text-align: center;
        white-space: normal;
    }
}