/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100vh;
    background-color: #C0C0C0; /* Fondo dorado claro/ocre */
}

/* =========================================
   BLOQUES GENERALES
   ========================================= */

/* Estilo base para los bloques */
.bloque {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.navbar {
    background-color: #3b60e4;
    border: 3px solid #C0C0C0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    width: 50%;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    padding: 15px 0;
    letter-spacing: 1px;
}

/* --- AQUÍ ESTÁ EL CAMBIO IMPORTANTE PARA PC --- */
.bloque-1 {
    min-height: 100px;         /* Usamos min-height en vez de height fijo */
    height: auto;              /* Permite que la caja crezca si el texto lo pide */
    background-color: hsl(228, 72%, 56%); 
    color: #f6f5f2;
    font-size: 3rem;
    font-weight: bold;
    padding: 20px;             /* Añadimos un padding limpio */
    text-align: center;
}

.bloque-2 {
    height: auto; 
    min-height: 60px;
    background-color: hsl(228, 72%, 56%);
    padding: 15px;
}

.bloque-2 ul {
    width: auto;
    padding: auto;
}

/* Contenedor Inferior */
.contenedor-principal {
    display: flex;
    flex: 1; 
    gap: 10px;
}

.bloque-3, .bloque-4 {
    flex: 1;
    min-height: 350px;
    background-color: #FBFCF8;
    font-size: 3rem;
    font-weight: bold;
}

/* =========================================
   MENÚ DE OPCIONES
   ========================================= */
.menu-opciones {
    display: flex !important;
    flex-direction: row;
    list-style: none;
    padding: 50px;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 250px;
}

.menu-opciones li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-opciones li a:hover {
    color: #bfa145;
}

/* =========================================
   CARRUSEL DE FOTOS
   ========================================= */
.carrusel-bloque {
    position: relative; 
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carrusel-contenedor {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
}

.carrusel-contenedor::-webkit-scrollbar { display: none; }
.carrusel-contenedor { -ms-overflow-style: none; scrollbar-width: none; }

.carrusel-track {
    display: flex;
    width: 100%;
}

.carrusel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    transition: background-color 0.2s;
}

.flecha:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.flecha-izq { left: 0; border-radius: 0 5px 5px 0; }
.flecha-der { right: 0; border-radius: 5px 0 0 5px; }

/* =========================================
   DISEÑO PARALELO (TORROX / RINCÓN)
   ========================================= */
.contenedor-galerias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 95%;
    margin: 30px auto;
}

.seccion-alquiler {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.boton-navbar-individual {
    background-color: #3b60e4;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    border: 3px solid #D1D1D6;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   BOTÓN DE INICIO
   ========================================= */
.contenedor-inicio {
    width: 95%;
    margin: 15px auto 5px auto;
    display: flex;
    justify-content: flex-start;
}

.boton-inicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3b60e4;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 20px;
    border: 3px solid #D1D1D6;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.boton-inicio:hover {
    background-color: #2a4ecb;
    border-color: #C0C0C0;
    transform: translateY(-1px);
}

/* =========================================
   --- RESPONSIVE AUTOMÁTICO ---
   ========================================= */
@media (max-width: 768px) {
    .contenedor-principal {
        flex-direction: column;
    }
    
    .contenedor-galerias {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 90%;
    }
    
    /* --- AQUÍ ESTÁ EL REMEDIO PARA EL TÍTULO EN MÓVIL --- */
    .bloque.bloque-1 {
        font-size: 1.5rem !important;  /* Pasamos de 3rem a 1.5rem para que entre entero */
        height: auto !important;       /* Rompemos los 120px fijos */
        min-height: 0 !important;      /* Libera el espacio sobrante */
        padding: 15px 10px !important; /* Margen interno adaptado al móvil */
        width: 100% !important;
        box-sizing: border-box;
    }

    .contenedor-inicio {
        width: 90%;
        justify-content: center;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .boton-inicio {
        font-size: 14px;
        padding: 8px 16px;
    }
} /* <--- ¡Y cerramos correctamente la Media Query aquí! */
