/* Variables */
:root {
    --navy-deep: #050a11;
    --navy-light: #0d1a29;
    --navy-absolute: #050a11;
    --coral-vibe: #FE647C;
    --sand-chukum: #e5d5c5;
    --sand-muted: #94887d;
    --white-soft: rgba(255, 255, 255, 0.9);

    --font-display: 'Work Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--navy-absolute);
    color: var(--sand-muted);
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.7;
    margin: 0;
    opacity: 0;
    animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Typography Enhancements */
h1, h2, h3 {
    font-family: var(--font-serif);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s var(--ease-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 200ms; }
.delay-400 { transition-delay: 400ms; }
.delay-600 { transition-delay: 600ms; }

/* Header & Navigation Fixes */
#main-header.scrolled {
    background: rgba(5, 10, 17, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 75px !important;
    border-bottom: 1px solid rgba(254, 100, 124, 0.1);
}

.header-logo {
    height: 50px;
    width: auto;
    transition: all 0.5s var(--ease-premium);
    filter: drop-shadow(0 0 10px rgba(254, 100, 124, 0.1));
}

.nav-link-premium {
    color: var(--sand-muted);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-link-premium:hover {
    color: var(--coral-vibe);
    opacity: 1;
}

/* Hero Elements */
.hero-video-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #050a11, #0a1f35);
    z-index: -1;
}

/* Modal Reservas */
#beach-reservation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(5, 10, 17, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-premium);
}

#beach-reservation-modal.active {
    display: flex;
    opacity: 1;
}

.modal-container-premium {
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    background: #ffffff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-premium);
}

#beach-reservation-modal.active .modal-container-premium {
    transform: translateY(0);
}

.modal-header-beach {
    background: var(--navy-absolute);
    color: var(--sand-chukum);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-beach {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-close-beach:hover {
    background: var(--coral-vibe);
    color: var(--navy-absolute);
    transform: rotate(90deg);
}

#reservation-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Spinner de carga */
.beach-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: -1;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(254, 100, 124, 0.2);
    border-top-color: var(--coral-vibe);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--navy-absolute);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-premium);
}
#mobile-menu.active { transform: translateX(0); }
.mobile-nav-link {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--sand-chukum);
    text-decoration: none;
    transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--coral-vibe); }

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 210;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sand-chukum);
    transition: all 0.3s ease;
    transform-origin: left center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* Layout Specifics */
.img-hover-reveal {
    transition: filter 1s ease, transform 0.6s var(--ease-premium);
    filter: grayscale(100%) brightness(0.7);
}

.img-hover-reveal:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

.hero-title-fluid {
    font-size: clamp(3rem, 6vw + 1rem, 11rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title-fluid {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        line-height: 1;
    }
    .modal-container-premium {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .modal-header-beach {
        padding: 10px 20px;
    }
}