/* Estilos CSS para Magnifique Beauty SPA */

/* --- Variables de Color y Tipografía --- */
:root {
    --color-base: #f4f4f4; /* Gris claro */
    --color-beige: #F5F5DC;
    --color-accent-lavender: #E6E6FA;
    --color-accent-gold: #DAA520;
    --color-text-dark: #333;
    --color-text-light: #666;
    --color-white: #fff;

    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    background-color: var(--color-base);
    color: var(--color-text-dark);
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 0 1.5rem;
    width: 100%;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-family: var(--font-secondary); font-weight: 300; font-size: 1.2rem; }

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

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent-lavender);
    color: var(--color-text-dark);
}
.btn-primary:hover {
    background-color: #dcd0ff;
}

.btn-secondary {
    background-color: var(--color-accent-gold);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #c8961e;
}

/* --- Header y Navegación --- */
.main-header {
    background-color: #feaacc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.main-nav { display: flex; align-items: center; gap: 1rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--color-text-light); font-weight: bold; }
.nav-links a:hover { color: var(--color-accent-gold); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger-menu { display: none; }

/* --- Hero Section --- */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://storage.googleapis.com/www_images/limpiezafacial.png') no-repeat center center/cover;
    padding: 0 1.5rem;
}

.hero-content h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero-content h4 { color: var(--color-white); margin-bottom: 2rem; }

/* --- Services Section --- */
.services-section { padding: 4rem 0; }
.section-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; color: var(--color-text-light); }

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

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 { margin: 0 0 0.5rem 0; }
.service-card p {
    color: var(--color-text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.specialist-info {
    margin-top: 3rem;
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-left: 3px solid var(--color-accent-lavender);
    padding-left: 1.5rem;
}

/* --- Service Pricing --- */
.service-pricing {
    text-align: left;
    margin-top: auto;
}

.service-pricing ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-pricing li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dotted #e0e0e0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.service-pricing li:last-child {
    border-bottom: none;
}

.service-pricing span:last-child {
    font-weight: bold;
    color: var(--color-text-dark);
}

/* --- About Section --- */
.about-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.about-image,
.about-text {
    flex: 1;
    min-width: 300px;
}

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

.about-text h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* --- Tips Section --- */
.tips-section {
    padding: 4rem 0;
}

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

.tip-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tip-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the content to fill the space */
}

.tip-category {
    display: inline-block;
    background-color: var(--color-accent-lavender);
    color: var(--color-text-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    align-self: flex-start; /* Aligns the badge to the start */
}

.tip-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.tip-card p {
    color: var(--color-text-light);
    flex-grow: 1; /* Pushes the link to the bottom */
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-accent-gold);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--color-accent-lavender);
    text-align: center;
}

.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none; /* Ocultar slides por defecto */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block; /* Mostrar slide activa */
    opacity: 1;
}

.testimonial-rating {
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-slide blockquote {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-light);
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.testimonial-slide cite {
    font-weight: bold;
    font-style: normal;
    color: var(--color-text-dark);
}

.carousel-dots {
    margin-top: 2rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-white);
}

/* --- Booking Section --- */
.booking-section {
    background-color: var(--color-accent-lavender);
    padding: 4rem 0;
    text-align: center;
}

.booking-section h2 { margin-bottom: 1rem; }
.booking-section p { max-width: 500px; margin: 0 auto 2rem auto; }
.booking-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.contact-form button[type="submit"] {
    width: 100%;
    font-size: 1.1rem;
    border: none;
}

/* --- Footer --- */
.main-footer {
    background-color: #feaacc;
    color: var(--color-text-dark);
    text-align: center;
    padding: 2rem 0;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-text-dark);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* --- Social Icons in Footer --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-white);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: #555;
}

/* --- Estilos para páginas independientes --- */
.page-section {
    padding: 4rem 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%; /* Oculto fuera de la pantalla */
        width: 60%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0; /* Visible en pantalla */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--color-text-dark);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section { height: 60vh; }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .logo-text {
        display: none;
    }
}