/* =========================================
   1. VARIABLES Y CONFIGURACIÓN (PALETA FACHADA)
   ========================================= */
   :root {
    /* Paleta inspirada en el cartel y fachada */
    --primary-color: #1B3B5F;   /* Azul Noche (Seriedad y elegancia) */
    --secondary-color: #F4F6F8; /* Gris Perla (Paneles del edificio) */
    --accent-color: #C5A059;    /* Dorado (Letras VI & MA) */
    --text-color: #2D2D2D;      /* Gris Antracita (Lectura) */
    --white: #FFFFFF;
    
    /* Degradado Dorado para botones premium */
    --gold-gradient: linear-gradient(135deg, #C5A059 0%, #D4B06A 50%, #C5A059 100%);
    
    /* Redes Sociales */
    --instagram-color: #E1306C;
    --facebook-color: #1877F2;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif; /* Para Títulos elegantes */
    --font-main: 'Montserrat', sans-serif;     /* Para Textos modernos */
}

/* =========================================
   2. RESET Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Títulos */
h1, h2, h3, .section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* =========================================
   3. NAVEGACIÓN (NAVBAR)
   ========================================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Sombra más suave */
    position: sticky; /* Menú fijo al hacer scroll */
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

/* Efecto subrayado dorado al pasar el ratón */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-color); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION (SLIDER + FOTO LATERAL)
   ========================================= */
.hero-wrapper {
    display: grid;
    /* 70% Slider, 30% Foto del Hotel */
    grid-template-columns: 70% 30%; 
    height: 85vh; /* Altura fija elegante (misma altura para ambos) */
    width: 100%;
    overflow: hidden;
    background-color: #000; /* Fondo negro por si carga lento */
}

/* El Slider (Script JS controla el background-image aquí) */
#hero-slider {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 40px;
    position: relative;
    /* Un overlay oscuro suave para que se lea el texto sobre las fotos */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5); 
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

#hero-slider h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    line-height: 1.1;
}

#hero-slider p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

/* La imagen lateral del hotel */
.hero-side-image {
    width: 100%;
    height: 100%;
}

.hero-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Recorta la foto perfectamente sin deformar */
    display: block;
}

/* =========================================
   5. BOTONES PREMIUM
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: var(--gold-gradient); /* Dorado degradado */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-color); /* Cambia a Azul Noche */
    color: var(--accent-color);       /* Texto Dorado */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 59, 95, 0.3);
}

/* Botones específicos de redes sociales */
.btn-insta { background: var(--instagram-color); box-shadow: 0 4px 10px rgba(225, 48, 108, 0.3); margin: 15px;}
.btn-facebook { background: var(--facebook-color); box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); margin: 15px;}

.btn-insta:hover, .btn-facebook:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: white;
    background: black; /* Mantiene su color original en hover, solo sube */
}

/* =========================================
   6. SECCIONES GENERALES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Línea decorativa debajo del título */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* =========================================
   7. TARJETAS DE HABITACIONES
   ========================================= */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.room-card {
    background: var(--white);
    border-radius: 15px; /* Bordes más redondeados */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra difusa elegante */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.room-img {
    height: 240px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img {
    transform: scale(1.05); /* Zoom sutil en la foto al pasar el ratón */
}

.room-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-info h3 { 
    margin-bottom: 10px; 
    font-size: 1.5rem;
}

.room-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.room-price { 
    font-family: var(--font-heading);
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--accent-color); 
    display: block; 
    margin-bottom: 20px; 
}

/* Imágenes de Habitaciones */
.img-std { background-image: url('img/doble/1A-Dormitorio.png'); }
.img-triple { background-image: url('img/triple/salon.png'); }
.img-sofa { background-image: url('img/sofa/sofa.png'); }
.img-triplepatio { background-image: url('img/triplepatio/patio.png'); }
.img-estudiodoble { background-image: url('img/estudiodoble/salon.png'); }
.img-doblepatio { background-image: url('img/doblepatio/salon.png'); }

/* --- SECCIÓN CONTACTO Y MAPA --- */
.contact-section {
    background: var(--white);
    padding: 5rem 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info strong {
    color: var(--primary-color);
}

.map-wrapper {
    flex: 1.2;
    min-width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

iframe { width: 100%; height: 100%; border: 0; }

.booking-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.booking-wrapper {
    max-width: 1280px;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.booking-wrapper iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 900px) {
    /* Ajuste menú */
    .nav-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    /* Ajuste Hero: Apilar slider y foto */
    .hero-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 60vh 40vh; /* Slider arriba, foto abajo */
        height: auto;
    }

    #hero-slider { padding: 0 20px; }
    #hero-slider h1 { font-size: 2.5rem; }
    
    .contact-container { flex-direction: column; }
    .map-wrapper { width: 100%; height: 300px; }
}

@media (max-width: 600px) {
    /* Móvil pequeño */
    .hero-wrapper {
        grid-template-rows: 50vh 30vh;
    }
    
    .section-title { font-size: 2rem; }
}