/* =======================================================================
   1. IMPORTACIÓN DE FUENTES
   ======================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* =======================================================================
   2. VARIABLES Y CONFIGURACIÓN (:root)
   ======================================================================= */
:root {
    /* Paleta de Colores */
    --color-primary: #D4C4E0;       /* Lavanda */
    --color-secondary: #8B7BA8;     /* Morado */
    --color-black: #000000;         /* Fondos oscuros */
    --color-white: #FFFFFF;         /* Fondos claros / Textos */
    --color-text-dark: #2C2C2C;     /* Texto General */
    --color-bg-light: #F8F9FA;      
    
    /* Tipografía */
    --font-serif: 'Cormorant Garamond', serif; 
    --font-sans: 'Montserrat', sans-serif;    
}

/* =======================================================================
   3. RESET Y BASE
   ======================================================================= */
body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-black);
    perspective: 1500px; 
    overflow-x: hidden; /* Vital para evitar scroll horizontal */
}

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-serif);
}

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

/* Clases de utilidad de marca */
.bg-brand-black { background-color: var(--color-black) !important; color: var(--color-white); }
.bg-brand-white { background-color: var(--color-white) !important; color: var(--color-text-dark); }
.bg-brand-light { background-color: var(--color-bg-light) !important; }
.brand-text { color: var(--color-text-dark); }

/* =======================================================================
   4. NAVBAR & MENÚ
   ======================================================================= */
.brand-section {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-black) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--color-secondary) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 1;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* --- ESTILOS DEL BOTÓN HAMBURGUESA --- */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.8) !important; /* Borde blanco forzado */
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.5); /* Resplandor blanco al click */
}

/* SVG para forzar líneas BLANCAS en el ícono */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important; /* Quitamos filtros antiguos */
}


/* =======================================================================
   5. OPTIMIZACIÓN Y LAYOUT (Sticky & Z-Index)
   ======================================================================= */
section.sticky-section {
    position: relative;
    min-height: 100vh;
    transform: translateZ(0); 
    will-change: transform; 
}

/* Z-index progresivo */
#hero       { z-index: 1 !important; }
#sobre-mi   { z-index: 2 !important; }
#enfoque    { z-index: 3 !important; }
#areas-atencion { z-index: 4 !important; }
#resenas    { z-index: 5 !important; }
#contacto   { z-index: 6 !important; }

/* =======================================================================
   6. FONDOS Y VIDEO
   ======================================================================= */
.video-bg {
    object-fit: cover;
    z-index: 0;
    backface-visibility: hidden;
}

.bg-overlay-white {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.bg-gradient-animated {
    background: linear-gradient(270deg, #ffffff, #e3f0e8, #d0e8e3, #ffffff);
    background-size: 600% 600%;
    animation: gradientFlow 18s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* =======================================================================
   7. ELEMENTOS FLOTANTES (SHAPES)
   ======================================================================= */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.8;
    z-index: 0; 
    will-change: transform;
    mix-blend-mode: multiply;
    transition: transform 0.1s linear;
}

.shape-green-1 { width: 450px; height: 450px; background: #F1F8E9; top: -80px; left: -100px; }
.shape-green-2 { width: 300px; height: 300px; background: #DCEDC8; bottom: 5%; right: -50px; }
.shape-green-3 { width: 500px; height: 500px; background: #F1F8E9; top: -50px; right: -150px; }
.shape-green-4 { width: 320px; height: 320px; background: #DCEDC8; bottom: -60px; left: -20px; }
.shape-green-5 { width: 180px; height: 180px; background: #C5E1A5; top: 35%; left: 45%; opacity: 0.6; }
.shape-green-6 { width: 150px; height: 150px; background: #AED581; top: 15%; left: 15%; opacity: 0.5; }

/* =======================================================================
   8. CARDS (Estilo General)
   ======================================================================= */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 60px rgba(139, 123, 168, 0.25);
    border-color: var(--color-secondary);
    border-width: 1px;
    z-index: 10;
    background-color: rgba(212, 196, 224, 0.08);
}

.card:hover .card-body {
    background-color: rgba(212, 196, 224, 0.05);
}

.card:hover h3, .card:hover h4, .card:hover h5 {
    color: var(--color-secondary);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(212, 196, 224, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }


/* =======================================================================
   9. INTERACTIVIDAD CONTACTO Y TEXTO
   ======================================================================= */
/* Efecto Elevación Suave para Contacto */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-elevate:hover {
    transform: translateY(-5px) !important; /* Importante para sobrescribir otros transform */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

section h1, section h2, section p, section .btn {
    transition: transform 0.2s ease-out;
    will-change: transform;
    position: relative;
}

section a {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* =======================================================================
   10. FOOTER
   ======================================================================= */
.footer-section {
    padding: 2rem 0;
    position: relative;
    z-index: 100;
}

/* =======================================================================
   11. RESPONSIVE Y ESTABILIDAD MÓVIL
   ======================================================================= */
@media (max-width: 992px) {
    /* Desactivar animaciones de mouse complejas en móvil */
    .bg-gradient-animated, 
    section, 
    div, 
    .card,
    h1, h2, h3, p {
        transform: none !important; 
        transition: none !important;
    }
    
    /* Asegurar que el body no haga scroll lateral */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Corrección para estrella de reseñas */
    .bi-star-fill {
        fill: #ffc107;
    }
}