html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    min-height: 100vh;
}
/* Estilos personalizados para simular el diseño de la imagen */
body {
    background-color: #e5e7f2 !important; /* Fondo claro #dfe0e8 #5e648e #f8f9fa;*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Estilos personalizados para acercarse al diseño de la imagen */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333; /* Color de texto principal */
}

.navbar-brand, .nav-link, .footer-link {
    font-weight: 500;
}
.fondo {    
    background-image: url('../img/Fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}
.panelSemiTransparente {
    --bs-bg-opacity: 0.8;
    background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))  !important
}
.hero-section {
    padding: 100px 0;
    /* Fondo ligeramente gris claro  background-color: #f8f9fa; */
}

.hero-title {
    font-size: 3rem; /* Equivalente a display-4 */
    font-weight: 700;
    color: #0d1a3c; /* Azul oscuro para el título */
}

.feature-card {
    border: 1px solid #dee2e6;
    border-radius: 1rem; /* Esquinas redondeadas */
    padding: 30px;
    text-align: left;
    transition: transform 0.3s;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);    
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon-wrapper {
    background-color: #e6f1f8; /* Fondo claro para el icono */
    color: #007bff; /* Color principal para el icono */
    padding: 15px;
    border-radius: 0.75rem;
    display: inline-block;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.footer {
    background-color: #212529; /* Color de fondo oscuro del footer */
    color: #ccc; /* Texto gris claro */
    padding: 50px 0 20px 0;
    font-size: 0.9rem;
}

    .footer a {
        color: #ccc;
        text-decoration: none;
    }

        .footer a:hover {
            color: #fff;
        }
/* Botones principales */
.btn-primary {
    background-color: #007bff; /* Azul primario */
    border-color: #007bff;
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    font-weight: 600;
    border-radius: 0.5rem;
}


.login-card {
    max-width: 440px;
    margin: 2rem auto;    
    padding: 30px;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: center;
    border-top: 5px solid #0d6efd;
}

.register-card {
    max-width: 500px;
    margin: 2rem auto;
    padding: 30px;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: center;
    border-top: 5px solid #0d6efd;
}

.header-icon {
    font-size: 2.5rem;
    color: white;
    /* background-color: #0d6efd;*/
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    color: #343a40;
    font-weight: 600;
}

.alert-info-custom {
    background-color: #e9f7ff;
    border-left: 5px solid #0d6efd;
    color: #0d6efd;
    padding: 1rem;
    border-radius: 0.5rem;
    /* Justificación aplicada al texto azul */
    text-align: justify;
}

.alert-warning-custom {
    background-color: #fff3cd; /* Color amarillo claro de Bootstrap */
    border-left: 5px solid #ffc107; /* Borde amarillo más fuerte */
    color: #664d03;
    padding: 1rem;
    border-radius: 0.5rem;
    /* Justificación aplicada al texto amarillo */
    text-align: justify;
}

.btn-primary {
    /* Asegurar que el botón "Registrar" tenga el estilo principal de Bootstrap */
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Estilo para el botón de eliminar alumno */
.btn-remove-alumno {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove-alumno:hover {
    color: #bb2d3b;
}


        /* Estilos de título y subtítulo */
        .main-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #0d1a3c;
            margin-bottom: 0.5rem;
        }
        .subtitle {
            color: #6c757d;
            margin-bottom: 2rem;
        }

        /* Estilos específicos de campos de formulario (para coincidir con el diseño) */
        .form-label {
            text-align: left;
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        .form-control {
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            border-color: #ced4da;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }
        .form-control:focus {
            border-color: #80bdff;
            box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
        }

        /* Botón de acceso */
        .btn-acceder {
            width: 100%;
            padding: 0.8rem 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            background-color: #007bff;
            border-color: #007bff;
            border-radius: 0.5rem;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }
/* --- ESTILO PARA BOTÓN DESHABILITADO GRIS --- */
/* Aplica estilo al botón específico cuando está deshabilitado */
#button-enviar-codigo[disabled] {
    color: #6c757d !important; /* Texto gris de Bootstrap secondary */
    border-color: #6c757d !important; /* Borde gris de Bootstrap secondary */
    background-color: #f8f9fa !important; /* Fondo ligeramente más claro que el botón deshabilitado por defecto */
    cursor: not-allowed;
    /* Se asegura de que no haya efectos hover/active */
    pointer-events: none;
}
/* --- CORRECCIÓN CRUCIAL PARA RESALTADO DE SELECT2 --- */
.was-validated .select2-container--bootstrap-5 .select2-selection--single:not([aria-expanded]):not(.is-valid),
.was-validated .select2-container--bootstrap-5 .select2-selection--single.is-invalid {
    border-color: #dc3545 !important; /* Rojo de Bootstrap */
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.15rem 1.15rem !important;
}

.select2-container {
    width: 100% !important;
    flex: 1 1 auto; /* Para que funcione bien dentro de input-group */
}

.input-group > .select2-container--bootstrap-5 {
    width: auto;
    flex: 1 1 auto;
}

.input-group > .select2-container--bootstrap-5 .select2-selection--single {
    height: 100%;
    line-height: inherit;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}

/* --- Contenedor con bordes redondeados y scroll horizontal --- */
.tabla-contenedor {
    width: 97%;
    overflow-x: auto; /* Permite scroll en móviles */
    border: 1px solid #e5e7eb; /* Gris muy suave (borde externo) */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Sombra sutil */
    margin-bottom: 1rem;
    margin-left:10px;
    font-family: sans-serif; /* Fuente limpia */
}

/* --- Estructura de la Tabla --- */
.tabla-estilo {
    width: 100%;
    border-collapse: collapse; /* Une los bordes */
    background-color: #ffffff;
}

    /* --- Cabecera (Thead) --- */
    .tabla-estilo thead th {
        background-color: #f3f4f6; /* Gris claro de fondo (bg-gray-100) */
        color: #4b5563; /* Texto gris oscuro (text-gray-600) */
        font-size: 0.75rem; /* Letra pequeña (text-xs) */
        font-weight: 700; /* Negrita */
        text-transform: uppercase; /* Mayúsculas */
        text-align: left;
        padding: 12px;
        border-bottom: 1px solid #e5e7eb; /* Línea separadora */
    }

    /* --- Cuerpo (Tbody) y Celdas --- */
    .tabla-estilo tbody td {
        padding: 8px 12px;
        font-size: 0.875rem; /* Tamaño normal pequeño (text-sm) */
        color: #111827; /* Texto negro suave (text-gray-900) */
        border-bottom: 1px solid #e5e7eb; /* Línea divisoria entre filas */
        /* Evita que el texto se rompa en varias líneas white-space: nowrap;  */
        text-align: left;
    }

    /* --- Última fila sin borde abajo (Opcional, para pulcritud) --- */
    .tabla-estilo tbody tr:last-child td {
        border-bottom: none;
    }

/* --- Clase extra para texto un poco más claro (nombres) --- */
.texto-secundario {
    color: #4b5563 !important; /* Gris medio */
}

.tabla-estilo2 {
    width: 100%;
    border-collapse: collapse; /* Une los bordes */
    background-color: #f3f4f6;
}

.tabla-estilo2 thead th {
    background-color: #f3f4f6; /* Gris claro de fondo (bg-gray-100) */
    color: #4b5563; /* Texto gris oscuro (text-gray-600) */
    font-size: 0.75rem; /* Letra pequeña (text-xs) */
    font-weight: 700; /* Negrita */
    text-transform: uppercase; /* Mayúsculas */
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb; /* Línea separadora */
}

.fondo_gris {
    background-color: rgb(212, 218, 223) !important
}