/* =============================================
   CABAÑAS DEL BOSQUE - ESTILOS PRINCIPALES
   ============================================= */

/* =============================================
   VARIABLES CSS - CUSTOMIZA AQUÍ
   ============================================= */
:root {
    /* Colores principales */
    --primary: #2A5934;
    --primary-dark: #1e4027;
    --primary-light: #3d7a4a;
    --secondary: #8B4513;
    --secondary-dark: #6b350f;
    --accent: #D4A574;
    --accent-light: #e8c9a8;

    /* Fondos */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-card: #ffffff;

    /* Texto */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaciado */
    --section-padding: 100px;
    --container-max: 1280px;
}

/* Tema Oscuro */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252540;
    --text-primary: #f0f0f5;
    --text-secondary: #b8b8c8;
    --text-muted: #8888a0;
    --glass-bg: rgba(30, 30, 50, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* =============================================
   RESET Y BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;

    /* SEGURIDAD FRONTEND: Evitar selección de texto */
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

img {
    max-width: 100%;
    height: auto;
    display: block;

    /* Evitar arrastre de imágenes */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* =============================================
   UTILIDADES
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(42, 89, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 89, 52, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: white;
    transform: scale(1.05);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* =============================================
   HEADER Y NAVEGACIÓN
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header.scrolled {
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(42, 89, 52, 0.1);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(20deg);
}



.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   PROMO CAROUSEL (OFERTAS ESPECIALES - TARJETA VERTICAL)
   ============================================= */
.promo-slider-wrapper {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 250px;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.promo-slider-wrapper.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.promo-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.promo-close-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.promo-slider-container {
    width: 100%;
    position: relative;
    padding-bottom: 25px;
    /* space for dots */
}

.promo-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    min-width: 100%;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0;
}

.promo-slide-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.promo-slide-content {
    width: 100%;
    padding: 15px;
    text-align: center;
    background-color: var(--surface);
    color: var(--text);
    box-sizing: border-box;
}

.promo-slide-content h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.promo-slide-content p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .promo-slider-wrapper {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: auto;
    }
}

.promo-slider-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.promo-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 220px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(42, 89, 52, 0.5) 100%);
}

.hero-content {
    max-width: 700px;
    color: white;
    padding: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-feature span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Social Link Hover Effects */
a.hero-feature {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy effect */
    cursor: pointer;
}

a.hero-feature:hover {
    transform: translateY(-8px);
}

a.hero-feature:hover .hero-feature-icon {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.hero-feature-icon {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Prepare for border transition */
}

/* Hero Booking Widget */
.hero-booking {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-xl);
}

.booking-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

/* Date inputs - prevent text selection highlight */
.form-group input[type="date"] {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    caret-color: transparent;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

/* Hide the blue selection by making it same color as text */
.form-group input[type="date"]::selection {
    background: transparent;
    color: var(--text-primary);
}

.form-group input[type="date"]::-moz-selection {
    background: transparent;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.booking-form .btn {
    flex-shrink: 0;
    height: 52px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 380px;
    }

    .hero-booking {
        width: calc(100% - 32px);
        padding: 20px;
        bottom: 20px;
    }

    .booking-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .booking-form .btn {
        width: 100%;
        margin-top: 8px;
    }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    transform: translate(20px, 20px);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============================================
   CABAÑAS SECTION
   ============================================= */
.cabanas {
    background: var(--bg-primary);
}

#cabanas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.cabana-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cabana-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.cabana-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #d4c9b8;
}

.cabana-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.cabana-card:hover .cabana-image img {
    transform: scale(1.1);
}

.cabana-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cabana-card:hover .cabana-overlay {
    opacity: 1;
}

.cabana-content {
    padding: 24px;
}

.cabana-content h3 {
    margin-bottom: 8px;
}

.cabana-short {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cabana-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cabana-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cabana-price .price-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cabana-price .price-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery {
    background: var(--bg-secondary);
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   GALLERY V2 - REBUILT GRID
   ============================================= */
.gallery-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item-v2 {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item-v2:hover img {
    transform: scale(1.1);
}

.gallery-caption-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item-v2:hover .gallery-caption-v2 {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

#lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 16px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Lightbox responsive */
@media (max-width: 768px) {

    .lightbox-content {
        width: 100%;
        height: auto;
        max-width: 100vw;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .lightbox-content img {
        width: 100%;
        height: auto;
        max-height: 85vh;
        border-radius: 8px;
        object-fit: contain;
    }

    .lightbox-caption {
        font-size: 1rem;
        margin-top: 10px;
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        top: 12px;
        right: 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* =============================================
   CABANA DETAIL MODAL
   ============================================= */
#cabana-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

#cabana-detail-modal.active {
    display: block;
}

#cabana-detail-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.cabana-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    border-radius: 16px;
    max-width: 1100px;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Close button inside cabin modal: absolute to the card, contrasts against dark surface */
.cabana-modal-content .lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    z-index: 15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cabana-modal-content .lightbox-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    text-shadow: none;
}

.cabana-modal-gallery {
    position: relative;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    min-height: 350px;
}

.cabana-modal-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    height: auto;
    overflow: hidden;
}

.cabana-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.cabana-gallery-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.cabana-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cabana-gallery-prev,
.cabana-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.cabana-gallery-prev {
    left: 10px;
}

.cabana-gallery-next {
    right: 10px;
}

.cabana-gallery-prev:hover,
.cabana-gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cabana-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

.cabana-modal-info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.cabana-modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cabana-modal-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-primary, #4ade80);
}

.cabana-modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cabana-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.cabana-badge {
    background: rgba(42, 89, 52, 0.1); /* --primary with opacity */
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

[data-theme="dark"] .cabana-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cabana-modal-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 10px 0 12px;
    color: var(--text-primary);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

[data-theme="dark"] .amenity-item {
    background: rgba(255, 255, 255, 0.05);
}

.cabana-beds-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

[data-theme="dark"] .cabana-beds-info {
    background: rgba(255, 255, 255, 0.05);
}

.cabana-beds-info strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.cabana-beds-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.amenity-icon {
    font-size: 1.1rem;
}

.cabana-modal-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.cabana-modal-price-wrap .price-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cabana-modal-price-wrap .price-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cabana-modal-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.cabana-modal-action .btn {
    padding: 12px 30px;
    font-size: 1.05rem;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .cabana-modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .cabana-modal-gallery {
        border-radius: 16px 16px 0 0;
        min-height: auto;
    }

    .cabana-modal-img-wrap {
        aspect-ratio: 4/3;
    }



    .cabana-modal-info {
        padding: 24px 20px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}



/* =============================================
   FAQ SECTION
   ============================================= */
.faq {
    background: var(--bg-primary);
}

#faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(42, 89, 52, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    line-height: 1.7;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: white;
}

.testimonials .section-header h2::after {
    background: linear-gradient(90deg, var(--accent), white);
}

#testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: white;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(42, 89, 52, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(42, 89, 52, 0.3);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 1rem;
    font-family: inherit;
    min-height: 150px;
    resize: vertical;
    transition: var(--transition);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    display: none;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.form-message.success {
    background: rgba(42, 89, 52, 0.1);
    color: var(--primary);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =============================================
   MODALS
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

/* Booking Modal */
.booking-modal-content {
    width: 95%;
    max-width: 1000px;
    padding: 40px;
}

.booking-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.gallery-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
}

.cabana-specs {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cabana-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.amenity-icon {
    font-size: 1.25rem;
}

.booking-form-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-dates-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.date-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-block label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.date-block input,
.date-block select {
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.price-breakdown {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cart Modal */
.cart-modal-content {
    width: 95%;
    max-width: 600px;
    max-height: 80vh;
    padding: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
    font-size: 1.5rem;
}

#cart-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.cart-empty h3 {
    margin: 20px 0 10px;
}

.cart-empty p {
    margin-bottom: 24px;
}

.cart-items {
    margin-bottom: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-item-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.cart-item-nights {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.item-total {
    font-weight: 700;
    color: var(--primary);
}

.btn-remove {
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-remove:hover {
    color: #dc3545;
}

.cart-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-left: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.service-icon {
    font-size: 1.25rem;
}

.service-details {
    flex: 1;
}

.service-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.service-days {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-remove-small {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove-small:hover {
    color: #dc3545;
}

.cart-services-section {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-services-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.services-quick-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    transition: var(--transition);
}

.service-add-btn:hover {
    background: var(--primary);
    color: white;
}

.service-price-tag {
    font-weight: 600;
    color: var(--primary);
}

.service-add-btn:hover .service-price-tag {
    color: white;
}

.cart-summary {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions .btn {
    flex: 1;
}

/* =============================================
   NOTIFICATIONS
   ============================================= */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notification-success .notification-icon {
    background: rgba(42, 89, 52, 0.1);
    color: var(--primary);
}

.notification-error .notification-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.notification-warning .notification-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.notification-info .notification-icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}



/* =============================================
   ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   RESPONSIVE DESIGN - FLUID / ALL SCREENS
   ============================================= */

/* --- Tablet landscape & small desktops (≤1200px) --- */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    #cabanas-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* --- Tablet portrait (≤1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }

    .about-grid,
    .contact-grid,
    .booking-modal-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .reserva-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .hero-booking {
        max-width: 100%;
        padding: 20px 24px;
    }
}

/* --- Mobile large / phablet (≤768px) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-max: 100%;
    }

    /* ---- NAV MOBILE ---- */

    /* Backdrop-filter on .header creates a containing block that traps
       position:fixed children. Disable it when the menu is open. */
    .header:has(.nav-menu.active),
    .header.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background:
            radial-gradient(ellipse at 20% 0%, rgba(42, 89, 52, 0.25) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 100%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
            linear-gradient(165deg, #0c1a12 0%, #0f0f1a 40%, #141428 100%);
        backdrop-filter: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        overflow: hidden;
    }

    /* Subtle decorative line at the top */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 3px;
        opacity: 0;
        transition: opacity 0.4s ease 0.3s;
    }

    /* Branding at the bottom */
    .nav-menu::after {
        content: '🏡 Campo Cuyen';
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--font-heading);
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.2);
        letter-spacing: 2px;
        text-transform: uppercase;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.4s ease 0.5s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu.active::before,
    .nav-menu.active::after {
        opacity: 1;
    }

    /* Links styling */
    .nav-link {
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-align: center;
        padding: 18px 40px;
        border-radius: var(--radius-md);
        color: rgba(255, 255, 255, 0.75);
        transition: all 0.3s ease;
        width: 75%;
        max-width: 280px;
        position: relative;
        /* Stagger animation setup */
        opacity: 0;
        transform: translateY(20px);
    }

    /* Decorative line below each link */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
        transition: width 0.4s ease;
    }

    .nav-link:last-child::after {
        display: none;
    }

    /* Staggered entrance animation for each link */
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.08s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.14s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.20s;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.26s;
    }

    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.32s;
    }

    .nav-menu.active .nav-link:nth-child(6) {
        transition-delay: 0.38s;
    }

    .nav-link::after {
        width: 40%;
    }

    .nav-link:hover,
    .nav-link:active {
        color: #ffffff;
        background: rgba(42, 89, 52, 0.2);
        text-shadow: 0 0 20px rgba(42, 89, 52, 0.4);
    }

    .nav-link:hover::after,
    .nav-link:active::after {
        width: 70%;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    /* Hamburger toggle button */
    .menu-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .menu-toggle span {
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .menu-toggle.active span {
        background: #fff;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* ---- LOGO ---- */
    .logo {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    /* ---- HERO ---- */
    .hero {
        min-height: auto;
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .hero-content {
        padding: 20px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero p {
        font-size: clamp(0.95rem, 3vw, 1.15rem);
    }

    .hero-booking {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 20px;
        width: calc(100% - 40px);
        padding: 18px;
    }

    .booking-form {
        flex-direction: column;
    }

    .booking-form .form-group {
        width: 100%;
    }

    .booking-form .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 16px;
    }

    /* ---- HERO SOCIAL LINKS ---- */
    .hero-social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-link-hero {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* ---- ABOUT ---- */
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .about-image {
        max-width: 75%;
        margin: 0 auto;
    }

    .about-image::after {
        transform: translate(10px, 10px);
    }


    /* ---- CABAÑAS ---- */
    #cabanas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cabana-image {
        height: 200px;
    }

    .cabana-content {
        padding: 18px;
    }

    .cabana-card:hover {
        transform: none;
    }

    /* ---- GALLERY ---- */
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
    }

    .gallery-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* ---- GALLERY REBUILT ---- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-grid .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item {
        height: 250px;
    }

    /* ---- FAQ ---- */
    .faq-question {
        padding: 16px 45px 16px 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 20px 16px !important;
    }

    /* ---- CONTACT ---- */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    /* ---- FOOTER ---- */
    .footer {
        text-align: center;
        padding-bottom: 80px;
        /* espacio para botón WhatsApp flotante */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* ---- MODALS ---- */
    .booking-dates-summary {
        grid-template-columns: 1fr;
    }

    .cabana-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-item-image {
        width: 100%;
        height: 120px;
    }

    .cart-item-price {
        flex-direction: row;
        justify-content: space-between;
    }

    /* ---- NOTIFICATIONS ---- */
    .notification {
        left: 16px;
        right: 16px;
        bottom: 20px;
    }

    /* ---- WHATSAPP ---- */
    .btn-whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    /* ---- SECTION HEADERS ---- */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* --- Mobile standard (≤576px) --- */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .hero-booking {
        margin: 16px;
        width: calc(100% - 32px);
        padding: 16px;
    }

    .hero-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link-hero {
        justify-content: center;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 1.75rem);
    }

    #cabanas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cabana-image {
        height: 180px;
    }

    .cabana-content {
        padding: 16px;
    }

    .cabana-content h3 {
        font-size: 1.1rem;
    }

    .cabana-short {
        font-size: 0.9rem;
    }

    .cabana-meta {
        gap: 10px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .gallery-grid-v2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .gallery-item-v2 {
        aspect-ratio: 1/1;
    }

    #gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 10px;
        border-radius: var(--radius-md);
    }

    .booking-modal-content,
    .cart-modal-content {
        padding: 20px;
    }

    .testimonial-card {
        padding: 24px;
    }

    /* Reserva page */
    .reserva-header h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .reserva-header p {
        font-size: 1rem;
    }

    .reserva-form-container {
        padding: 16px;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .gallery-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile mini (≤400px) --- */
@media (max-width: 400px) {
    :root {
        --section-padding: 40px;
    }

    .container {
        padding: 0 12px;
    }

    .header {
        padding: 10px 0;
    }

    .header.scrolled {
        padding: 8px 0;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .hero-content {
        padding: 16px;
    }

    .hero-booking {
        margin: 12px;
        width: calc(100% - 24px);
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .cabana-content {
        padding: 16px;
    }

    .cabana-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .summary-card {
        padding: 16px;
    }

    .summary-dates {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .summary-arrow {
        transform: rotate(90deg);
    }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-booking {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        width: 90%;
    }
}

/* --- Very tall phones (notch safe area) --- */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .btn-whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}


/* =============================================
   WHATSAPP FLOAT BUTTON
   ============================================= */
.btn-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}




/* =============================================
   FOOTER (extended)
   ============================================= */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.admin-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   FAQ SECTION (details/summary version)
   ============================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 50px 20px 24px;
    display: block;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    list-style: none;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question:hover {
    background: rgba(42, 89, 52, 0.05);
}

.faq-answer {
    display: block !important;
    padding: 0 24px 20px !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    max-height: none !important;
}

/* =============================================
   SUGERENCIA DE CABAÑAS
   ============================================= */

.cabana-sugerencia {
    background: rgba(42, 89, 52, 0.15);
    border: 1px solid rgba(42, 89, 52, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.cabana-sugerencia .sugerencia-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .cabana-sugerencia {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}

/* =============================================
   PÁGINA DE RESERVA
   ============================================= */

.reserva-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.reserva-header {
    text-align: center;
    margin-bottom: 48px;
}

.reserva-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.reserva-header p {
    color: var(--text-secondary);
    font-size: 1.35rem;
}

.reserva-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Form Container */
.reserva-form-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

/* Cabin Suggestion Box */
.cabana-sugerencia-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
}

.cabana-sugerencia-box .icon {
    font-size: 2rem;
}

.cabana-sugerencia-box .sugerencia-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cabana-sugerencia-box .sugerencia-content strong {
    font-size: 1.1rem;
}

.cabana-sugerencia-box .sugerencia-content span {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Grid */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.servicio-option input {
    display: none;
}

.servicio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.servicio-option input:checked+.servicio-card {
    border-color: var(--primary);
    background: rgba(42, 89, 52, 0.05);
}

.servicio-card:hover {
    border-color: var(--primary-light);
}

.servicio-icon {
    font-size: 1.5rem;
}

.servicio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.servicio-info strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.servicio-info small {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.servicio-precio {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Summary Card */
.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.summary-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.summary-date {
    text-align: center;
}

.summary-date .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.summary-date .value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.summary-details {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.muted {
    color: var(--text-muted);
    font-style: italic;
}

.summary-cabanas {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    margin-top: 8px;
}

.summary-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    font-size: 1.5rem;
    color: var(--primary);
}

.summary-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 16px 0;
    line-height: 1.5;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1.1rem;
}

.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-methods p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .reserva-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .reserva-page {
        padding-top: 100px;
    }

    .reserva-header h1 {
        font-size: 1.8rem;
    }

    .reserva-form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card {
        padding: 14px;
    }

    .servicio-info strong {
        font-size: 0.95rem;
    }

    .servicio-info small {
        font-size: 0.8rem;
    }

    .summary-card {
        padding: 20px;
    }
}


/* =============================================
   GALLERY SECTION (REBUILT)
   ============================================= */

.gallery {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    /* Por defecto 2 columnas para que quede 2x2 simétrico */
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Altura fija para uniformidad estricta */
    height: 320px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* CLAVE: object-fit cover recorta la imagen para llenar el espacio sin deformar */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}



/* =============================================
   COMPONENT: TOGGLE SWITCH
   ============================================= */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    margin-left: 15px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.slider {
    background-color: #25d366;
    /* WhatsApp Green / Brighter */
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
    /* Glow effect */
}

.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #25d366;
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(22px);
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    /* Shadow for depth */
}

/* =============================================
   UTILITY: HIDE PRICES
   ============================================= */
.hidden-price,
.cabana-price,
.price-breakdown,
.modal-price,
.cart-item-price,
.cart-summary,
.service-price,
.service-price-tag,
.summary-total,
.payment-methods,
.price-total,
.total-amount,
.servicio-precio,
.cabana-footer .btn-light {
    display: none !important;
}

/* Adjustments for hidden elements */
.cabana-footer {
    display: flex;
    justify-content: flex-end;
    /* Push button to right if price is hidden */
}

/* =============================================
   ELFSIGHT WIDGET
   ============================================= */
/* Hide the admin toolbar (Only seen by widget owner) */
.eapps-widget-toolbar {
    display: none !important;
}

div[class*="eapps-widget-toolbar"] {
    display: none !important;
}

/* Hide 'Free Google Reviews Widget' badge */
a[href*="elfsight.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =============================================
   FLATPICKR CUSTOM STYLES
   ============================================= */
.flatpickr-day.blocked-date {
    background-color: #ffcccc !important;
    color: #cc0000 !important;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: #ffcccc !important;
}

.flatpickr-day.blocked-date:hover {
    background-color: #ffcccc !important;

    color: #cc0000 !important;
}

/* =============================================
   HERO SOCIAL LINKS
   ============================================= */
.hero-social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.social-link-hero:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.social-link-hero .social-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-social-links {
        justify-content: center;
    }
}

/* =============================================
   PROMO BANNER & EXPERIENCIAS
   ============================================= */

/* Promo Banner */
.promo-banner-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promo-icon {
    font-size: 1.2rem;
}

/* =============================================
   EXPERIENCES CAROUSEL SLIDER
   ============================================= */

.experiences-carousel {
    padding-bottom: 60px;
}

.exp-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 1200px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 420px;
}

/* Individual slide — split layout */
.exp-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.exp-slide--active {
    opacity: 1;
    z-index: 1;
}

/* Image frame (left) */
.exp-slide__image-frame {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.exp-slide__img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.exp-slide--active .exp-slide__img {
    transform: scale(1);
}

/* Text panel (right) */
.exp-slide__panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 40px 40px 20px;
    transform: translateX(20px);
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
    opacity: 0;
}

.exp-slide--active .exp-slide__panel {
    transform: translateX(0);
    opacity: 1;
}

.exp-slide__title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-slide__divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary, #4a7c59), var(--primary-light, #6fa67a));
    border-radius: 2px;
    margin-bottom: 20px;
}

.exp-slide__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 400px;
    font-style: italic;
}

/* Navigation arrows */
.exp-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.exp-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.1);
}

.exp-slider__arrow--prev {
    left: 14px;
}

.exp-slider__arrow--next {
    right: 14px;
}

/* Dot indicators */
.exp-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 25%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.exp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.exp-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.exp-dot--active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .exp-slider {
        min-height: auto;
        border-radius: 12px;
    }

    .exp-slide {
        flex-direction: column;
        position: relative;
    }

    .exp-slide:not(.exp-slide--active) {
        display: none;
    }

    .exp-slide__image-frame {
        flex: none;
        padding: 20px 20px 10px;
        width: 100%;
    }

    .exp-slide__img {
        max-height: 260px;
        width: auto;
    }

    .exp-slide__panel {
        flex: none;
        padding: 16px 20px 20px;
    }

    .exp-slide__title {
        font-size: 1.3rem;
    }

    .exp-slide__desc {
        font-size: 0.95rem;
    }

    .exp-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .exp-slider__dots {
        left: 50%;
        bottom: auto;
        position: relative;
        justify-content: center;
        padding: 10px 0;
    }
}

/* =============================================
   TOAST NOTIFICATIONS (Alertas Modernas)
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary);
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-success { border-left-color: #10B981; }
.toast-error { border-left-color: #EF4444; }
.toast-warning { border-left-color: #F59E0B; }
.toast-info { border-left-color: #3B82F6; }

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex-grow: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 10px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .toast-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .toast {
        max-width: 100%;
    }
}