/* =========================================
   1. VARIABLES Y RESET GLOBALES
   ========================================= */
:root {
    /* Tema Lujo Principal (Casa Celeste) */
    --gold: #c5a059;
    --gold-light: #e2c99a;
    --dark: #121212;
    --white: #ffffff;
    --soft-bg: #f9f9f9;

    /* Tema Secundario (Booking, Contacto, Info) */
    --primary-green: #108b64;
    --light-green: #eaf5f1;
    --accent-teal: #14b8a6;
    --text-dark: #1f2937;
    --text-gray: #4b5563;

    /* Tipografía y Transiciones */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif; /* Unificada para todo el sitio */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    overflow-x: hidden; 
    width: 100%; 
    position: relative; 
    font-family: var(--font-sans); 
    background-color: var(--soft-bg); 
    color: var(--text-dark); 
    -webkit-font-smoothing: antialiased; 
    -webkit-tap-highlight-color: transparent; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-title { 
    font-family: var(--font-serif); 
    font-size: clamp(2rem, 5vw, 3rem); 
    color: var(--dark); 
    margin-bottom: 16px; 
    font-weight: 700; 
}

/* =========================================
   2. BARRA DE NAVEGACIÓN (BLINDADA)
   ========================================= */
.navbar { 
    background: #ffffff; 
    padding: 15px 0; 
    position: relative; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: var(--transition); 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
    box-sizing: border-box; 
}

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-icon { background: var(--gold) !important; font-family: var(--font-serif); font-weight: 700; border-radius: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: white; font-size: 1.1rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-family: var(--font-serif); letter-spacing: 1px; font-size: 1.2rem; font-weight: bold; color: var(--dark); }
.logo-subtitle { color: var(--gold); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links li a { text-decoration: none; color: #333; font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links li a:hover { color: var(--gold); }

.menu-toggle, .close-menu, .nav-overlay { display: none; }

/* AJUSTES PARA MÓVIL (MENÚ LATERAL) */
@media (max-width: 992px) {
    .nav-container { flex-direction: row-reverse; justify-content: flex-end; gap: 20px; }
    .logo-area { margin-right: auto; }
    .menu-toggle { display: block !important; background: none; border: none; color: #333; font-size: 1.8rem; cursor: pointer; padding: 0; z-index: 2005 !important; }
    
    .navbar .nav-links, .nav-links { display: none !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 50% !important; height: 100vh !important; background: var(--dark) !important; flex-direction: column !important; padding: 80px 30px !important; transform: translateX(-100%); transition: transform 0.4s ease; z-index: 2000 !important; align-items: flex-start; }
    .navbar .nav-links.active, .nav-links.active { display: flex !important; transform: translateX(0) !important; }
    .navbar:not(.menu-open) .nav-links li { display: none !important; }
    .navbar .nav-links.active li { display: block !important; width: 100%; margin: 15px 0 !important; }
    .navbar .nav-links li a { color: var(--white) !important; font-size: 1.2rem !important; display: block !important; }
    
    .close-menu { display: block; position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }
    .nav-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.6); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
    .nav-overlay.active { opacity: 1; visibility: visible; }
}

@media (max-width: 600px) { .logo-title { font-size: 1.1rem !important; } }

/* =========================================
   3. BOTONES Y WHATSAPP
   ========================================= */
.btn { padding: 15px 30px; border-radius: 4px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-block; min-height: 44px; }
.btn-primary { background-color: var(--gold); color: white; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3); }
.btn-secondary { background-color: transparent; color: white; border: 1px solid white; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background-color: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); z-index: 10000; text-decoration: none; transition: all 0.3s ease; animation: saltar-derecha 2.5s infinite; min-height: 44px; }
.whatsapp-btn:hover { background-color: #128c7e; transform: scale(1.1); }
@keyframes saltar-derecha { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }
@media (max-width: 768px) { .whatsapp-btn { width: 55px; height: 55px; font-size: 32px; bottom: 20px; right: 20px; } }

/* =========================================
   4. PÁGINA PRINCIPAL (HOME)
   ========================================= */
.hero-section { position: relative; height: 100vh; min-height: 600px; display: flex; flex-direction: column; background: url('img/fotodrone.png') center/cover no-repeat; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; position: relative; z-index: 10; animation: fadeInUp 1.2s ease-out forwards; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; color: white; line-height: 1.05; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.hero-subtitle { font-family: var(--font-sans); font-weight: 200; letter-spacing: 4px; text-transform: uppercase; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.hero-buttons { position: relative; z-index: 20; display: flex; gap: 15px; justify-content: center; opacity: 0; animation: fadeInUp 1.2s ease-out forwards; animation-delay: 0.5s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

.welcome-section { padding: 80px 0; text-align: center; }
.section-subtitle { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 50px; line-height: 1.8; }

.cards-grid { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.card { background: var(--white); padding: 35px 30px; border-radius: 12px; width: 32%; text-align: left; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.card-icon-wrapper { background-color: var(--primary-green); color: var(--white); width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.5; }

.premium-box { background: var(--white); padding: 40px; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.05); border: 1px solid #eee; margin-top: 40px; }
.premium-title { font-size: 2rem; font-family: var(--font-serif); margin-bottom: 30px; text-align: center; }
.amenities-flex { display: flex; justify-content: space-around; align-items: center; }
.amenity-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.amenity-icon { background-color: var(--light-green); color: var(--primary-green); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.amenity-item span { font-size: 0.85rem; color: var(--text-gray); font-weight: 500; }

.booking-cta { background-color: var(--primary-green); padding: 100px 0; text-align: center; color: var(--white); }
.serif-display { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700; margin-bottom: 30px; }
.price-highlight { background-color: rgba(255, 255, 255, 0.15); display: inline-flex; flex-direction: column; padding: 30px 60px; border-radius: 15px; margin-bottom: 30px; }
.price-highlight .currency { font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.price-highlight .period { font-size: 1.1rem; margin: 5px 0 10px; }
.availability-button { background-color: var(--gold); color: white; padding: 18px 40px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; display: inline-block; transition: var(--transition); }
.availability-button:hover { transform: translateY(-2px); }

.luxury-carousel-wrapper { width: 100%; max-width: 1000px; margin: 40px auto 80px; padding: 0 20px; }
.luxurySwiper { width: 100%; height: 550px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); overflow: hidden; border: 8px solid white; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================
   5. OTRAS PÁGINAS (INFO, BOOKING, CONTACT)
   ========================================= */
.info-hero { background-color: var(--primary-green); color: white; text-align: center; padding: 100px 20px 60px; }
.info-hero h1 { font-family: var(--font-serif); font-size: 3.5rem; margin-bottom: 15px; }
.info-section { padding: 80px 0; }
.bg-light { background-color: var(--soft-bg); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.info-card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 20px; }
.card-icon-box { background-color: var(--primary-green); color: white; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.5rem; flex-shrink: 0; }
.amenities-grid-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.amenity-card-small { background: white; padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.amenity-icon-small { color: var(--primary-green); background: var(--light-green); width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.details-flex { display: flex; gap: 30px; }
.details-box { background: white; flex: 1; padding: 40px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.shield-icon { background: var(--primary-green); color: white; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.check-list, .bullet-list-grid { list-style: none; }
.check-list li, .bullet-list-grid li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.check-list li::before, .bullet-list-grid li::before { content: "●"; color: var(--primary-green); position: absolute; left: 0; }
.bullet-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.booking-page-section, .contact-page-section, .reviews-section, .location-section { padding: 120px 0 80px; background-color: var(--soft-bg); }
.booking-header h1, .contact-header h1, .reviews-header h1, .location-header h1 { font-family: var(--font-serif); font-size: 3.5rem; margin-bottom: 10px; text-align: center; }
.booking-layout, .contact-layout, .reviews-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; align-items: start; }
.booking-form-container, .contact-form-container, .review-form-container { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 1rem; color: #374151; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.submit-booking-btn, .send-message-btn, .submit-review-btn { width: 100%; padding: 15px; background-color: var(--primary-green); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s ease; margin-top: 20px; }
.submit-booking-btn:hover, .send-message-btn:hover, .submit-review-btn:hover { background-color: #0d7252; }

.pricing-summary-card, .get-in-touch-card { background-color: var(--primary-green); color: white; padding: 35px; border-radius: 15px; margin-bottom: 25px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.price-value { font-size: 2rem; font-weight: 700; }
.pricing-info-box { background-color: rgba(255, 255, 255, 0.15); padding: 15px; border-radius: 10px; }
.whats-included-card, .office-hours-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.location-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.info-box-white { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
.map-container { background: white; padding: 15px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* =========================================
   6. RESPONSIVIDAD GENERAL MÓVIL (TARJETAS)
   ========================================= */
@media (max-width: 768px) {
    .cards-grid { flex-direction: column !important; gap: 25px; padding: 0 15px; }
    .cards-grid .card { width: 100% !important; margin: 0 !important; box-sizing: border-box; }
    .premium-box { padding: 30px 15px; }
    .amenities-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: 25px 15px; justify-content: center; text-align: center; }
    .amenity-item span { margin-top: 8px; }
    .info-grid, .amenities-grid-info, .details-flex, .bullet-list-grid { grid-template-columns: 1fr !important; flex-direction: column; }
    .booking-layout, .contact-layout, .reviews-layout, .location-grid { grid-template-columns: 1fr; }
    .booking-sidebar { order: -1; }
}






/* --- MAGIA DEL HERO CINEMÁTICO --- */
.hero-cinematic {
    position: relative;
    overflow: hidden;
    /* Asumo que tu .hero-section ya tiene algo como height: 100vh; */
}

.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; 
    /* 36 segundos en total, 12s por cada una de las 3 imágenes */
    animation: kenburns 36s infinite, fade 36s infinite; 
}

/* Tiempos de entrada para cada imagen */
.slide-image:nth-child(1) { animation-delay: 0s; }
    /* Inicia la segunda imagen a los 12 segundos */
.slide-image:nth-child(2) { animation-delay: 12s; }
    /* Inicia la tercera imagen a los 24 segundos */
.slide-image:nth-child(3) { animation-delay: 24s; }

/* El movimiento sutil (Zoom in) */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* La transición suave entre imágenes (Aparecer y desaparecer) */
@keyframes fade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    30%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

#main-navbar-placeholder {
    position: relative;
    z-index: 9999; /* Asegura que el menú esté por encima de todo */
}





/* ========================================= */
/* --- AJUSTES DEL MENÚ RESPONSIVE --- */
/* ========================================= */
@media (max-width: 992px) {
    .navbar .nav-links, .nav-links {
        display: none !important;
    }
    .navbar .nav-links.active, .nav-links.active {
        display: flex !important;
    }
}

/* ========================================= */
/* --- AJUSTES DEL CARRUSEL DE LUJO --- */
/* ========================================= */
.luxurySwiper {
    /* Reduce drásticamente el espacio blanco inferior */
    padding-bottom: 40px !important; 
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px; 
    height: 400px; /* Más altas para llenar el espacio */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15); 
}

/* Acerca los puntos indicadores a las fotos y elimina el espacio extra */
.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 0px !important; 
}

/* Cambia el color de los puntitos activos al dorado de la marca */
.swiper-pagination-bullet-active {
    background-color: var(--gold) !important;
}





/* ========================================= */
/* --- DISEÑO DEL POP-UP VIP --- */
/* ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-container {
    width: 850px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.popup-close:hover {
    transform: rotate(90deg);
}

.popup-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

.popup-image {
    width: 45%;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.popup-text {
    width: 55%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.popup-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.1;
}

.popup-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-description strong {
    color: #222;
    font-weight: 600;
}

.btn-popup-gold {
    background: var(--gold);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn-popup-gold:hover {
    background: #9a7d53;
    transform: translateY(-2px);
}

.popup-terms {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .popup-image {
        width: 100%;
        min-height: 200px;
    }
    .popup-text {
        width: 100%;
        padding: 40px 25px;
    }
    .popup-title {
        font-size: 2.2rem;
    }
}