/* 1. CONFIGURACIÓN GLOBAL */
body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F3F8FE !important;
    font-family: 'Inter', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;

}

.bg-color {
    background-color: #F3F8FE !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.btn-login {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* 2. NAVBAR */
.nav-item .nav-link {
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item .nav-link:hover {
    transform: translateY(-3px) scale(1.05);
    color: #0647bb !important;
    /* Azul del logo */
}

/* 3. BOTÓN LOGIN Y SOMBRAS */
.btn-login {
    background: linear-gradient(to right, #0048b3, #0f9d58);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-1px);
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0, 72, 179, 0.3);
}

/* 4. HERO SECTION Y GLASSMORPHISM */
.hero-section {
    background: radial-gradient(circle at 90% 10%, rgba(15, 23, 42, 0.03), transparent);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 5. CARRUSEL (CORREGIDO) */
.carousel-inner {
    border-radius: 20px;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: left;
}

.carousel-caption-custom h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* CORRECCIÓN AQUÍ: Quitamos los corchetes de [button] */
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    opacity: 0.5;
    margin: 0 5px;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
}

.control-circle {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.carousel-control-prev:hover .control-circle,
.carousel-control-next:hover .control-circle {
    background: rgba(255, 255, 255, 0.4);
}

/* 6. COMPONENTES DE ESTADO */
.status-dot {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.badge-online {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 7. FOOTER */
footer,
#main-footer {
    background-color: #0f172a !important;
    color: #ffffff;
    margin-top: auto;
    /* Para Sticky Footer */
}

footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

footer h6 {
    letter-spacing: 1px;
    font-size: 0.9rem;
}

footer ul li {
    margin-bottom: 10px;
}

footer i {
    color: #ffffff;
}

/* Ajusta la altura máxima del contenedor de imágenes */
#heroCarousel .carousel-inner {
    height: 300px;
    /* Puedes ajustar este valor según tu diseño */
}

/* Asegura que la imagen cubra todo el espacio sin deformarse */
#heroCarousel .carousel-item img {
    height: 300px;
    object-fit: cover;
    /* Recorta la imagen para llenar el espacio sin estirarse */
    object-position: center;
}

.text-color {
    background: linear-gradient(to right, #0048b3, #0f9d58);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    justify-content: center;

}

.log-container {

    display: flex;
    /* Centra horizontalmente */
    justify-content: center;
    /* Centra verticalmente */
    align-items: center;
    /* Importante: obliga al cuerpo a medir al menos el 100% de la altura de la ventana */
    min-height: 100vh;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.login-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    /* Bordes muy redondeados como la imagen */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Sombra suave */
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}


input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

#user {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

input:focus {
    border-color: #0647bb;
}

.forgot-link {
    font-size: 13px;
    color: #0647bb;
    text-decoration: none;
    font-weight: 500;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

/* Botón con el verde de NCurso */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #0f9d58;
    /* Color verde de tu botón */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #0d8a4d;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.main-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.btn-ncurso-green {
    background-color: #28a745;
    color: white;
    border: none;
    font-weight: 500;
}


/* Contenedor del icono superior */
.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Estilo personalizado para los inputs del CRUD */
.custom-input {
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #0647bb;
    box-shadow: 0 0 0 4px rgba(6, 71, 187, 0.1);
    outline: none;
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.15);
}

/* Avatar con la inicial del nombre */
.avatar-circle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Colores suaves para los roles */
.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1);
}

.custom-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.input-group .btn {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-color: #e1e5eb;
    color: #6c757d;
}

.input-group .custom-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.alert {
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-gradient {
    background: linear-gradient(90deg, #0056b3 0%, #00a859 100%);
    border: none;
    transition: transform 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.form-control:focus {
    background-color: #fff;
    border-color: #0056b3;
    box-shadow: none;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.bg-color-forced {
    background-color: #F3F8FE !important;
}

/* Estilo general del menú desplegable */
.ncurso-dropdown {
    background-color: rgba(255, 255, 255, 0.95);
    /* Blanco casi opaco */
    backdrop-filter: blur(10px);
    /* Efecto de desenfoque */
    border-radius: 15px !important;
    padding: 10px;
    margin-top: 15px !important;
    /* Espacio para que no esté pegado al nav */
    animation: fadeInDown 0.3s ease;
}

/* Animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto Hover en los items */
.ncurso-dropdown .dropdown-item {
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ncurso-dropdown .dropdown-item:hover {
    background-color: #f3f8fe;
    /* El mismo azul de tu fondo */
    color: #0056b3;
    transform: translateX(5px);
}

/* Triángulo indicador (opcional) */
.ncurso-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.bg-grad-bg {
    background-image: linear-gradient(to right, #0048b3, #0f9d58) !important;
    color: white;
    border-radius: 12px;

}

.bg-grad-bg i {
    color: #ffffff !important;
    font-size: 1.2rem;
    /* Ajusta el tamaño si es necesario */
}

/* Degradado para los iconos de Misión y Visión */
.bg-grad-mission {
    background: linear-gradient(135deg, #0048b3, #0f9d58) !important;
}

.bg-grad-vision {
    background: linear-gradient(135deg, #0f9d58, #0048b3) !important;
}

/* Estilo para las tarjetas pequeñas de estadísticas */
.stat-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Iconos de estadísticas */
.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    color: #0048b3;
}

/* Tarjeta grande de Misión y Visión */
.card-mission-vision {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.mission-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 20px auto;
}

/* Filtros de Categoría */
.filter-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f0f4f8;
    color: #666;
}

/* Colores de categorías según tu imagen */
.btn-brigadas.active { background: linear-gradient(to right, #0048b3, #0f9d58) !important; color: white !important; }
.btn-primeros-auxilios { background: #ffe5e5; color: #d9534f; }
.btn-evacuacion { background: #fff5e1; color: #f0ad4e; }
.btn-incendios { background: #fdf2e9; color: #e67e22; }
.btn-seguridad { background: #e8f8f5; color: #1abc9c; }

/* Tarjeta de Curso */
.course-card {
    background: #ffffff;
    border-radius: 25px;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-badge {
    background: #f8f9fa;
    color: #888;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0048b3;
}

.btn-details {
    background: linear-gradient(to right, #0048b3, #0f9d58);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: bold;
    width: 100%;
}

/* Pantalla completa con el degradado institucional */
.maintenance-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f8fe 0%, #ffffff 100%);
    text-align: center;
    padding: 20px;
}

/* Contenedor principal con sombra suave */
.maintenance-card {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
}

/* Icono de brigadista con degradado y animación */
.brigadista-icon-box {
    width: 120px;
    height: 120px;
    background: linear-gradient(to right, #0048b3, #0f9d58) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 20px rgba(15, 157, 88, 0.3);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.brigadista-icon-box img {
    width: 50%;
    font-size: 3.5rem;
    color: white !important;
}

.text-working {
    color: #182B62;
    font-weight: 800;
    margin-bottom: 15px;
}

.progress-bar-custom {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    width: 60%;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(to right, #0048b3, #0f9d58);
    border-radius: 10px;
}