
/* 
   Meraki Relax Spa - Design System 
   Based on Graphic Design Expert Skill
*/



:root {
    /* Colors - Based on Branding & Wireframe */
    --color-primary: #C9A84C;    /* Gold - Luxury/Accents */
    --color-primary-light: #E2CD8E; /* Light Gold for better readability */
    --color-secondary: #3B472C;  /* Deep Green - Nature/Spa */
    --color-bg-dark: #1C1C1C;    /* Matte Black - Premium */
    --color-bg-light: #F5EDD8;   /* Beige/Cream - Cleanliness */
    --color-surface: #232122;    /* Dark Gray - Card Backgrounds */
    --color-text-light: #F5EDD8;
    --color-text-dark: #1C1C1C;
    --color-text-muted: rgba(245, 237, 216, 0.6);
    --color-brown: #5D4037; /* Coffee tone for better contrast on light backgrounds */

    /* Typography Variables - Fixed PX scale requested */
    --font-base: 16px;
    --h1: 3.8125rem; /* 61px */
    --h2: 3.0625rem; /* 49px */
    --h3: 1.9375rem; /* 31px */
    --h4: 1.5625rem; /* 25px */
    --h5: 1.25rem;   /* 20px */
    --h6: 1.125rem;  /* 18px */
    --body: 1rem;    /* 16px */
    --small: 0.875rem; /* 14px */

    /* Spacing - 8pt System */
    --space-xs: 8px;
    --space-s: 16px;
    --space-m: 24px;
    --space-l: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 80px;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(201, 168, 76, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* High Fidelity Liquid Glass System */
    --lg-blur: 40px;
    --lg-bg: rgba(255, 255, 255, 0.035);
    --lg-border-light: rgba(255, 255, 255, 0.5);
    --lg-border-mid: rgba(255, 255, 255, 0.2);
    --lg-highlight: rgba(255, 255, 255, 0.25);
    --lg-glow-teal: rgba(147, 240, 233, 0.15);
    --lg-glow-purple: rgba(183, 147, 240, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-base);
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: 'Gotu', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Antic Didone', serif;
    font-weight: 400;
}

h1 { 
    font-size: var(--h1); 
    line-height: 1.2; 
    letter-spacing: -0.02em; 
}

h2 { 
    font-size: var(--h2); 
    line-height: 1.2; 
    letter-spacing: -0.06em; 
}

h3 { 
    font-size: var(--h3); 
    line-height: 1.2; 
    letter-spacing: -0.015em; 
}

h4, h5, h6 {
    font-family: 'Gotu', sans-serif;
    font-weight: 400;
}

h4 { 
    font-size: var(--h4); 
    line-height: 1.3; 
    letter-spacing: -0.005em; 
}

h5 { 
    font-size: var(--h5); 
    line-height: 1.3; 
    letter-spacing: -0.005em; 
}

h6 { 
    font-size: var(--h6); 
    line-height: 1.3; 
    letter-spacing: -0.005em; 
}

p { 
    font-size: var(--body); 
    line-height: 1.5; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.text-center { text-align: center; }

.gold-text { color: var(--color-primary); }
.text-dark { color: var(--color-text-dark) !important; }
.text-light { color: var(--color-text-light) !important; }

.bg-light { background-color: var(--color-bg-light) !important; }
.bg-surface { background-color: var(--color-surface) !important; }
.bg-dark { background-color: var(--color-bg-dark) !important; }


/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px var(--space-l);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--small);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-mobile-only {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FFF0A5 0%, #D4AF37 50%, #B8860B 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 0 25px rgba(255, 240, 165, 0.3) !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    filter: brightness(1.1) saturate(1.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 50%, #D4AF37 100%) !important;
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(255, 215, 0, 0.5) !important;
    filter: brightness(1.2) saturate(1.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(201, 168, 76, 0.1);
}

.btn-cta-pulse {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Smaller variant for navigation bar CTA */
.btn-nav {
    padding: 7px var(--space-m);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* 
   LIQUID GLASS SYSTEM (Playbook v2)
   Architecture: Outer Shell (Material) + Inner Plate (Stability) 
*/
.card-glass {
    position: relative;
    border-radius: 32px;
    padding: var(--space-l);
    transition: var(--transition);
    overflow: hidden; /* Mantiene el "reflejo" dentro */
    cursor: default;
    
    /* 1. OUTER SHELL: Material Cues */
    background: transparent; /* El color viene de la placa interna */
    
    /* Biselado con dirección de luz bloqueada (Top-Left) */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1.5px solid rgba(255, 255, 255, 0.8);
    border-left: 1.5px solid rgba(255, 255, 255, 0.4);
    
    /* Grosor físico y elevación */
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Micro-stroke */
}

/* 2. INNER STABILIZED PLATE: Protege el contenido */
.card-glass::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Placa translúcida equilibrada */
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.07) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 3. REFRACTIVE EDGE (Iridiscencia sutil) */
.card-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 4px 4px 15px rgba(147, 240, 233, 0.1),  /* Cian de refracción */
        inset -4px -4px 15px rgba(183, 147, 240, 0.1); /* Violeta de refracción */
    z-index: 2;
    pointer-events: none;
}

/* Asegurar que el contenido flote sobre el stack */
.card-glass > * {
    position: relative;
    z-index: 10;
}

/* Animación de Cristal Líquido al Hover */
.card-glass:hover {
    transform: translateY(-8px);
}

/* Efecto Specular (Reflejo del cursor sobre la Shell) */
.glass-reflection {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 50%
    );
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-glass:hover .glass-reflection {
    opacity: 1;
    mix-blend-mode: color-dodge; /* Hace que el reflejo brille intensamente */
}

@keyframes liquid-rotate {
    0% { transform: translate(5%, 5%) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(180deg); }
    100% { transform: translate(5%, 5%) rotate(360deg); }
}

.card-glass:hover {
    transform: translateY(-10px);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-glass:hover::after {
    opacity: 1;
}

/* Optimización Liquid Glass para Móvil (Sin Hover) */
@media (hover: none), (max-width: 992px) {
    .card-glass .glass-reflection {
        opacity: 0.6;
        background: radial-gradient(
            circle at 50% 0%, 
            rgba(255, 255, 255, 0.35) 0%, 
            transparent 70%
        );
        mix-blend-mode: color-dodge;
    }
    
    .card-glass::after {
        opacity: 0.8;
    }
    
    .card-glass {
        transform: none !important; /* Evitar saltos de layout en móvil */
        box-shadow: 
            0 15px 35px -5px rgba(0, 0, 0, 0.25),
            inset 0 1px 1px rgba(255, 255, 255, 0.4);
    }
}


/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-s) 0;
    transition: var(--transition);
    /* Glass effect always visible from page load */
    background: rgba(28, 28, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled,
.masajes-page nav,
.faciales-page nav,
.corporales-page nav {
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--h5);
    font-family: 'Antic Didone', serif;
    color: var(--color-primary);
}

.logo img.nav-icon {
    height: 24px;
    width: auto;
}

.btn-icon {
    height: 18px;
    width: auto;
    margin-right: var(--space-xs);
    filter: brightness(0); /* Icono negro sobre botón dorado */
}

.nav-links {
    display: flex;
    gap: var(--space-m);
    font-family: 'Antic Didone', serif;
}

.nav-links a:hover, .active-link {
    color: var(--color-primary);
}

.active-link {
    border-bottom: 1px solid var(--color-primary);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: var(--transition);
}

/* Animated Hamburger State */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Responsive Nav --- */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important; /* Force display on desktop/tablet */
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        gap: var(--space-l);
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .menu-toggle {
        display: none !important;
    }
    
    .nav-links .btn-mobile-only {
        display: none;
    }

    /* Desktop Hover Dropdown */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(28, 28, 28, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: var(--transition);
        z-index: 1000;
        padding: var(--space-xxl) var(--space-m);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: var(--h3);
        display: block;
        padding: var(--space-s);
    }

    /* Mobile Dropdown Adjustments */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: var(--space-s);
    }

    .dropdown-menu li a {
        font-size: var(--h5);
        padding: var(--space-xs) 0;
    }

    /* Hide the primary CTA in nav on small screens to avoid clutter */
    .nav-content > .btn-primary {
        display: none;
    }

    /* Put the CTA inside the nav-links menu for mobile */
    .nav-links .btn-mobile-only {
        display: inline-flex;
        margin-top: var(--space-l);
    }
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--space-s);
    padding: var(--space-xs) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: var(--space-xs) var(--space-m);
    font-family: 'Gotu', sans-serif;
    font-size: var(--body);
    color: var(--color-text-light);
    white-space: nowrap;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--color-primary);
}

/* --- Comparativa Table --- */
.table-container {
    overflow-x: auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.comparativa-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text-dark);
    font-family: 'Gotu', sans-serif;
}

.comparativa-table th, .comparativa-table td {
    padding: var(--space-m);
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparativa-table th {
    background-color: var(--color-secondary);
    color: white;
    font-family: 'Antic Didone', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparativa-table tr:last-child td {
    border-bottom: none;
}

.comparativa-table tr:hover {
    background-color: rgba(201, 168, 76, 0.05);
}

@media (max-width: 768px) {
    .comparativa-table thead {
        display: none;
    }
    .comparativa-table, .comparativa-table tbody, .comparativa-table tr, .comparativa-table td {
        display: block;
        width: 100%;
    }
    .comparativa-table tr {
        margin-bottom: var(--space-m);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: var(--space-s);
    }
    .comparativa-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .comparativa-table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--space-s);
        width: 45%;
        text-align: left;
        font-weight: 700;
        color: var(--color-secondary);
    }
}

/* --- Sections --- */

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    opacity: 0;
}

.hero-content {
    max-width: 800px;
}

/* Social Proof Bar */
.social-proof-bar {
    background-color: var(--color-surface);
    padding: var(--space-s) 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.proof-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-m);
    flex-wrap: wrap;
    font-size: var(--h4);
    font-family: 'Gotu', sans-serif;
    color: var(--color-primary);
    text-transform: lowercase; /* Stylistic choice for premium feel */
    font-variant: small-caps;
}

.separator {
    color: var(--color-primary);
    font-weight: bold;
}

.hero h1 {
    font-size: var(--h1);
    margin-bottom: var(--space-s);
}

.hero p {
    font-size: var(--h4);
    color: var(--color-primary);
    margin-bottom: var(--space-l);
    font-style: italic;
}

.hero-ctas {
    display: flex;
    gap: var(--space-s);
    flex-wrap: wrap;
}

/* Automatic centering for CTAs in centered sections */
.text-center .hero-ctas {
    justify-content: center;
}

/* Pain Hook */
.pain-hook {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    position: relative;
    overflow: hidden;
}

.pain-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pain-video {
    position: absolute;
    top: 50%;
    left: 50%; /* En móviles lo dejamos centrado */
    transform: translate(-50%, -50%);
    width: 35%; 
    min-width: 300px;
    height: auto;
    object-fit: contain;
}

.pain-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 237, 216, 0.75);
    z-index: 1;
}

.pain-hook .container {
    position: relative;
    z-index: 2;
}

.pain-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .pain-split-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center; /* Alineación vertical central en el lado izquierdo */
        min-height: 400px;
    }
    
    .pain-video {
        left: 75%; /* Desplaza el video a la columna derecha en desktop */
    }
}

.pain-hook h2 {
    margin-bottom: var(--space-m);
}

.word {
    display: inline-block;
    padding-right: 0.25em; /* Spacing between words after split */
}

.pain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-l);
}

.chip {
    display: inline-block;
    padding: var(--space-xs) var(--space-s);
    border: 1px solid var(--color-secondary);
    border-radius: 20px;
    font-size: var(--small);
    color: var(--color-secondary);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease; /* Override global 'all' transition to avoid GSAP conflict */
}

.chip:hover, .chip.active {
    background-color: var(--color-secondary);
    color: white;
}

/* Services Grid */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
    margin-top: var(--space-xl);
}

@media (max-width: 1024px) {
    .services-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* Each card */
.service-card-reveal {
    height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--space-m);
    overflow: hidden;
    background-color: #555;
    background-blend-mode: luminosity;
    transition: background 0.8s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}


.service-card-reveal:hover {
    background-blend-mode: normal;
    background-color: transparent;
    transform: translateY(-8px);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Heavier overlay: text is fully legible before hover */
    background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.25) 100%);
    padding: var(--space-l);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.6s ease;
}

.service-card-reveal:hover .card-overlay {
    /* On hover: lighter overlay so the photo becomes the hero */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.card-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 6px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.card-content h2 {
    margin-bottom: var(--space-xs);
    line-height: 1.1;
}

.benefit {
    font-style: italic;
    color: var(--color-primary-light);
    margin-bottom: var(--space-s);
    font-family: 'Gotu', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.category-title {
    display: block;
    font-weight: bold;
    color: white;
    font-size: var(--body);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-list {
    list-style: none;
    font-size: var(--small);
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    padding: 0;
}

.sub-list li {
    margin-bottom: 2px;
}

/* Base Headings assignments */

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr 100px 1fr;
    gap: var(--space-s);
    margin-top: var(--space-xl);
    align-items: center;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-line {
    height: 2px;
    background: rgba(189, 159, 83, 0.2); /* Faded gold base */
    position: relative;
    overflow: hidden;
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-primary); /* Solid gold progress */
    box-shadow: 0 0 10px var(--color-primary);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto var(--space-m);
    box-shadow: 0 0 15px rgba(189, 159, 83, 0.4);
}

/* Footer */
footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer-logo p {
    font-family: 'Playfair Display', serif;
    font-size: var(--h5);
    color: var(--color-primary);
}

.footer-links h5 {
    color: var(--color-primary);
    margin-bottom: var(--space-m);
}

.footer-links ul li {
    margin-bottom: var(--space-xs);
    font-size: var(--small);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --h1: 2.2rem;
        --h2: 1.8rem;
        --h4: 1.4rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .step-line {
        width: 2px;
        height: 50px;
        margin: 0 auto;
    }

    .line-progress {
        width: 100%;
        height: 0%;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .masajes-hero, .faciales-hero, .nosotros-hero, .faqs-hero, .contacto-hero {
        padding-top: 140px !important;
        padding-bottom: 80px !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
}
/* --- Masajes Page Specific Styles --- */
.masajes-page {
    background-color: var(--color-bg-dark);
}

.masajes-hero {
    height: 85vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: calc(var(--space-xxl) * 1.5);
}

.masajes-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.5);
}

.masajes-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(28,28,28,0.9) 0%, rgba(28,28,28,0.4) 100%);
    z-index: 0;
}

.masajes-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}


.masajes-hero-subtitle {
    margin: var(--space-xl) 0 0 0;
    line-height: 1.2;
    color: var(--color-primary); /* Color dorado premium */
}

.gold-text-shadow-large {
    text-shadow: 0 4px 10px rgba(201, 168, 76, 0.4);
}

.masajes-hero-intro, .faciales-hero-intro {
    max-width: 800px;
    color: var(--color-text-light);
    margin: var(--space-l) 0 var(--space-xxl) 0;
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: var(--space-m);
    flex-wrap: wrap;
    margin-top: var(--space-l);
    margin-bottom: var(--space-xl); /* Espacio debajo de los botones */
}

/* Faciales Hero */
.faciales-page {
    background-color: var(--color-bg-dark);
}

.faciales-hero {
    height: 85vh; /* Un poco más de altura para dar respiro */
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: var(--space-xxl);
}

.faciales-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.4);
}

.faciales-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(28,28,28,0.95) 0%, rgba(28,28,28,0.3) 100%);
    z-index: 0;
}

.faciales-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.faciales-hero-subtitle {
    margin: var(--space-xl) 0 0 0;
    line-height: 1.2;
    color: var(--color-primary);
}

/* Selector Section */
.selector-section.bg-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.text-dark { color: var(--color-text-dark); }

.zen-divider {
    margin: var(--space-m) 0;
    display: flex;
    justify-content: center;
    opacity: 1;
}

.zen-divider img {
    height: 140px;
    width: auto;
}

.filter-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: var(--space-xl);
}

.filter-chip {
    padding: var(--space-xs) var(--space-m);
    border: 1px solid var(--color-secondary);
    border-radius: 50px;
    background: transparent;
    color: var(--color-secondary);
    font-family: 'Gotu', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip.active, .filter-chip:hover {
    background-color: var(--color-secondary);
    color: white;
}

.tratamientos-section {
    position: relative;
    background-color: var(--color-bg-dark);
    /* Fondo con un brillo sutil para que el glassmorphism resalte */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 71, 44, 0.1) 0%, transparent 40%);
    overflow: hidden;
}

/* Treatment Grid */
.tratamientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xxl) 0;
}

.trat-card {
    background: linear-gradient(135deg, rgba(35, 33, 34, 0.5), rgba(35, 33, 34, 0.8));
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.4);
    
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    
    transition: var(--transition);
    position: relative;
}

/* Efecto Líquido Terapéutico */
.trat-card::before {
    content: "";
    position: absolute;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(201, 168, 76, 0.15) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.trat-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(201, 168, 76, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.trat-card:hover::before {
    opacity: 1;
}

.trat-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.trat-card-body {
    padding: var(--space-l);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-s);
}

.trat-tag {
    font-size: var(--small);
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
}

.trat-duration-badge {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: var(--small);
}

.trat-card-title {
    margin-bottom: var(--space-m);
    line-height: 1.1;
}

.trat-hook {
    font-size: var(--h5); /* Ahora más grande y legible */
    font-style: italic;
    margin-bottom: var(--space-m);
    font-family: 'Gotu', sans-serif; /* Mantenemos consistencia con otros subtítulos */
}

.trat-desc {
    font-size: var(--body);
    color: var(--color-text-muted);
    margin-bottom: var(--space-l);
}

.trat-indicado {
    margin-top: auto;
    margin-bottom: var(--space-l);
}

.indicado-label {
    display: block;
    font-size: var(--small);
    font-weight: bold;
    margin-bottom: var(--space-xs);
    color: white;
}

.indicado-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.indicado-chips span {
    font-size: 11px;
    background: var(--color-primary);
    padding: 2px 10px;
    border-radius: 4px;
    color: #3E2723; /* Tono Café Profundo */
    font-weight: 600;
}

.trat-card-actions {
    display: flex;
    flex-direction: column; /* Apilado vertical */
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.trat-card-actions .btn {
    width: 100%; /* Ancho completo */
    margin: 0;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10; /* Por encima de cualquier efecto de la tarjeta */
    pointer-events: auto !important; /* Forzar interactividad */
}

/* Asegurar que btn-secondary sea claramente un enlace */
.btn-secondary {
    cursor: pointer;
    text-decoration: none;
}

/* Precios Section */
.precios-section {
    background-image: url('Imagenes/Background_pattern.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #3E2723;
    overflow: hidden;
}

/* Capa de contraste para resaltar el cristal */
.precios-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(28, 28, 28, 0.04); /* Oscurecimiento muy leve para que el blanco resalte */
    z-index: 1;
}

.precios-section .container {
    position: relative;
    z-index: 2;
}

.precios-section h2 {
    color: #3E2723;
    text-shadow: 0 4px 15px rgba(62, 39, 35, 0.35), 0 2px 4px rgba(62, 39, 35, 0.2);
}

.precios-sub {
    color: #3E2723;
    font-weight: 500;
    opacity: 1;
    margin-top: var(--space-s);
    margin-bottom: var(--space-l);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(62, 39, 35, 0.3);
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-l);
    margin-top: var(--space-xl);
}

.precio-card {
    padding: var(--space-l);
    text-align: center;
}

.precio-icono {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-s);
}

.precio-nombre { color: #3E2723; margin-bottom: 5px; font-weight: bold; }
.precio-hook { font-size: var(--small); color: #3E2723; opacity: 0.7; margin-bottom: var(--space-m); height: 40px; }

.precio-info {
    border-top: 1px solid rgba(62, 39, 35, 0.15);
    padding-top: var(--space-m);
    margin-bottom: var(--space-m);
    color: #3E2723;
}

.precio-duracion { display: block; font-size: var(--small); opacity: 0.8; }
.precio-valor { display: block; font-size: var(--h4); color: #3E2723; }

.precio-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-ver-mas {
    background: transparent;
    border: none;
    color: #3E2723;
    opacity: 0.8;
    cursor: pointer;
    font-size: var(--small);
    font-weight: 600;
}

.precio-detail {
    margin-top: var(--space-m);
    text-align: left;
    font-size: var(--small);
    color: #3E2723;
    opacity: 0.9;
}

.detail-list {
    margin-top: 10px;
}

/* Confianza */
.confianza-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xxl);
    align-items: center;
}

.confianza-text h2 {
    margin-bottom: var(--space-xl); /* Espacio de aproximadamente dos líneas */
}

.confianza-text p {
    line-height: 1.8; /* Espaciado entre líneas más aireado */
}

.confianza-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
}

.badge-item {
    text-align: center;
    color: var(--color-primary); /* Dorado de la marca */
}

.badge-item h5 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.badge-item p {
    color: #e0e0e0; /* Un gris muy claro/blanquecino para la descripción, más legible que el dorado puro */
    opacity: 0.9;
}

.badge-icon { font-size: 2.2rem; margin-bottom: var(--space-s); display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

/* Testimonios */
.testimonios-carousel {
    display: flex;
    gap: var(--space-l);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--space-l) 0;
}

.testimonio-slide {
    flex: 0 0 calc(33.33% - var(--space-l));
    scroll-snap-align: center;
    min-width: 300px;
}

.testimonio-card {
    height: 100%;
}

.testimonio-stars { color: var(--color-primary); margin-bottom: var(--space-s); }
.testimonio-texto { font-style: italic; margin-bottom: var(--space-m); }

.testimonio-footer {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.testimonio-avatar {
    width: 40px; height: 40px;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-m);
}

.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--color-primary);
}

/* Post-Facial Section */
.post-facial-section .cuidados-list {
    margin-top: var(--space-l);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-facial-section .cuidados-list li {
    position: relative;
    padding-left: 25px;
    font-size: var(--body);
}

.post-facial-section .cuidados-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .confianza-layout { grid-template-columns: 1fr; }
    .testimonio-slide { flex: 0 0 80%; }
}

@media (max-width: 480px) {
    .tratamientos-grid {
        grid-template-columns: 1fr;
    }
    .precios-grid {
        grid-template-columns: 1fr;
    }
    .trat-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* --- Parallax Effects --- */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for movement */
    z-index: 0;
    pointer-events: none;
}

/* Specific background for CTA Final to replace inline style */
.cta-final {
    position: relative;
    overflow: hidden;
    background: var(--color-surface); /* Fallback */
}

.cta-final-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(28,28,28,0.85), rgba(28,28,28,0.85)), url('Imagenes/hero.webp') center/cover;
    z-index: 1;
}

.cta-final .container {
    position: relative;
    z-index: 2;
}


/* Ensure video containers for parallax are set up correctly */
.hero, .pain-hook {
    overflow: hidden;
}

.hero-video {
    height: 120% !important; /* Extra height only for hero video to fill container */
    object-fit: cover;
}

.pain-video {
    /* Restore original proportions but allow for subtle parallax */
    height: auto !important; 
    object-fit: contain !important;
}

/* Reinforcing Nav Bar Glass Style */
nav.scrolled {
    background: rgba(28, 28, 28, 0.85);
    backdrop-filter: blur(15px) saturate(160%);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Proceso Section (Pedicura) --- */
.proceso-section {
    position: relative;
    background-image: url('Imagenes/Background_pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.proceso-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 237, 216, 0.05); /* Drastically reduced opacity to match other pages */
    z-index: 1;
}

.proceso-section .container {
    position: relative;
    z-index: 2;
}

.proceso-section h2 {
    color: #3E2723 !important; /* Matched color with other sections for better contrast */
    margin-bottom: var(--space-l);
}

.stepper-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
    margin-top: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    display: flex;
    gap: var(--space-m);
    padding: var(--space-m);
    border-radius: 20px;
    transition: var(--transition);
    align-items: flex-start;
    background: rgba(20, 20, 20, 0.85) !important; /* Force darker background */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    opacity: 1; /* Fallback visibility */
}

/* Override the light glass plate for dark step cards */
.step-card::before {
    background: linear-gradient(
        135deg, 
        rgba(40, 40, 40, 0.4) 0%, 
        rgba(20, 20, 20, 0.6) 100%
    ) !important;
}

/* Disable light hover effects for dark step cards */
.step-card:hover {
    background: rgba(30, 30, 30, 0.9) !important;
}

.step-card .glass-reflection {
    display: none !important;
}

.highlight-step {
    border: 1px solid var(--color-primary) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 168, 76, 0.2) !important;
}

.step-number {
    font-family: 'Antic Didone', serif;
    font-size: var(--h2);
    color: var(--color-primary);
    opacity: 0.5;
    line-height: 1;
}

.step-content h4 {
    color: var(--color-primary-light);
    margin-bottom: var(--space-xs);
}

.step-time {
    display: inline-block;
    font-size: var(--small);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.step-content p {
    color: var(--color-text-light);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* --- Educational Section --- */
.educativa-section h2 {
    margin-bottom: var(--space-m);
}

.educativa-section p {
    margin-bottom: var(--space-m);
}

.educativa-section p:last-of-type {
    margin-bottom: 0;
}

.benefit-item {
    margin-bottom: var(--space-xs);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* Mobile Adjustments for Stepper */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        gap: var(--space-s);
    }
    
    .step-number {
        font-size: var(--h3);
    }
}

/* ═══════════════════════════════════════
   CTA FINAL PARALLAX OPTIMIZATION
   ═══════════════════════════════════════ */
.cta-final {
    position: relative;
    /* overflow: hidden is removed because clip-path acts as the bounds */
    clip-path: inset(0 0 0 0);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-final .container {
    position: relative;
    z-index: 2;
}

/* We don't want will-change here anymore if we removed GSAP */
.cta-final .container > * {
    position: relative;
}

/* Background element for true smooth parallax (CSS Only) */
.cta-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    /* Removed will-change as position: fixed handles it efficiently */
}

.cta-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(28,28,28,0.85), rgba(28,28,28,0.9));
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-final {
        min-height: 350px;
    }
}


/* --- Marketing 664 Logo Animation --- */
.dev-link-3d {
    perspective: 400px;
}

.logo-spinning-3d {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transform-style: preserve-3d;
    backface-visibility: visible;
    will-change: transform;
}

/* --- Footer Heading (Accessibility Fix) ---
   Replaces <h5> in footers to avoid heading hierarchy violations.
   Visually identical to h5 but uses <p> semantics.
*/
.footer-heading {
    font-family: 'Gotu', sans-serif;
    font-size: var(--h5);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-s);
}
