/* 
   CSS EXCLUSIVO PARA HEADER Y FOOTER 
   Este archivo solo contiene estilos de la envolvente global (Cabecera y Pie).
*/

/* --- HEADER --- */
.header-menu {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.header-menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-header {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    width: 100%;
}

.navbar-toggle-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: transparent; /* Fondo transparente */
    border: none; /* Eliminamos el borde */
    padding: 0;
    margin-right: 30px;
    margin-left: 15px;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.navbar-toggle-btn .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #c9a449;
    border-radius: 1px;
    margin-bottom: 4px;
}

.navbar-toggle-btn .icon-bar:last-child {
    margin-bottom: 0;
}

.icon-menu-svg {
    width: 40px; /* Aumentado de 32px a 40px */
    height: 40px;
    display: block;
}

.navbar-brand.logo {
    display: block;
    width: 200px;
    height: 100px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.header-menu .menu {
    display: none !important; /* Siempre oculto para usar solo el lateral */
}

/* MENÚ LATERAL (OFF-CANVAS) - ESTILO RIU RED */
.menu-lateral {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

.menu-lateral.menu-open {
    left: 0;
}

.menu-header {
    background: #fff;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee; /* Línea divisoria gris fina */
}

.close-btn {
    background: none;
    border: none;
    font-size: 50px; /* Aumentado de 40px a 50px */
    color: #333;
    cursor: pointer;
    padding: 0;
    margin-right: 25px;
    line-height: 1;
}

.menu-logo-red {
    height: 90px; /* Aumentado de 70px a 90px */
    width: auto;
    margin: 2px;
}

.menu-lateral ul.nav.side-nav {
    margin: 20px 0 0 0; /* Más margen superior después de la línea */
    padding: 0;
    list-style: none;
}

.menu-lateral ul.nav.side-nav li {
    display: block;
}

.menu-lateral ul.nav.side-nav li a {
    display: block;
    padding: 18px 25px; /* Aumentado espaciado (padding vertical de 12px a 18px) */
    color: #003366; /* Azul RIU */
    font-weight: 700;
    font-size: 18px; /* Aumentado tamaño de texto de 16px a 18px */
    text-decoration: none;
    transition: background 0.2s;
}

.menu-lateral ul.nav.side-nav li a:hover {
    background: #f5f5f5;
    color: #d90429; /* Rojo RIU */
}

.home-link {
    display: flex !important;
    align-items: center;
}

.icon-home-svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    margin-bottom: 4px;
}

.icon-home {
    font-size: 25px;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

/* --- FOOTER --- */
footer {
    flex-shrink: 0;
    background: #4c4c4c;
    color: #fff;
    padding-top: 20px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.top-footer {
    border-bottom: 2px solid #fff;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer ul.nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul.nav li {
    margin: 0 15px;
}

.footer ul.nav li a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer ul.nav li a:hover {
    opacity: 1;
}

.bottom-footer {
    padding: 20px 20px 30px 20px;
    font-size: 12px;
}

.bottom-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-riu {
    margin-right: 20px;
}

.footer-riu img {
    max-width: 100px;
    height: auto;
}

.legal-links-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #ccc;
}

.legal-links-text a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links-text a:hover {
    color: #c9a449;
}

.legal-text-footer {
    margin-right: 5px;
}

.separator {
    margin: 0 8px;
    color: #888;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.social-links li {
    margin-left: 15px;
}

.social-links img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.social-links a:hover img {
    opacity: 1;
}

@media (max-width: 960px) {
    .navbar-brand.logo {
        width: 120px;
    }
    .footer ul.nav {
        flex-direction: column;
        align-items: center;
    }
    .footer ul.nav li {
        margin: 5px 0;
    }
    .bottom-footer-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-legal {
        flex-direction: column;
        justify-content: center;
        margin-bottom: 20px;
    }
    .footer-riu {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .legal-links-text {
        justify-content: center;
        line-height: 1.8;
    }
}

/* --- LEGAL ASPECTS MODAL --- */
#legalaspects-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

#legalaspects-modal.open {
    display: block;
}

#legalaspects-modal .modal-dialog {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

#legalaspects-modal .modal-header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#legalaspects-modal .modal-header h4 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

#legalaspects-modal .close {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    padding: 0;
    color: #999;
    transition: color 0.2s;
}

#legalaspects-modal .close:hover {
    color: #333;
}

#legalaspects-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    color: #333;
    line-height: 1.6;
}

#legalaspects-modal .modal-body p {
    margin-bottom: 15px;
}
