/*
 * Archivo: styles.css
 * LAYOUT FINAL: Estructura responsiva (50%/50% en escritorio, apilada y completa en móvil).
 * TAMAÑO: Ancho 80vw (máx. 1006px), Altura máx. 640px.
 * SOLUCIÓN MÓVIL: Las columnas se apilan verticalmente, eliminando el límite de altura para evitar cortes.
 */

/* Forzar Montserrat en toda la plantilla */
#intro-section,
#home-section,
#home-section * {
    font-family: 'Montserrat', sans-serif !important;
}

/* ===================================================
   1. ESTILOS GLOBALES & INTRO
   =================================================== */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; 
    background-color: #fff; 
    color: #000; 
    height: 100vh;
}

/* La intro debe seguir siendo oscura */
#intro-section {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    background-color: #000; 
    color: #fff; 
    z-index: 1000; opacity: 1;
    transition: opacity 1s ease-out;
}
.intro-logo-container {
    text-align: center; opacity: 0;
    animation: fadeIn 1.5s forwards; animation-delay: 0.5s;
}
.intro-logo-image {
    max-width: 150px; 
    height: auto; display: block; margin: 0 auto;
}
@keyframes fadeIn {
    to { opacity: 1; }
}


/* ===================================================
   2. HOME SECTION (Centrado en Escritorio, Scrollable en Móvil)
   =================================================== */
#home-section {
    position: relative;
    width: 100%;
    height: 100%; 
    opacity: 0;
    transition: opacity 1s ease-in;
    /* overflow: hidden;  <-- ELIMINADO para permitir el scroll si es necesario */

    /* Centrado Total en Escritorio */
    display: flex;
    justify-content: center; 
    align-items: center; 
}

/* ===================================================
   3. CONTENEDOR PRINCIPAL (Responsivo en Escritorio)
   =================================================== */
.split-container {
    width: 80vw; 
    max-width: 1006px; 
    height: 640px; /* Restaurado a 640px para la vista de escritorio */
    max-height: 640px; 
    display: flex;
}


/* ===================================================
   4. COLUMNA IZQUIERDA (50% en Escritorio) - Imagen
   =================================================== */
.left-image-column {
    width: 50%; 
    height: 100%; /* Ocupa el 100% de los 640px en escritorio */
    max-height: 640px; 
    position: relative;
    
    background-size: cover; 
    background-position: center; 
    
    transition: background-image 0.5s ease-in-out; 
    z-index: 2;
}


/* ===================================================
   5. COLUMNA DERECHA (50% en Escritorio) - Contenido
   =================================================== */
.right-content-column {
    width: 50%; 
    height: 100%; /* Ocupa el 100% de los 640px en escritorio */
    max-height: 640px; 
    background-color: #fff; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    z-index: 10;
}

/* --- 5A. Logo Área --- */
.logo-area {
    padding: 0 10%; 
    text-align: center;
}
.header-logo-image {
    max-width: 50%; 
    height: auto;
    margin-bottom: 20px; 
    filter: invert(100%) brightness(0); 
}


/* --- 5B. Menú Área (Vertical y con Bordes + Efecto Cortina) --- */
.main-nav {
    width: 100%;
    padding: 0;
    text-align: center;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-nav li {
    width: 100%;
    padding: 5px 0; 
    border-top: 1px solid rgba(0, 0, 0, 1); 
    border-bottom: 1px solid rgba(0, 0, 0, 1); 
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.main-nav li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 1); 
}
.main-nav li:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 1); 
}

.main-nav li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #000;
    transition: width 0.4s ease-out;
    z-index: 1;
}

.main-nav li:hover::before {
    width: 100%;
}

.main-nav a {
    color: #000; 
    text-decoration: none;
    font-size: 1.3em; 
    font-weight: 700; 
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    z-index: 2;
}

.main-nav li:hover a {
    color: #fff;
    text-decoration: none;
}

.main-nav a:focus,
.main-nav a:active {
    text-decoration: none;
    outline: none;
}


/* --- 5C. Redes Sociales Área --- */
.social-media-area {
    text-align: center;
    font-size: 0.8em;
    text-transform: uppercase;
    padding: 0 10%;
    color: #000; 
}
.social-media-area a {
    color: #000; 
    text-decoration: none;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 8px; 
    transition: color 0.3s ease;
}
.social-media-area a:hover {
    color: #666; 
}

.social-icon {
    height: 14px; 
    width: 14px;
    margin-right: 8px; 
    filter: invert(100%) brightness(0); 
}

.social-text {
    color: #000;
}

.social-media-area a:hover .social-text {
    color: #666;
}

.social-media-area a:hover .social-icon {
    opacity: 0.6; 
}


/* ===================================================
   6. RESPONSIVIDAD (Media Query para Móviles/Tablets)
   =================================================== */
@media (max-width: 900px) {
    
    /* CORRECCIÓN CRUCIAL PARA EVITAR EL CORTE EN MÓVILES */
    body {
        /* Permite que el contenido del body exceda la altura de la pantalla y sea visible */
        height: auto; 
        overflow-y: auto; /* Habilita el scroll vertical */
    }

    /* 1. HOME SECTION (Stacking y ajuste de altura) */
    #home-section {
        align-items: flex-start; 
        padding-top: 20px; 
        height: auto; 
        min-height: 100vh; /* Asegura que, al menos, ocupe toda la altura visible */
    }

    /* 2. CONTENEDOR PRINCIPAL (Stacking) */
    .split-container {
        width: 95vw;
        max-height: none; 
        height: auto;
        flex-direction: column; /* Apila las columnas */
    }

    /* 3. Columna de Imagen (arriba) */
    .left-image-column {
        width: 100%; 
        height: 640px; 
        max-height: 640px;
    }

    /* 4. Columna de Contenido (abajo) */
    .right-content-column {
        width: 100%; 
        height: auto; /* La altura se adapta al contenido */
        max-height: none;
        padding: 30px 0; 
    }

    /* Ajustar el tamaño del logo para móvil */
    .header-logo-image {
        max-width: 150px; 
    }
    
    /* Centrar elementos de menú en el nuevo ancho */
    .main-nav li {
        width: 80%; /* Aumentado ligeramente para el nuevo ancho de 95vw */
    }
}