/* --- 1. VARIABLES --- */
:root {
    --fucsia: #EE5B9B;
    --fucsia-dark: #d44182;
    --fucsia-soft: #FFF5F9;
    --border-soft: #fce2ee;
    --shadow: rgba(238, 91, 155, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --max-width: 1200px;
}

/* --- 2. CONFIGURACIÓN BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #fdfdfd;
    color: #444;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 3. ANIMACIONES --- */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-announcement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc((-300px - 20px) * 5)); }
}

.fade-in-left { animation: fadeInLeft 1.2s ease forwards; }
.fade-in-right { animation: fadeInRight 1.2s ease forwards; }
.reveal { opacity: 0; }
.reveal.active { animation: fadeInUp 1s ease forwards; opacity: 1; }

/* --- 4. HEADER Y NAVEGACIÓN --- */
#main-header {
    width: 100%;
    background: #fff;
    border-bottom: 2px solid var(--fucsia);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 20px;
}

.brand-logo { height: 65px; width: auto; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--fucsia); }

/* --- 5. HERO SECTION --- */
.home-hero {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 5%;
    min-height: 400px;
}

.hero-text { flex: 0 1 auto; max-width: 450px; padding-right: 10px; }
.hero-text h2 { font-size: 2.5rem; color: var(--fucsia); margin-bottom: 10px; line-height: 1.1; }
.hero-text p { margin-bottom: 20px; }

.hero-image-wrapper { flex: 0 1 auto; display: flex; align-items: center; gap: 15px; }
.hero-image img { 
    width: 280px; 
    border-radius: 20px; 
    box-shadow: 12px 12px 0px var(--fucsia-soft); 
}

.spa-brand-text {
    max-width: 200px;
    border-left: 2px solid var(--fucsia);
    padding-left: 15px;
}

/* --- 6. CARRUSEL DE TRABAJOS --- */
.work-carousel {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.carousel-track {
    display: flex;
    width: calc((300px + 20px) * 10); 
    animation: scroll-carousel 40s linear infinite;
    gap: 20px;
    padding-left: 20px;
}

.carousel-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.carousel-track img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow);
    cursor: pointer;
}

.work-carousel:hover .carousel-track { animation-play-state: paused; }

/* --- 7. BARRA DE ANUNCIOS --- */
.announcement-bar {
    width: 100%;
    background: var(--fucsia);
    color: white;
    overflow: hidden;
    padding: 8px 0;
    white-space: nowrap;
}

.announcement-track {
    display: inline-block;
    animation: scroll-announcement 25s linear infinite;
}

.announcement-track span {
    display: inline-block;
    padding-right: 60px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- 8. SECCIÓN HISTORIA --- */
.nuestra-historia {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, var(--fucsia-soft) 100%);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.historia-container {
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    gap: 60px;
}

.historia-image img {
    width: 100%;
    max-width: 500px;
    height: 450px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 20px 20px 0px var(--fucsia);
}

.historia-text h2 { font-size: 2.6rem; color: #333; margin: 10px 0 20px; }

/* --- 9. GRID DE SERVICIOS --- */
.secondary-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 15px; 
    width: 100%;
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 10px;
}

.content-section {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--border-soft);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow);
    border-color: var(--fucsia);
}

.card-image-container {
    width: 100%;
    max-width: 280px;
    height: 380px;    
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-section:hover .card-img { transform: scale(1.08); }

/* --- 10. BOTONES Y LINKS --- */
.btn-registro, button, .card-link-bold {
    background: #ffffff !important;
    color: var(--fucsia) !important;
    border: 2px solid var(--fucsia) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(238, 91, 155, 0.3);
}

.btn-registro:hover, button:hover, .card-link-bold:hover {
    background: var(--fucsia) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 91, 155, 0.5);
}

/* --- 11. FOOTER REUTILIZABLE (.footer-reusable) --- */
.footer-reusable {
    background: #fff;
    border-top: 1px solid var(--border-soft);
    padding-top: 50px;
    width: 100%;
}

.footer-reusable .footer-map {
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.footer-reusable .footer-map h3 { 
    color: var(--fucsia); 
    font-size: 1.8rem;
    margin-bottom: 5px; 
}

.footer-reusable .footer-map p {
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-reusable .footer-map iframe { 
    border-radius: 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.footer-reusable .footer-content {
    background: var(--fucsia-soft);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

/* Iconos Sociales Reutilizables */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    margin-bottom: 20px;
}

.icono {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.social-links a:hover .icono {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 10px var(--fucsia));
}

/* Links Legales (Privacidad/Términos) */
.links-legales {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.links-legales a {
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
}

.links-legales a:hover { color: var(--fucsia); transform: translateY(-2px); }

.links-legales a::after {
    content: '';
    position: absolute;
    width: 0; height: 1.5px; bottom: 0; left: 50%;
    background-color: var(--fucsia);
    transition: var(--transition);
    transform: translateX(-50%);
}

.links-legales a:hover::after { width: 80%; }

/* --- 12. COOKIE BANNER REUTILIZABLE (.cookie-reusable) --- */
.cookie-reusable {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--fucsia);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1999;
}

.cookie-reusable p { font-size: 0.9rem; margin: 0; color: #444; }

/* --- 13. PRIVACY BANNER (MODAL CENTRAL) --- */
#privacy-banner {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 25px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 2000;
    border: 2px solid var(--fucsia);
}

.terminos-scroll {
    max-height: 120px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    background: var(--fucsia-soft);
    font-size: 0.8rem;
    border-radius: 10px;
    text-align: left;
    color: #666;
}

/* --- 14. RESPONSIVE --- */
@media (max-width: 768px) {
    .home-hero, .historia-container { flex-direction: column; text-align: center; }
    .hero-text h2 { font-size: 2.2rem; }
    .hero-image img, .historia-image img { width: 100%; height: auto; max-width: 350px; }
    .secondary-sections { grid-template-columns: 1fr; }
    .cookie-reusable { flex-direction: column; gap: 10px; border-radius: 20px; text-align: center; }
}