:root {
    --primary-color: #1E5F74; /* Deep Ocean Blue */
    --text-color: #333333;
    --accent-color: #005A8D;
    --accent-light: #EAF6F6; /* Seafoam / light cyan */
    --accent-hover: #133B4D;
    --bg-color: #FAFDFF;
    --font-main: 'Jost', sans-serif;
    --font-cursive: 'Alex Brush', cursive;
}

[data-theme="dark"] {
    --primary-color: #89CFF0; /* Soft Wave Blue */
    --text-color: #E6F0F9;
    --accent-color: #A3D8F4;
    --accent-light: #1A2A3A; /* Dark Abyss Blue */
    --accent-hover: #BFE3F7;
    --bg-color: #0D1B2A; /* Midnight Ocean */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 300;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.header {
    background: var(--bg-color);
    padding-top: 20px;
    border-bottom: 1px solid var(--accent-light);
    transition: background-color 0.4s ease;
}

.header-top {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo {
    text-align: center;
}

.logo-text {
    font-family: var(--font-cursive);
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 0.8;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    font-weight: normal;
}

.logo-text span {
    font-family: var(--font-main);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    display: block;
    margin-top: 15px;
    margin-left: 5px;
    font-weight: 400;
}

.header-icons {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav a {
    color: var(--primary-color);
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: #888;
}

.main-nav i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    background: var(--bg-color);
    padding: 60px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid var(--accent-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: background-color 0.4s ease;
}

.hero h1 {
    font-family: var(--font-cursive);
    color: var(--primary-color);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero p {
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Detox Section */
.detox-section {
    max-width: 1200px;
    margin: 100px auto;
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.detox-image {
    flex: 1;
    position: relative;
}

.detox-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--accent-light);
    z-index: -1;
}

.detox-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.detox-content {
    flex: 1;
}

.detox-content h2 {
    font-family: var(--font-cursive);
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.detox-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: 1px solid var(--primary-color);
}

.btn-accent {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.section-header .line {
    height: 1px;
    background-color: var(--primary-color);
    width: 80px;
    margin: 0 20px;
}

.section-header h2 {
    font-family: var(--font-cursive);
    color: var(--primary-color);
    font-size: 3.5rem;
}

/* Why Spa */
.why-spa {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
    padding: 0 20px;
}

.why-content h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.why-content p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Cards */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--accent-light);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-img-wrapper {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}



/* Find Us */
.find-us {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.accent-text {
    letter-spacing: 1px;
}

.contact-info h4 {
    margin: 40px 0 20px;
    font-family: var(--font-cursive);
    font-size: 2.5rem;
}

.hours-list {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-btn:hover {
    transform: scale(1.1);
    background: #128C7E; /* Verde WhatsApp Oscuro */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.modal-content input, .modal-content select {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid var(--text-color);
    background-color: transparent;
    color: var(--text-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.modal-content input:focus, .modal-content select:focus {
    border-color: var(--primary-color);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

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

/* Owner Section */
.owner-section {
    max-width: 1000px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px;
    background-color: var(--accent-light);
    border-radius: 10px;
}

.owner-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
}

.owner-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    object-fit: cover;
    filter: contrast(1.05) brightness(1.02);
    image-rendering: high-quality;
}

.owner-content {
    flex: 1;
}

.owner-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Owner Popup */
.owner-popup {
    position: fixed;
    bottom: 30px;
    left: -450px;
    width: 350px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    z-index: 1001;
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
}

.owner-popup.show {
    left: 30px;
}

.popup-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.popup-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(2.2);
    transform-origin: center top;
}

.popup-text h4 {
    font-family: var(--font-cursive);
    font-size: 2rem;
    margin-bottom: 5px;
    line-height: 1;
    color: var(--primary-color);
}

.popup-text p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--primary-color);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Map */
.map-section {
    margin-bottom: 0;
    display: flex;
}

/* Parallax Break */
.parallax-break {
    height: 40vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Testimonials Carousel */
.testimonials {
    padding: 80px 20px;
    background-color: var(--accent-light);
    overflow: hidden;
}

.testimonial-carousel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    animation: scrollTestimonials 15s linear infinite;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    33.33% { transform: translateX(-100%); }
    66.66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* Mobile Bottom Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
}
.mobile-nav a {
    color: var(--text-color);
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.8rem;
}
.mobile-nav a i { font-size: 1.5rem; margin-bottom: 5px; }

/* Responsive */
@media (max-width: 900px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detox-section, .owner-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .owner-image {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 40px 20px;
        width: 90%;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .logo-text {
        font-size: 2.8rem;
    }
    
    .owner-popup {
        bottom: 100px;
        left: -120%;
    }
    
    .owner-popup.show {
        left: 5%;
        width: 90%;
    }

    .main-nav { display: none; }
    .header { padding-bottom: 10px; }
    .mobile-nav { display: flex; }
    body { padding-bottom: 60px; }
    .chat-btn { bottom: 80px; }
    .cursor { display: none; }
}