:root {
    --primary-brown: #4a3728;
    --accent-orange: #d48c45;
    --accent-olive: #727d4c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f7f2;
    --card-bg: #ffffff;
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
    --radius: 12px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ─── HEADER ─── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom-color: rgba(74,55,40,0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 36px;
    width: auto;
}

/* ─── CONTAINER ─── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── SECTION TITLE ─── */

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* ─── HERO ─── */

.hero {
    margin-top: 60px;
    height: 85vh;
    min-height: 480px;
    max-height: 720px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    background: none;
    width: 100%;
    padding: 3rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.hero-location svg {
    flex-shrink: 0;
}

/* ─── BOTÓN BOOKING ─── */

.btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #003580;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,53,128,0.35);
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
}

.btn-booking:hover {
    background-color: #00224f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,53,128,0.45);
}

.btn-booking--hero {
    font-size: 1rem;
    padding: 1rem 2.25rem;
}

/* ─── HERO CTA ─── */

.hero-cta {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta__direct {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-cta__note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding-left: 0.25rem;
    letter-spacing: 0.01em;
}

.btn-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #7a5c3a;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(122, 92, 58, 0.45);
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
}

.btn-direct:hover {
    background-color: #5e4328;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 92, 58, 0.55);
}

.btn-direct__discount {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.1em 0.5em;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ─── HIGHLIGHTS ─── */

.highlights {
    background: var(--card-bg);
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(74,55,40,0.07);
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    list-style: none;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--primary-brown);
}

.highlight-icon {
    display: flex;
    color: var(--accent-orange);
}

.highlight-label {
    font-weight: 500;
}

.highlight-item--rating .highlight-icon {
    color: var(--accent-olive);
}

.highlight-item--rating .highlight-label strong {
    color: var(--primary-brown);
    font-weight: 700;
}

/* ─── GALERÍA ─── */

.gallery-section {
    padding: 4rem 0;
}

.gallery-section .container {
    margin-bottom: 0;
}

.gallery-section .section-title {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 220px;
    gap: 8px;
    margin-top: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #e0d8ce;
    display: block;
    position: relative;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.gallery-item:first-child {
    border-radius: var(--radius) 0 0 0;
}

.gallery-item--main {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.08);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
    z-index: 1;
}

/* ─── CARACTERÍSTICAS ─── */

.features-section {
    padding: 4rem 0;
    background: var(--card-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    border-top: 3px solid var(--accent-orange);
}

.feature-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.feature-card__title svg {
    flex-shrink: 0;
    color: var(--accent-orange);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1.2rem;
    position: relative;
}

.feature-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}

/* ─── UBICACIÓN ─── */

.location-section {
    padding: 4rem 0;
}

.location-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -1.25rem;
    margin-bottom: 1.75rem;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74,55,40,0.1);
}

.map-wrapper iframe {
    display: block;
}

.map-link {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.map-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-olive);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.map-link a:hover {
    color: var(--primary-brown);
    text-decoration: underline;
}

/* ─── DISPONIBILIDAD ─── */

.availability-section {
    padding: 4rem 0;
}

/* ─── FOOTER ─── */

.site-footer {
    background: var(--primary-brown);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ─── LIGHTBOX ─── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,5,0,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0.25rem 0.5rem;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    opacity: 0.75;
    transition: opacity 0.2s, background 0.2s;
    z-index: 1001;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255,255,255,0.22);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .gallery-item--main {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-auto-rows: 200px;
    }

    .hero-overlay {
        padding: 2rem 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.4rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }
}
