﻿/* ==========================================================================
   hero-nav.css - VERSIÓN FINAL: HYBRID MENU + BLACK COUNTER
   ========================================================================== */

:root {
    --bs-navy: #0f172a;
    --bs-cyan: #00E5FF;
    --bs-orange: #F2A900;
    --nav-height: 90px;
    --nav-scroll-height: 75px;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn {
    font-family: 'Manrope', sans-serif;
}

/* ==========================================================================
   1. NAVBAR (ESCRITORIO - BLANCO)
   ========================================================================== */
.glass-nav, .glass-nav.scrolled {
    background-color: #ffffff !important; /* SIEMPRE BLANCO */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: var(--nav-height);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f1f5f9;
}

/* Links Escritorio (Oscuros) */
.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 10px 22px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #334155 !important; /* Gris Oscuro */
}

    .nav-link:hover, .nav-link.active {
        color: var(--bs-navy) !important;
        background: rgba(15, 23, 42, 0.05);
        font-weight: 800;
    }

/* ==========================================================================
   2. NAVBAR MÓVIL (BARRA BLANCA + MENÚ GRIS)
   ========================================================================== */
@media (max-width: 991.98px) {

    /* A. LA BARRA SUPERIOR (HEADER) -> BLANCA */
    .glass-nav {
        height: auto !important;
        padding: 10px 0;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0;
    }

    /* B. EL ÁREA DE OPCIONES -> GRIS */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #f1f5f9; /* GRIS CLARO */
        padding: 1.5rem;
        overflow-y: auto;
        display: none;
        flex-direction: column;
    }

        .navbar-collapse.show {
            display: flex !important;
            animation: slideDownMenu 0.4s ease-out;
        }

    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* C. LOS LINKS (TARJETAS BLANCAS) */
    .nav-link {
        width: 100%;
        padding: 18px 15px !important;
        font-size: 1.1rem;
        color: #0f172a !important;
        background: #ffffff; /* Blanco */
        border: 1px solid #e2e8f0;
        margin-bottom: 10px; /* Separación */
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

        .nav-link:hover, .nav-link.active {
            background: #ffffff;
            color: var(--bs-cyan) !important;
            padding-left: 25px !important;
            border-left: 4px solid var(--bs-cyan);
            transform: translateX(5px);
        }

    /* Botón diagnóstico móvil */
    .btn-accent-custom {
        width: 100%;
        margin-top: 15px;
        box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
    }
}

/* HAMBURGUESA (Oscura) */
.navbar-toggler {
    border: none !important;
    padding: 10px !important;
    z-index: 1060;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #0f172a !important;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background-color: var(--bs-cyan) !important;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: var(--bs-cyan) !important;
}

/* ==========================================================================
   3. CONTADOR DE VISITAS (FONDO NEGRO + LETRAS BLANCAS)
   ========================================================================== */

/* APLICADO A AMBOS (DESKTOP Y MÓVIL) */
.visit-counter-nav,
.visit-counter-mobile {
    display: flex;
    align-items: center;
    background: #000000 !important; /* FONDO NEGRO PURO */
    border: 1px solid #333; /* BORDE SUTIL */
    color: #ffffff !important; /* LETRAS BLANCAS */
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-right: 15px;
}

    /* Hover solo Desktop */
    .visit-counter-nav:hover {
        transform: translateY(-2px);
        border-color: var(--bs-cyan);
        box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
    }

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px #ef4444;
    animation: blinkRed 1s infinite;
}

@keyframes blinkRed {
    50% {
        opacity: 0.5;
    }
}

.live-eye {
    margin-right: 8px;
    color: var(--bs-cyan);
}

/* IMPORTANTE: Forzar color blanco en el número */
.counter-anim {
    color: #ffffff !important;
    font-weight: 800;
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* BOTÓN DIAGNÓSTICO (Naranja) */
.btn-accent-custom {
    background: linear-gradient(135deg, #F2A900 0%, #d97706 100%);
    color: #fff !important;
    border: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

    .btn-accent-custom:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(242, 169, 0, 0.6);
    }

/* ==========================================================================
   4. HERO SLIDER (BADGES AISLADOS Y BOTONES PODEROSOS)
   ========================================================================== */
.hero-slide {
    height: 100vh;
    min-height: 650px;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: zoomEffect 30s infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

/* CENTRADO FLEXBOX */
.carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0;
    text-align: left;
}

    .carousel-caption .container {
        position: relative;
        z-index: 12;
        width: 100%;
    }

/* --- BADGES NUEVOS --- */
.hero-badge-slider {
    display: inline-block;
    padding: 10px 22px;
    background: #22d3ee !important;
    color: #0f172a !important;
    border-radius: 6px;
    font-weight: 900 !important;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6);
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 20;
}

    .hero-badge-slider.mode-warning {
        background: #f59e0b !important;
        color: #ffffff !important;
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
    }

    .hero-badge-slider.mode-success {
        background: #10b981 !important;
        color: #ffffff !important;
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
    }

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.3rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 650px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- BOTONES --- */
.hero-btn-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-hero-glow {
    position: relative;
    padding: 18px 40px;
    background: #2563eb;
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-hero-glow:hover {
        transform: translateY(-5px);
        background: #1d4ed8;
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.9);
    }

.btn-hero-outline {
    padding: 16px 40px;
    background: rgba(0,0,0,0.4);
    color: #fff !important;
    border: 2px solid #ffffff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-hero-outline:hover {
        background: #ffffff;
        color: #0f172a !important;
        transform: translateY(-3px);
    }

/* ==========================================================================
   5. RESPONSIVE (MÓVIL)
   ========================================================================== */
@media (max-width: 991px) {
    .carousel-caption {
        text-align: center;
    }

        .carousel-caption .row {
            justify-content: center;
        }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 30px;
        font-weight: 600;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-hero-glow, .btn-hero-outline {
        width: 100%;
        padding: 20px 0;
        font-size: 1.1rem;
    }

    /* Widget server status movil */
    .mobile-stats-widget {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.autotype {
    color: var(--bs-cyan);
    font-weight: 800;
}
