/* *********************************************** */
/*      INFORMACIÓN CSS CLASSBOOK

versión         : 3.0.0
creador         : Roberto Tapia Loyola
correo          : robertotapia@classbook.cl
actualización   : noviembre 2025

*/
/* *********************************************** */

/* *********************************************** */
/*      CSS DE TERCEROS                            */
/* *********************************************** */

/* nProgress */
#nprogress {
  pointer-events: none;
}
#nprogress .bar {
  background: rgb(56, 99, 124);
  z-index: 20000 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}
#nprogress .bar {
  position: absolute;
}
/* preloader */
#preloader {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 10000 !important;
  background: var(--color-bg);
  transition: opacity 0.5s ease; /* <--- transición */
  opacity: 1; /* visible al principio 2*/
}

/* *********************************************** */
/*      FUENTES                                    */
/* *********************************************** */

/* importar fuentes */
@font-face {
  font-family: 'Macondo';
  src: url(../css/fonts/macondo/macondo.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url(../css/fonts/roboto/roboto.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Tengwar';
  src: url(../css/fonts/tengwar/tengwar.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url(../css/fonts/barlow/barlow.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Oswald';
  src: url(../css/fonts/oswald/oswald.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* FUENTES PERSONALIZADAS */

/* fuente para nombres de sección */
h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
}

/* *********************************************** */
/*      VARIABLES DE COLOR                         */
/* *********************************************** */

/* modo claro: variables por defecto para la página completa */
:root {
  /* variables de color generales */
  --color-text: #222;
  --color-bg: #fcfaf5;
  --color-shadow-bottom: 0 2px 10px rgba(54, 53, 53, 0.050);
  --color-shadow-top:  0 2px 10px rgba(134, 135, 143, 0.150);
  --color-link: #4B3A2C;
  --color-link-hover: #2F241F;
  --color-border-top: #94959c15;
  --color-border-bottom: #94959c17;
  --color-background-input: #fff;
  --color-border-input: #5c5454;
  --color-text-input-select: #222;
  /* volores para el modal de login */
  --modal-bg-light: #fff;
  --modal-text-light: #222;
  --input-border-light: #ced4da;
  --input-text-light: #212529;
  --toggle-track-light: rgba(0, 0, 0, 0.25);
  --toggle-thumb-light: #adb5bd;
  --modal-link-light: #4B3A2C;
  --modal-link-hover-light: #2F241F;
  --modal-title-light: #212529;
}
/* modo oscuro: actualiza las variables para la página completa */
body.dark-mode {
  --color-text: #eee;
  --color-bg: #1a1a1a;
  --color-shadow-top: 0 -2px 10px rgba(255, 255, 255, 0.050);
  --color-shadow-bottom: 0 2px 10px rgba(255, 255, 255, 0.050);
  --color-link: #d8d8d8;
  --color-link-hover: #fff;
  --color-border-top: #16161607;
  --color-border-bottom: #141414;
  --color-background-input: #e6e6e6;
  --color-border-input: #ffffff;
  --color-text-input-select: #595C5F;
  /* colores para el modal de login en modo oscuro */
  --modal-bg-dark: #2a2a2a;
  --modal-text-dark: #eee;
  --input-border-dark: #555;
  --input-text-dark: #eee;
  --toggle-track-dark: #555;
  --toggle-thumb-dark: #888;
  --modal-link-dark: #d8d8d8;
  --modal-link-hover-dark: #fff;
  --modal-title-dark: #eee;
}

/* *********************************************** */
/*      ESTILOS DE TEXTOS Y ENLACES                */
/* *********************************************** */






a {
  color: var(--color-text);
  text-decoration: none;
}
button { background-color: red;
  color: var(--color-text) !important;
  text-decoration: none;
}
.texto-justificado {
  text-align: justify;
}
.btn {
  
  color: var(--color-bg);
}
.bi {
  cursor: pointer;
}


/* *********************************************** */
/*      ESTILOS INPUTS TEXTAREA SELECT BUTTON      */
/* *********************************************** */

input, select, textarea {
  border-color: rgb(153, 153, 153) !important;
  background-color: var(--color-background-input);
}
textarea {
  min-height: 100px !important;
}
select {
  color: var(--color-text-input-select) !important;
}


/* Alinea el label del select vacío con los labels de los inputs */
.form-floating > .form-select:required:invalid ~ label {
  transform: scale(1) translateY(0rem); /* súbelo ligeramente */
  opacity: .65;
}

/* Mantiene la posición flotante normal cuando hay valor */
.form-floating > .form-select:valid ~ label {
  transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
  opacity: .65;
}

/* neutraliza el fondo azul del autocompletado */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* o el color de fondo que uses */
  -webkit-text-fill-color: #000 !important; /* ajusta según el tema */
  transition: background-color 5000s ease-in-out 0s; /* evita parpadeo */
}

/* *********************************************** */
/*      ESTILOS GLOBALES SECCIONES                 */
/* *********************************************** */

/* estilos generales */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s, color 0.3s;
}
header, footer, main {
  background-color: inherit;
}
.container-fluid {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* estilos header */

/* header */
header {
  padding: 20px 0;
  transition: box-shadow 0.3s;
  z-index: 10; /* asegura que la sombra se vea sobre elementos debajo */
  box-shadow: var(--color-shadow-bottom); /* sombra que ya tenías */
  border-bottom: 1px solid var(--color-border-bottom); /* borde gris claro */
}
/* barra de navegación */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-left {
  display: flex;
  align-items: center;
}
.nav-left a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#nombre-app {
  font-size: 1.1em;
  font-weight: 600;
}

/* estilos main */
main {
  min-height: 0;
  background: var(--color-bg);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* estilos footer */
footer {
  padding: 20px 0;
  transition: box-shadow 0.3s;
  z-index: 10; /* asegura que la sombra se vea sobre elementos debajo */
  box-shadow: var(--color-shadow-top); /* sombra que ya tenías */
  border-top: 1px solid var(--color-border-top); /* borde gris claro */
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* estilos modales */

/* estilos del modal que cambian con el tema */
.modal-content {
  background-color: var(--modal-bg-light);
  color: var(--modal-text-light);
}
body.dark-mode .modal-content {
  background-color: var(--modal-bg-dark);
  color: var(--modal-text-dark);
}
.modal-header .modal-title {
    color: var(--modal-title-light);
}
body.dark-mode .modal-header .modal-title {
    color: var(--modal-title-dark);
}
.modal.modal-top .modal-dialog {
  position: fixed;
  top: .5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  margin: 0;
  max-width: 34.375rem; /* ancho de los modales */
  width: 100%;
  transition: transform 0.3s ease-out;
}
.modal.modal-top.show .modal-dialog {
  transform: translateX(-50%) translateY(0);
}
.modal.modal-bottom .modal-dialog {
  position: fixed;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  margin: 0;
  max-width: 500px;
  width: 100%;
  transition: transform 0.3s ease-out;
}
.modal.modal-bottom.show .modal-dialog {
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 576px) {
  .modal-dialog {
    padding-left: .5rem;
    padding-right: .5rem;
  }
  #titulo-bienvenida {
    font-size: 30px !important;
  }
  .tengwar-font {
    font-size: 25px !important;
  }
}
.modal-pop .modal-dialog {
  transform: scale(.7);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.175, .885, .32, 1.275);
}
.modal-pop.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}
.modal-content {
  border-radius: 1rem !important;
  background-color: var(--color-bg);
}
.modal .modal-content {
  border-radius: 1.5rem !important;
}

/* estilos para los enlaces del modal */
.modal-footer .book-link {
    color: var(--modal-link-light);
}
body.dark-mode .modal-footer .book-link {
    color: var(--modal-link-dark);
}
.modal-footer .book-link:hover {
    color: var(--modal-link-hover-light);
}
body.dark-mode .modal-footer .book-link:hover {
    color: var(--modal-link-hover-dark);
}

/* *********************************************** */
/*      ESTILOS MENÚS                              */
/* *********************************************** */

/* Menú de selección de idioma */
.lang-menu {
  position: absolute;
  bottom: 80px;
  right: 20px;
  background-color: #306091;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 999;
}
.lang-menu.show {
  transform: translateY(0%);
  opacity: 1;
}
.lang-menu.hidden {
  display: none;
}
.lang-card.active {
  border: 2px solid #0d6efd;
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.4);
}
.spacing {
  width: 75%;
}

/* *********************************************** */
/*      MEDIA QUERYS                               */
/* *********************************************** */

/* Estilos para el ícono de estado de la red */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
.offline-pulse {
  color: rgb(204, 199, 199) !important;
  animation: pulse 1.5s infinite;
}
/* Transición suave para todos los botones de cierre de los modales */
.btn-close {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-close:hover {
  transform: fadeinout(90deg) scale(1.1);
  opacity: 0.7;
}

/* *********************************************** */
/*      INICIO                                     */
/* *********************************************** */

.contenido-inicio-sesion {
  max-width: 500px;
  width: 500px;
  padding-left: 15px;
  padding-right: 15px;
}
.contenido-inicio-sesion img {
  max-width: 200px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

body.dark-mode .contenido-inicio-sesion img {
  filter: brightness(0.7); /* Oscurece la imagen en modo oscuro */
}

.contenido-inicio-sesion img:hover {
  transform: scale(1.05);
  box-shadow: var(--color-shadow);
}
#informacion-idioma {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-translucent-bg); /* Utiliza la variable de color transparente */
  backdrop-filter: blur(3px);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-size: .75rem;
  z-index: 10;
}
#informacion-idioma.visible {
  opacity: 1;
}
#titulo-bienvenida {
  margin-top: 30px;
  height: 90px;
  font-family: 'Macondo', sans-serif;
  font-size: 35px;
  text-align: center;
  display: flex;
  align-items: top;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
}
#slogan-bienvenida h5 {
  margin-top: 10px;
  font-weight: 200 !important;
  font-size: 18px;
}
.tengwar-font {
  font-family: 'Tengwar', sans-serif !important;
  font-size: 30px !important;
}

.book-link {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    color: var(--color-link);
    background: none;
    border: none;
    margin-left: -7px;
    transition: color 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}
.book-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background-color: var(--color-link-hover);
    transition: all 0.3s ease-in-out;
}
.book-link:hover {
    color: var(--color-link-hover);
    text-decoration: none;
    font-weight: normal;
}
.book-link:hover::after {
    width: calc(100% + 20px);
    left: -10px;
    transform: none;
}

/* LOGIN */
.bi-cloud-arrow-down-fill {
  font-size: 1.5625rem;
}
.save-session label {
  font-size: 0.875rem;
  margin-left: -40px;
}
.password-container {
  position: relative;
}
#numero-documento {
  text-transform:uppercase;
}
#current-password {
  padding-right: 2.5rem;
}
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 10;
}

::-ms-reveal {
  display: none;
}
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 1.5em;
}

/* Estilo base del input */
#numero-documento {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Borde verde cuando es válido */
#numero-documento.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* Borde rojo cuando es inválido */
#numero-documento.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

/* *********************************************** */
/*      SOBRE CLASSBOOK                            */
/* *********************************************** */



/* *********************************************** */
/*      CARACTERÍSTICAS                            */
/* *********************************************** */



/* *********************************************** */
/*      CONTACTO                                   */
/* *********************************************** */




/* *********************************************** */
/*      SOPORTE                                    */
/* *********************************************** */



/* *********************************************** */
/*      POLÍTICA                                   */
/* *********************************************** */



/* *********************************************** */
/*      RECUPERACIÓN DE CONTRASEÑA                 */
/* *********************************************** */


/* *********************************************** */
/*      PORTADA                                    */
/* *********************************************** */



/* *********************************************** */
/*      COMUNICACIONES                             */
/* *********************************************** */



/* *********************************************** */
/*      LIBRO DE CLASES                            */
/* *********************************************** */



/* *********************************************** */
/*      CALENDARIO                                 */
/* *********************************************** */



/* *********************************************** */
/*      ADMINISTRACIÓN                             */
/* *********************************************** */



/* *********************************************** */
/*      PERFIL DE USUARIO                          */
/* *********************************************** */



/* *********************************************** */
/*      CONFIGURACIÓN DE USUARIO                   */
/* *********************************************** */



/* *********************************************** */
/*      PÁGINAS DE ERROR                           */
/* *********************************************** */
.error-number {
  margin-top: -100px !important;
  font-size: 500px;
  font-weight: bold;
  color: var(--color-text);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin: 0;
  opacity: 0.1;
}
.error-tittle {
  margin-top: -300px !important;
  font-size: 60px !important;
  font-weight: bold;
  color: var(--color-text);
  margin: 0;
  z-index: 1;
}
.ultima-actualizacion {
font-size: 13px;
}
.titulo-pane {
  margin-top: 30px;
  margin-bottom: 10px;
}

/* **** FIN ************************************* */