/* ============================================================ */
/* GLOBAL & RESET                                              */
/* ============================================================ */
html,
body {
  overflow-x: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

#text-info{
  font-size: 18px;
}
#text-footer{
  font-size: 14px;
}
.container-fluid,
.row {
  margin: 0 !important;
  padding: 0 !important;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ============================================================ */
/* FLASH PROMO BANNER                                         */
/* ============================================================ */
#flashBanner {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 1030; /* mayor que navbar */
  display: none;
}

#flashBanner span {
  display: inline-block;
  line-height: 30px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  #flashBanner {
    height: 40px;
  }
  #flashBanner span {
    line-height: 40px;
    font-size: 13px;
  }
}

/* ============================================================ */
/* NAVBAR / HEADER                                            */
/* ============================================================ */
.navbar.fixed-top {
  transition: top 0.3s ease;
}

.dark-mode .navbar a {
  color: #04c43d !important;
}

/* ============================================================ */
/* FULLSCREEN SECTIONS & VIDEOS                                */
/* ============================================================ */
.full-screen-section {
  min-height: 70vh;
  height: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.scroll-text {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .col-md-5 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.col-7 {
  display: flex;
  justify-content: center;
  align-items: end;
}

@media (max-width: 768px) {
  .full-screen-section {
    height: auto;
    padding: 2rem 1rem;
  }
  .scroll-text {
    max-height: none;
    overflow-y: visible;
  }
  .col-md-5 img {
    max-width: 100%;
    height: auto;
    align-items: end;
  }
}

video {
  max-width: 100vw;
}
.dropdown-menu{
  z-index:1055 !important;
}
/* ============================================================ */
/* GLOBAL DARK MODE                                            */
/* ============================================================ */
.dark-mode {
  background-color: #121212 !important;
  color: #e6e6e6 !important;
}

.dark-mode .card,
.dark-mode .dropdown-menu,
.dark-mode .dropdown-item {
  background-color: #1e1e1e !important;
  color: #fff !important;
}


.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .lineainfo {
  background-color: #1a1a1a !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: #e4e4e4;
}

.dark-mode #foto-oriente-1,
.dark-mode #foto-oriente-2,
.dark-mode #foto-oriente2 {
  filter: invert(0);
}
.dark-mode #dojo,
.dark-mode #meditacion {
  filter: invert(1);
}

#foto-oriente-1 {
  filter: invert(1);
  aspect-ratio: 1/1;
  /* width: 100%; */
  /* height: auto; */
  transition: filter 0.3s ease;
}

#foto-oriente-2{
  filter: invert(1);
  aspect-ratio: 9/3;
  /* width: 100%; */
  /* height: auto; */
  transition: filter 0.3s ease;
}

.dark-mode a #btn-inicio {
  color: white !important;
}
.dark-mode .modal-content {
  background-color: #1e1e1e !important;
  color: #e6e6e6 !important;
  border: 1px solid #2a2a2a;
}

.dark-mode .modal-header,
.dark-mode .modal-body,
.dark-mode .modal-footer {
  background-color: transparent; /* Para que el contenido interno no sobrescriba */
  color: #e6e6e6 !important;
}

.dark-mode .modal-header .btn-close {
  filter: invert(1); /* Si usas el botón de cerrar por defecto blanco */
}

.dark-mode h3 {
    color: #eaeaea;
}

.dark-mode #flashPanel {
    background-color: #2a2a2a; /* más oscuro que alert-warning */
    color: #f8f9fa; /* texto claro */
    border: 1px solid #444; /* definir borde suave */
}

.dark-mode #flashPanel strong {
    color: #ffffff;
}

.dark-mode #flashPanel span {
    color: #cccccc;
}

.dark-mode #btnFlashToggle {
/*     background-color: #444; /* boton oscuro */
    color: #111;
    border: 1px solid #555;
}

.dark-mode .btn.btn-secondary {
    background-color: #555;
    color: #111;
    border: 1px solid #666;
}

.dark-mode .btn.btn-success {
    background-color: #04c43d; /* mantener verde de identidad */
    color: #121212;
    border: 1px solid #029936;
}

/* Tabla ya es dojo-card, pero aseguramos contraste en texto */
.dark-mode table#doctables,
.dark-mode table#doctables thead th {
    color: #e0e0e0;
}

.dark-mode table.dataTable tbody tr:hover {
    background-color: rgba(255,255,255,0.05); /* hover sutil */
}
.dataTables_wrapper {
  overflow: visible !important;
}

.table-responsive {
  overflow: visible !important;
}
/* ============================================================ */
/* FORM SWITCH LABELS                                           */
/* ============================================================ */
.form-check-input.rol:checked + .form-check-label .switch-text::after {
  content: "ADMIN";
  margin-left: 5px;
  color: oklab(87.332% -0.2105 0.12512 / 0.5);
}

.form-check-input + .form-check-label .switch-text::after {
  content: "PROFESOR";
  margin-left: 5px;
  color: rgba(255, 0, 0, 0.5);
}

/* ============================================================ */
/* CARDS                                                      */
/* ============================================================ */
.card-hover{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card-hover:hover{
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  z-index: 2;
}
.card {
  max-width: 400px;
  min-height: 350px;
}
.card-img-top {  
  object-fit: cover;
}
.card-body {
  min-height: 150px;
}

/* Cards específicas inputEsc */
.card-escuela {
  min-height: 180px !important;
  max-height: 180px !important;
}
.card-escuela .card-body {
  min-height: auto !important;
  max-height: auto !important;
  padding: 0.75rem;
}

.card--table {
  max-width: none;
  min-height: auto;
}
#contenedorProfs .card {
    width: 100%;
    height: 100%;
}

#contenedorProfs .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}
#contenedorProfs .card-body p {
    max-height: 80px; /* limita la altura */
    overflow: hidden;
}

#contenedorProfs .card-body a.btn {
    width: 100%; /* el botón ocupa todo el ancho en móvil */
}
/* ============================================================ */
/* IMAGE / VIDEO CONTAINERS                                     */
/* ============================================================ */
.image-container,
.video-container {
  position: relative;
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--fade-color), transparent);
}

body:not(.dark-mode) {
  --fade-color: #ffffff;
}

body.dark-mode {
  --fade-color: #000000;
}

/* ============================================================ */
/* CALENDARIO (FULLCALENDAR)                                     */
/* ============================================================ */
/* Card estilo dojo */
.dojo-card {
  position: relative;
  border: 0.5px solid #e9e9e9;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Imagen de fondo */
.dojo-card::after {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background-image: url('/img/oriente1.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 280px;
  opacity: 0.15; /* un poco más tenue */
  pointer-events: none; /* NO bloquea clics ni selección */
  z-index: 0; /* Fondo detrás del contenido */
}

/* Contenido dentro del card */
.dojo-card > * {
  position: relative;
  z-index: 1; /* Siempre arriba de la imagen */
}

body:not(.dark-mode) .dojo-card::after {
  opacity: 0.2;
  filter: brightness(0); /* negro en light mode */
}

.dark-mode .dojo-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.dark-mode .dojo-card::after {
  opacity: 0.075;
  filter: brightness(0) invert(1); /* blanca en dark mode */
}
.dojo-card.table-card{
  overflow: visible;
  z-index: 5;
}

/* Header y títulos */
.dojo-header {
  text-align: center;
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  color: #111;
}
.dark-mode .dojo-header {
  color: #eaeaea;
  border-bottom: 1px solid #2a2a2a;
}

.fc-toolbar-title {
  font-weight: 600;
  font-size: 1.4rem;
  color: #111;
  text-transform: uppercase;
}
.dark-mode .fc-toolbar-title {
  color: #ffffff;
}

.fc-daygrid-day {
  border: 1px solid #f0f0f0;
  background: transparent;
}
.dark-mode .fc-daygrid-day {
  border: 1px solid #1c1c1c;
}
.fc-daygrid-day:hover {
  background: rgba(0,0,0,0.02);
}
.dark-mode .fc-daygrid-day:hover {
  background: rgba(255,255,255,0.03);
}
.fc-daygrid-day-number {
  color: #222;
}
.dark-mode .fc-daygrid-day-number {
  color: #cccccc;
}
.fc-day-today {
  background-color: rgba(0,0,0,0.04) !important;
}
.dark-mode .fc-day-today {
  background-color: rgba(255,255,255,0.05) !important;
}

/* Full width calendario */
#calendar, #calendar2 {
  width: 100% !important;
  max-width: 100% !important;
}
.fc-view-harness {
  width: 100% !important;
}
#calendar *, #calendar2 * {
  font-weight: inherit !important;
}
#calendar .fc table, #calendar2 .fc table {
  font-weight: normal !important;
}
#calendar .fc-daygrid-day-number, #calendar2 .fc-daygrid-day-number {
  font-weight: normal !important;
  text-decoration: none !important;
}
#calendar .fc-col-header-cell, #calendar2 .fc-col-header-cell {
  font-weight: normal !important;
}

/* ============================================================ */
/* TABLAS DATATABLES                                           */
/* ============================================================ */
table.dataTable {
  position: relative;
  font-size: 12px;
  border-collapse: collapse;
  z-index: 0;
}

table.dataTable thead th {
  background-color: #309365; /* verde dojo */
  color: white;
  font-weight: 600;
  text-transform: uppercase;
}

table.dataTable tbody td:first-child {
  font-weight: bold;
  color: #ff3300d3;
}

table.dataTable tbody tr:hover {
  background-color: rgba(0,0,0,0.03);
  cursor: pointer;
}

/* Dark mode tablas */
.dark-mode table.dataTable thead th {
  background-color: #0b3a2a;
  color: #fff;
}
.dark-mode table.dataTable tbody td:first-child {
  color: #ff3300;
}
.dark-mode table.dataTable tbody tr:hover {
  background-color: rgba(255,255,255,0.05);
}

/* ============================================================ */
/* OTROS / UTILITIES                                           */
/* ============================================================ */
div.col-admin {
  height: 250px;
}

.swal2-container, .mi-alerta {
  z-index: 200000 !important;
}

.hero-bottom-text {
  position: absolute;
  bottom:2rem;
  left: 50%;
  transform: translateX(-50%);
}

.blog-texto {
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1;
}

.modal-img-blog {
  width: 100%;
  height: 50vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .modal-dialog {
    max-width: 100% !important;
    margin: 0;
  }

  .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }
}