/* Portal de documentos para prospectos */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #f4f6fb;
	color: #2b2f38;
	min-height: 100vh;
}

/* ===== Encabezado con identidad de empresa ===== */

.encabezado {
	background: linear-gradient(135deg, var(--color-1), var(--color-2));
	color: #ffffff;
	padding: 32px 16px 72px;
}

.encabezado-contenido {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
}

.logo-empresa {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 16px;
	padding: 8px;
	flex-shrink: 0;
}

.nombre-empresa {
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.85;
	margin-bottom: 4px;
}

.nombre-prospecto {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 6px;
}

.vacante {
	font-size: 15px;
	opacity: 0.95;
}

.vacante-etiqueta {
	opacity: 0.8;
	margin-right: 4px;
}

.vacante-puesto {
	font-weight: 600;
}

/* ===== Contenido ===== */

.portal {
	max-width: 760px;
	margin: -48px auto 0;
	padding: 0 16px 40px;
}

.portal-error {
	margin-top: 60px;
}

.tarjeta {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(31, 42, 68, 0.08);
	padding: 20px;
	margin-bottom: 14px;
}

.tarjeta-error {
	text-align: center;
	padding: 48px 24px;
}

.tarjeta-error h1 {
	font-size: 22px;
	margin-bottom: 12px;
}

.tarjeta-error p {
	color: #6b7280;
	line-height: 1.6;
}

.icono-error {
	font-size: 42px;
	margin-bottom: 12px;
}

.tarjeta-vacia {
	text-align: center;
	color: #6b7280;
}

/* ===== Banner de bloqueo ===== */

.banner-bloqueo {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff7e6;
	border: 1px solid #ffd591;
	color: #7a4d00;
	border-radius: 14px;
	padding: 14px 18px;
	margin-bottom: 14px;
	line-height: 1.5;
}

.banner-icono {
	font-size: 22px;
}

/* ===== Progreso ===== */

.progreso-textos {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}

.progreso-textos h2 {
	font-size: 18px;
}

.progreso-detalle {
	font-size: 13px;
	color: #6b7280;
	font-weight: 600;
}

.barra-progreso {
	height: 10px;
	background: #e8ecf5;
	border-radius: 6px;
	overflow: hidden;
}

.barra-progreso-relleno {
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--color-1), var(--color-2));
	transition: width 0.4s ease;
}

/* ===== Documentos ===== */

.tarjeta-documento {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.documento-info {
	flex: 1;
	min-width: 0;
}

.documento-nombre {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 8px;
}

.documento-detalles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fecha {
	font-size: 12px;
	color: #6b7280;
}

.estatus {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
}

.estatus-pendiente {
	background: #eef1f6;
	color: #5b6472;
}

.estatus-enviado {
	background: #fff4d6;
	color: #8a6100;
}

.estatus-autorizado {
	background: #e2f7e8;
	color: #157347;
}

.estatus-rechazado {
	background: #fde4e4;
	color: #b02a37;
}

.motivo-rechazo {
	margin-top: 10px;
	background: #fdf2f2;
	border-left: 3px solid #b02a37;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13px;
	color: #7a1f28;
	line-height: 1.5;
}

.documento-acciones {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

/* ===== Botones ===== */

.boton {
	display: inline-block;
	border: none;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.05s ease;
}

.boton:active {
	transform: scale(0.98);
}

.boton-primario {
	background: linear-gradient(135deg, var(--color-1), var(--color-2));
	color: #ffffff;
}

.boton-primario:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.boton-secundario {
	background: #eef1f6;
	color: #2b2f38;
}

.boton:hover {
	opacity: 0.9;
}

/* ===== Campos de formulario (fancy de subida) ===== */

.campo {
	display: block;
	margin-bottom: 14px;
}

.campo span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.campo span b {
	color: #b02a37;
}

.campo input {
	width: 100%;
	border: 1px solid #d4dae6;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fbfcfe;
}

.campo input:focus {
	outline: 2px solid var(--color-2);
	outline-offset: -1px;
}

.campo input.invalido {
	border-color: #b02a37;
}

.mensaje-fancy {
	background: #fdf2f2;
	color: #b02a37;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	margin-bottom: 14px;
	line-height: 1.4;
}

.mensaje-fancy.exito {
	background: #e2f7e8;
	color: #157347;
}

.pie {
	text-align: center;
	color: #9aa2b1;
	font-size: 12px;
	margin-top: 24px;
}

/* ============================================
   FANCY-X: Estilos base para Fancybox modals
   (alineado con css/style.php de la intranet)
   ============================================ */

.fancy-x-root {
	--fancy-color-1: var(--color-1);
	--fancy-color-2: var(--color-2);
}

.fancy-x-root {
	width: 70%;
	max-width: 1280px;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 12px 28px -16px rgba(23, 43, 77, 0.45);
	padding: 0 !important;
}

@media only screen and (max-width: 700px) {
	.fancy-x-root { width: 96%; }
}

.fancy-x-root .fancy-x-header {
	padding: 26px 18px;
	background: linear-gradient(
		130deg,
		var(--fancy-color-1) 0%,
		var(--fancy-color-2) 100%
	);
	color: #ffffff;
	border-radius: 14px 14px 0 0;
}

.fancy-x-root .fancy-x-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #ffffff;
}

.fancy-x-root .fancy-x-subtitle {
	margin-top: 4px;
	opacity: 0.94;
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
}

.fancy-x-root .fancy-x-body {
	padding: 16px;
	background: #f4f7fb;
	border-radius: 0 0 14px 14px;
}

@media only screen and (max-width: 991px) {
	.fancy-x-root .fancy-x-body { padding: 12px; }
}

/* Close button: blanco automatico cuando el fancy usa fancy-x-root */
.fancybox-container .fancybox-close-small {
	color: #ffffff !important;
	opacity: 1 !important;
}

/* Acciones del fancy formulario */
.fancy-x-acciones {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 4px;
}

/* ============================================
   Compatibilidad del datepicker de jQuery UI
   (posicionamiento fijo dentro del Fancybox)
   ============================================ */

.ui-datepicker.dp-fixed {
	position: fixed !important;
	z-index: 10000;
}

/* ===== Responsive ===== */

@media only screen and (max-width: 600px) {
	.encabezado {
		padding: 24px 16px 64px;
	}

	.nombre-prospecto {
		font-size: 21px;
	}

	.logo-empresa {
		width: 56px;
		height: 56px;
	}

	.tarjeta-documento {
		flex-direction: column;
		align-items: stretch;
	}

	.documento-acciones {
		flex-direction: row;
	}

	.documento-acciones .boton {
		flex: 1;
	}
}
