/* Variables Syn Elec */
:root {
    --dark-blue: #0A192F;
    --red: #E63946;
    --cyan: #00B4D8;
    --yellow: #FFD166;
}

/* Configuraciones Globales y Animaciones */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* EFECTO AURA / RESPLANDOR PARA LOGO PNG */
.logo-transparent {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important; 
    
    /* Efecto de doble resplandor */
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 15px rgba(0, 180, 216, 0.6)) !important;
            
    transition: filter 0.3s ease;
}

/* Efecto extra: Al pasar el mouse, el brillo cian aumenta levemente */
.logo-transparent:hover {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 25px rgba(0, 180, 216, 0.9)) !important;
}

/* Ajuste específico para la barra de navegación */
.navbar .logo-transparent {
    padding: 5px 10px !important;
    border-radius: 8px !important;
    box-shadow: none !important; 
}

/* Logos: Ajustes de tamaño unificados */
.logo-nav {
    height: 45px !important;
    object-fit: contain;
}
.logo-main-hero {
    max-width: 500px !important;
    object-fit: contain;
}
.logo-footer {
    height: 70px;
    object-fit: contain;
}

/* Utilidades de Texto y Color */
.text-dark-blue { color: var(--dark-blue); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }
.text-yellow { color: var(--yellow); }
.bg-dark-blue { background-color: var(--dark-blue); }

.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--cyan);
    margin-top: 10px;
    border-radius: 2px;
}

/* Navbar */
/* --- MENÚ TENDENCIA CENTRADO --- */
.custom-navbar {
    background-color: rgba(10, 25, 47, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    width: fit-content;
    min-width: 300px;
    max-width: 90%;
    margin: 25px auto 0 auto;
    padding: 5px 20px;
    transition: all 0.4s ease;
    left: 0;
    right: 0;
}

.custom-navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.9) !important;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 180, 216, 0.3);
}

/* Enlaces del menú */
.custom-navbar .nav-link {
    color: #e0e0e0;
    font-weight: 500;
    margin: 0 2px;
    padding: 8px 20px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    background-color: rgba(0, 180, 216, 0.15);
    color: var(--cyan) !important;
}

/* Botones */
.btn-primary-custom {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 12px 30px;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background-color: #c92c38;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background-color: #0A192F;
    background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.95)), url('portada.jpeg');
    background-position: center;
    background-size: cover;
    height: 100vh;
    min-height: 600px;
}

/* Tarjetas */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card-img-custom {
    height: 200px;
    object-fit: cover;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}
.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-minus-40 {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.border-bottom-cyan {
    border-bottom: 5px solid var(--cyan) !important;
}

/* Animaciones On-Scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.hover-cyan:hover {
    color: var(--cyan) !important;
}

/* =========================================================
   CORRECCIONES RESPONSIVE (MÓVILES) - WEB Y CRM
   ========================================================= */
@media (max-width: 991px) {
    .custom-navbar {
        width: 90%;
        border-radius: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* =========================================================
   CORRECCIONES RESPONSIVE (MÓVILES) - WEB Y CRM
   ========================================================= */
@media (max-width: 991px) {
    .custom-navbar {
        width: 95%;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    /* 1. Corrección de la Barra y Menú Hamburguesa BLANCO */
    .custom-navbar .container-fluid {
        display: flex !important;
        justify-content: space-between !important; /* Logo izquierda, Menú derecha */
        align-items: center !important;
    }

    /* Forzar botón hamburguesa a color blanco */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.4) !important;
        padding: 5px 8px !important;
    }
    
    .navbar-toggler-icon {
        /* Este filtro mágico convierte el ícono negro en blanco puro */
        filter: invert(1) brightness(100) !important; 
    }

    /* 2. Corrección del Logo para que NO desborde */
    .navbar-brand {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
    }

    .navbar-brand img, .logo-transparent {
        max-width: 250px !important; /* Tope de ancho para celular */
        max-height: 250px !important; /* Tope de alto para que no rompa la barra */
        height: auto !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* 3. Corrección del Calendario CRM (FullCalendar) */
    .fc .fc-toolbar.fc-header-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        margin-bottom: 1rem !important;
    }
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 5px;
    }
    .fc .fc-toolbar-title {
        font-size: 1.2rem !important;
        text-align: center;
    }
    .fc .fc-button {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
}
/* Notificaciones no leídas */
.notif-unread {
    background-color: rgba(0, 180, 216, 0.1) !important; /* Fondo cian muy claro */
    border-left: 4px solid var(--cyan) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.notif-unread .text-muted {
    color: #495057 !important; /* Oscurecemos el texto para mayor contraste */
}
/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999; /* Vital: asegura que esté por encima de cualquier otro elemento */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1); /* Pequeño efecto visual al pasar el mouse */
}

/* --- REGLA ESPECÍFICA PARA DISPOSITIVOS MÓVILES (Responsive) --- */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 55px; /* Ligeramente más pequeño para no tapar la lectura */
        height: 55px;
        bottom: 20px; /* Reducimos el margen inferior */
        right: 20px;  /* Reducimos el margen lateral */
        font-size: 28px;
        z-index: 999999; /* Forzamos un nivel extremo para evitar que el footer lo tape */
        display: flex !important; /* Garantiza que ninguna otra regla lo oculte */
    }
}
/* Efecto de elevación para Consultoría */
.service-card-hover {
    transition: all 0.3s ease-in-out;
}
.service-card-hover:hover {
    transform: translateX(10px); /* Se mueve levemente a la derecha */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
/* ===================================================
   INDICADOR DE SCROLL DESTACADO EN MÓVILES (SYN ELEC)
   =================================================== */

/* CÁPSULA FLOTANTE CON EFECTO CRISTAL Y BORDE CIAN */
.scroll-indicator-pill {
    background: rgba(8, 20, 38, 0.82); /* Fondo oscuro con transparencia */
    border: 1px solid rgba(0, 210, 255, 0.5); /* Borde Cian Neón */
    padding: 8px 22px;
    border-radius: 50px; /* Forma de píldora redondeada */
    backdrop-filter: blur(8px); /* Efecto cristal esmerilado */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-indicator-pill:active {
    transform: scale(0.96);
}

/* TEXTO CIAN BRILLANTE CON MAYÚSCULAS */
.scroll-text {
    color: #00d2ff !important; /* Cian corporativo de Syn Elec */
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

/* ÍCONO FLECHA */
.scroll-icon-box {
    font-size: 1.1rem;
    line-height: 1;
}

/* ANIMACIÓN DE REBOTE CON LUZ PARPADEANTE (GLOW BOUNCE) */
.bounce-glow {
    display: inline-block;
    animation: bounceGlow 1.8s infinite ease-in-out;
}

@keyframes bounceGlow {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 4px #00d2ff);
        opacity: 0.8;
    }
    50% {
        transform: translateY(6px);
        filter: drop-shadow(0 0 12px #00d2ff);
        opacity: 1;
    }
}