/* ========================================= */
/* VARIABLES GLOBALES (PALETA SPA PREMIUM) */
/* ========================================= */
:root {
    /* Fondos */
    --bg-main: #FAFAF9;      /* Blanco cálido */
    --bg-soft: #F2ECF9;      /* Lila muy claro */
    --white: #FFFFFF;

    /* Colores de Marca (LAVANDA SPA) */
    --primary: #B8A6D9;      /* Lila suave (Acento soft) */
    --primary-dark: #8E7CC3; /* Lavanda elegante (Acento main) */

    /* Acentos secundarios */
    --accent-pink: #E8B7C8;  /* Rosa empolvado */
    --accent-blue: #A7C7E7;  /* Azul cielo */

    /* Texto */
    --text-main: #3F3F46;    /* Gris profundo */
    --text-soft: #6B7280;    /* Gris suave */
    
    /* DEFINICIÓN (Negro para bordes iniciales) */
    --border-color: #000000;
}

/* ========================================= */
/* RESET Y CONFIGURACIÓN GLOBAL */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* HEADER */
/* ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-bottom: 2px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.header.scrolled {
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo-container {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 100px;
    height: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ========================================= */
/* MENÚ DE NAVEGACIÓN (ESTILO SPA) */
/* ========================================= */
.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid transparent;
}

/* HOVER Y ACTIVE: Lavanda + Flotación */
.nav-menu a.active,
.nav-menu a:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(142,124,195,0.35);
    border-color: var(--primary-dark);
}

.nav-menu > ul > li > a::before {
    display: none;
}

/* --- DROPDOWN (SUBMENÚ) --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    display: block !important;
    border: 2px solid var(--border-color);
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-soft);
    text-align: center;
    border-radius: 0;
    white-space: nowrap;
    border: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-soft);
    color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

/* ========================================= */
/* REDES SOCIALES */
/* ========================================= */
.social-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
}

.social-icon img {
    width: 30px;
    height: auto;
    border-radius: 4px;
}

/* ========================================= */
/* HERO SECTION */
/* ========================================= */
.hero {
    background: linear-gradient(
        135deg,
        rgba(242, 236, 249, 0.90),
        rgba(167, 199, 231, 0.85)
    ), url('https://via.placeholder.com/1920x800?text=Spa+Relax') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    
    background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.85)), 
                url('Imagenes/Spa.png') no-repeat center center;
    
    background-size: cover; 
    padding: 60px 40px;
    border-radius: 30px; 
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px); 
    border: 2px solid var(--border-color);
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-content h1 span {
    color: var(--primary-dark);
    display: inline-block;
    transition: all 0.4s ease;
}

.hero-content h1:hover span {
    transform: scale(1.05);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-style: italic;
    color: var(--text-soft);
}

/* ========================================= */
/* BOTONES */
/* ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(142, 124, 195, 0.3);
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========================================= */
/* TÍTULOS DE SECCIÓN */
/* ========================================= */
.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin: 60px auto 20px;
    color: var(--text-main);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-pink), transparent);
    margin: 20px auto;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 200px;
}

.menu-subtitle,
.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 40px;
}

.categoria-titulo {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    text-align: center;
    margin: 0 auto 40px;
    position: relative;
    padding-bottom: 15px;
    display: block;
    width: 100%;
}

.categoria-titulo::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ========================================= */
/* SUBMENÚ BOTONES (MASAJES) */
/* ========================================= */
.submenu-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.submenu-btn {
    text-decoration: none;
    color: var(--text-soft);
    background-color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid var(--border-color);
}

.submenu-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border-color: var(--border-color);
}

/* ========================================= */
/* TARJETAS DE CARACTERÍSTICAS Y SERVICIOS */
/* ========================================= */

.about-features, .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CORRECCIÓN PRINCIPAL: Relleno superior para que el título no quede tapado */
.menu-section {
    background-color: var(--bg-main);
    padding: 180px 0 80px; /* Aumentado de 80px a 180px */
    min-height: 100vh;
}

/* Scroll Offset corregido para los links */
.categoria-servicio {
    margin-bottom: 80px;
    scroll-margin-top: 200px; 
}

/* ESTILO UNIFICADO (Con bordes negros iniciales) */
.feature-card, .menu-item {
    background: var(--white);
    border-radius: 30px; 
    border: 2px solid var(--border-color);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05); 
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

/* HOVER ESTILO SPA: Flotar + Sombra Lavanda */
.feature-card:hover, .menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 14px 30px rgba(0,0,0,0.12), 
        0 0 20px rgba(184,166,217,0.35);
    border-color: var(--primary);
}

/* Ajustes imágenes */
.menu-img-container {
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover .menu-img {
    transform: scale(1.1);
}

/* Textos */
.feature-card h3, .menu-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
}

.feature-card p, .menu-details p {
    color: var(--text-soft);
    line-height: 1.6;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* Precios */
.price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
    background: var(--bg-soft);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Precio Hover: Estilo Lavanda */
.menu-item:hover .price {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--primary-dark);
}

/* ========================================= */
/* CONTACTO */
/* ========================================= */
.contacto-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-soft) 100%);
    padding: 100px 0 80px;
    min-height: 100vh;
}

.contacto-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contacto-info {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 900px; 
    border: 2px solid var(--border-color);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05);
}

.contacto-info:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12), 0 0 20px rgba(184,166,217,0.35);
}

.contacto-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    text-align: center;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent; 
}

.info-item:hover {
    background-color: var(--bg-soft);
    border: 1px solid var(--primary);
    transform: translateX(10px);
}

.info-item .icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.map-container {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

/* ========================================= */
/* FOOTER */
/* ========================================= */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    margin-top: 0;
    border-top: 2px solid var(--border-color);
}

.footer-logo img {
    width: 150px;
    margin-bottom: 25px;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Logo Footer Hover: Iluminación Lavanda */
.footer-logo img:hover {
    transform: scale(1.1);
    filter: brightness(1.1) drop-shadow(0 0 12px rgba(142,124,195,0.4));
}

.footer p {
    margin: 10px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.creditos {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 10px;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */
@media (max-width: 968px) {
    .contacto-container {
        flex-direction: column;
    }
    .about-features, .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .hero {
        padding: 100px 20px 60px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ========================================= */
/* CARRUSEL DE GALERÍA (AUTO SCROLL) */
/* ========================================= */
.galeria-section {
    padding: 60px 0;
    background-color: var(--bg-soft);
    text-align: center;
    overflow: hidden; /* Oculta lo que se sale de la pantalla */
}

.galeria-titulo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.carrusel-contenedor {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carrusel-track {
    display: flex;
    width: calc(300px * 20); /* 300px por foto * (10 fotos x 2 para el loop) */
    animation: scroll 50s linear infinite; /* Ajusta 40s para velocidad */
}

.slide {
    width: 300px;
    height: 200px;
    margin: 0 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--border-color);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 10 - 300px)); } 
    /* El cálculo mueve la mitad de la tira para dar efecto infinito */
}