/* ==========================================================================
   VARIABLES Y RESET (TEMA CLARO / CAMPESTRE)
   ========================================================================== */
:root {
    --primary: #f09000;       /* Color Naranja/Dorado Premium */
    --bg-white: #ffffff;      /* Blanco puro */
    --bg-blue: #eef7ff;       /* Azul cielo muy suave para fondos */
    --header-blue: #4ebaff;   /* Azul cielo vibrante para el menú */
    --text-dark: #1a252f;     /* Gris muy oscuro para legibilidad */
    --text-gray: #4a5568;     /* Gris medio para párrafos */
    --card-blue: #cde5f7;     /* Azul claro para cuadro de pasadía */
    --card-beige: #f2e2ce;    /* Beige para cuadro de hospedaje */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px; 
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==========================================================================
   UTILIDADES Y FONDOS INTERCALADOS
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.text-center { text-align: center; }
.bg-white { background-color: var(--bg-white); }
.bg-blue { background-color: var(--bg-blue); }

.scroll-section { padding: 90px 0; }

.section-subtitle {
    font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--primary); margin-bottom: 15px; font-weight: 700;
}

.section-title {
    font-family: var(--font-heading); font-size: 42px;
    color: var(--text-dark); margin-bottom: 25px; font-weight: 600;
}

.section-desc {
    max-width: 750px; margin: 0 auto 50px auto;
    font-size: 16px; font-weight: 400;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: all 0.4s ease; background: var(--header-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: var(--primary); color: #fff; display: flex;
    justify-content: space-between; padding: 3px 40px;
    font-size: 13px; font-weight: 600;
}

#main-header.scrolled .top-bar { display: none; }

#main-header.scrolled {
    background: rgba(78, 186, 255, 0.75); 
    backdrop-filter: blur(12px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1300px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center;
    padding: 12px 30px; transition: all 0.4s ease;
}

#main-header.scrolled .header-container { padding: 6px 30px; }

.logo img { height: 75px; transition: all 0.4s ease; }
#main-header.scrolled .logo img { height: 55px; }

.nav-menu { display: flex; list-style: none; align-items: center; }

/* Enlaces del menú (Corregidos para no cortar bordes) */
.nav-menu li a {
    display: inline-block; /* ESTO EVITA QUE SE CORTE EL BOTÓN RESERVAR */
    color: var(--text-dark); text-decoration: none; padding: 8px 12px;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600; transition: all 0.3s ease;
    border-bottom: 2px solid transparent; 
}

/* Hover general del menú en blanco */
.nav-menu li a:hover { color: #ffffff; }

/* MENÚ ACTIVO (AHORA EN BLANCO Y ELEGANTE) */
.nav-menu li a.active {
    color: #ffffff !important;
    border-bottom: 2px solid #ffffff;
}

/* ESTILO DEL BOTÓN RESERVAR TOTALMENTE PROTEGIDO */
.btn-premium {
    border: 2px solid var(--text-dark) !important; 
    border-radius: 25px; 
    margin-left: 10px;
}

.btn-premium:hover,
.btn-premium.active {
    background-color: var(--text-dark) !important;
    color: #fff !important;
    border: 2px solid var(--text-dark) !important; /* Mantiene su borde completo siempre */
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative; height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center bottom;
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut { 0% { transform: scale(1.0); } 100% { transform: scale(1.05); } }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-title { font-family: var(--font-heading); font-size: 70px; color: #fff; line-height: 1.1; margin-bottom: 30px; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero-description { font-size: 18px; color: #f1f1f1; margin-bottom: 40px; }
.hero-subtitle { font-size: 12px; letter-spacing: 6px; text-transform: uppercase; color: var(--primary) !important; margin-bottom: 20px; font-weight: 700; background: rgba(255,255,255,0.8); display: inline-block; padding: 5px 15px; border-radius: 20px; }

.btn-hilton, .btn-outline {
    display: inline-block; padding: 15px 40px; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; text-decoration: none; border-radius: 4px; transition: all 0.3s ease;
}
.btn-hilton { background-color: var(--primary); color: #fff; }
.btn-hilton:hover { background-color: var(--text-dark); transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; color: var(--primary); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.scroll-indicator .line { width: 1px; height: 40px; background-color: var(--primary); margin-top: 15px; animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================================
   LAYOUTS DIVIDIDOS
   ========================================================================== */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 50px; }
@media (min-width: 993px) { .split-layout.reverse .split-img { order: 2; } .split-layout.reverse .split-text { order: 1; } }
.split-img { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.split-img:hover img { transform: scale(1.05); }
.split-text h3 { font-family: var(--font-heading); font-size: 32px; color: var(--text-dark); margin-bottom: 20px; }
.split-text p { margin-bottom: 25px; }
.luxury-list { list-style: none; }
.luxury-list li { position: relative; padding-left: 25px; margin-bottom: 12px; font-weight: 500; }
.luxury-list li::before { content: '✔'; position: absolute; left: 0; color: var(--primary); font-size: 16px; }

/* ==========================================================================
   CARDS EVENTOS (GRID)
   ========================================================================== */
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.event-card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; transition: transform 0.4s ease; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.event-img { height: 250px; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.event-card:hover .event-img img { transform: scale(1.1); }
.event-info { padding: 30px; }
.event-info h4 { font-family: var(--font-heading); font-size: 22px; color: var(--text-dark); margin-bottom: 10px; }
.event-info p { font-size: 15px; }

/* ==========================================================================
   NUEVA SECCIÓN: TARIFAS
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.pricing-card { border-radius: 8px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.pricing-card:hover { transform: translateY(-8px); }
.card-blue { background-color: var(--card-blue); }
.card-beige { background-color: var(--card-beige); }
.pricing-header { padding: 40px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.5); }
.pricing-header h3 { font-family: var(--font-body); font-size: 16px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dark); margin-bottom: 10px; }
.price { font-family: var(--font-heading); font-size: 55px; color: var(--text-dark); line-height: 1; }
.price span { font-size: 18px; font-family: var(--font-body); font-weight: 400; text-transform: uppercase; }
.pricing-list { list-style: none; }
.pricing-list li { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.5); font-size: 16px; color: var(--text-dark); font-weight: 500; }
.pricing-footer { padding: 30px; background-color: rgba(255,255,255,0.4); }
.btn-outline-dark { display: inline-block; padding: 12px 30px; border: 2px solid var(--text-dark); color: var(--text-dark); text-decoration: none; font-weight: 700; font-size: 14px; background: #fff; transition: all 0.3s; border-radius: 4px; }
.btn-outline-dark:hover { background: var(--text-dark); color: #fff; }

/* ==========================================================================
   CARRUSEL CLÁSICO Y VIDEO
   ========================================================================== */
.swiper-container-modern { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px 40px 60px 40px; 
    overflow: hidden; 
    position: relative;
}
.swiper-slide {
    height: 350px; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.swiper-slide:hover { transform: scale(1.02); }
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: var(--primary) !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; max-width: 900px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 5px solid #fff; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==========================================================================
   UBICACIÓN Y CONTACTO
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info { padding-right: 40px; }
.contact-details { margin: 40px 0; }
.detail-item { display: flex; align-items: center; margin-bottom: 25px; }
.detail-item .icon { font-size: 24px; margin-right: 20px; background: var(--bg-blue); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); }
.detail-item strong { display: block; color: var(--text-dark); font-family: var(--font-heading); font-size: 18px; }
.detail-item span { font-weight: 400; font-size: 14px; }
.map-container { height: 100%; min-height: 400px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background-color: #1a252f; color: #fff; padding: 60px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-logo img { height: 60px; margin-bottom: 15px; }
.footer-logo h2 { font-family: var(--font-heading); color: #fff; letter-spacing: 3px; font-size: 20px; margin-bottom: 15px; }
.footer-links p { color: #a0aec0; font-size: 14px; }
.footer-links .tagline { color: var(--primary); margin-top: 10px; font-style: italic; }

/* ==========================================================================
   ANIMACIONES DE REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   FONDO PARA LA SECCIÓN "ALOJAMIENTO"
   ========================================================================== */
#alojamiento {
    position: relative;
    background-image: url('imagenes/arkdenoefinca022.jpg'); 
    background-size: cover; background-position: center; background-attachment: fixed;
}
#alojamiento::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 0; }
#alojamiento .container { position: relative; z-index: 1; }

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE (MÓVILES Y TABLETS) - CONSOLIDADO
   ========================================================================== */
@media (max-width: 992px) {
    .split-layout, .events-grid, .contact-grid, .pricing-grid { grid-template-columns: 1fr; }
    .split-layout.reverse .split-img { order: -1; }
    .hero-title { font-size: 50px; }
    .top-bar { flex-direction: column; text-align: center; gap: 5px; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    
    /* Centra el logo forzadamente */
    .header-container { justify-content: center !important; width: 100%; padding: 10px 0 !important; }
    .logo { text-align: center; display: flex; justify-content: center; width: 100%; }
    .logo img { height: 60px !important; width: auto !important; object-fit: contain; }
    
    /* Empuja el texto principal hacia abajo para que el menú no lo tape */
    .hero-content { margin-top: 130px !important; }
    
    .hero-title { font-size: 40px; }
    .section-title { font-size: 32px; }
    
    /* Ajusta márgenes del carrusel en celular */
    .swiper-container-modern { padding: 10px 15px 50px 15px; }

    /* Ajuste para pantallas móviles del botón de WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}