/* 1. RESET & VARIABLES */
:root {
    --arena: #E6DCCF;
    --blanco-roto: #F7F5F2;
    --oliva: #6F7D63;
    --terracota: #B56A4D;
    --negro: #1C1C1C;
    --spacing: 140px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Evita el scroll lateral global */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco-roto);
    color: var(--negro);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* 2. TIPOGRAFÍA */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    letter-spacing: -0.01em;
}

h2 em { font-style: italic; font-weight: 400; }
p { margin-bottom: 1.5rem; font-weight: 300; }

/* 3. LAYOUT GLOBAL */
.container { max-width: 1300px; margin: 0 auto; padding: 0 50px; }
.section-padding { padding: var(--spacing) 0; }
.bg-sand { background-color: var(--arena); }
.bg-white { background-color: #ffffff; }
.text-center { text-align: center; }
.narrow { max-width: 750px; margin: 0 auto; }

/* 4. HERO SECTION */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(75deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-container { position: relative; z-index: 10; width: 100%; }

.hero-content {
    max-width: 850px;
    animation: fadeInUp 1.2s ease-out;
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: var(--arena);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.hero-content h1 em { font-style: italic; font-weight: 400; }

.hero-details {
    max-width: 600px;
    margin-bottom: 3.5rem;
    border-left: 1px solid rgba(230, 220, 207, 0.3);
    padding-left: 30px;
}

.subheadline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    list-style: none;
}

.hero-bullets li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.hero-bullets li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--arena);
    border-radius: 50%;
    margin-right: 12px;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 5. BOTONES */
.btn-primary {
    display: inline-block;
    padding: 25px 50px;
    background-color: var(--negro);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover { 
    background-color: var(--oliva); 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid rgba(28, 28, 28, 0.2);
    color: var(--negro);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.4s;
}
.btn-secondary:hover { border-color: var(--negro); background: var(--negro); color: white; }

/* 6. CONTEXT & SOLUTION */
.context { background-color: #ffffff; overflow: hidden; }
.section-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--terracota);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.scroll-phrases p { font-size: 1.4rem; margin-bottom: 1.5rem; }
.fade-text { opacity: 0.4; }
.highlight { 
    color: var(--terracota); 
    font-style: italic; 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 2.8rem !important; 
    display: block;
    margin-top: 20px;
}

/* 7. GRIDS & INCLUSIONS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.grid-reverse { direction: rtl; }
.grid-reverse > div { direction: ltr; }

.grid-3x2 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 80px 50px; 
    margin-top: 80px; 
}

.inc-item h3 { font-size: 1.5rem; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.inc-number { display: block; font-size: 0.7rem; color: var(--terracota); margin-bottom: 15px; font-weight: 600; letter-spacing: 2px; }

.custom-list { list-style: none; margin-top: 30px; }
.custom-list li { 
    font-size: 1.2rem; 
    padding: 15px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    font-family: 'Cormorant Garamond', serif;
}

/* 8. PACKAGES */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.pkg-card {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 80px 45px;
    text-align: center;
    transition: all 0.6s ease;
}
.pkg-card.featured {
    background: white;
    border: none;
    box-shadow: 0 40px 90px rgba(0,0,0,0.04);
}
.duration { text-transform: uppercase; letter-spacing: 3px; font-size: 0.7rem; margin-bottom: 15px; color: var(--oliva); font-weight: 600; }
.price { font-size: 2.5rem; font-family: 'Cormorant Garamond', serif; margin-bottom: 25px; }
.price span { font-size: 0.8rem; font-family: 'Inter'; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }
.tag { color: var(--terracota); font-weight: 600; letter-spacing: 3px; font-size: 0.65rem; margin-bottom: 20px; display: block; }

/* 9. GALLERY */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 25px;
}
.gallery-item { position: relative; overflow: hidden; background-color: var(--arena); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.caption {
    position: absolute; bottom: 20px; left: 20px; color: white;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
    opacity: 0; transition: 0.5s; z-index: 2;
}
.gallery-item:hover .caption { opacity: 1; }
.gallery-item::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    opacity: 0; transition: 0.5s;
}
.gallery-item:hover::after { opacity: 1; }

/* 10. BOOKING & PRE-QUALIFY FORM */
.booking-card {
    background: white;
    padding: 60px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.pre-qualify-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--arena);
    background: #fff;
    font-family: 'Inter';
    font-size: 0.9rem;
    color: var(--negro);
    outline: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.calendar-day { padding: 15px 0; cursor: pointer; font-size: 0.9rem; transition: 0.3s; }
.calendar-day:hover:not(.blocked) { background-color: var(--arena); }
.calendar-day.selected { background-color: var(--negro); color: white; }
.calendar-day.blocked { color: #ccc; text-decoration: line-through; cursor: not-allowed; background-color: #f9f9f9; }

.booking-summary {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--arena);
}

.total-price { font-size: 2.5rem; color: var(--terracota); margin: 20px 0; }
.cal-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--negro); }

/* 11. SCARCITY & FOOTER */
.scarcity-box { border: 1px solid var(--terracota); padding: 40px; display: inline-block; margin-bottom: 60px; max-width: 650px; }
.large-h2 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1rem; }

.footer-socials { margin-top: 30px; }
.footer-socials a { text-decoration: none; color: var(--negro); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 20px; opacity: 0.6; }

.simple-footer {
    padding: 80px 0 40px 0; 
    border-top: 1px solid var(--arena);
    text-align: center;
}

.footer-brand { letter-spacing: 1px; margin-bottom: 10px; }

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 30px auto;
    width: 100px;
}

.footer-credits {
    margin-top: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.reminder-link {
    color: var(--negro) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-block;
}

.reminder-link:hover {
    color: var(--terracota) !important;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 12. RESPONSIVE OPTIMIZADO (MOBILE FIX) */
@media (max-width: 992px) {
    /* FIX GLOBAL: Previene desbordes */
    .container { 
        padding: 0 25px; 
        width: 100%; 
        max-width: 100vw;
        overflow: hidden; 
    }

    .grid-2, .grid-3x2, .package-grid, .pre-qualify-form { 
        grid-template-columns: 1fr !important; 
        gap: 50px; 
    }

    /* FIX ESPECÍFICO SECCIÓN CONTEXT (Filosofía) */
    .context .grid-2 {
        display: flex !important;
        flex-direction: column;
    }

    .context-img {
        width: 100% !important;
        margin-top: 30px;
    }

    .context-img img {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: cover;
    }

    .grid-reverse { display: flex; flex-direction: column-reverse; }
    .section-padding { padding: 80px 0; }
    
    /* Hero Mobile */
    .hero-content { padding: 0; }
    .hero-details { border-left: none; padding-left: 0; }
    .hero-bullets { grid-template-columns: 1fr; }
    .hero-cta-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    /* Pre-qualify mobile */
    .booking-card { padding: 40px 20px; }

    /* Gallery Mobile */
    .experience-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
    
    /* Fix horizontal scroll on headings */
    h1, h2 { 
        word-wrap: break-word; 
        overflow-wrap: break-word; 
        font-size: clamp(2.2rem, 8vw, 3rem); /* Evita que el texto sea más ancho que la pantalla */
    }
}