:root { 
    --primary-blue: #0B2265;     /* Azul corporativo sobrio extraído del logo */
    --accent-orange: #ee731b;    /* Naranja brillante del logo para detalles y hovers */
    --dark-blue-bg: #051030;     /* Azul ultra oscuro para fondos profundos (Navbar/Footer) */
    --light-bg: #F8F9FA;         /* Fondo gris muy claro para contraste */
    --silver: #F4F4F4; 
    --text-white: #FFFFFF;       /* Blanco puro: El color que predomina en las siglas BSO */
    
    /* Configuración del Footer */
    --footer-bg: #051030;        /* Mismo azul profundo para consistencia */
    --footer-text: #E9ECEF;
}


/* Ajuste sutil para la seriedad del centro */
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--light-bg);
    color: var(--dark-black);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Esto evita que el menú sticky tape el título de la sección al llegar */
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1050 !important;
    background-color: var(--primary-blue) !important; /* Fondo Azul solicitado */
    border-bottom: 3px solid var(--accent-orange);    /* Línea naranja de contraste */
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Estilo base sin raya */
.nav-link {
    color: var(--text-white) !important; /* Letras Blancas solicitadas */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

/* Color del botón hamburguesa en móviles */
.navbar-toggler {
    border-color: var(--primary-red) !important;
}

/* Opcional: Si prefieres que el fondo del botón resalte al tocarlo */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(27, 77, 62, 0.25);
}

@media (max-width: 991.98px) {
    
    .navbar-collapse {
        background-color: var(--dark-blue-bg) !important; /* Azul profundo en móvil */
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid var(--accent-orange);           /* Borde naranja de resalte */
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        margin-top: 15px;
    }

    /* Aseguramos que los links dentro del menú móvil sean blancos */
    .navbar-nav .nav-link {
        color: var(--text-white) !important;              /* Letras blancas */
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* Estilo para el link activo o hover en móvil */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--accent-orange) !important;            /* Naranja al pasar el toque */
        border-bottom: 1px solid var(--accent-orange) !important;
    }
    
}

/* Hover y estado activo en Naranja */
.nav-link:hover, 
.nav-link.active {
    color: var(--accent-orange) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
    transform: translateY(-2px);
}

.hero-section { 
    /* He actualizado la URL por una que evoca esperanza y apoyo mutuo */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1516937941344-00b4e0337589?auto=format&fit=crop&w=1350&q=80'); 
    height: 80vh; 
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    color: white; 
}

/* Estilos para el texto del Hero */
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p.lead {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: 0;
}

/* Ajuste del contenedor para centrar todo */
.hero-section {
    text-align: left;
    justify-content: flex-start;
}

/* Nuevo bloque de estilos específicos para el Hero de Barso */
.hero-barso {
    background-image: 
        linear-gradient(180deg, rgba(5, 16, 48, 0.9) 0%, rgba(5, 16, 48, 0.4) 60%, rgba(245, 134, 52, 0.1) 100%),
        url('/public/img/hero_barso_industrial.png');
    background-size: cover;
    background-position: center bottom;
    position: relative;
    height: 85vh;
}

.text-shadow {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8) !important;
}

.hero-content {
    max-width: 900px;
}

.btn-outline-white {
    border: 2px solid white !important;
    color: white !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: white !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.btn-accent-orange {
    border: 2px solid var(--accent-orange) !important;
    color: white !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-accent-orange:hover {
    background-color: var(--accent-orange) !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.hero-map-locator, .hero-bso-accent {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-barso {
        height: 75vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p.lead {
        font-size: 1.3rem;
    }
}

.border-danger, .cita-destacada {
    border-color: var(--accent-orange) !important;
}

.quienes-somos-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.cita-destacada {
    background-color: rgba(245, 134, 52, 0.05); /* Fondo naranja sutil */
    padding: 20px;
    border-left: 5px solid var(--primary-blue);   /* Línea guía en azul */
    font-style: italic;
    color: var(--accent-orange);
    font-weight: 500;
}

/* Botones Principales y Cards */
.btn-primary { 
    background-color: var(--accent-orange); 
    border: none; 
}

.btn-primary:hover { 
    background-color: var(--primary-blue); 
}

.course-card { 
    transition: all 0.3s ease-in-out; 
    border: none; 
    border-bottom: 5px solid var(--primary-blue); /* Base azul para tarjetas */
}

.course-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.course-card img {
    height: 220px;
    object-fit: cover;
}

/* Botón de Validación (Ahora Rojo) */
.btn-validar {
    background-color: transparent;
    border: 2px solid var(--primary-red) !important;
    color: var(--text-white) !important;
    border-radius: 4px;
    font-weight: bold;
    padding: 8px 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-validar:hover {
    background-color: var(--primary-red) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(227, 30, 36, 0.3);
}

.form-control:focus, .form-select:focus {
    border-color: #033500;
    box-shadow: 0 0 0 0.25rem rgba(13, 159, 0, 0.3);
}
/* .card {
    border-radius: 0; /* Estilo cuadrado para coherencia con la marca 
} */

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Acordeón de preguntas/detalles */
.accordion-button:not(.collapsed) {
    background-color: rgba(11, 34, 101, 0.1);    /* Fondo azul sutil */
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(216, 76, 24, 0.25);
}

/* Estilos para el Footer */

/* Ajuste del Footer */
footer.main-footer, 
.main-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 60px 0 30px;
    border-top: 6px solid var(--accent-orange) !important; /* Unión naranja superior */
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-orange) !important; 
    padding-left: 5px;
    transition: all 0.3s ease;
}

.footer-social-icon {
    background: var(--accent-orange) !important; /* Botones sociales en naranja */
    color: white !important;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.2); /* Efecto de brillo al pasar el mouse */
}
/* Botón de WhatsApp Flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    background-color: #128c7e;
}

/* Ajuste para que el botón no tape información en móviles pequeños */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
}

/*----------------------------------------------------------------------------*/

/* Footer General */
footer {
    background-color: #1a1a1a !important; /* Aseguramos un negro profundo */
    border-top: 2px solid #E31E24 !important; /* Línea más fina (de 4px a 2px) */
    color: #ffffff !important; /* Forzamos texto blanco general */
}

/* Color para iconos de contacto en el footer */
.text-red {
    color: var(--accent-orange) !important; /* Cambia dinámicamente la clase antigua al nuevo naranja */
}

/* Títulos del Footer */
footer h5 {
    color: #ffffff !important;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Enlaces del Footer (Aquí estaba el problema) */
.footer-links a {
    color: #bbbbbb !important; /* Un gris claro para que no compita con el blanco puro */
    transition: all 0.3s ease;
    display: inline-block;
}

/* Enlaces del Footer */
.footer-links a:hover {
    color: var(--accent-orange) !important;
    padding-left: 5px;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Iconos y párrafos de contacto */
footer p, footer i {
    color: #dddddd !important;
}

/* Texto de copyright al final */
footer .small.text-muted {
    color: #888888 !important;
}

.partner-logo {
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Opcional: ponerlos en gris para que el del Centro VIVE destaque */
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%); /* Vuelven a color al pasar el mouse */
    transform: scale(1.05);
}

.logo-aliado {
    max-height: 60px; /* Limita la altura para que todos se vean alineados */
    width: auto;
    filter: grayscale(100%); /* Efecto blanco y negro */
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

.logo-aliado:hover {
    filter: grayscale(0%); /* Cobra color al pasar el mouse */
    opacity: 1;
    transform: scale(1.1); /* Crece un poquito */
}

/* Hover general de botones oscuros */
.btn-dark:hover {
    background-color: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Efecto de entrada para los servicios */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Esto hace que el texto "Cédula de Ciudadanía..." se vea gris claro */
#cedula_consulta::placeholder {
    color: #adb5bd !important; /* Gris claro de Bootstrap */
    opacity: 1; /* Asegura que no se vea transparente en algunos navegadores */
}

/* Opcional: Cambia el color del texto cuando el usuario escribe */
#cedula_consulta {
    color: rgb(216, 38, 38) !important;
}


/* Transición suave para el sidebar */
.sidebar {
    position: sticky;
    transition: all 0.3s;
    z-index: 1040 !important; /* Un nivel por debajo del Navbar */
}

/* En móviles (menos de 992px) ocultamos el sidebar por defecto */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -280px;
        position: fixed;
    }
    .sidebar.show {
        margin-left: 0;
    }
    .content-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    .content-overlay.show { display: block; }
}

/* Estilo para el link activo en paneles administrativos */
.nav-pills .nav-link.active {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Estilo para el hover (cuando pasas el mouse) */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0); /* Un rojo muy suave transparente */
    color: var(accent-orange) !important; /* Un rojo más brillante para el texto */
}

/* Corrección específica para el botón de Inicio si es un link simple */
.nav-link.text-white:hover {
    /* color: #dc3545 !important;  */
    color: #9d9797 !important; 
}

/* Asegurar que los sub-links (text-white-50) se vean bien al pasar el mouse */
.small .nav-link:hover {
    color: #ffffff !important;
    padding-left: 1.2rem; /* Pequeño efecto de movimiento */
    transition: all 0.2s;
}


/* Estilos para las pestañas del Admin */
#courseTab .nav-link {
    color: #333 !important; /* Texto oscuro por defecto */
    border: none;
    border-bottom: 3px solid transparent;
}

#courseTab .nav-link:hover {
    color: #dc3545 !important; /* Rojo al pasar el mouse */
}

#courseTab .nav-link.active {
    color: #dc3545 !important; /* Rojo cuando está activa */
    border-bottom: 3px solid #dc3545; /* Línea roja abajo */
    background-color: transparent;
}

/* Para los iconos dentro de las pestañas */
#courseTab .nav-link i {
    color: #dc3545;
}

/*Para manejar las imágenes de los Cards*/
.card-img-top-custom {
    height: 250px; /* O el alto que estés usando actualmente */
    object-fit: cover;
    object-position: top; /* Esto evita que se corte la parte superior */
    width: 100%;
}

/* ==========================================================================
   Sección de Detalle de Servicios (Estilo Industrial)
   ========================================================================== */

.breadcrumb-section {
    background-color: var(--silver);
    border-bottom: 1px solid #e3e7ed;
}

.service-title {
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.industrial-card {
    border: none;
    border-top: 4px solid var(--primary-blue) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tech-spec-item {
    border-left: 3px solid var(--accent-orange);
    background-color: var(--silver);
    transition: all 0.2s ease-in-out;
}

.tech-spec-item:hover {
    transform: translateX(5px);
    background-color: #eef2f7;
}

.gallery-img {
    object-fit: cover;
    height: 250px;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.main-service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Utilidad para justificar texto de ingeniería */
.text-justify {
    text-align: justify;
}

/* ==========================================================================
   Sección: Obras Realizadas (Tabla de Proyectos)
   ========================================================================== */

/* Estructura general de la tabla industrial */
.industrial-table thead th {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    text-uppercase: true;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding-top: 15px;
    padding-bottom: 15px;
    border: none;
}

.industrial-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.industrial-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e7ed;
}

/* Pequeño icono identificador de cliente */
.client-badge {
    min-width: 30px;
    height: 30px;
    background-color: #eef2f7;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Estilo para los números de contrato (Estilo código técnico) */
.industrial-table .badge {
    background-color: var(--silver);
    color: var(--primary-blue);
    border: 1px solid #d1d8e0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Resaltado suave al pasar el mouse por la fila */
.industrial-table tbody tr:hover {
    background-color: #f8fafc;
}