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

:root {
    --olive: #4a5230;
    --olive-light: #6b7a3f;
    --olive-pale: #c8d0a0;
    --cream: #f7f3ec;
    --dark: #1a1a18;
    --muted: #6b6557;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}



/* ─── LOADER ─── */
#loader {
    position: fixed; inset: 0;
    background: var(--olive);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    user-select: none;
    -webkit-user-select: none;
}
#loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.loader-logo {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--cream);
    letter-spacing: 0.2em;
    font-weight: 300;
    animation: fadeUp 0.8s ease forwards;
    user-select: none;
    -webkit-user-select: none;
}
.loader-line {
    width: 0; height: 1px;
    background: var(--olive-pale);
    margin-top: 1rem;
    animation: expandLine 1.2s 0.4s ease forwards;
}
@keyframes expandLine { to { width: 120px; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.8rem 4rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s;
}
nav.scrolled {
    background: rgba(247,243,236,0.96);
    padding: 1rem 4rem;
    box-shadow: 0 2px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 0.4s;
}
nav.scrolled .nav-logo { color: var(--olive); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--olive-light);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--olive-light); }
.nav-links a:hover::after { transform: scaleX(1); }
nav.scrolled .nav-links a:hover { color: var(--olive); }

.nav-reserve {
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    color: var(--white) !important;
    background: var(--olive);
    padding: 0.65rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500 !important;
    transition: background 0.3s !important;
}
.nav-reserve:hover { background: var(--olive-light) !important; color: var(--white) !important; }
.nav-reserve::after { display: none !important; }

/* ─── HERO ─── */
#hero {
    height: 100vh;
    position: relative;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    transform: scale(1.05);
    transition: transform 8s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(20,22,15,0.78) 0%,
        rgba(20,22,15,0.25) 55%,
        rgba(20,22,15,0.05) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    padding: 0 8vw 8vh;
    max-width: 900px;
}
.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--olive-pale);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s 1.8s ease forwards;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7vw, 6rem);
    color: var(--white);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s 2s ease forwards;
}
.hero-title em { font-style: italic; color: var(--olive-pale); }
.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    font-weight: 300;
    max-width: 460px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s 2.2s ease forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 3rem; right: 4rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s 2.6s ease forwards;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s 3s infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50%       { transform: scaleY(0.6); opacity: 1; }
}

/* ─── SECTIONS ─── */
section { padding: 8rem 8vw; }
.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--olive-light);
    margin-bottom: 1rem;
    display: block;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--olive); }
.divider {
    width: 60px; height: 1px;
    background: var(--olive-light);
    margin: 2rem 0;
}

/* ─── ABOUT ─── */
#about {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}
.about-text p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 3rem;
}
.stat {
    background: var(--cream);
    padding: 1.8rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--olive);
    font-weight: 300;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.5rem;
}
.about-image { position: relative; }
.about-image img {
    width: 100%; height: 580px;
    object-fit: cover; display: block;
}
.about-image-accent {
    position: absolute;
    bottom: -2rem; left: -2rem;
    width: 60%; height: 40%;
    border: 2px solid var(--olive-pale);
    z-index: 0;
}
.about-image > * { position: relative; z-index: 1; }

/* ─── FEATURES ─── */
#features { background: var(--cream); text-align: center; }
#features .section-title { max-width: 600px; margin: 0 auto 1rem; }
#features .divider { margin: 2rem auto; }
#features > p {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.feature {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    text-align: left;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--olive);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.feature:hover::before { transform: scaleX(1); }
.feature:hover { background: var(--olive); }
.feature:hover .feature-icon,
.feature:hover h3,
.feature:hover p { color: var(--cream); }
.feature-icon {
    font-size: 2rem; color: var(--olive);
    display: block; margin-bottom: 1.5rem;
    transition: color 0.4s;
}
.feature h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem; font-weight: 400;
    color: var(--dark); margin-bottom: 0.8rem;
    transition: color 0.4s;
}
.feature p {
    color: var(--muted); font-size: 0.88rem;
    line-height: 1.8; font-weight: 300;
    transition: color 0.4s;
}

/* ─── GALLERY ─── */
#gallery { background: var(--white); padding-bottom: 0; }
.gallery-header { margin-bottom: 3rem; }
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 2px;
}
.gallery-item { overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s ease, filter 0.4s;
    filter: brightness(0.92);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1); }
.gallery-item-1 { grid-column: 1 / 6;  grid-row: 1 / 3; }
.gallery-item-2 { grid-column: 6 / 9;  grid-row: 1 / 2; }
.gallery-item-3 { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item-4 { grid-column: 6 / 9;  grid-row: 2 / 3; }
.gallery-item-5 { grid-column: 9 / 13; grid-row: 2 / 3; }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem; letter-spacing: 0.1em;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ─── ROOMS ─── */
#rooms { background: var(--cream); }
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px; margin-top: 4rem;
}
.room-card {
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.4s;
}
.room-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.room-img { height: 260px; overflow: hidden; }
.room-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.room-card:hover .room-img img { transform: scale(1.05); }
.room-info { padding: 2rem; }
.room-type {
    font-size: 0.65rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--olive-light);
    margin-bottom: 0.5rem;
}
.room-name {
    font-family: var(--font-serif);
    font-size: 1.5rem; font-weight: 400;
    color: var(--dark); margin-bottom: 0.8rem;
}
.room-desc {
    font-size: 0.85rem; color: var(--muted);
    line-height: 1.8; font-weight: 300; margin-bottom: 1.5rem;
}
.room-amenities { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amenity {
    font-size: 0.7rem; letter-spacing: 0.08em;
    color: var(--olive); border: 1px solid var(--olive-pale);
    padding: 0.3rem 0.7rem; border-radius: 2px;
}

/* ─── NATURE ─── */
#nature {
    background: var(--olive);
    color: var(--cream);
    position: relative; overflow: hidden;
    padding: 8rem 8vw;
}
#nature::before {
    content: 'NATUREZA';
    position: absolute;
    font-family: var(--font-serif);
    font-size: 20vw; font-weight: 300;
    color: rgba(255,255,255,0.04);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap; letter-spacing: 0.15em;
    pointer-events: none;
}
#nature .section-label { color: var(--olive-pale); }
#nature .section-title { color: var(--cream); }
#nature .divider { background: var(--olive-pale); }
.nature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw; align-items: center; margin-top: 4rem;
}
.nature-text p {
    color: rgba(247,243,236,0.78);
    line-height: 1.9; font-size: 0.95rem;
    font-weight: 300; margin-bottom: 1.2rem;
}
.nature-list {
    list-style: none; margin-top: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.nature-list li {
    display: flex; align-items: center; gap: 1rem;
    color: var(--olive-pale); font-size: 0.9rem;
}
.nature-list li::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--olive-pale); flex-shrink: 0;
}
.nature-image img {
    width: 100%; height: 450px;
    object-fit: cover; display: block;
}

/* ─── RESERVE ─── */
#reserve {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; padding: 0; min-height: 600px;
}
.reserve-image {
    min-height: 500px;
}
.reserve-content {
    padding: 8rem 6vw;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--cream);
}
.reserve-content p {
    color: var(--muted); line-height: 1.8;
    font-size: 0.95rem; font-weight: 300;
    margin-bottom: 3rem; max-width: 400px;
}
.reserve-options { display: flex; flex-direction: column; gap: 1rem; }
.reserve-btn {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 2rem; text-decoration: none;
    font-size: 0.8rem; letter-spacing: 0.15em;
    text-transform: uppercase; font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent; max-width: 340px;
}
.reserve-btn-icon { font-size: 1.2rem; flex-shrink: 0; }
.reserve-btn-primary { background: var(--olive); color: var(--cream); }
.reserve-btn-primary:hover { background: var(--olive-light); }
.reserve-btn-whatsapp { background: #25D366; color: var(--white); }
.reserve-btn-whatsapp:hover { background: #1da851; }
.reserve-btn-secondary {
    background: transparent; color: var(--olive);
    border-color: var(--olive-pale);
}
.reserve-btn-secondary:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.reserve-note {
    margin-top: 2rem; font-size: 0.75rem;
    color: var(--muted); font-style: italic;
}

/* ─── LOCATION ─── */
#location {
    background: var(--dark); color: var(--cream);
    padding: 8rem 8vw;
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 8vw; align-items: center;
}
#location .section-label { color: var(--olive-pale); }
#location .section-title { color: var(--cream); }
#location .divider { background: var(--olive-pale); }
.location-info p {
    color: rgba(247,243,236,0.65);
    font-size: 0.95rem; line-height: 1.9;
    font-weight: 300; margin-bottom: 2.5rem;
}
.location-details { display: flex; flex-direction: column; gap: 1.2rem; }
.location-item { display: flex; align-items: flex-start; gap: 1rem; }
.location-item-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--olive-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0; color: var(--olive-pale);
}
.location-item-text strong {
    display: block; font-size: 0.7rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--olive-pale); margin-bottom: 0.2rem;
}
.location-item-text span {
    font-size: 0.9rem;
    color: rgba(247,243,236,0.65); font-weight: 300;
}
.map-container { position: relative; height: 400px; overflow: hidden; }
.map-container iframe {
    width: 100%; height: 100%; border: none;
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.4s;
}
.map-container:hover iframe { filter: grayscale(0) contrast(1); }

/* ─── FOOTER ─── */
footer { background: var(--olive); padding: 4rem 8vw 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}
.footer-brand .logo {
    font-family: var(--font-serif);
    font-size: 2rem; color: var(--cream);
    font-weight: 300; letter-spacing: 0.1em;
    margin-bottom: 1rem; display: block;
}
.footer-brand p {
    color: rgba(247,243,236,0.55);
    font-size: 0.85rem; line-height: 1.8;
    font-weight: 300; max-width: 280px;
}
.footer-col h4 {
    font-size: 0.65rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--olive-pale);
    margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul li a {
    color: rgba(247,243,236,0.55); text-decoration: none;
    font-size: 0.88rem; font-weight: 300; transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: rgba(247,243,236,0.4); font-size: 0.78rem; }
.footer-social { display: flex; gap: 1rem; }
.social-link {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(247,243,236,0.55); text-decoration: none;
    font-size: 0.8rem; transition: all 0.3s;
}
.social-link:hover { background: var(--white); color: var(--olive); border-color: var(--white); }

/* ─── LIGHTBOX ─── */
#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.92); z-index: 5000;
    align-items: center; justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(8px);
}
#lightbox.open { display: flex; }
#lightbox-img {
    max-width: 90vw; max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.35s ease;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
#lightbox-caption {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 1.2rem;
}
#lightbox-close {
    position: absolute; top: 2rem; right: 2.5rem;
    color: rgba(255,255,255,0.6); font-size: 2rem;
    background: none; border: none; transition: color 0.3s;
    line-height: 1; cursor: pointer;
}
#lightbox-close:hover { color: white; }

/* ─── REVEAL ON SCROLL ─── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    nav.scrolled { padding: 0.8rem 2rem; }
    .nav-links { display: none; }
    section { padding: 5rem 6vw; }
    #about, .nature-grid, #location, #reserve { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .features-grid { grid-template-columns: 1fr; gap: 2px; }
    .rooms-grid { grid-template-columns: 1fr; }
    .gallery-masonry { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item-1, .gallery-item-2, .gallery-item-3,
    .gallery-item-4, .gallery-item-5 { grid-column: auto; grid-row: auto; height: 220px; }
    .gallery-masonry .gallery-item-1 { grid-column: 1 / 3; height: 280px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .reserve-image { min-height: 300px; }
    .hero-content { padding: 0 6vw 8vh; }
    #nature::before { font-size: 30vw; }
}