/* ========================================================
   HEADER, HERO Y COMPONENTES DINÁMICOS DEL INDEX
======================================================== */

/* Top bar e Integración de Menú */
.top-bar {
    background-color: var(--azul-oscuro);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar a, .top-bar span {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    padding: 16px 0;
}
.navbar-brand img { max-height: 48px; }
.nav-link {
    color: #475569;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem !important;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--azul-corporativo); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background-color: var(--azul-corporativo);
    border-radius: 2px;
}
.btn-portal {
    background-color: var(--azul-corporativo);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-portal:hover {
    background-color: #0037a3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 70, 199, 0.25);
}

/* Hero Sección */
.hero-moderno {
    min-height: 85vh;
    background-image: url('../assets/img/fondo_.png'); /* 📸 TU IMAGEN PRINCIPAL */
    background-size: cover;
    background-position: center;
    padding: 120px 0 160px 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(7, 17, 34, 0.95) 0%, rgba(7, 17, 34, 0.75) 50%, rgba(7, 17, 34, 0.3) 100%);
    z-index: 1;
}
.text-blue-gradient {
    color: #3b82f6;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-primary-modern {
    background-color: var(--azul-corporativo);
    color: #fff;
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-primary-modern:hover {
    background-color: #0037a3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 199, 0.35);
}
.btn-outline-modern {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-outline-modern:hover {
    background-color: #fff;
    color: var(--azul-oscuro);
    transform: translateY(-2px);
}
.icon-box-side {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #3b82f6; font-size: 1.2rem; flex-shrink: 0;
}

/* Ratón Scroll Animación */
.scroll-indicator {
    position: absolute; bottom: 45px; left: 50%;
    transform: translateX(-50%); z-index: 3; font-size: 0.62rem; letter-spacing: 1.5px;
}
.mouse-scroll {
    width: 18px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; position: relative;
}
.mouse-scroll::before {
    content: ''; width: 4px; height: 6px; background-color: #fff;
    position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    border-radius: 2px; animation: scrollM 1.4s infinite;
}
@keyframes scrollM { 0% { opacity: 1; top: 5px; } 100% { opacity: 0; top: 15px; } }

/* Barra Flotante */
.cifras-flotantes { margin-top: -65px; }
.cifras-wrapper {
    background-color: rgba(7, 17, 34, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.cifra-icon { font-size: 1.6rem; color: #3b82f6; opacity: 0.8; }
@media (min-width: 768px) {
    .border-end-md { border-right: 1px solid rgba(255, 255, 255, 0.08) !important; }
}

/* Tarjetas Asimétricas de Servicios */
.card-servicio {
    background: #ffffff;
    border-radius: 14px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.4s ease;
}
.card-servicio-img { position: relative; }
.card-servicio-icon {
    position: absolute; bottom: -20px; left: 24px;
    width: 44px; height: 44px; background-color: var(--azul-corporativo);
    color: #ffffff; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(0, 70, 199, 0.3);
}
.card-servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

/* Galería de Obras */
.card-obra {
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.card-obra img { transition: transform 0.5s ease; object-fit: cover; height: 220px; }
.card-obra:hover img { transform: scale(1.04); }

/* Listado interactivo de sucursales */
.list-sucursales li {
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.list-sucursales li.active, .list-sucursales li:hover {
    background-color: #ffffff;
    border-color: rgba(0, 70, 199, 0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}
.sucursal-dot {
    width: 10px; height: 10px; background-color: #cbd5e1; border-radius: 50%;
}
.list-sucursales li.active .sucursal-dot { background-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }

/* Mockup del software */
.mockup-header { background-color: #1e293b; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dot-win { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Contacto e Inputs */
.bg-cta {
    background-image: url('../assets/img/carretera-cta.jpg'); /* 📸 TU IMAGEN DE FONDO PARA EL CONTACTO */
    background-size: cover; background-position: center;
}
.icon-contact-box {
    width: 40px; height: 40px; background: rgba(255,255,255,0.08);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #3b82f6; font-size: 1.1rem;
}
.form-control-modern {
    background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 16px; border-radius: 8px;
}
.form-control-modern:focus {
    background-color: #fff; border-color: var(--azul-corporativo); box-shadow: none;
}