/*
Theme Name: Lara Ambres Premium
Description: Tema a medida para Lara Ambres
Author: Flavia
Version: 1.0
Text Domain: lara-ambres
*/

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

:root {
    /* Colors */
    --color-bg-primary: #F9F4F0;
    --color-bg-secondary: #FFFFFF;
    --color-accent: #C5A059;
    --color-accent-hover: #B08F4D;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: rgba(26, 26, 26, 0.7);
    --color-text-light: rgba(26, 26, 26, 0.6);
    --color-border: #E0E0E0;

    /* Typography */
    --font-script: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding-y: 5rem;
    --section-padding-y-lg: 8rem;

    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Z-index */
    --z-header: 50;
    --z-drawer: 60;
    --z-scroll-top: 70;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #1A1A1A !important;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Oxygen for fixed header */
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: auto !important; /* Liberamos la altura para evitar huecos de cálculo */
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 400; /* Elegancia fina */
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge i {
    width: 1rem;
    height: 1rem;
    color: var(--color-accent);
}

.badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-lg);
}

.btn-secondary i, .btn-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modifier specific to Hero CTA */
.cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px; /* Sube el botón del margen inferior */
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(197, 160, 89, 0.95); /* Golden corporate color */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.3); /* White transparent on scroll */
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 1rem; /* Padding más ajustado para móvil */
}

.logo-img {
    height: 45px; /* Logo más pequeño en móvil */
    width: auto;
}

@media (min-width: 1024px) {
    .header-content {
        padding: 10px 0; /* Padding original para escritorio */
    }
    
    .logo-img {
        height: 75px; /* Logo más grande en escritorio */
    }
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.cta-desktop {
    display: none;
}

@media (min-width: 768px) {
    .cta-desktop {
        display: block;
    }
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    gap: 0.375rem;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background-color: var(--color-bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 6rem 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    position: relative;
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    padding-bottom: 0.5rem;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-accent);
}

.mobile-nav-link:hover {
    color: var(--color-accent);
}

.mobile-cta {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.mobile-social {
    display: flex;
    gap: 1.5rem;
}

.mobile-social a {
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.mobile-social a:hover {
    color: var(--color-accent);
}

.mobile-social i {
    width: 1.5rem;
    height: 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end; /* Alinea el contenido hacia abajo */
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, #EDE5DC 100%);
    padding: 2rem 0 0 !important; /* Eliminado padding inferior */
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .hero {
        background-position: center top !important; /* Reset para móvil para evitar recortes bruscos */
        padding: 6rem 0 2rem !important;
    }
}

@media (min-width: 769px) {
    .hero {
        background-position: center -150px !important; /* Desplazamiento agresivo para PC */
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1560750588-73207b1ef5b8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1920') center/cover;
    opacity: 0; /* Capa blanca eliminada para mostrar imagen completa */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-script);
    font-size: 4rem;
    font-weight: 300; /* Elegancia y ligereza */
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 7rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Sombra de texto para asegurar legibilidad sobre la imagen de fondo */
.text-shadow-xl {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Espaciado adicional para el botón CTA del Hero */
.cta-hero {
    margin-top: 1.5rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: 4rem 0 1rem;
    background-color: var(--color-bg-secondary);
    margin-top: 0 !important;
}

@media (min-width: 1024px) {
    .about {
        padding: var(--section-padding-y-lg) 0 2rem;
    }
}

.about-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
}

@media (max-width: 768px) {
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }
    
    /* Si existe un contenedor que agrupa los textos, rómpelo visualmente */
    .about-content { 
        display: contents !important; 
    }
    
    .about-content h2.section-title,
    .about-content .section-title { 
        order: 1 !important; 
        margin-bottom: 20px !important;
    }
    
    .about-image { 
        order: 2 !important; 
        margin: 20px 0 !important; 
    }
    
    .about-content .about-text { 
        order: 3 !important; 
        margin-bottom: 20px !important;
    }
    
    .about-content .about-features { 
        order: 4 !important; 
    }
}

@media (min-width: 1024px) {
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    /* Balanced alignment */
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: #F9F4F0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-card i {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    color: var(--color-accent);
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: var(--border-radius);
}

.about-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex; /* Remove unwanted inline-block descender spaces */
}

/* El img hereda el bloque completo sin deformar la sombra del padre */
.about-image img, .about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: inherit; /* Hereda exacto el border del padre por si acaso */
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: 1rem 0 2.5rem;
    background-color: var(--color-bg-secondary);
}

@media (min-width: 1024px) {
    .services {
        padding: 2rem 0 3rem;
    }
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-image {
    position: relative;
    height: 280px; /* Altura incrementada para mayor impacto visual */
    overflow: hidden;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Reencuadre específico para Maderoterapia */
.service-maderoterapia .service-image img {
    object-position: top !important;
}

/* Reencuadre específico para Pestañas (Enfoque en la parte inferior) */
.service-pestanas .service-image img {
    object-position: bottom !important;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.4), transparent);
    display: none; /* Desactivamos el degradado oscuro para usar el nuevo degradado blanco */
}

.service-body {
    padding: 3rem 1.25rem 1.25rem; /* Padding superior generoso para compensar solapamiento */
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 35%, rgba(255, 255, 255, 1) 100%) !important;
    background-color: transparent !important; /* Aseguramos que no haya fondo sólido */
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.service-title {
    margin-bottom: 0.25rem;
}

.service-title.script {
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-accent);
}

.service-title.uppercase {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.service-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--color-accent);
}

.service-link i {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   GALLERY SECTION (CAROUSEL)
   ======================================== */

.gallery {
    padding: 2.5rem 0 2rem;
    background-color: var(--color-bg-secondary);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .gallery {
        padding: 3rem 0 2.5rem;
    }
}

.carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
}

/* User Requested Track Logic */
.carousel-track {
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    padding: 20px 0 15px; /* Added top padding for shadows */
}

/* Hide scrollbar */
.carousel-track::-webkit-scrollbar { 
    display: none; 
}

.carousel-item {
    flex: 0 0 auto; 
    width: 85%; 
    scroll-snap-align: center; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-item.center {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .carousel-item {
        width: 30rem;
    }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Center item is larger */
/* Center state handled by scroll tracking JS */

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.carousel-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

@media (min-width: 768px) {
    .carousel-btn {
        width: 3.5rem;
        height: 3.5rem;
    }

    .carousel-btn-prev {
        left: 2rem;
    }

    .carousel-btn-next {
        right: 2rem;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background-color: var(--color-accent);
}

/* ========================================
   BOOKING SECTION
   ======================================== */

.booking {
    padding: 2rem 0 5rem;
    background-color: var(--color-bg-secondary);
}

@media (min-width: 1024px) {
    .booking {
        padding: 2.5rem 0 8rem;
    }
}

.booking-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .booking-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.booking-content {
    display: flex;
    flex-direction: column;
}

.booking .btn-secondary {
    width: fit-content;
    align-self: center;
    padding: 12px 24px;
    gap: 10px;
    justify-content: center;
}

.booking-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.booking-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booking-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.booking-feature i {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    color: var(--color-accent);
    background-color: var(--color-bg-secondary);
    border-radius: 50%;
}

.booking-feature h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-feature p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* WhatsApp Mockup */
.whatsapp-mockup {
    max-width: 28rem;
    margin: 0 auto;
}

.chat-container {
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.chat-avatar {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.chat-avatar i {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.chat-header h4 {
    font-weight: 600;
}

.chat-header p {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.wa-profile-avatar {
    width: 40px; /* Tamaño estándar del avatar en chat */
    height: 40px;
    border-radius: 50%; /* Círculo perfecto */
    object-fit: cover; /* Evita que la foto se deforme */
    margin-right: 12px; /* Separación con el texto o el borde */
    background-color: #f0f0f0; /* Fondo de seguridad por si tarda en cargar */
}

.wa-interactive-btn {
    text-decoration: none !important;
    display: inline-block;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.chat-message p {
    font-size: 0.875rem;
}

.chat-message-received {
    align-self: flex-start;
    background-color: #F3F4F6;
    border-top-left-radius: 0;
}

.chat-message-received p {
    color: #2C2C2C;
}

.chat-message-sent {
    align-self: flex-end;
    background-color: var(--color-accent);
    border-top-right-radius: 0;
}

.chat-message-sent p {
    color: white;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #F9FAFB;
    border-radius: 9999px;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.chat-input i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
    max-width: 800px; /* Ancho máximo para que el texto no sea interminable de leer */
    margin: 120px auto 80px auto; /* Centrado y con margen superior amplio para que el menú no lo tape */
    padding: 0 20px; /* Margen de seguridad para móviles */
    color: #333333; /* Color de texto legible */
    line-height: 1.8; /* Interlineado amplio y elegante */
    font-family: inherit; /* Usa la misma tipografía de la web */
}

.legal-content h1,
.legal-content h2 {
    color: var(--color-accent); /* Color corporativo */
    margin-bottom: 20px;
}

.legal-content h1 {
    font-size: 3rem;
    font-family: var(--font-script);
}

.legal-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 6rem 0 40px !important; /* Definitive oxygen padding */
    margin-top: 0;
    position: relative;
    z-index: 10;
    box-sizing: border-box; /* Guaranteed box model */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 20rem;
}

.footer-logo {
    height: 3rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-social {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-social span {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social-link i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-social-link:hover {
    color: var(--color-accent-hover);
    transform: translateX(5px);
}

.footer-section h4 {
    font-family: var(--font-script);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.footer-list,
.footer-hours {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-list i {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.footer-list a,
.footer-hours li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--color-accent);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer-hours li span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Barra Inferior / Legal */
.footer-bottom {
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a,
.footer-copyright p,
.footer-credit p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover,
.footer-credit a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    opacity: 0.9;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit {
    text-align: right;
    padding-bottom: 0; 
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p, .footer-credit p, .footer-legal a {
    margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-credit {
        text-align: center;
    }
}

/* ========================================
   SERVICE DRAWER
   ======================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.5);
    z-index: var(--z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: calc(100% - 2rem);
    max-width: 31.25rem;
    background-color: var(--color-bg-primary);
    z-index: calc(var(--z-drawer) + 1);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

@media (min-width: 768px) {
    .drawer {
        margin-left: 0;
    }
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 61px; /* Matches mobile header: 8px padding * 2 + 45px logo */
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-accent); /* Header dorado */
}

.drawer-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF; /* Texto blanco puro */
    padding-right: 1rem;
    margin: 0;
}

@media (min-width: 1024px) {
    .drawer-header {
        height: 95px; /* Matches desktop header: 10px padding * 2 + 75px logo */
    }

    .drawer-header h2 {
        font-size: 2rem;
    }
}

/* Botón X interno */
.drawer-close {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.drawer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.drawer-close i {
    width: 1.5rem;
    height: 1.5rem;
    color: #FFFFFF;
}

/* Botón flecha exterior flotante */
.carousel-item.center img {
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

.drawer-close-floating {
    position: absolute;
    left: 0;
    top: 50%; 
    transform: translate(-50%, -50%);
    width: 2.75rem;
    height: 3.5rem; /* Un poco más alto para efecto tab */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: -4px 4px 10px rgba(0,0,0,0.08); /* Sombra hacia la izquierda */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.drawer.active .drawer-close-floating {
    opacity: 1;
    visibility: visible;
}

.drawer-close-floating:hover {
    background-color: #F8F9FA;
    transform: translate(-50%, -50%) scale(1.05);
}

.drawer-close-floating i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.treatment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.treatment-item {
    transition: all 0.2s ease;
}

.treatment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
}

.treatment-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    width: 100%;
}

.treatment-item:hover .treatment-name {
    color: var(--color-accent);
}

.drawer-info {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius);
}

.drawer-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.drawer-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-primary);
}

.drawer-cta {
    width: 100%;
    justify-content: center;
}

.drawer-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-scroll-top);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: white;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top.is-over-footer {
    opacity: 0.2 !important; /* Atenuación dinámica sobre el footer */
}

.scroll-to-top.is-over-footer:hover,
.scroll-to-top.is-over-footer:focus {
    opacity: 1 !important; /* Recuperación de opacidad al interactuar */
}

.scroll-to-top.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
}

.scroll-to-top:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top i {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Prevent body scroll when menu/drawer is open */
body.no-scroll {
    overflow: hidden;
}

/* ========================================
   MOBILE NATIVE CAROUSEL SCROLL
   ======================================== */
@media (max-width: 768px) {
    .carousel-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        /* Aseguramos que los eventos touch fluyan nativamente */
        touch-action: pan-x; 
    }
    
    .carousel-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }
    
    .carousel-track {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth;
        transform: none !important;
    }

    .carousel-item {
        scroll-snap-align: center;
        width: 85vw !important;
    }
}

/* ========================================
   STRICT FINAL RESET (Prevent Bottom White Space)
   ======================================== */

footer, .footer, .footer-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer *:last-child, 
.footer *:last-child,
.footer-container *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Reset potentially injected trailing elements */
#scrollToTop, .drawer, .drawer-overlay {
    margin-bottom: 0 !important;
}

/* ========================================
   PRE-FOOTER GALLERY
   ======================================== */
.pre-footer-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* More oxygen between images */
    margin: 3rem auto;
    padding: 0 4rem; /* Breath from screen edges */
    max-width: 1200px;
}

@media (max-width: 768px) {
    .pre-footer-gallery {
        grid-template-columns: 1fr 1fr;
        padding: 0 1.5rem;
        gap: 1rem;
    }
}

.gallery-item {
    overflow: hidden;
    height: auto;
    max-height: 400px; /* Controlled size */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-secondary); /* Elegant background if contain shows edges */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full visibility, no crop */
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
    padding: 10rem 0 6rem;
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}

.legal-content {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--color-bg-secondary);
    padding: 5rem 4rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.legal-content h1 {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.legal-content .lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    font-family: var(--font-sans);
    font-style: italic;
}

.legal-index {
    background-color: #fcfaf8;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 4rem;
    border: 1px solid var(--color-border);
}

.legal-index h2 {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    border-bottom: none;
}

.legal-index ol {
    margin-bottom: 0;
}

.legal-index a {
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

.legal-index a:hover {
    color: var(--color-accent);
}

.legal-subtitle {
    text-align: center;
    letter-spacing: 0.1em;
    margin: 5rem 0 3rem !important;
    position: relative;
    font-size: 2.5rem !important;
}

.legal-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.legal-content h2[id] {
    scroll-margin-top: 120px;
}

.legal-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

.legal-link:hover {
    color: var(--color-accent-hover);
}

.legal-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(197, 160, 89, 0.5), rgba(0, 0, 0, 0));
    margin: 4rem 0;
}

.legal-content h2 {
    font-family: var(--font-script);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.legal-content p, 
.legal-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: square;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 8rem 0 4rem;
    }
    
    .legal-content {
        padding: 3rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2.75rem;
    }
    
    .legal-content h2 {
        font-size: 1.875rem;
    }
}