/* Asegura que el body y html ocupen todo el alto */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8faff;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  min-height: 100vh; /* para que ocupe toda la altura */
}

.page-wrapper {
  flex: 1; /* Esto hace que el main crezca y empuje al footer hacia abajo */
  /* margin-top: 150px; si quieres mantener el espacio por header fijo */
  padding: 2rem 1rem;
  background-color: #f8faff;
}

/* Contenido centrado pero fluido hacia abajo */
.login-container {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* Permite que todo fluya y crezca */
section,
.card,
.accordion,
form {
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 1rem;
  font-weight: 600;
}


.login-container {
  max-width: 1200px;
  margin: 3rem auto;
  background: #fff;
  padding: 2.5rem 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 51 102 / 0.15);
  font-family: 'Poppins', sans-serif;
  /*overflow-y: auto;  si quieres scroll vertical cuando el contenido es mucho */
  /* max-height: 90vh;  no más alto que la ventana */
  box-sizing: border-box;
}

.login-title {
  text-align: center;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
}

label {
  display: block;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
}

.input-icon-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}
.input-icon-wrapper input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.8rem;
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: 0.3s;
}
.input-icon-wrapper input:focus {
  border-color: #0073e6;
  box-shadow: 0 0 10px rgba(0,115,230,0.3);
}
.icon-left {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #003366;
  font-size: 1.2rem;
}

select, input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #ccc;
  /* margin-bottom: 1.5rem; */
  transition: all 0.3s ease;
}

select:focus, input[type="file"]:focus {
  border-color: #0073e6;
  box-shadow: 0 0 10px rgba(0,115,230,0.3);
}

.form-check {
  margin-bottom: 1rem;
}
.form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #ccc;
  appearance: none;
  background-color: white;
}
.form-check-input[type="radio"] {
  border-radius: 50%;
}
.form-check-input:checked {
  background-color: #003366;
  border-color: #003366;
}
.form-check-label {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Botón */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  border: none;
  border-radius: 50px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  transition: background 0.3s ease;
  margin-top: 1rem;
  cursor: pointer;
}
.btn-login:hover {
  background: linear-gradient(135deg, #0073e6 0%, #003366 100%);
}

/* Validaciones */
.feedback {
  font-size: 0.85rem;
  margin-top: -0.4rem;
  margin-bottom: 1rem;
  min-height: 1em;
}
.invalid {
  color: #d93025;
}
.valid {
  color: #2e7d32;
}
.is-invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 10px rgba(217, 48, 37, 0.2) !important;
}
.is-valid {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.2) !important;
}
.text-section {
  color: #003366;
  font-size: 1rem;
  margin-top: 2rem;
  line-height: 1.5;
}

.text-section h3,
.text-section h4 {
  color: #0073e6;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.text-section p {
  margin-bottom: 1rem;
  font-weight: 400;
}

.text-section ul,
.text-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #003366;
}

.text-section ul li,
.text-section ol li {
  margin-bottom: 0.3rem;
}

/* Estilo de card acorde a diseño UNT */
.card {
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.15);
  border: none;
  font-family: 'Poppins', sans-serif;
  background: white;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.25);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-text {
  font-size: 1rem;
  color: #003366;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0073e6 0%, #003366 100%);
  color: white;
}
/* texto e listas */
.text-section {
  font-family: 'Poppins', sans-serif;
  color: #003366;
  line-height: 1.6;
  margin-top: 2rem;
}

.text-section h3,
.text-section h4 {
  color: #0073e6;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.text-section p {
  margin-bottom: 1rem;
  font-weight: 400;
}

.text-section ul,
.text-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #003366;
}

.text-section ul li,
.text-section ol li {
  margin-bottom: 0.3rem;
}

/* card */
.card {
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.15);
  border: none;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.25);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-text {
  font-size: 1rem;
  color: #003366;
  margin-bottom: 1.5rem;
}

.card-header {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 4px 8px rgb(0 51 102 / 0.15);
}

/* boton primario acorde */
.btn-primary {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0073e6 0%, #003366 100%);
  color: white;
}

/* Alertas personalizadas acorde a diseño UNT */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.15);
  margin-bottom: 1.5rem;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Tipos de alertas con degradado azul UNT */
.alert-success {
  background: linear-gradient(135deg, #0073e6 0%, #004080 100%);
}

.alert-error {
  background: linear-gradient(135deg, #cc3300 0%, #990000 100%);
}

.alert-info {
  background: linear-gradient(135deg, #0059b3 0%, #003366 100%);
}

.alert-warning {
  background: linear-gradient(135deg, #ff9900 0%, #cc7a00 100%);
}

/* Icono dentro del alert */
.alert i {
  font-size: 1.25rem;
}

/* Texto del alert */
.alert span {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.3;
}

.alert-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
/* Fondo semitransparente del modal */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 51, 102, 0.6); /* azul oscuro translúcido */
  z-index: 1040;
  display: none; /* oculto por defecto */
}

/* Contenedor modal centrado */
.modal-custom {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.25);
  z-index: 1050;
  font-family: 'Poppins', sans-serif;
  display: none; /* oculto por defecto */
  overflow: hidden;
}

/* Header del modal */
.modal-header-custom {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Botón cerrar */
.modal-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: #cce6ff;
}

/* Body del modal */
.modal-body-custom {
  padding: 1.5rem;
  color: #003366;
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer modal (opcional) */
.modal-footer-custom {
  padding: 1rem 1.5rem;
  background: #f0f6ff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-footer-custom .btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  min-width: 90px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.modal-footer-custom .btn-primary {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  border: none;
  color: white;
}

.modal-footer-custom .btn-primary:hover {
  background: linear-gradient(135deg, #0073e6 0%, #003366 100%);
}

.modal-footer-custom .btn-secondary {
  background: #e0e6f7;
  border: none;
  color: #003366;
}

.modal-footer-custom .btn-secondary:hover {
  background: #c2d0f0;
}
/*imagenes*/
.img-fluid-custom {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.1);
  transition: transform 0.3s ease;
}

.img-fluid-custom:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.2);
}
.img-bordered {
  border: 4px solid #0073e6; /* azul UNT */
  padding: 4px;
  border-radius: 16px;
}
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

/* Encabezado azul institucional */
.table-custom thead {
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  color: white;
}

.table-custom th,
.table-custom td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

/* Bordes inferiores suaves */
.table-custom tbody tr {
  border-bottom: 1px solid #e3eaf5;
}

/* Zebra striping */
.table-custom tbody tr:nth-child(even) {
  background-color: #f8faff;
}

/* Hover resaltado */
.table-custom tbody tr:hover {
  background-color: #e6f0ff;
  transition: background 0.2s ease;
}
.custom-blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #003366;
  border-left: 4px solid #0073e6;
  padding-left: 1rem;
  margin: 1.5rem 0;
}
.badge-custom {
  display: inline-block;
  background: #0073e6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
}
progress.progress-custom {
  width: 100%;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  appearance: none;
}
progress.progress-custom::-webkit-progress-bar {
  background-color: #e7f0ff;
}
progress.progress-custom::-webkit-progress-value {
  background-color: #0073e6;
}
.custom-code {
  background: #f0f6ff;
  color: #003366;
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}
.custom-figure {
  text-align: center;
  margin: 2rem 0;
}
.custom-figure figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

mark {
  background-color: #cce6ff;
  color: #003366;
  padding: 0 0.25rem;
  border-radius: 4px;
}
/*centrar imagen*/
.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* o el alto que desees */
  background: #f0f6ff;
  border-radius: 12px;
}
img.img-fluid-custom {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Contenedor del acordeón */
.custom-accordion .accordion-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.1);
  overflow: hidden;
}

/* Botón del acordeón */
.custom-accordion .accordion-button {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #003366 0%, #0073e6 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  transition: background 0.3s ease;
  border: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: #003366;
  color: #fff;
  box-shadow: none;
}

.custom-accordion .accordion-button::after {
  filter: brightness(200%);
}

/* Cuerpo del acordeón */
.custom-accordion .accordion-body {
  background-color: #f0f6ff;
  color: #003366;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
}
/* Encabezado fijo */
.site-header {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1000;
  background-color: #003366;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Imagen del encabezado */
.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenedor de contenido debe compensar el espacio del header */

.site-footer {
  background: #003366;
  color: #ffffff;
  padding: 2rem 1rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.site-footer a {
  color: #cce6ff;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.25rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #aaccee;
}
/*imagen ampliar*/

.modal-body-custom img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
}
