/* Paleta de colores y tipografía */
:root {
    --primary-color: #5d4037;
    --secondary-color: #f5f0e1;
    --accent-color: #bfa798;
    --text-color: #44322d;
    --background-color: #fcf8f2;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
}

/* Reset y estilos generales */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

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

section {
    padding: 80px 5%;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Header y Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    width: 90%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.header .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2em;
    color: var(--primary-color);
}

.header .nav a {
    margin-left: 25px;
    font-weight: 400;
    color: var(--text-color);
}

.header .nav .cta-button {
    padding: 8px 18px;
    font-weight: 400;
}

.hero-content {
    margin-top: 100px;
}

.hero-content h1 {
    font-size: 4em;
    margin: 0;
    max-width: 800px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto 40px;
}

/* Sección de Tratamientos */
.treatments-section {
    text-align: center;
}

.treatments-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

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

.treatment-item {
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.treatment-item .icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.treatment-item h3 {
    font-size: 1.5em;
    margin-top: 0;
}

/* Sección Nosotros */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: var(--secondary-color);
}

.about-section h2 {
    font-size: 2.5em;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sección de Testimonios */
.testimonials-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: #fff;
    padding: 80px 5%;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
}

/* Sección de Contacto */
.contact-section {
    text-align: center;
    padding: 100px 5%;
    background-color: var(--primary-color);
    color: #fff;
}

.contact-section h2 {
    font-size: 3em;
    color: #fff;
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 5%;
    background-color: var(--text-color);
    color: var(--secondary-color);
}

/* --- Animaciones --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        position: static;
        width: auto;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .about-section, .testimonials-section {
        grid-template-columns: 1fr;
    }
}

/* --- ESTILOS PARA EL CARRUSEL --- */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade-carousel 15s infinite;
}

.slide-1 { background-image: url('img/masaje.jpg'); }
.slide-2 { animation-delay: 5s; background-image: url('img/masaje2.jpg'); }
.slide-3 { animation-delay: 10s; background-image: url('img/head.jpg'); }

@keyframes fade-carousel {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}