/* Reset y configuraciones globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* Utilidades */
.hidden {
    display: none !important;
}

/* Loading */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
}

/* Contenedor principal */
#app {
    height: 100vh;
    width: 100vw;
}

/* Logo */
.logo-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo {
    height: 120px;
    width: auto;
}

/* Contenedor dividido */
.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.split-section {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-section .section-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Estados para cuando el menú está activo */
.menu-active .split-container {
    transform: translateX(60%);
    transition: transform 0.3s ease;
}

.menu-active .right-section {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-active .left-section {
    flex: 2;
}

/* Secciones específicas */
.left-section {
    background-image: url('../images/izquierda.jpeg');
}

.right-section {
    background-image: url('../images/derecha.jpeg');
}

/* Overlay para el efecto gris */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

/* Efecto hover - zoom x2 */
.split-section:hover .overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.split-section:hover {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
    z-index: 50;
}

/* Contenido de las secciones */
.section-content {
    z-index: 10;
    text-align: center;
    color: white;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: none;
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
    display: block;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    text-align: center;
    margin-bottom: 20px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.portfolio-btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Menú lateral */
.country-menu {
    position: fixed;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100vh;
    background-color: #808080;
    z-index: 200;
    transition: left 0.3s ease;
}

.country-menu.active {
    left: 0;
}

.country-menu.closing {
    left: -60%;
    transition: left 0.3s ease;
}

.menu-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 80px;
    color: white;
}

.menu-content h3 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: right;
    font-weight: normal;
}

.country-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.country-list li {
    margin-bottom: 20px;
}

.country-list a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    display: block;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.country-list a:hover {
    opacity: 0.7;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

.close-menu:hover {
    opacity: 0.7;
}

/* Iconos sociales */
.social-links {
    margin-top: 40px;
    text-align: right;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: white !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    
    .logo {
        height: 80px;
    }
    
    .logo-container {
        top: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .split-section:hover {
        transform: scale(1.05);
    }
    
    .country-menu {
        width: 75%;
        left: -75%;
    }
    
    .country-menu.closing {
        left: -75%;
    }
    
    .menu-active .split-container {
        transform: translateX(75%);
    }
    
    .menu-content {
        padding-right: 40px;
    }
    
    .menu-content h3 {
        font-size: 2rem;
    }
    
    .country-list a {
        font-size: 24px;
    }
}
