/*** SIDENAV (FLECHAS) ***/
.sidenav .nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sidenav .sidenav-collapse-arrow i {
	transition: transform 0.25s ease-in-out;
	transform-origin: center;
	display: inline-block;
}

.sidenav .nav-link[aria-expanded="true"] .sidenav-collapse-arrow i {
	transform: rotate(90deg);
}

.sidenav .nav-link[aria-expanded="false"] .sidenav-collapse-arrow i {
	transform: rotate(0deg);
}

/*** NAVBAR GENERAL ***/
.navbar-nav .nav-link {
	color: #fff !important;
	font-size: 18px;
}

.navbar-nav .nav-link:hover {
	color: #FFD24D !important;
}

.navbar-nav.align-items-center {
	display: flex;
	align-items: center;
}

/*** DROPDOWN ESTILO GENERAL ***/
.dropdown-union {
	margin-top: 12px;
	position: relative;
}

.dropdown-union::before {
	content: "";
	position: absolute;
	top: -8px;
	right: 18px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #fff;
	filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, .15));
}

/*** NOTIFICACIONES (CAMPANA) ***/
.dropdown-notifications {
	display: flex;
	align-items: center;
	margin-right: 8px !important;
}

.dropdown-notifications .nav-link {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	position: relative;
}

.dropdown-notifications .nav-link:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.05);
}

.icon-animated-bell {
	font-size: 16px;
	line-height: 1;
}

/* BADGE */
.notification-badge,
.bell-count {
	position: absolute;
	top: -4px;
	right: -6px;
	font-size: 10px;
}

/*** DROPDOWN NOTIFICACIONES ***/
.notif-menu {
	width: 320px;
	border-radius: 8px;
	border: none;
	overflow: hidden;
}

.notif-header {
	background: #f5f6f8;
	padding: 12px;
	font-weight: 600;
	border-bottom: 1px solid #eee;
}

.notif-item {
	padding: 12px;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}

.notif-item:hover {
	background: #f8f9fb;
}

.notif-time {
	font-size: 11px;
	color: #888;
	display: block;
}

.notif-footer {
	text-align: center;
	padding: 10px;
	background: #fafafa;
}

.notif-footer a {
	text-decoration: none;
	font-size: 12px;
	color: #1F4E79;
}

/*** USUARIO (AVATAR) ***/
.user-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #d5d5d5;
	transition: all 0.2s ease;
	position: relative;
}

.user-toggle:hover .user-avatar {
	background: #f1f3f5;
	border-color: #0768fa;
	color: #0768fa;
	transform: scale(1.05);
	box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.user-letter {
	font-size: 14px;
	z-index: 1;
}

/* FLECHA */
.user-arrow {
	position: absolute;
	bottom: -2px;
	right: -2px;
	font-size: 10px;
	background: #0768fa;
	color: #fff;
	border-radius: 50%;
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.user-toggle:hover .user-arrow {
	transform: rotate(180deg) scale(1.1);
}

/*** DROPDOWN USUARIO ***/
.user-dropdown {
	width: 250px;
	border: none;
	border-radius: 14px;
	overflow: hidden;
	padding: 0;
	animation: fadeIn .2s ease;
}

.dropdown-menu.user-dropdown {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.user-header {
	text-align: center;
	padding: 20px;
	background: #f5f6f8;
}

.avatar-big {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #e6e6e6;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.user-header .fw-semibold {
	font-size: 14px;
}

.user-header .small {
	opacity: 0.85;
}

.user-dropdown .dropdown-item {
	padding: 10px 16px;
	transition: all 0.2s;
	font-size: 14px;
}

.user-dropdown .dropdown-item:not(.logout-item):hover {
	background: #f1f3f5;
	padding-left: 20px;
}

/*** LOGOUT ***/
.user-dropdown .dropdown-item.logout-item {
	color: #dc3545 !important;
	font-weight: 600;
	position: relative;
	overflow: hidden;
	transition: all 0.25s ease;
}

/* EFECTO FONDO DESLIZANTE */
.user-dropdown .dropdown-item.logout-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0%;
	height: 100%;
	background: #dc3545;
	transition: width 0.25s ease;
	z-index: 0;
}

/* TEXTO ENCIMA */
.user-dropdown .dropdown-item.logout-item span,
.user-dropdown .dropdown-item.logout-item i {
	position: relative;
	z-index: 1;
}

/* HOVER */
.user-dropdown .dropdown-item.logout-item:hover::before {
	width: 100%;
}

.user-dropdown .dropdown-item.logout-item:hover,
.user-dropdown .dropdown-item.logout-item:focus,
.user-dropdown .dropdown-item.logout-item:active {
	color: #fff !important;
}

/* ICONO BLANCO */
.user-dropdown .dropdown-item.logout-item:hover i {
	color: #fff !important;
}

/* PEQUEÑO EFECTO DE DESPLAZAMIENTO */
.user-dropdown .dropdown-item.logout-item:hover {
	padding-left: 22px;
}

/*** DIVIDER ***/
.dropdown-divider {
	margin: 8px 0;
}

/*** ANIMACIONES ***/
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeMenu {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dropdown-menu {
	animation: fadeMenu .15s ease;
	overflow: visible !important;
}

/*** RESPONSIVE ***/
@media (max-width: 768px) {
	.user-avatar {
		width: 32px;
		height: 32px;
	}

	.user-letter {
		font-size: 12px;
	}

	.user-arrow {
		width: 12px;
		height: 12px;
		font-size: 8px;
	}
}

/*** estilo select2 alineado con los inputs ***/
/* Ajusta el tamaño del select2 al del input */
.select2-container {
	width: 100% !important;
	min-width: unset !important;
	font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif) !important;
}

/* Igual altura y alineación que los inputs */
.select2-selection--single {
	height: 38px !important;
	/* misma altura que .form-control */
	display: flex !important;
	align-items: center !important;
	/* centra verticalmente el texto */
	justify-content: flex-start !important;
	/* texto alineado a la izquierda */
	font-family: inherit !important;
	text-align: left !important;
	padding-left: 0.5rem !important;
	/* mismo padding que los inputs */
	box-sizing: border-box;
}

/* Texto dentro del select */
.select2-selection__rendered {
	line-height: normal !important;
	padding-left: 0 !important;
	font-family: inherit !important;
	/* font-size: 0.9rem; */
	color: #212529;
	text-align: left !important;
	width: 100%;
}

/* Igualar bordes y efectos con Bootstrap */
.select2-container--default .select2-selection--single {
	border: 1px solid #ced4da !important;
	border-radius: 0.375rem !important;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	background-color: #fff !important;
	font-family: inherit !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #86b7fe !important;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Opciones dentro del dropdown */
.select2-results__option {
	padding-right: 20px;
	padding-left: 20px;
	vertical-align: middle;
	font-family: inherit !important;
	text-align: left;
	/* opciones alineadas igual que los inputs */
}

/* Checkbox visual en las opciones */
.select2-results__option:before {
	content: "";
	display: inline-block;
	position: relative;
	height: 20px;
	width: 20px;
	border: 2px solid #e9e9e9;
	border-radius: 4px;
	background-color: #fff;
	margin-right: 20px;
	vertical-align: middle;
}

/* Estilo para la opción seleccionada */
.select2-results__option[aria-selected=true]:before {
	content: "✓";
	color: #fff;
	background-color: #f77750;
	border: 0;
	display: inline-block;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	line-height: 18px;
}

.select2-loading .select2-selection {
	position: relative;
	pointer-events: none;
	opacity: 0.7;
}

.select2-loading .select2-selection::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	width: 14px;
	height: 14px;
	border: 2px solid #ccc;
	border-top: 2px solid #0d6efd;
	border-radius: 50%;
	transform: translateY(-50%);
	animation: spinSelect2 0.6s linear infinite;
}

@keyframes spinSelect2 {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

.metric-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.counter {
	font-weight: bold;
	font-size: 1.6rem;
}

.postit-info {
	background: #fff3cd;
	border-left: 6px solid #ffca2c;
	padding: 12px 15px;
	border-radius: 6px;
	margin-top: 8px;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === grafica === */
/* caja grafica */
.grafica-box {
	background: #fff;
	border-radius: 8px;
	height: 100%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* grafica */
#graficaContainer {
	width: 100%;
	height: 100%;
}

/* Ajustes móviles */
@media (max-width: 576px) {
	.contenedor-grafica {
		min-height: 260px;
	}
}

/* TABLA HIGHCHARTS */
.highcharts-data-table {
	width: 100%;
	margin-top: 12px;
	overflow-x: auto;
}

.highcharts-data-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: Arial, sans-serif;
	font-size: 13px;
}

.highcharts-data-table caption {
	font-weight: bold;
	margin-bottom: 8px;
	text-align: left;
}

.highcharts-data-table th {
	background: #5E776F;
	color: white;
	padding: 8px;
	text-align: center;
	border: 1px solid #3F6EA1;
}

.highcharts-data-table td {
	padding: 8px;
	text-align: center;
	border: 1px solid #e4e7eb;
}

.highcharts-data-table tr:nth-child(even) {
	background: #f9f9f9;
}

/* BLOQUE AZUL IZQUIERDO (TIPO DE ACCION) */
.tabla-tipo-accion {
	background: #3F6EA5;
	color: white;
}

/* CELDAS DERECHA */
.tabla-registros {
	background: #ffffff;
}

/* Móvil */
@media (max-width: 576px) {
	.highcharts-data-table table {
		font-size: 11px;
	}
}

/* calendario */
.fc {
	font-family: 'Montserrat', sans-serif;
}

/* Día actual en el calendario */
.fc .fc-day-today {
	background-color: #fff3cd !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
	font-weight: 700;
	color: #856404;
}

/* marcar días con asesorías */
.fc-daygrid-day:has(.fc-event) {
	background: #f8f9fa;
}

/* eventos */
.fc-event {
	border-radius: 6px;
	font-size: 13px;
	padding: 2px 4px;
}

/* hover */
.fc-event:hover {
	transform: scale(1.03);
	transition: 0.2s;
}

/* botones */
.fc .fc-toolbar-title {
	font-weight: 600;
	color: #2c3e50;
}

.fc-button-primary {
	background: #5f6b73 !important;
	border: none !important;
}

.fc-button-primary:hover {
	background: #4b565e !important;
}

/* hoy */
.fc-day-today {
	background: #f8f9fa !important;
}

/* Avatar usuario */
.avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #7a1f2b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

/* iconos navbar */
.icon-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* contador */
.notification-badge {
	position: absolute;
	top: -5px;
	right: -8px;
	background: #dc3545;
	color: #fff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 20px;
	font-weight: 600;
}

/* hover elegante */
.btn-icon:hover {
	background: rgba(255, 255, 255, 0.15);
	transition: 0.2s;
}

/* dropdown más elegante */
.dropdown-menu {
	border-radius: 10px;
}

/* navbar title */
.navbar-brand {
	font-weight: 600;
	letter-spacing: .3px;
}

/* encabezado del usuario */
.dropdown-user-header {
	padding: 15px;
}

.user-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #f1f3f5;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: auto;
	margin-bottom: 8px;
}

.user-icon svg {
	width: 22px;
	height: 22px;
	color: #7a1f2b;
}

.user-name {
	font-weight: 600;
	font-size: 14px;
}

.user-role {
	font-size: 12px;
	color: #6c757d;
}

/* dropdown más moderno */
.dropdown-menu {
	border-radius: 10px;
}

.dropdown-item {
	font-size: 14px;
}

/* === Estilo agenda === */
.modo-agenda {
	background: #f3e7c1;
	border-left: 6px solid #e0b100;
	padding: 10px;
}

.agenda-dia {
	margin-bottom: 15px;
}

.agenda-fecha {
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px solid #d4c08c;
	margin-bottom: 5px;
}

.agenda-item {
	padding: 8px;
	border-bottom: 1px solid #d6c79a;
}

.agenda-alumno {
	font-weight: 600;
	color: #2c3e50;
}

.agenda-info {
	font-size: 13px;
	color: #555;
}

.estatus {
	background: #7a1f2b;
	color: white;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
}

#agendaContainer {
	transition: all .25s ease;
}

/* CONTENEDOR RELATIVO */
.contenedorFiltros {
	position: relative;
}

/* BOTON FLOTANTE */
.limpiarBusqueda {
	position: absolute;
	top: 0;
	right: -10px;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid #7a1f2b;
	background: #fff;
	color: #7a1f2b;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .25s ease;
	opacity: 0;
	transform: scale(0.8);
}

/* HOVER */
.limpiarBusqueda:hover {
	background: #7a1f2b;
	color: #fff;
	transform: scale(1.1);
}

/* VISIBLE SOLO CUANDO HAY FILTROS */
.limpiarBusqueda.active {
	opacity: 1;
	transform: scale(1);
}

/* ANIMACIÓN CLICK */
.limpiarBusqueda:active {
	transform: scale(1.2);
}

/*** panelValidacion ***/
#tblValidacion {
	table-layout: auto !important;
}

#tblValidacion th,
#tblValidacion td {
	width: auto !important;
}

/* Documento */
#tblValidacion td:nth-child(1) {
	text-align: left;
}

/* Botón centrado */
#tblValidacion td:nth-child(2) {
	text-align: center;
}

/* Select compacto */
#tblValidacion td:nth-child(3) select {
	width: 100%;
	min-width: 120px;
}

/* Observaciones flexible */
#tblValidacion td:nth-child(4) textarea {
	width: 100%;
	min-width: 180px;
	resize: vertical;
}

/* Estado deshabilitado */
#btnAprobarContratacion:disabled {
	background-color: #6c757d !important;
	border-color: #6c757d !important;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Estado activo (TODO en uno solo) */
.btn-activo {
	background-color: #198754 !important;
	border-color: #198754 !important;
	box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
	transform: scale(1.05);
	transition: all 0.2s ease-in-out;
	/* animación continua */
	animation: pulse 1.2s infinite;
}

/* Animación pop (cuando se activa) */
@keyframes pop {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.12);
	}

	100% {
		transform: scale(1.05);
	}
}

.animar-btn {
	animation: pop 0.3s ease;
}

/* Animación pulse (loop suave) */
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
	}
}

@keyframes pulseScale {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6);
	}

	50% {
		transform: scale(1.05);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
	}
}

/* MODAL DETALLES */
/* ancho del modal */
.modal-detalles .modal-dialog {
	max-width: 1200px;
	margin: 1.75rem auto;
}

.modal-detalles .modal-body {
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

/* contenedor principal */
.modal-detalles .modal-content {
	border-radius: 10px;
	border: none;
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
	height: auto;
	max-height: 82vh;
	display: flex;
	flex-direction: column;
}

/* título */
.modal-detalles .modal-title {
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ===== BOTÓN CERRAR MODAL ===== */
.modal-detalles .btn-close {
	filter: none;
	background-image: none;
	background-color: rgba(255, 255, 255, 0.15);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	border: none;
	transition: all .2s ease;
}

/* ícono X manual (porque quitamos el default) */
.modal-detalles .btn-close::before {
	content: "✕";
	font-size: 16px;
	font-weight: bold;
	color: #fff;
}

/* hover elegante */
.modal-detalles .btn-close:hover {
	background-color: #a83232;
	transform: scale(1.08);
}

/* eliminar COMPLETAMENTE azul de focus */
.modal-detalles .btn-close:focus,
.modal-detalles .btn-close:active,
.modal-detalles .btn-close:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	background-color: #a83232;
}

/* BODY */
.modal-detalles .modal-body {
	flex: 1;
	background: #f4f5f7;
	padding: 22px;
	overflow: auto;
}

/* FOOTER */
.modal-detalles .modal-footer {
	background: #f3f3f3;
	border: none;
	padding: 10px 16px;
}

#modalDescripcion .custom-alert {
	margin: 0;
}

/* ANIMACIÓN */
.modal.fade .modal-dialog {
	transform: scale(.92);
	transition: .2s ease;
}

.modal.show .modal-dialog {
	transform: scale(1);
}

/* CARDS DOCUMENTOS */
.hover-card {
	transition: all 0.25s ease;
	border-radius: 10px;
}

.hover-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* BADGES */
.badge {
	border-radius: 12px;
	padding: 6px 12px;
	font-weight: 500;
	font-size: 12px;
}

/* ICONOS EN TABLA */
.table td i {
	margin-right: 6px;
}

/* BOTÓN DOCUMENTOS */
.btnVerDocs {
	border-radius: 6px;
	transition: all .2s ease;
}

.btnVerDocs:hover {
	transform: scale(1.05);
}

/* SCROLL */
.modal-detalles .modal-body::-webkit-scrollbar {
	width: 6px;
}

.modal-detalles .modal-body::-webkit-scrollbar-thumb {
	background: #bbb;
	border-radius: 4px;
}

.modal-detalles .modal-body::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* RESPONSIVE */
/* pantallas grandes */
@media (min-width:1400px) {
	.modal-detalles .modal-dialog {
		max-width: 900px;
	}
}

/* laptop */
@media (max-width:1200px) {
	.modal-detalles .modal-dialog {
		max-width: 85vw;
	}
}

/* tablet */
@media (max-width:768px) {
	.modal-detalles .modal-dialog {
		max-width: 92vw;
	}

	.modal-detalles .modal-content {
		height: 90vh;
	}
}

/* celular */
@media (max-width:576px) {
	.modal-detalles .modal-dialog {
		max-width: 96vw;
		margin: 10px;
	}

	.modal-detalles .modal-content {
		height: 94vh;
	}

	.modal-detalles .modal-body {
		padding: 16px;
	}
}

star {
	content: "* ";
	color: red;
	font-weight: bold;
}

/* ====== INFO CUENTA ====== */
.account-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.info-row {
	display: flex;
	align-items: center;
}

.info-label {
	font-weight: 600;
	color: #6c757d;
	margin-right: 6px;
}

.info-value {
	display: flex;
	align-items: center;
	gap: 6px;
}

.correo-text {
	word-break: break-all;
}

/* ====== CONTACT LINK ====== */
.ayuda-acceso {
	text-align: center;
	background: #ffffff;
	border: 1px solid #dcdcdc;
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
	margin-bottom: 12px;
}

.titulo-ayuda {
	font-size: 15px;
	font-weight: 500;
	color: #6c757d;
	margin-bottom: 10px;
}

.contact-link {
	background: yellowgreen;
	color: white !important;
	border: 1px solid #badbcc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
	padding: .45rem .8rem;
	border-radius: 10px;
	text-decoration: none;
	width: auto;
	max-width: max-content;
	margin: 0 auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
	transition: .25s ease;
}

.contact-link:hover {
	background: #7C2C82;
	color: #fff !important;
	box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

/* === Estilo checks personalizados === */
.switch-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	font-weight: 600;
	gap: 12px;
	flex-wrap: nowrap;
}

/* Texto completamente frente al switch */
.switch-label {
	font-size: 14px;
	flex: 1;
	word-break: break-word;
	line-height: 1.4;
	text-align: justify;
	margin: 0;
}

/* Mantener tamaño fijo del switch */
.switch {
	position: relative;
	display: inline-block;
	width: 70px;
	height: 28px;
	flex: 0 0 auto;
	/* evita que cambie su tamaño */
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 24px;
	transition: 0.4s;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Círculo que se mueve */
.slider::before {
	content: "❌";
	position: absolute;
	height: 24px;
	width: 24px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: black;
	font-size: 14px;
	transition: 0.4s;
}

/* Texto centrado No/Sí */
.slider::after {
	content: "No";
	position: absolute;
	text-align: center;
	left: 48%;
	transform: translateX(-48%);
	font-size: 12px;
	font-weight: bold;
	color: white;
	pointer-events: none;
	transition: 0.4s;
	padding-left: 12px;
}

/* Estado activo */
input:checked+.slider {
	background-color: #28a745;
}

input:checked+.slider::before {
	transform: translateX(42px);
	content: "✔";
}

input:checked+.slider::after {
	content: "Sí";
	padding-left: 0px;
}

/* === Grupo de radios estilo switch === */
.radio-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	gap: 8px;
}

.radio-options-custom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}

.radio-fill {
	flex: 1 1 200px;
	/* crece y se adapta */
	min-width: 200px;
}

/* texto (pregunta) arriba */
.switch-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: justify;
	margin-bottom: 6px;
	display: block;
	width: 100%;
}

/* contenedor de radios */
.radio-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

/* === Radio estilo switch (tamaño igual al switch normal) === */
.switch-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.switch-radio input {
	display: none;
}

/* Base del switch */
.slider-radio {
	position: relative;
	width: 66px;
	height: 24px;
	background-color: #ccc;
	border-radius: 24px;
	transition: 0.4s;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Círculo interno */
.slider-radio::before {
	content: "";
	position: absolute;
	height: 20px;
	/* igual que el switch */
	width: 20px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: 0.4s;
}

/* Estado activo */
.switch-radio input:checked+.slider-radio {
	background-color: #28a745;
}

/* ✔ dentro del círculo */
.switch-radio input:checked+.slider-radio::before {
	transform: translateX(42px);
	content: "✔";
	display: flex;
	align-items: center;
	justify-content: center;
	color: black;
	font-weight: 900;
	font-size: 16px;
}

/* Texto lateral */
.radio-text {
	font-size: 14px;
	color: #333;
	font-weight: 600;
	line-height: 1.4;
}

/* === Responsivo === */
@media (max-width: 600px) {
	.radio-options {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Espacio vertical entre switches o radios */
.switch-wrapper .switch,
.switch-radio {
	margin-bottom: 6px;
}

.switch-wrapper .switch:last-child,
.switch-radio:last-child {
	margin-bottom: 0;
}

/* === Responsivo === */
@media (max-width: 600px) {
	.switch-wrapper {
		flex-wrap: wrap;
	}

	.switch-label {
		flex-basis: 100%;
		margin-top: 6px;
	}
}

/* === ALERTAS MODERNAS TRANSLÚCIDAS === */
.custom-alert {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	border-left: 6px solid transparent;
	border-radius: 16px;
	padding: 12px 12px;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	animation: fadeInAlert 0.6s ease;
	transition: all 0.3s ease-in-out;
	background: rgba(255, 255, 255, 0.8);
}

.custom-alert:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* === ICONO Y CONTENIDO === */
.custom-alert-icon {
	font-size: 36px;
	flex-shrink: 0;
	margin-top: 4px;
}

.pulse i {
	animation: pulseEffect 2.2s infinite;
}

@keyframes pulseEffect {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.15);
		opacity: 0.85;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.custom-alert-content {
	font-size: 14px;
	text-align: justify;
	line-height: 1.55;
}

.custom-alert-content p {
	margin-bottom: 6px;
}

/* === ANIMACIÓN DE ENTRADA === */
@keyframes fadeInAlert {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* === VARIANTES DE COLOR === */
/* INFO (azul institucional Prepa en Línea SEP) */
.custom-alert.info {
	border-left-color: #007bff;
}

.custom-alert.info .custom-alert-icon {
	color: #007bff;
}

.custom-alert.primary {
	border-left: 4px solid #0dcaf0;
}

/* SUCCESS (verde SEP) */
.custom-alert.success {
	border-left-color: #28a745;
}

.custom-alert.success .custom-alert-icon {
	color: #28a745;
}

/* WARNING (ámbar) */
.custom-alert.warning {
	border-left-color: #ffc107;
}

.custom-alert.warning .custom-alert-icon {
	color: #ffc107;
}

/* DANGER / ERROR (rojo institucional) */
.custom-alert.danger {
	border-left-color: #dc3545;
}

.custom-alert.danger .custom-alert-icon {
	color: #dc3545;
}

.custom-alert.secondary {
	border-left: 4px solid #6c757d;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.custom-alert {
		flex-direction: column;
		gap: 10px;
		padding: 16px;
	}

	.custom-alert-icon {
		font-size: 30px;
	}

	.custom-alert-content {
		font-size: 13.5px;
	}
}

/* CONTENEDOR */
.pdf-container {
	position: relative;
	width: 100%;
	height: 75vh;
	overflow: hidden;
}

/* IFRAME */
.iframe-pdf {
	width: 100%;
	height: 100%;
	border: none;
	opacity: 0;
	filter: blur(8px);
	transition: all .4s ease;
}

/* CUANDO YA CARGÓ */
.iframe-pdf.loaded {
	opacity: 1;
	filter: blur(0);
}

/* SKELETON */
.skeleton-pdf {
	position: absolute;
	inset: 0;
	background: #f5f5f5;
	z-index: 10;
	overflow: hidden;
	display: none;
}

/* SHIMMER */
.skeleton-pdf .shimmer {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
			#f5f5f5 0%,
			#e0e0e0 50%,
			#f5f5f5 100%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

/* ANIMACIÓN SHIMMER */
@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}

	100% {
		background-position: 200% 0;
	}
}

/* CONTENIDO CENTRADO */
.pdf-loader-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 20;
}

/* ICONO PDF ANIMADO */
.pdf-icon {
	font-size: 60px;
	color: #d32f2f;
	animation: floatPDF 1.5s ease-in-out infinite;
}

/* ANIMACIÓN FLOTANTE */
@keyframes floatPDF {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* TEXTO */
.loading-text {
	margin-top: 10px;
	font-size: 14px;
	color: #555;
	font-weight: 500;
}

.copied-anim {
	animation: popSuccess 0.4s ease;
}

@keyframes popSuccess {
	0% {
		transform: scale(1);
	}

	40% {
		transform: scale(1.25);
	}

	100% {
		transform: scale(1);
	}
}

.btn-copy-all:hover {
	transform: scale(1.05);
	transition: 0.2s;
}

/* Progres bar */
.custom-alert-content h5 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #243b5a;
	margin-bottom: 12px;
}

/* BARRA DE PROGRESO */
.progress-modern {
	position: relative;
	width: 100%;
	height: 22px;
	border-radius: 50px;
	background: linear-gradient(180deg,
			#eef3f8 0%,
			#dfe7f0 100%);
	overflow: hidden;
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, .08),
		0 1px 3px rgba(255, 255, 255, .8);
}

.progress-modern-bar {
	position: relative;
	height: 100%;
	width: 0%;
	border-radius: 50px;
	background: linear-gradient(90deg,
			#4f46e5 0%,
			#3b82f6 50%,
			#22c55e 100%);
	transition: width 1.5s ease;
	box-shadow:
		0 0 15px rgba(13, 110, 253, .35);
}

.progress-modern-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, .35),
			transparent);
	animation: progressShine 2s linear infinite;
}

.progress-modern-bar::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translate(50%, -50%);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid #28a745;
	box-shadow: 0 0 10px rgba(40, 167, 69, .4);
}

@keyframes progressShine {
	from {
		transform: translateX(-120%);
	}

	to {
		transform: translateX(120%);
	}
}

/* MENSAJE DE ESTATUS */
.progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.status-message {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-weight: 600;
	color: #4b5563;
}

.status-message i {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e8faf5;
	color: #20c997;
	display: flex;
	align-items: center;
	justify-content: center;
}

.status-badge {
	padding: 8px 14px;
	border-radius: 30px;
	background: #eef6ff;
	color: #0d6efd;
	font-weight: 700;
	white-space: nowrap;
}

/* Observaciones */
.obs-container {
	margin-top: 18px;
	border-radius: 14px;
	border: 1px solid #ffe3a3;
	background: linear-gradient(180deg,
			#fffdf7 0%,
			#fff8e8 100%);
	padding: 16px;
}

.obs-title {
	font-weight: 700;
	color: #9a6b00;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.obs-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.obs-item {
	display: grid;
	grid-template-columns: 40px 220px 140px 1fr;
	align-items: center;
	gap: 15px;
	width: 100%;
}

.obs-item:not(:last-child) {
	border-bottom: 1px dashed #f0d999;
}

.obs-icon {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	background: #fff3cd;
	color: #b7791f;
	display: flex;
	align-items: center;
	justify-content: center;
}

.obs-doc {
	font-weight: 700;
	color: #5c3d00;
}

.obs-status {
	font-weight: 700;
	color: #dc3545;
}

.obs-text {
	font-weight: 700;
	color: #6b7280;
}

@media (max-width: 768px) {
	.progress-info {
		flex-direction: column;
		align-items: flex-start;
	}

	.status-badge {
		width: 100%;
		text-align: center;
	}
}

/* TITULOS */
.section-title {
	color: var(--guinda);
	border-bottom: 2px solid var(--dorado);
	padding-bottom: 4px;
	font-weight: 600;
}


.doc-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid;
	font-size: 76%;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: all 0.25s ease;
}

/* ICONO */
.doc-status i {
	transition: transform 0.2s ease;
}

/* HOVER GENERAL */
.doc-status:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.doc-status:hover i {
	transform: scale(1.2);
}

/* EFECTO BRILLO */
.doc-status::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(120deg,
			transparent,
			rgba(255, 255, 255, 0.5),
			transparent);
	transition: all 0.5s ease;
}

.doc-status:hover::after {
	left: 100%;
}

/* CLICK EFECTO */
.doc-status:active {
	transform: scale(0.97);
}

/* ESTADOS */
/* VALIDADO */
.status-validado {
	background-color: #f6fffa;
	border-color: #198754;
	color: #198754;
}

.status-validado:hover {
	background-color: #e9fff3;
	border-color: #157347;
}

/* RECHAZADO */
.status-rechazado {
	background-color: #fff5f5;
	border-color: #dc3545;
	color: #dc3545;
}

.status-rechazado:hover {
	background-color: #ffe9e9;
	border-color: #b02a37;
}

/* PENDIENTE */
.status-pendiente {
	background-color: #f0f7ff;
	border-color: #0d6efd;
	color: #0d6efd;
}

.status-pendiente:hover {
	background-color: #e7f1ff;
	border-color: #0a58ca;
}

/* ANIMACIÓN ENTRADA */
.doc-status.animate {
	animation: popIn 0.35s ease;
}

@keyframes popIn {
	0% {
		transform: scale(0.9);
		opacity: 0;
	}

	60% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* BONUS FLASH VALIDADO */
.status-validado.animate {
	animation: successFlash 0.5s ease;
}

@keyframes successFlash {
	0% {
		background-color: #d1ffe9;
	}

	100% {
		background-color: #f6fffa;
	}
}

/* ==== CONTENEDOR GENERAL plantel sede alterna==== */
.plantel-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	background: #f8f9fa;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	animation: fadeIn .25s ease;
}

/* ==== CARD BASE ==== */
.plantel-card {
	background: #fff;
	border-radius: 10px;
	padding: 14px;
	border: 1px solid #ddd;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 170px;
	font-size: 13.5px;
}

/* TITULOS */
.plantel-card h5,
.plantel-card h6 {
	margin-bottom: 8px;
	font-size: 15px;
}

/* TEXTO */
.plantel-card p {
	margin-bottom: 5px;
}

/* === VARIANTES === */
.plantel-card.plantel {
	border-left: 4px solid #c5a46d;
}

.plantel-card.sede {
	border-left: 4px solid #6c757d;
}

/* BOTONES */
.btn-plantel {
	background: #c5a46d;
	border: none;
	color: #fff;
}

.btn-plantel:hover {
	background: #b3925f;
}

.btn-sede {
	border: 1px solid #6c757d;
	color: #6c757d;
	background: transparent;
}

.btn-sede:hover {
	background: #6c757d;
	color: #fff;
}

/* SIN SEDE */
.sin-sede {
	color: #999;
	font-style: italic;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

/* ANIMACIÓN */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.plantel-container {
		grid-template-columns: 1fr;
	}
}

/* ICONO DE UBICACIÓN EN ROJO */
.fa-map-location-dot,
.fa-location-dot {
	color: #dc3545 !important;
	/* rojo bootstrap */
}

/* HOVER ICONOS */
.plantel-card i {
	transition: all .2s ease;
}

.plantel-card:hover i {
	transform: scale(1.15);
	opacity: 0.9;
}

/* BOTÓN LOADING */
.btn-loading {
	pointer-events: none;
	opacity: 0.8;
}

/* SPINNER */
.spinner {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-top: 2px solid transparent;
	border-radius: 50%;
	display: inline-block;
	animation: spin .6s linear infinite;
	margin-right: 6px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* SPINNER GRIS */
.btn-sede .spinner {
	border: 2px solid #6c757d;
	border-top: 2px solid transparent;
}

/* TOOLTIP SIMPLE */
.tooltip-custom {
	position: relative;
	cursor: pointer;
}

.tooltip-custom:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 4px 8px;
	border-radius: 5px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0.95;
}

/* SKELETON TABLE */
.skeleton-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
}

/* Sin líneas */
.skeleton-table,
.skeleton-table thead,
.skeleton-table tbody,
.skeleton-table tr,
.skeleton-table th,
.skeleton-table td {
	border: none !important;
	box-shadow: none !important;
}

/* Encabezado */
.skeleton-table thead th {
	padding: 10px 12px;
	background: #fff;
}

/* Cuerpo */
.skeleton-table tbody td {
	padding: 8px 12px;
}

/* Separación entre filas */
.skeleton-table tbody tr+tr td {
	padding-top: 6px;
}

/* SKELETON BASE */

.sk {
	display: block;
	position: relative;
	overflow: hidden;
	background: #eceff3;
	border-radius: 6px;
}

.sk::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, .75),
			transparent);
	animation: sk-loading 1.2s infinite linear;
}

@keyframes sk-loading {

	100% {
		transform: translateX(100%);
	}

}

/* HEADER */
.sk-head {
	height: 14px;
	margin: auto;
	border-radius: 30px;
}

.sk-head:nth-child(1) {
	width: 75%;
}

.sm {
	width: 40%;
}

.md {
	width: 55%;
}

.lg {
	width: 70%;
}

/* BODY */
.sk-doc {
	width: 88%;
	height: 15px;
	border-radius: 30px;
}

.sk-btn {
	width: 42px;
	height: 28px;
	margin: auto;
	border-radius: 8px;
}

.sk-select {
	width: 95%;
	height: 34px;
	margin: auto;
	border-radius: 8px;
}

.sk-area {
	width: 100%;
	height: 38px;
	border-radius: 8px;
}

/* FOOTER */
.sk-footer {
	width: 170px;
	height: 14px;
	border-radius: 30px;
}

.sk-save {
	width: 170px;
	height: 38px;
	margin-left: auto;
	border-radius: 8px;
}

/* MODAL */
#modalDetalleDocs .modal-body {
	padding: 12px 16px;
	min-height: 420px;
}

/* RESPONSIVE */
@media (max-width:768px) {

	.skeleton-table {
		min-width: 680px;
	}

	#modalDetalleDocs .modal-body {
		padding: 10px;
	}

}

.credenciales-box {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 10px 14px;
	text-align: left;
	white-space: pre-line;
	font-size: 15px;
	line-height: 1.8;
	color: #495057;
}

/* DOCUMENTO NO DISPONIBLE */
.documento-no-disponible {
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 25px;
	background: #fff;
	text-align: center;
}

.documento-no-disponible-content {
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ICONO */
.documento-no-disponible-icon {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9edf1;
	color: #691a32;
	font-size: 38px;
	margin-bottom: 20px;

	box-shadow: 0 6px 18px rgba(105, 26, 50, 0.08);
}

/* ETIQUETA */
.documento-no-disponible-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	margin-bottom: 12px;
	border-radius: 20px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	color: #6c757d;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2px;
}

.documento-no-disponible-badge i {
	color: #691a32;
	font-size: 11px;
}

/* TITULO */
.documento-no-disponible h5 {
	margin: 0 0 10px;
	color: #691a32;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.2px;
}

/* DESCRIPCIÓN */
.documento-no-disponible p {
	max-width: 440px;
	margin: 0 0 8px;
	color: #5f6873;
	font-size: 15px;
	line-height: 1.6;
}

/* MENSAJE SECUNDARIO */
.documento-no-disponible-help {
	display: block;
	max-width: 420px;
	color: #98a0a8;
	font-size: 13px;
	line-height: 1.5;
}

/* EFECTO SUTIL */
.documento-no-disponible-content {
	animation: documentoFadeIn .25s ease-out;
}

@keyframes documentoFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/****** Bloquear tabla para evitar proceso simultaneos ******/
.table-responsive {
	position: relative;
}

.table-responsive.tabla-bloqueada::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(1px);
	z-index: 10;
	cursor: wait;
}

.table-responsive.tabla-bloqueada {
	overflow: hidden;
}

.tabla-bloqueada table {
	opacity: 0.65;
}
