/* ==========================================
   VARIABLES DE COLOR Y PALETA DELICADA
   ========================================== */
:root {
    --bg-white: #FFFFFF;
    --bg-soft-pink: #FDF6F6;
    --pink-accent: #E8C5C8;
    --pink-hover: #D8AAB0;
    --pink-text: #B87B82;
    --text-dark: #3A3335;
    --text-light: #7A6F6F;
    --white: #FFFFFF;
    --font-heading: 'Alex Brush', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.bg-soft-pink {
    background-color: var(--bg-soft-pink);
}

/* Encabezados */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    text-align: center;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.98rem;
    font-weight: 300;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--text-dark);
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--pink-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* 1. HERO / INICIO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(253, 246, 246, 0.7)), 
                url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.hero-content .subtitle {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 35px;
    font-weight: 400;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--pink-accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(232, 197, 200, 0.4);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: var(--pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(216, 170, 176, 0.5);
}

/* ==========================================
   2. TRATAMIENTOS (ANCHO COMPLETO EN ZIG-ZAG)
   ========================================== */
.treatments-section {
    padding-top: 100px 0 60px 0;
    background-color: var(--bg-white);
}

.treatments-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.treatment-item {
    display: flex;
    width: 100%;
    min-height: 480px;
    align-items: center;
}

/* Alternancia en zig-zag */
.treatment-item.reverse {
    flex-direction: row-reverse;
    background-color: var(--bg-soft-pink);
}

.treatment-image {
    width: 50%;
    height: 480px;
    overflow: hidden;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.treatment-item:hover .treatment-image img {
    transform: scale(1.04);
}

.treatment-text {
    width: 50%;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.treatment-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--pink-text);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.treatment-text h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

.treatment-text p {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 480px;
}

/* 3. SOBRE NOSOTROS */
.about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text h2 {
            font-family: var(--font-serif);
            font-size: 2.2rem;
            font-weight: 400;
            margin-bottom: 20px;
        }

        .about-text p {
            color: var(--text-muted);
            font-size: 0.96rem;
            margin-bottom: 18px;
            line-height: 1.7;
        }

        .about-quote {
            padding: 20px 24px;
            background-color: var(--white);
            border-left: 3px solid var(--pink-accent);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            font-style: italic;
            color: var(--text-main);
            margin-top: 25px;
            font-size: 0.95rem;
        }

        .about-img-box {
            position: relative;
        }

        .about-img-box img {
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-soft);
            width: 100%;
            height: 440px;
            object-fit: cover;
        }


/* 4. GALERÍA HORIZONTAL EN LOOP */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--bg-white);
}

.gallery-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.gallery-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 320px;
    height: 230px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 5. CONTACTO */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* 1. Hace que los enlaces de la grilla se comporten como contenedores flex y ocupen el alto completo */
.contact-cards > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.contact-card {
    background-color: var(--white);
    padding: 35px 24px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition);
    
    /* 2. Obliga a la tarjeta a ocupar el 100% de la altura de su contenedor */
    height: 100%;
    width: 100%;
    box-sizing: border-box;

    /* 3. Estructura interna Flexbox para alinear el contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--pink-text);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-card p, .contact-card a {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-card a:hover {
    color: var(--pink-text);
}

/* Footer */
footer {
    background-color: var(--bg-white);
    text-align: center;
    padding: 30px;
    font-size: 0.88rem;
    color: var(--text-light);
    border-top: 1px solid #f2f2f2;
}

/* Adaptación Móvil / Tablet */
@media (max-width: 900px) {
    .treatment-item, .treatment-item.reverse {
        flex-direction: column;
        height: auto;
    }

    .treatment-image, .treatment-text {
        width: 100%;
    }

    .treatment-image {
        height: 320px;
    }

    .treatment-text {
        padding: 40px 30px;
        text-align: center;
        align-items: center;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .section-title.text-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 18px;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .gallery-item {
        width: 250px;
        height: 180px;
    }
}