/* --- VARIABLES GLOBALES --- */
:root {
    /* Paleta de Colores */
    --rosa: #f8c6d2;
    --rosa-oscuro: #e75480;
    --dorado: #d4af37;
    --gris-claro: #f9f9f9;
    --texto-gris: #6c757d;
    --oscuro: #222222;
    
    /* Utilidades */
    --transicion: all 0.3s ease;
    --sombra-suave: 0 5px 15px rgba(0,0,0,0.1);
    --sombra-rosa: 0 10px 25px rgba(231, 84, 128, 0.15);
    --radio: 15px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
}

/* Asegurar que el fondo blanco se aplique si las imágenes de sección fallan */
section {
    background-color: var(--gris-claro);
}

/* --- NAVBAR --- */
.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--rosa-oscuro) !important;
    font-weight: 700;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transicion);
}

.nav-link:hover {
    color: var(--rosa-oscuro) !important;
    font-weight: 700;
}
/* Navbar con fondo al hacer scroll (Controlado por JS) */
.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
        url('/IMG/giorgio-trovato-gb6gtiTZKB8-unsplash.jpg') center/cover no-repeat;
    min-height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

/* --- TÍTULOS DE SECCIÓN --- */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: calc(1.5rem + 1vw);
    color: var(--rosa-oscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: var(--rosa-oscuro);
}

/* --- SERVICIOS (CARDS) --- */
.service-card {
    background: white;
    border: none;
    border-radius: var(--radio);
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    margin-bottom: 1.5rem;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-rosa);
}

.service-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--rosa-oscuro);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- GALERÍA --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3; /* Relación de aspecto moderna */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 84, 128, 0.85); /* Rosa oscuro semitransparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    color: white;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay h4 {
    transform: translateY(0);
}

/* --- TESTIMONIOS --- */
.testimonial-card {
    background: white;
    border-radius: var(--radio);
    padding: 2.5rem;
    box-shadow: var(--sombra-suave);
    margin: 1rem;
    position: relative;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rosa);
    margin-bottom: 1rem;
}

.stars {
    color: var(--dorado);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* --- BOTONES --- */
.btn-spa {
    background: var(--rosa-oscuro);
    color: white;
    padding: clamp(0.75rem, 3vw, 1rem) clamp(1.5rem, 5vw, 2rem);
    border-radius: 30px;
    border: none;
    transition: var(--transicion);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(231, 84, 128, 0.3);
}

.btn-spa:hover {
    background: var(--dorado);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-rosa-oscuro {
    border: 1px solid var(--rosa-oscuro);
    color: var(--rosa-oscuro);
    background: transparent;
    transition: var(--transicion);
}

.btn-outline-rosa-oscuro:hover, 
.btn-outline-rosa-oscuro.active {
    background: var(--rosa-oscuro);
    color: white;
}

/* --- FOOTER --- */
footer {
    background: var(--oscuro);
    color: white;
    padding: 3rem 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    color: white;
    transition: var(--transicion);
}

.social-icon:hover {
    background: var(--gris-claro);
    color: var(--rosa-oscuro);
    transform: translateY(-3px);
}

.contact-info i {
    color: var(--rosa);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* --- UTILIDADES ADICIONALES --- */
.text-rosa { color: var(--rosa); }
.text-rosa-oscuro { color: var(--rosa-oscuro); }
.font-script { font-family: 'Dancing Script', cursive; }


/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .gallery-item {
        aspect-ratio: 3/2; /* Más ancho en pantallas medianas/grandes */
    }
}

@media (max-width: 767px) {
    /* Navbar móvil */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        box-shadow: var(--sombra-suave);
        margin-top: 1rem;
        border-radius: 0 0 10px 10px;
    }
    
    /* Hero móvil */
    .hero {
        min-height: 70vh;
        background-position: 65% center; /* Enfocar mejor en móviles */
    }
    
    .testimonial-card {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    /* Ajustes para pantallas muy pequeñas */
    .section-title:after {
        width: 100px; /* Línea más pequeña */
    }
    
    .service-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .client-img {
        width: 60px;
        height: 60px;
    }
}