/* Estilos generales */
body {
    margin: 0;
    font-family: 'Syne', sans-serif;
    background-color: #f1f2f0;
    color: #f1f2f0;
}
@font-face {
    font-family: 'Syne';
    src: url('/fonts/Syne-Regular.woff2') format('woff2'),
         url('/fonts/Syne-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Syne';
    src: url('/fonts/Syne-Bold.woff2') format('woff2'),
         url('/fonts/Syne-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
/* Barra lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 275px;
    background-color: #a14f33;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    color: #f1f2f0;
    z-index: 10; /* Menú lateral siempre encima */
    overflow-y: auto; /* Habilita el scroll vertical */
    scrollbar-width: thin; /* Hace el scroll más delgado en navegadores compatibles */
}


.logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo a {
    display: block;
}

.logo img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilos del menú */
.menu ul {
    list-style: none; /* Elimina los puntos */
    padding: 0;
    margin: 10;
    margin-top: 50px
}

.menu ul li {
    margin: 10px 0;
}

.menu ul li a {
    position: relative; /* Necesario para línea blanca */
    font-weight: bold;
    font-size: 1.2em;
    color: #f1f2f0;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu ul li a:hover::after,
.menu ul li a.active::after {
    width: 100%; /* Línea blanca al activar */
}
/* Línea visible cuando se activa */
.menu ul li a.active::after {
    width: 80%; /* Mostrar la línea */
}
.menu ul li a.active {
    color: #ffffff; /* Cambia color de texto activo */
}


/* Contenedor de Brochure y Galería */
.brochure-container, .gallery-container {
    position: absolute;
    width: calc(100% - 275px);
    height: 85%;
    border-radius: 15px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 120px; /* Alineado con el ancho de la barra lateral */
    top: 50%;
    transform: translateY(-50%); /* Solo centrado vertical */
    overflow: hidden;
    z-index: 2;
}

.brochure-container img, .gallery-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: grab;
}

/* Contenedor de Tour */
.tour-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; /* Ancho reducido al 85% */
    height: 100%;
    border-radius: 15px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%); /* Centrado horizontal y vertical */
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenedor de Disponibilidad */
.disponibilidad-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%; /* Ancho reducido al 85% */
    height: 95%;
    border-radius: 15px;
    background-color: transparent; /* Fondo transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%); /* Centrado horizontal y vertical */
    overflow: hidden;
    z-index: 2;
}

.disponibilidad-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Flechas de navegación */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #b84e2d;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    border: none;
    transition: color 0.3s;
}

.arrow:hover {
    color: #8f3a22;
}

.arrow.left {
    left: 15px;
}

.arrow.right {
    right: 15px;
}

/* Ajustes adicionales */
.content {
    margin-left: 275px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f2f0;
    position: relative;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


/* Menú desplegable */
.dropdown-menu {
    position: absolute;
    background-color: transparent;
    border: 0px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 5px;
    width: 150px;
    display: none; /* Inicialmente oculto */
}

.dropdown-menu button {
    background-color: #ce5d3c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin: 5px 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
}

.dropdown-menu button:hover {
    background-color: #b84e2d;
}
.tipologias-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tipologias-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* Contenedor de Cotizador */
.cotizador-container {
    position: absolute;
    top: 50%;
    left: calc(5px + 50%); /* Considerar el ancho del menú */
    transform: translate(-50%, -50%);
    width: calc(100% - 25px); /* Ajustar al espacio disponible */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f2f0;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    overflow: hidden;
}

.cotizador-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.landscape-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5em;
    z-index: 1000; /* Encima de todo */
    display: none; /* Oculto por defecto */
}
.back-button {
    display: block;
    width: 80%;
    margin: 100px auto;
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
    color: #a14f33;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: #a14f33;
    color: #ffffff;
}
/* Contenedor de Video */
.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    height: 85%;
    border-radius: 15px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 2;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}
/* Estilos para el loader de video */
.video-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(161, 79, 51, 0.8); /* Fondo semi-transparente con el color principal */
    z-index: 5;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 10px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f1f2f0; /* Color claro para el borde exterior */
    border-top: 5px solid #b84e2d; /* Color principal para el spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras para la compatibilidad táctil */
.brochure-container, .gallery-container {
    touch-action: pan-y pinch-zoom;
    user-select: none;
}
