/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #c5b6aa; /* Tono café claro/arena de base */
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    padding: 2rem 4rem;
    overflow-x: hidden;
}

/* --- BARRA DE NAVEGACIÓN SUPERIOR --- */
.navbar-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #e2d7cc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #440c1c; /* Tono guinda/rojo oscuro para enfatizar la página activa */
}

/* --- CONTENEDOR DE LA PÁGINA (DOS COLUMNAS ASIMÉTRICAS) --- */
.ubicacion-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch; /* Mantiene ambas columnas con alturas proporcionales */
    gap: 0; /* Unificado sin espacio intermedio para imitar la captura */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

/* --- ENLACE CONTENEDOR DEL MAPA --- */
.map-link-wrapper {
    flex: 1.1;
    text-decoration: none;
    display: block;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-color: #eaeaea;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Letrero emergente sutil al pasar el mouse sobre el mapa */
.map-overlay-hint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(68, 12, 28, 0.15); /* Capa guinda translúcida */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-overlay-hint span {
    background-color: #ffffff;
    color: #440c1c;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* INTERACCIÓN AL PASAR CURSOR POR EL MAPA */
.map-link-wrapper:hover .map-container img {
    transform: scale(1.04); /* Pequeño zoom de mapa */
}

.map-link-wrapper:hover .map-overlay-hint {
    opacity: 1; /* Revelar el aviso para dar clic */
}

/* --- BLOQUE DERECHO INFORMATIVO --- */
.info-side {
    flex: 0.9;
    background-color: #bd9083; /* Color rosa viejo/terracota de tus esquemas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
}

.text-banner {
    width: 100%;
}

.main-title {
    color: #440c1c;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.address-box {
    text-align: center;
    color: #440c1c;
}

.address-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.address-box p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- MARCO ESTILO POLAROID PARA VIDEOS --- */
.polaroid-video-container {
    position: relative;
    background-color: #ffffff;
    align-self: flex-end; /* Alineado a la esquina inferior derecha */
    width: 400px;
    height: 260px;
    padding: 12px 12px 45px 12px; /* Margen inferior simulando borde ancho */
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 2rem;
}

.carousel-video {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 57px); /* Conserva la zona blanca de abajo */
    object-fit: cover;
    
    /* Configuración de ocultación precisa para transiciones fluidas */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* Clase inyectada por JS para reproducir y visibilizar el video */
.carousel-video.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --- ADAPTABILIDAD SMARTPHONES Y TABLETS --- */
@media (max-width: 850px) {
    body {
        padding: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .ubicacion-container {
        flex-direction: column; /* Cambia a una sola columna vertical */
    }
    .map-container {
        min-height: 300px;
    }
    .info-side {
        padding: 2rem 1.5rem;
        align-items: center;
    }
    .polaroid-video-container {
        align-self: center; /* Se centra en la pantalla móvil */
        margin-top: 2.5rem;
    }
}