@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&family=Questrial&display=swap');

:root {
    --color-primary: #121212;
    --color-secondary: #E2D9C8; /* Brand Beige from logo */
    --color-accent: #FFFFFF;
    --bg-main: #FDFBF7;
    --text-muted: #666666;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(253, 251, 247, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 18, 18, 0.05);
}

@media (max-width: 992px) {
    nav {
        padding: 0 1.5rem; /* More generous side padding for mobile */
    }
}

.logo {
    font-family: 'Questrial', sans-serif;
    font-size: 1.6rem;
    font-weight: 400; /* Questrial es de un solo peso, muy geométrica */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 0.4)), url('images/gym-10.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect for desktop */
    color: var(--color-accent);
    padding: 0 5%;
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll; /* Disable parallax on mobile/tablet */
    }
}

.hero h1 {
    font-family: 'Questrial', sans-serif;
    font-size: clamp(3.5rem, 12vw, 7rem);
    margin-bottom: 1rem;
    font-weight: 400; /* Questrial solo tiene un peso */
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.hero-desc {
    font-size: 1.1rem !important;
    max-width: 600px;
    margin-bottom: 2.5rem !important;
    opacity: 0.8;
}

.btn {
    padding: 1.2rem 2.5rem;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Sections --- */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.benefit-card {
    background: var(--color-accent);
    padding: 3rem;
    border: 1px solid rgba(18, 18, 18, 0.05);
    transition: var(--transition);
}

.benefit-card i {
    display: block;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- Schedule --- */
.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #0a0a0a;
    color: var(--color-accent);
    padding: 4rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 217, 200, 0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.booking-note {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: block;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.time-slot {
    border: 1px solid rgba(226, 217, 200, 0.3);
    padding: 1.2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 0;
    min-height: 80px; 
}

.time-slot:hover {
    background: var(--color-secondary);
    color: #0a0a0a;
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

/* --- Gift Section --- */
.gift-promo {
    background: var(--color-secondary);
    text-align: center;
    padding: 80px 5%;
    margin: 50px 0;
}

.gift-promo h2 {
    margin-bottom: 1.5rem;
}

/* --- Contact --- */
#contacto {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

/* --- WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1001;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    padding: 60px 5%;
    background: var(--color-primary);
    color: var(--color-accent);
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 15px;
    opacity: 0.5;
    font-size: 0.8rem;
}

.legal-links a {
    margin: 0 5px;
}

.legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Gallery --- */
.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-container {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 40px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: flex-start; /* Start from left but container is centered */
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 85%;
    max-width: 500px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border-radius: 50%;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: var(--transition);
}

@media (min-width: 1025px) {
    .gallery-nav {
        display: flex; /* Only show on large desktop screens */
    }
}

.gallery-nav:hover {
    background: var(--color-primary);
    color: var(--color-accent);
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

@media (max-width: 1024px) {
    .gallery-wrapper {
        padding: 0;
    }
    .gallery-container {
        padding-top: 1rem;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* --- Mobile Fixes --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: rgba(253, 251, 247, 0.98);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        padding: 4rem 0;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 { font-size: 4rem; }
    .section-title h2 { font-size: 2.5rem; }
    #galeria { padding: 60px 0; }
}

@media (max-width: 768px) {
    .section-title, .benefit-card, .service-card, .contact-info {
        text-align: center;
    }
    
    .benefit-card i, .service-card i {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 576px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .btn { width: 100%; text-align: center; padding: 1rem; }
    section { padding: 60px 20px; }
    .schedule-container { padding: 1.5rem 1rem; border-radius: 12px; }
    .schedule-grid { grid-template-columns: 1fr; } /* Force 1 column on very small mobile */
    .section-title h2 { font-size: 2.2rem; }
    .gallery-item { flex: 0 0 90%; }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(18, 18, 18, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 1.5rem;
    display: none; 
    border-radius: 12px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Legal Modal --- */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2100;
    padding: 20px;
    transition: var(--transition);
}

.legal-modal.active {
    display: flex;
}

.legal-modal-content {
    background: var(--bg-main);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease forwards;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    opacity: 0.5;
    transition: var(--transition);
}

.legal-modal-close:hover {
    opacity: 1;
}

.legal-modal-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--color-primary);
}

.legal-modal-text h3 {
    margin: 25px 0 10px;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.legal-modal-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-modal-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-modal-text ul li {
    list-style: disc;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .legal-modal-content {
        padding: 30px 20px;
    }
    .legal-modal-text h2 {
        font-size: 1.5rem;
    }
}
