@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #5A6E58; /* Verde Oliva */
    --secondary: #D4C5A9; /* Beige Arena */
    --dark: #2C3E50; /* Gris Oscuro */
    --light: #F8F9FA; /* Blanco Humo */
    --white: #ffffff;
    --orange: #E67E22;
    --whatsapp: #25D366;
    --google: #4285F4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; background: var(--light); color: #555; line-height: 1.6; margin: 0; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--dark); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* --- VISIBILIDAD --- */
.solo-escritorio { display: block !important; }
.solo-movil { display: none !important; }

/* CONTENEDOR PRINCIPAL */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 4rem 0; }
.text-center { text-align: center; }

/* --- NAVEGACIÓN --- */
nav {
    background: white; height: 80px; position: sticky; top: 0; z-index: 9999;
    border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-item { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--dark); letter-spacing: 1px; }
.nav-item:hover { color: var(--primary); }
.btn-reserve { background: var(--primary); color: white !important; padding: 10px 25px; border-radius: 50px; }
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); padding: 10px; border: 1px solid #eee; border-radius: 5px; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 160px; box-shadow: 0px 8px 16px rgba(0,0,0,0.1); z-index: 1; top: 30px; }
.dropdown-content a { color: black; padding: 12px 16px; display: block; font-size: 0.85rem; border-bottom: 1px solid #eee; }
.dropdown:hover .dropdown-content { display: block; }

/* --- CABECERA HERO --- */
.hero { 
    position: relative; height: 50vh; display: flex; align-items: center; justify-content: center; 
    text-align: center; color: white; margin-bottom: 2rem; overflow: hidden; 
    background-size: cover; background-position: center;
}
.hero h1 { font-size: 3.5rem; color: white; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); margin: 0; }
.hero p { font-size: 1.2rem; color: #f0f0f0; text-shadow: 1px 1px 5px rgba(0,0,0,0.9); }

/* --- GRIDS Y TARJETAS --- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }

.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card img { height: 250px; width: 100%; object-fit: cover; }
.card-content { padding: 1.5rem; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--dark); display: block; margin: 10px 0; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-transform: uppercase; background: var(--primary); color: white; margin-top: 20px; cursor: pointer; border: none; text-align: center;}
.btn-orange { display: inline-block; padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; background: var(--orange); color: white; margin-top: 15px; }

/* --- PÁGINA DE CONTACTO --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-box { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; font-size: 1.1rem; }
.contact-item i { color: var(--primary); font-size: 1.3rem; margin-right: 15px; margin-top: 5px; width: 25px; text-align: center; }
.map-container { height: 300px; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); background: #eee; }
.form-box { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 5px rgba(90, 110, 88, 0.2); }
.mobile-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-wa { background: var(--whatsapp); color: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-map { background: var(--google); color: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }

/* =========================================
   NUEVO: ESTILOS PÁGINA DETALLE APARTAMENTO
   (Esto es lo que faltaba para igualar la captura)
   ========================================= */

/* 1. Layout de dos columnas (Info Izquierda | Caja Derecha) */
.apt-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% contenido, 33% caja reserva */
    gap: 40px;
    align-items: start; /* Para que la caja derecha no se estire */
}

/* 2. Caja Blanca de Reserva (Derecha) */
.booking-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky; /* Hace que la caja te siga al bajar */
    top: 100px;
    border: 1px solid #eee;
    text-align: center;
}

.booking-box h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.booking-box .price {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 20px;
    display: block;
}

/* 3. Slider de Imágenes (Izquierda) */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    background: #eee;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.slider::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

.slide {
    min-width: 100%;
    transition: 0.5s;
}

.slide img {
    width: 100%;
    height: 400px; /* Altura fija para el slider */
    object-fit: cover;
    display: block;
}

/* Botones del slider */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
.prev-btn:hover, .next-btn:hover { background: var(--primary); }

/* 4. Iconos y Amenidades */
.amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas de iconos */
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.amenity {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
}
.amenity i {
    color: var(--dark);
    width: 30px;
    font-size: 1.1rem;
}

/* FOOTER */
footer { background: var(--dark); color: white; padding: 3rem 0; text-align: center; margin-top: auto; }
.legal-links { margin-top: 15px; font-size: 0.8rem; color: #bbb; }
.legal-links a { color: #bbb; margin: 0 10px; }


/* =========================================
   VERSIÓN MÓVIL (MEDIA QUERY)
   ========================================= */
@media (max-width: 1024px) {
    .solo-escritorio { display: none !important; }
    .solo-movil { display: block !important; }

    .hamburger { display: block; } 
    .nav-menu {
        display: none; flex-direction: column; width: 100%; position: absolute; top: 80px; left: 0;
        background-color: white; padding: 20px 0; border-bottom: 4px solid var(--primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-menu.active { display: flex !important; }
    .nav-item { padding: 15px; width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
    .arrow, .dropdown-content { display: none !important; }

    .hero h1 { font-size: 2rem; }
    .container, .section-padding { padding-left: 20px !important; padding-right: 20px !important; width: 100% !important; }
    
    /* Adaptación móvil del Grid de detalle */
    .grid, .grid-3, .contact-grid, .apt-detail-grid { grid-template-columns: 1fr !important; }
    
    /* .card img { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5 !important; object-fit: cover !important; }

.card img { 
    display: block !important; 
    width: 100% !important; 
    height: auto !important; 
    aspect-ratio: auto !important; 
}

    /* Ajustes slider móvil */
    .slide img { height: 250px; }
    .prev-btn, .next-btn { padding: 10px; width: 35px; height: 35px; font-size: 1rem; }
}


/* --- CLASES DE UTILIDAD NUEVAS --- */

/* Subtítulo debajo del H1 en los apartamentos (ej. "4 PERSONAS | Especial Familias") */
.apt-subtitle {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Botón que ocupa todo el ancho en la caja de reservas */
.btn-block {
    width: 100%;
    margin-bottom: 0;
}

/* Texto pequeño debajo del botón de reserva ("Mejor precio garantizado") */
.nota-precio {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Botones más pequeños para las tarjetas de la página "Apartamentos" */
.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}
