/* ==========================================================================
   Variables y Configuración Inicial (Paleta de Lujo)
   ========================================================================== */
:root {
    --bg-warm-white: #FCFBF9;
    --bg-sand: #F4F1EA;
    --text-black: #2A2A2A;
    --text-gray: #555555;
    --green-tropical: #4A5D4E;
    --green-olive: #6C7A65;
    --accent-gold: #C5A880;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-black);
    background-color: var(--bg-warm-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

.bg-sand {
    background-color: var(--bg-sand);
}

/* ==========================================================================
   REGLA ESTRICTA DE LISTAS (Flexbox Obligatorio)
   ========================================================================== */
ul {
    list-style: none;
}

li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

li i {
    flex-shrink: 0;
    margin-right: 10px;
    color: var(--accent-gold);
    font-style: normal;
}

li span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ==========================================================================
   Botones (CRO y Conversión)
   ========================================================================== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
}

.btn-primary {
    background-color: var(--green-tropical);
    color: var(--bg-warm-white);
    border: 1px solid var(--green-tropical);
}

.btn-primary:hover {
    background-color: var(--text-black);
    border-color: var(--text-black);
    color: #fff;
}

.btn-outline {
    background-color: rgba(252, 251, 249, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--bg-warm-white);
    border: 1px solid rgba(252, 251, 249, 0.5);
}

.btn-outline:hover {
    background-color: var(--bg-warm-white);
    color: var(--text-black);
}

.btn-text {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-gold);
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom: 1px solid var(--accent-gold);
}

/* ==========================================================================
   Header Dinámico (Shrinking Header) - Mobile First
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0; /* Header inicial amplio */
    background-color: transparent; 
    transition: all 0.4s ease;
}

.site-header .logo img {
    width: 180px;
    height: auto;
    transition: all 0.4s ease;
}

/* Clase de encogimiento activa por JS */
.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(252, 251, 249, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.site-header.scrolled .logo img {
    width: 130px; /* Reducción elegante del logo */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menú oculto por defecto en móvil */
.main-nav {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-warm-white);
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-black);
    transition: var(--transition-smooth);
}

.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 9px; }
.menu-toggle .bar:nth-child(3) { top: 18px; }

/* ==========================================================================
   Hero Section & Parallax Background
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden; /* Fundamental para el efecto parallax */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Margen extra para el movimiento vertical */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-warm-white);
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--bg-warm-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero h2 {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: var(--bg-sand);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* ==========================================================================
   Parallax Banner Intermedio (CTA Emocional)
   ========================================================================== */
.parallax-banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -25%; /* Le da un margen superior del 25% para empezar el movimiento */
    left: 0;
    width: 100%;
    height: 140%; /* Aumenta la imagen a un 140% para que nunca se quede corta al hacer scroll */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--bg-warm-white);
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
}

.parallax-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.parallax-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Secciones Generales, Tarjetas e Imágenes
   ========================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.intro-text h3 {
    font-size: 2rem;
    color: var(--green-tropical);
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-gray);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--green-tropical);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: var(--bg-warm-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.card-image img, 
.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   Sección de Reseñas (Prueba Social)
   ========================================================================== */
.reviews-section {
    background-color: var(--bg-warm-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.review-card {
    background-color: var(--bg-sand);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
    transition: transform var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.review-author {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-tropical);
}

/* ==========================================================================
   Preguntas Frecuentes (Acordeón de Rendimiento)
   ========================================================================== */
.faq-section {
    background-color: var(--bg-sand);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover, .faq-question.active {
    color: var(--accent-gold);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--green-tropical);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ==========================================================================
   Páginas Individuales de Habitaciones (Galería y Barra Flotante)
   ========================================================================== */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
}

.room-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.room-gallery img:hover {
    transform: scale(1.03);
}

.sticky-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.sticky-booking-bar h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--green-tropical);
}

.sticky-booking-bar p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

body.room-page {
    padding-bottom: 80px;
}

/* ==========================================================================
   Footer Premium (Mobile First Base)
   ========================================================================== */
.site-footer {
    background-color: var(--text-black);
    color: var(--bg-sand);
    padding: 4rem 0 1rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.footer-brand img {
    margin: 0 auto 1.5rem auto;
    display: block;
}

.footer-contact h4, 
.footer-policies h4, 
.footer-links h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.site-footer a { color: var(--bg-sand); }
.site-footer a:hover { color: var(--accent-gold); }
.site-footer address p { margin-bottom: 0.5rem; }

.site-footer li {
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--bg-sand);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

/* ==========================================================================
   Widget Flotante WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Ajustes Específicos para Móvil y Tablets (Max-width: 992px y 767px)
   ========================================================================== */
@media (max-width: 992px) {
    .room-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .site-header .btn-primary {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    .room-gallery {
        grid-template-columns: 1fr;
    }

    .sticky-booking-bar {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1rem;
    }
    
    body.room-page {
        padding-bottom: 120px;
    }
}

/* ==========================================================================
   Media Queries (Escalando a Desktop - Min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .section-padding { padding: 5rem 0; }
    
    .site-header {
        background-color: transparent;
        box-shadow: none;
        padding: 1.5rem 0; /* Header inicial ancho en PC */
    }
    
    .site-header .logo img {
        width: 220px; /* Logo grande en PC */
    }

    .site-header.scrolled {
        background-color: rgba(252, 251, 249, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        padding: 0.8rem 0; /* Header encogido en PC */
    }
    
    .site-header.scrolled .logo img {
        width: 160px; /* Logo encogido en PC */
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle { display: none; }
    
    .main-nav {
        display: flex !important;
        position: static;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row; 
        justify-content: center;
        align-items: center;
        gap: 2.5rem; 
    }
    
    .site-header:not(.scrolled) .main-nav a {
        color: var(--bg-warm-white);
        text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    }
    
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .intro-text h3 { font-size: 2rem; }
    .intro-text p { font-size: 1.1rem; }
    
    .section-title { font-size: 2.8rem; margin-bottom: 3rem; }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .card-content { padding: 2rem; }
    .card-content h3 { font-size: 1.8rem; }
    
    /* Configuración de Reseñas a 3 columnas */
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer Premium: 4 Columnas Exactas y Alineación Editorial en Escritorio */
    .site-footer { 
        text-align: left; 
        padding: 5rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr; 
        gap: 2rem;
        margin-bottom: 4rem;
        justify-items: start;
        align-items: start;
    }

    .footer-brand img { 
        margin: 0 0 1.5rem 0; 
    }
    
    .site-footer li {
        justify-content: flex-start; 
        text-align: left;
    }
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}