/* ==========================================
   Rumah Mila - Premium Stylesheet
   Colors & Typography from specifications
   ========================================== */

:root {
    /* Color Palette */
    --marfil-estuco: #EAE6DF;
    --arena-suave: #D9D2C3;
    --piedra-gris: #CFC8BB;
    --verde-salvia: #A8B09A;
    --olivo: #6F7D62;
    --pizarra-oscura: #2F2F33;
    --blanco: #FFFFFF;

    /* Typography */
    --font-titles: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing System - 8px base */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 2rem;      /* 32px */
    --spacing-lg: 4rem;      /* 64px */
    --spacing-xl: 6rem;      /* 96px */
    --spacing-xxl: 8rem;     /* 128px */

    /* Premium Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(47, 47, 51, 0.08);
    --shadow-md: 0 4px 16px rgba(47, 47, 51, 0.12);
    --shadow-lg: 0 8px 32px rgba(47, 47, 51, 0.16);
    --shadow-xl: 0 16px 48px rgba(47, 47, 51, 0.2);

    /* Z-index layers */
    --z-modal: 1000;
    --z-lightbox: 2000;
    --z-header: 100;
    --z-dropdown: 50;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: clamp(0.9375rem, 1vw + 0.5rem, 1rem);
    line-height: 1.7;
    color: var(--pizarra-oscura);
    background-color: var(--marfil-estuco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Scroll Animations
   Progressive Enhancement: Visible by default, animated when JS is available
   ========================================== */

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only hide when JS is ready to animate */
.js-enabled .fade-in-up:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .fade-in:not(.is-visible) {
    opacity: 0;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .slide-in-left:not(.is-visible) {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .slide-in-right:not(.is-visible) {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================
   Premium Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 4vw + 0.75rem, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 3vw + 0.5rem, 2rem);
    font-weight: 500;
}

h4 {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 600;
}

p {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ==========================================
   Layout
   ========================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ==========================================
   Header
   ========================================== */

.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(47, 47, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    transition: var(--transition-base);
}

.logo {
    font-size: 2rem;
    color: var(--olivo);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: translateY(-1px);
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--pizarra-oscura);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--olivo);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--olivo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--olivo);
    font-weight: 600;
}

.lang-toggle {
    background-color: var(--verde-salvia);
    color: var(--blanco);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(111, 125, 98, 0.2);
}

.lang-toggle:hover {
    background-color: var(--olivo);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 125, 98, 0.3);
}

.lang-toggle:active {
    transform: translateY(0);
}

/* ==========================================
   Premium Hero Section with Parallax
   ========================================== */

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(47, 47, 51, 0.3) 0%,
        rgba(47, 47, 51, 0.55) 100%
    );
    transition: var(--transition-slow);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-md);
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    animation: heroTitleSlide 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.5;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    animation: heroSubtitleSlide 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

@keyframes heroSubtitleSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-picker {
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    justify-content: center;
    animation: datePickerSlide 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
    transition: var(--transition-base);
}

@keyframes datePickerSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-picker:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.date-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
    flex: 1;
}

.date-input-group label {
    color: var(--olivo);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.date-input {
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    background-color: var(--marfil-estuco);
    transition: var(--transition-fast);
    color: var(--pizarra-oscura);
}

.date-input:hover {
    background-color: var(--arena-suave);
}

.date-input:focus {
    outline: none;
    border-color: var(--olivo);
    background-color: var(--blanco);
    box-shadow: 0 0 0 4px rgba(111, 125, 98, 0.1);
}

/* ==========================================
   Premium Buttons with Micro-interactions
   ========================================== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--olivo);
    color: var(--blanco);
    box-shadow: 0 4px 16px rgba(111, 125, 98, 0.3);
}

.btn-primary:hover {
    background-color: var(--verde-salvia);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(111, 125, 98, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--blanco);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px) scale(1);
}

.btn-block {
    width: 100%;
}

/* Loading state for buttons */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Success animation */
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-success {
    animation: successPulse 0.4s ease-in-out;
}

/* ==========================================
   Premium Section Titles
   ========================================== */

.section-title {
    text-align: center;
    color: var(--olivo);
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--verde-salvia) 50%,
        transparent 100%
    );
}

.section-subtitle {
    text-align: center;
    color: var(--pizarra-oscura);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.75;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Units Section
   ========================================== */

.units {
    background-color: var(--blanco);
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--olivo);
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-badge svg {
    color: var(--verde-salvia);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--spacing-md);
}

.unit-card {
    background-color: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(207, 200, 187, 0.3);
    will-change: transform;
}

.unit-card:hover,
.unit-card:focus-within {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.unit-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--verde-salvia) 0%, var(--piedra-gris) 100%);
}

.unit-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.unit-card:hover .unit-image-photo {
    transform: scale(1.1);
}

.unit-image-gallery-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(47, 47, 51, 0.8);
    color: var(--blanco);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.unit-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--verde-salvia) 0%, var(--piedra-gris) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 3rem;
}

.unit-content {
    padding: 2rem;
}

.unit-title {
    color: var(--olivo);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.unit-details {
    list-style: none;
    margin: 1.5rem 0;
}

.unit-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(207, 200, 187, 0.3);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    color: var(--pizarra-oscura);
    transition: var(--transition-fast);
}

.unit-details li:hover {
    color: var(--olivo);
    transform: translateX(0.5rem);
}

.unit-details li:last-child {
    border-bottom: none;
}

.unit-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.unit-price .price-amount {
    font-size: 2rem;
    color: var(--olivo);
    font-weight: 600;
    font-family: var(--font-titles);
    letter-spacing: -0.02em;
}

.unit-price small {
    font-size: 0.875rem;
    color: var(--pizarra-oscura);
    opacity: 0.6;
    font-weight: 400;
}

/* ==========================================
   Reviews Section
   ========================================== */

.reviews {
    background-color: var(--marfil-estuco);
}

.rating-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rating-score {
    text-align: center;
    padding: var(--spacing-md);
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--olivo);
    font-family: var(--font-titles);
    line-height: 1;
}

.rating-stars {
    font-size: 1.5rem;
    color: #FFB800;
    margin: 0.5rem 0;
}

.rating-count {
    color: var(--pizarra-oscura);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-item {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.rating-item span:first-child {
    font-weight: 500;
    font-size: 0.95rem;
}

.rating-bar {
    height: 8px;
    background-color: var(--piedra-gris);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: var(--olivo);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-value {
    text-align: right;
    font-weight: 600;
    color: var(--olivo);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-md);
}

.review-card {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(207, 200, 187, 0.2);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 6rem;
    color: var(--verde-salvia);
    opacity: 0.1;
    font-family: var(--font-titles);
    line-height: 1;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--spacing-sm);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--pizarra-oscura);
}

.review-stars {
    color: #FFB800;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--pizarra-oscura);
    opacity: 0.6;
    margin: 0;
}

.review-text {
    line-height: 1.6;
    color: var(--pizarra-oscura);
    margin: 0;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--olivo);
    color: var(--olivo);
    display: block;
    margin: var(--spacing-md) auto 0;
    box-shadow: 0 4px 12px rgba(111, 125, 98, 0.2);
}

.btn-secondary:hover {
    background-color: var(--olivo);
    color: var(--blanco);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(111, 125, 98, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1);
}

/* ==========================================
   Lightbox Gallery
   ========================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255,255,255,0.1);
    color: var(--blanco);
    border: none;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.1);
    color: var(--blanco);
    border: none;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ==========================================
   Location Section
   ========================================== */

.location {
    background-color: var(--marfil-estuco);
}

.map-container {
    margin: var(--spacing-lg) 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.location-item {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(207, 200, 187, 0.2);
}

.location-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.location-item h3 {
    color: var(--olivo);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   Policies Section
   ========================================== */

.policies {
    background-color: var(--blanco);
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.policy-card {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(207, 200, 187, 0.2);
}

.policy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.policy-card h3 {
    color: var(--olivo);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.policy-card p {
    margin: 0.75rem 0;
    color: var(--pizarra-oscura);
    opacity: 0.85;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    background-color: var(--marfil-estuco);
    padding: var(--spacing-xxl) 0;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: var(--spacing-lg) 0;
}

.quick-contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(111, 125, 98, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--olivo), var(--verde-salvia));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(111, 125, 98, 0.2);
    border-color: var(--verde-salvia);
}

.quick-contact-card:hover::before {
    transform: scaleX(1);
}

.quick-contact-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--verde-salvia), var(--olivo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 16px rgba(111, 125, 98, 0.2);
}

.quick-contact-card:hover .icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

.quick-contact-card .icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--pizarra-oscura);
    font-size: 1.5rem;
}

.quick-contact-card p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 1rem;
}

.quick-contact-card a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--olivo), var(--verde-salvia));
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(111, 125, 98, 0.3);
}

.quick-contact-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 125, 98, 0.4);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.contact-form-container {
    background-color: var(--blanco);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-container:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--verde-salvia), var(--olivo), var(--verde-salvia));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.contact-form-container h3 {
    color: var(--pizarra-oscura);
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-inline {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--verde-salvia);
    background-color: var(--blanco);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--olivo);
    background-color: var(--blanco);
    box-shadow: 0 0 0 4px rgba(111, 125, 98, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form .btn {
    margin-top: 0.5rem;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: linear-gradient(135deg, var(--pizarra-oscura) 0%, #1a1a1d 100%);
    color: var(--blanco);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-column {
    /* No specific styles needed here, but it's good for structure */
}

.footer-heading {
    color: var(--blanco);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-text {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--verde-salvia);
    transform: translateX(4px);
}

.footer-link-flex {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.footer-link-flex:hover {
    color: var(--verde-salvia);
    transform: translateX(4px);
}

.cookie-prefs {
    margin-top: 1rem;
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-link-small:hover {
    color: var(--verde-salvia);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
}

/* ==========================================
   Modal
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.modal-content {
    background-color: var(--blanco);
    margin: 5% auto;
    padding: var(--spacing-lg);
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--pizarra-oscura);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--olivo);
}

.modal-title {
    color: var(--olivo);
    margin-bottom: var(--spacing-md);
}

.price-calculator {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--arena-suave);
    border-radius: 8px;
}

.price-calculator h3 {
    color: var(--olivo);
    margin-bottom: var(--spacing-sm);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-sm) 0;
}

.calc-result {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--blanco);
    border-radius: 4px;
    font-size: 1.1rem;
}

/* ==========================================
   Premium Amenities & Experience Sections
   ========================================== */

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.amenity-card {
    background: var(--blanco);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(207, 200, 187, 0.2);
    text-align: center;
    overflow: hidden;
}

.amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.amenity-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.amenity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.amenity-card:hover .amenity-image {
    transform: scale(1.1);
}

.amenity-title {
    color: var(--olivo);
    font-size: 1.125rem;
    margin: 1rem 1rem 0.5rem;
    font-weight: 600;
}

.amenity-description {
    color: var(--pizarra-oscura);
    opacity: 0.8;
    line-height: 1.5;
    font-size: 0.875rem;
    padding: 0 1rem 1.25rem;
}

.experience-showcase {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-md);
}

.experience-item:nth-child(even) {
    direction: rtl;
}

.experience-item-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.experience-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-item:hover .experience-item-image {
    transform: scale(1.05);
}

.experience-item-content {
    padding: var(--spacing-md);
    direction: ltr;
}

.experience-item-title {
    font-size: 2rem;
    color: var(--olivo);
    margin-bottom: 1rem;
}

.experience-item-description {
    color: var(--pizarra-oscura);
    opacity: 0.85;
    line-height: 1.7;
}

/* FAQ Accordion with Smooth Transitions */
.faq-accordion {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    background: var(--blanco);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(207, 200, 187, 0.2);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blanco);
    transition: var(--transition-fast);
    user-select: none;
}

.faq-question:hover {
    background: var(--marfil-estuco);
}

.faq-question h4 {
    margin: 0;
    color: var(--olivo);
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--verde-salvia);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    transition: var(--transition-bounce);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--olivo);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--pizarra-oscura);
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
}

/* Host Profile Card */
.host-profile {
    background: var(--blanco);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    text-align: center;
    border: 1px solid rgba(207, 200, 187, 0.2);
}

.host-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--verde-salvia);
    box-shadow: 0 4px 16px rgba(111, 125, 98, 0.3);
    transition: var(--transition-bounce);
}

.host-profile:hover .host-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(111, 125, 98, 0.4);
}

.host-name {
    color: var(--olivo);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.host-title {
    color: var(--verde-salvia);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.host-bio {
    color: var(--pizarra-oscura);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.host-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(207, 200, 187, 0.3);
}

.host-stat {
    text-align: center;
}

.host-stat-value {
    display: block;
    font-size: 2rem;
    color: var(--olivo);
    font-weight: 600;
    font-family: var(--font-titles);
}

.host-stat-label {
    font-size: 0.875rem;
    color: var(--pizarra-oscura);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Minimum touch targets (WCAG requirement) */
    .nav-link,
    .btn,
    .lang-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 600px;
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .date-picker {
        flex-direction: column;
        padding: 1.5rem;
    }

    .date-input-group {
        width: 100%;
    }

    h2 {
        font-size: 2.25rem;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 2rem;
    }

    /* Contact Section Mobile */
    .quick-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .quick-contact-card {
        padding: 2rem 1.5rem;
    }

    .quick-contact-card .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .quick-contact-card .icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .contact-form-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-form-container {
        padding: 2.5rem 2rem;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .quick-contact-card h3 {
        font-size: 1.25rem;
    }

    .contact-form-wrapper {
        padding: 0 0.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-container h3 {
        font-size: 1.75rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .unit-content,
    .review-card,
    .policy-card,
    .location-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .unit-content,
    .review-card,
    .policy-card,
    .location-item {
        padding: 1.5rem;
    }
}
