/* --- 1. Variables de Color (Paleta Oficial) --- */
:root {
    --bg-main: #F7F5F0;       /* Fondo Principal */
    --bg-card: #EBE5DC;       /* Fondo de Secciones / Tarjetas */
    --text-main: #3A3532;     /* Color de Texto Principal */
    --color-accent: #5A6B5C;  /* Verde Acento Principal */
    --color-secondary: #D4A373; /* Marrón / Dorado Cálido */
}

/* --- 2. Reseteo y Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* --- 2. Fondo Satinado Sutil --- */
body {
    font-family: 'Montserrat', sans-serif;
    /* Transición más marcada de crema brillante a un tono seda/arena cálido */
    background: linear-gradient(135deg, #f7eae8 0%, #ffefd5 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
}

/* Fuentes Locales */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Títulos con Playfair Display */
#inicio h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #F7F5F0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#servicios h2, 
#facial h2, 
#sobre-mi h2,
#contacto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 3. Header y Navegación Web --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--color-accent);
}

/* Logo con Eslogan */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.8;
    margin-top: 2px;
}

/* Botón Header (Reservar Cita) */
.btn-cta {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #485649;
}

/* --- 4. Sección Hero (Portada) --- */
#inicio {
    position: relative;
    background-image: linear-gradient(rgba(58, 53, 50, 0.3), rgba(58, 53, 50, 0.3)), url('../images/bienestar.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #F7F5F0; 
    text-align: center;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

#inicio p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 25px;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Restauración del Botón Marrón del Hero */
#inicio .btn-agendar {
    display: inline-block;
    background-color: var(--color-secondary); /* Color Marrón / Dorado Cálido */
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#inicio .btn-agendar:hover {
    background-color: #c39263;
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN DE SERVICIOS (CONTENEDOR Y TARJETAS)
   ========================================== */

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 20px;
}

.servicio-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.servicio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.servicio-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.servicio-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.servicio-info p {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.servicio-info h4 {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.servicio-info ul {
    margin-bottom: 15px;
}

.servicio-info li {
    font-size: 0.9rem;
    color: #666;
}

/* Estilo para corregir la numeración limpia en Faciales */
.lista-procedimiento {
    list-style-type: decimal;
    list-style-position: inside;
    margin-bottom: 15px;
    padding: 0;
}

.lista-procedimiento li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.btn-servicio {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-servicio:hover {
    background-color: #485649;
    transform: translateY(-2px);
}

/* ==========================================
   SECCIONES SOBRE MÍ Y CONTACTO
   ========================================== */

#sobre-mi, #contacto {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sobre-mi-texto p, #contacto > p {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contacto-info-detalles {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: inline-block;
    margin-top: 20px;
    text-align: left;
}

.contacto-info-detalles p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    color: var(--text-main);
}

.contacto-info-detalles a {
    color: var(--color-accent);
    font-weight: bold;
    transition: color 0.3s ease;
}

.contacto-info-detalles a:hover {
    color: var(--color-secondary);
}

/* --- 6. Footer --- */
footer {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 1.5rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links, .footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-links a, .footer-social a {
    font-size: 0.85rem;
    color: var(--bg-main);
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--color-secondary);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* --- Estilos para el Menú Hamburguesa en Móvil --- */
.nav__menu__btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ==========================================
   DISEÑO RESPONSIVO MÓVIL (PANTALLAS MENORES A 768px)
   ========================================== */
@media (max-width: 768px) {
    header {
        position: sticky; /* Mantiene la barra fija al hacer scroll */
        top: 0;
        z-index: 1000; /* Asegura que quede siempre por encima de las imágenes */
        padding: 1rem 5%;
        display: block;
        width: 100%;
        background-color: var(--bg-main);
    }

    .nav__header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Empuja el logo a la izquierda y el botón a la derecha */
    }

    .nav__menu__btn {
        display: block; /* Muestra el icono de hamburguesa */
        font-size: 1.8rem;
    }

    header nav {
        width: 100%;
    }

    .nav__links {
        position: absolute;
        top: 100%; /* El menú desplegable se abre justo debajo del header fijo */
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid var(--bg-card);
        
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 999;
    }

    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
    }

    header .btn-cta {
        display: none; 
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .servicio-card img {
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}