
/* ==========================================================================
   VARIABLES GLOBALES (Diseño Atómico)
   ========================================================================== */
:root {
    --azul-primario: #002855;    /* Oxford - Seriedad */
    --azul-profundo: #001a38;    /* Para hovers oscuros */
    --acento-moderno: #00A8E8;   /* Celeste - Tecnología */
    --dorado: #D4AF37;           /* Dorado Institucional */
    --gris-plata: #E5E5E5;
    --blanco-puro: #FFFFFF;
    --texto-oscuro: #1A1A1A;
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.3);
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   ESTILOS BASE
   ========================================================================== */
html, body {
    width: 100%;
    overflow-x: hidden; /* <--- CLAVE: Evita el scroll horizontal */
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background-color: var(--gris-plata);
    color: var(--texto-oscuro);
    line-height: 1.6;
    margin: 0;
    padding: 0; /* Aseguramos limpiar paddings residuales */
    text-align: center;
}

/* ==========================================================================
   NAVBAR CUSTOM (Glassmorphism sutil)
   ========================================================================== */
.custom-nav {
    background-color: rgba(0, 40, 85, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-nav .nav-link {
    color: var(--blanco-puro) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition-standard);
}

.custom-nav .nav-link:hover {
    color: var(--acento-moderno) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--dorado) !important;
    border-bottom: 2px solid var(--dorado);
}



/* ==========================================================================
   ANIMACIÓN DE ENTRADA
   ========================================================================== */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SECCION ADMINISTRADOR (Cards)
   ========================================================================== */
.cardAdm {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition-standard);
    padding: 20px;
}

.cardAdm:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


/* ==========================================================================
   FORMULARIO NUEVO UDUARIO
   ========================================================================== */

.nav-pills .nav-link.active {
    background-color: var(--azul-primario) !important;
    color: white !important;
}
.nav-pills .nav-link {
    color: var(--azul-primario);
}
/* Ajusta el cuerpo del modal para que no tenga tanto aire abajo */
#modalRegistro .modal-body {
    padding-bottom: 1.5rem !important; /* Achica el espacio inferior */
}

/* Elimina el espacio extra si el footer está vacío o tiene poco texto */
#modalRegistro .modal-footer {
    padding-top: 0;
    margin-top: -10px;
}

/* Asegura que el formulario no tenga márgenes internos que empujen hacia abajo */
#modalRegistro form {
    margin-bottom: 0;
}

/* Estilo para que el botón no quede pegado al borde pero tampoco muy lejos */
#modalRegistro .btn-submit {
    margin-bottom: 5px;
}

/* ==========================================================================
botn hamburguesa blanco
========================================================================== */

.navbar-toggler {
  border-color: white; /* opcional, para el borde */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* ==========================================================================
CARD LOGIN
========================================================================== */

.login-container-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--dorado);
    max-width: 450px;
    width: 100%;
    z-index: 5;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.link-secundario {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.link-secundario:hover {
    color: var(--azul-primario);
}
.separador-login {
    border-top: 1px solid #eee;
    margin: 20px 0;
    position: relative;
}

/* ==========================================================================
PANEL ALUMNOS
========================================================================== */
/* --- Estilos Encapsulados del Panel --- */
.panel-alumno-scope {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.panel-alumno-scope .navbar-custom {
    background-color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.panel-alumno-scope .task-card {
    border-radius: 8px;
    border-left: 5px solid #34495e;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.panel-alumno-scope .task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

.panel-alumno-scope .btn-primary-custom { 
    background-color: #34495e; 
    border-color: #34495e; 
    color: white; 
}

.panel-alumno-scope .btn-outline-custom { 
    color: #7f8c8d; 
    border-color: #7f8c8d; 
}

.panel-alumno-scope .btn-outline-custom:hover { 
    background-color: #7f8c8d; 
    color: #fff; 
}

/* --- BADGE DE FECHA: COLOR LLAMATIVO --- */
.panel-alumno-scope .badge-custom {
    background-color: #ff4757; /* Rojo coral vibrante */
    color: #ffffff;           /* Texto blanco */
    font-weight: bold;
    border: none;
    padding: 0.5em 1em;
    border-radius: 50px;      /* Forma redonda */
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* --- MODAL Y CENTRADO DEL CONTENIDO --- */
.panel-alumno-scope .modal-body-custom {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    padding: 20px;           /* Espacio interno para que no se pegue */
    background-color: #e9ecef;
    min-height: 400px;
}

/* Fuerza al iframe a comportarse bien dentro del contenedor */
.panel-alumno-scope iframe {
    display: block;
    width: 100%;             /* Se adapta al ancho del modal */
    max-width: 900px;        /* Limita el ancho máximo para que no se deforme */
    height: 70vh;            /* 70% de altura de pantalla */
    border: none;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra para que destaque */
}

/* ==========================================================================
estilo radio multichoi
========================================================================== */

/* Radios más grandes y visibles */
.form-check-input {
    width: 1.3em;
    height: 1.3em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--azul-primario);
    border-color: var(--azul-primario);
}

.form-check-label {
    font-weight: 600;
    margin-left: 0.5em;
}

/* Fondo suave para las tarjetas de pregunta */
.card.pregunta {
    background-color: #e8f5e9; /* verde muy claro */
    border-radius: 12px;
}

/* ==========================================================================
moddal tarea multichoes
========================================================================== */
/* Clase única para el modal de preguntas */
.modal-preguntas-unico .modal-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0056b3; /* azul llamativo */
  text-align: left;
}

.modal-preguntas-unico .pregunta-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-preguntas-unico .pregunta-titulo {
  font-weight: bold;
  color: #222;
  text-align: left;
  margin-bottom: 1rem;
}

.modal-preguntas-unico .opcion-item {
  display: flex;
  align-items: center;
}

.modal-preguntas-unico .opcion-radio {
  margin-right: 0.5rem;
}

.modal-preguntas-unico .puntaje-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.modal-preguntas-unico .puntaje-text {
  font-weight: bold;
  color: #0066cc; /* azul más vivo */
}

/* Tarjeta */
.pregunta-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Título de la pregunta */
.pregunta-titulo {
  font-weight: bold;
  color: #222;
  text-align: left; /* 👈 fuerza alineación a la izquierda */
  margin-bottom: 1rem;
}

/* Grupo de opciones */
.opciones-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Cada opción */
.opcion-item {
  display: flex;
  align-items: center;
}

.opcion-radio {
  margin-right: 0.5rem;
}

.opcion-label {
  font-size: 1rem;
  color: #333;
}

/* Footer del puntaje */
.puntaje-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Puntaje llamativo */
.puntaje-text {
  font-weight: bold;
  color: #0066cc; /* azul más vivo */
}


/* ==========================================================================
BARRA DE TIEMPO DE FORMULARIO 
========================================================================== */


#barraTiempo {
  transition: width 0.5s linear;
}

#barraTiempo.verde { background-color: #198754; }   /* verde */
#barraTiempo.amarillo { background-color: #ffc107; }/* amarillo */
#barraTiempo.naranja { background-color: #fd7e14; } /* naranja */
#barraTiempo.rojo { background-color: #dc3545; }    /* rojo */

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.pieDePagina {
    border-top: 1px solid #ddd;
    padding: 40px 0;
    margin-top: 60px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    background-color: #002855;
}

.redScilDesarrollador1,
.redScilDesarrollador {
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.redScilDesarrollador1:hover,
.redScilDesarrollador:hover {
    color: var(--azul-primario, #003366);
}

/* Sección Admin Cards */
.imgSeccionAdm {
    filter: grayscale(100%);
    transition: filter 0.3s;
    margin-bottom: 15px;
}



