/* =========================================
   LAYOUT.CSS - ESTRUCTURA GENERAL, HEADER Y FOOTER
   ========================================= */

/* --- HEADER FIJO --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height, 80px); /* Aseguramos altura base */
    z-index: 9999;
    
    /* Fondo Blanco con leve transparencia (Efecto Cristal) */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Soporte Safari */
    
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    height: 100%;
    max-width: 1440px; /* Ancho estándar */
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3 columnas: Nav - Logo - Nav */
    align-items: center;
}

/* Navegación (Links) */
.nav-left, .nav-right { display: flex; gap: 30px; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; align-items: center; }

.nav-left a, .nav-right a, .lang-selector span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    color: #000;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-left a:hover, .nav-right a:hover {
    color: #666;
}

/* --- LOGO CENTRAL (HEADER) --- */
.logo-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    display: flex; /* Mejor control que block */
    align-items: center;
    text-decoration: none;
}

/* CORRECCIÓN DE TAMAÑO HEADER */
.main-logo img {
    height: 22px; /* Reducido para igualar el tamaño del texto original */
    width: auto;  /* Mantiene la proporción */
    display: block;
}

/* --- LENGUAJE DROPDOWN (CORREGIDO) --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    /* Ajuste para alineación vertical */
    display: flex; 
    align-items: center;
}

/* [SOLUCIÓN] PUENTE INVISIBLE: 
   Cubre el hueco creado por el margin-top del contenido para que el menú no se cierre al bajar el mouse. */
.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; /* Justo debajo del contenedor del botón */
    left: 0;
    width: 100%;
    height: 20px; /* Altura suficiente para cubrir el hueco de 5px */
    background: transparent;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    color: #000;
    padding: 5px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: #000;
    background-color: rgba(255,255,255,0.5);
}

.lang-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; 
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 10000;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px; /* Este margen es visualmente bonito, pero causaba el problema sin el puente */
}

.lang-content a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    text-transform: none;
    cursor: pointer;
    margin-right: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.lang-content a:last-child { border-bottom: none; }
.lang-content a:hover { background-color: var(--color-crema, #C5BDA8); }

.lang-dropdown:hover .lang-content { display: block; }


/* =========================================
   FOOTER SECTION (FINAL)
   ========================================= */

.main-footer {
    /* CAMBIO: Unificado al color #C5BDA8 */
    background-color: var(--color-crema, #C5BDA8); 
    color: #000;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- PARTE ARRIBA: LOGO Y TAGLINE --- */
.footer-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid #000; 
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
    text-decoration: none;
}

/* CORRECCIÓN DE TAMAÑO FOOTER */
.footer-logo img {
    height: 30px; /* Reducido de 40px a 30px */
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: 'Gilda Display', serif;
    font-size: 32px;
    font-weight: 700; 
    color: #000; 
    opacity: 0.7; 
    margin: 0;
    line-height: 1;
}

/* --- PARTE ABAJO: COLUMNAS --- */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Títulos de Columnas */
.footer-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
}

/* Textos y Enlaces */
.footer-col a, 
.footer-col address {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700; 
    line-height: 1.8;
    color: #000;
    text-decoration: none;
    display: block;
    font-style: normal;
}

.footer-col address { margin-top: 5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-col a:hover { text-decoration: underline; opacity: 0.7; }

/* --- RESPONSIVE / MÓVIL --- */
.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
    /* Header Móvil */
    .header-content { display: flex; justify-content: space-between; }
    .nav-left, .nav-right { display: none; } 
    .mobile-menu-btn { 
        display: block; 
        font-size: 24px; 
        background: none; 
        border: none; 
        cursor: pointer; 
    }

    /* Footer Móvil */
    .footer-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .footer-columns { grid-template-columns: 1fr; gap: 40px; }
    
    .footer-logo img { height: 26px; } /* Aún más pequeño en móvil */
    .footer-tagline { font-size: 26px; }
}