body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0;
	background-color: #d0d0d0;
	font-size: 18px;
}
main {
	padding: 0 20px;
	min-height: 120vh;
	max-width: 400px;
	margin: 0 auto;
}
a,
a:hover,
a:active {
	text-decoration: none;
}
h2 i {
	font-size: 20px;
	vertical-align: middle;
}
h3 {
	font-size: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	position: -webkit-sticky;
	position: sticky;
	background-color: #fff;
	top: 60px;
	padding: 7px 12px;
	border-bottom: #007aff 2px solid;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
	margin: 10px 0;
	z-index: 88;
}

.aviso {
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 5px 5px 5px 5px;
	min-width: 250px;
	text-align: center;
}
/* Notificaciones persistentes de documentos */
.notificaciones-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	padding: 8px 10px;
	z-index: 999;
	max-height: 120px;
	overflow-y: auto;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	border-top: 2px solid #ff3b30;
}

.cerrar-notif {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(255, 59, 48, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	z-index: 1000;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
}

.cerrar-notif:hover {
	background: rgba(255, 59, 48, 1);
	transform: scale(1.1);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.cerrar-notif:active {
	transform: scale(0.95);
}

.notif-item {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.3;
	background: rgba(255, 255, 255, 0.8);
	color: #fff;
}

.notif-item.vencido {
	background: linear-gradient(
		90deg,
		rgba(255, 59, 48, 0.5) 0%,
		rgba(255, 59, 48, 0.3) 100%
	);
	border-left: 4px solid #ff3b30;
	animation: pulse-red 2s ease-in-out infinite;
}

.notif-item.hoy {
	background: linear-gradient(
		90deg,
		rgba(255, 149, 0, 0.5) 0%,
		rgba(255, 149, 0, 0.3) 100%
	);
	border-left: 4px solid #ff9500;
	animation: pulse-orange 2s ease-in-out infinite;
}

.notif-item.urgente {
	background: linear-gradient(
		90deg,
		rgba(255, 204, 0, 0.4) 0%,
		rgba(255, 204, 0, 0.25) 100%
	);
	border-left: 3px solid #ffcc00;
}

.notif-item.proximo {
	background: linear-gradient(
		90deg,
		rgba(255, 193, 7, 0.35) 0%,
		rgba(255, 193, 7, 0.2) 100%
	);
	border-left: 3px solid #ffc107;
}

@keyframes pulse-red {
	0%,
	100% {
		box-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
	}
	50% {
		box-shadow:
			0 0 15px rgba(255, 59, 48, 0.8),
			0 0 25px rgba(255, 59, 48, 0.4);
	}
}

@keyframes pulse-orange {
	0%,
	100% {
		box-shadow: 0 0 5px rgba(255, 149, 0, 0.5);
	}
	50% {
		box-shadow:
			0 0 15px rgba(255, 149, 0, 0.8),
			0 0 25px rgba(255, 149, 0, 0.4);
	}
}

.notif-icono i {
	color: #fff;
	margin-right: 8px;
	font-size: 16px;
	flex-shrink: 0;
}

@keyframes shake {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-10deg);
	}
	75% {
		transform: rotate(10deg);
	}
}

.notif-texto {
	flex: 1;
}

.notif-texto strong {
	font-weight: 600;
	margin-right: 4px;
}

/* Ajuste para que el contenido no quede oculto bajo las notificaciones */
main {
	padding-bottom: 140px;
}

.emergente {
	position: fixed;
	display: inline-block;
	bottom: 10px;
	right: 10px;
	padding: 5px 5px 5px 5px;
	min-width: 250px;
	z-index: 99999;
	font-size: 18px;
	text-align: center;
}
.correcto {
	border: solid 1px #229922;
	color: #fff;
	background-color: #47cc64;
}
.correcto:before {
	font-family: FontAwesome;
	content: "\f05d";
	margin-right: 5px;
	font-size: 18px;
	vertical-align: middle;
}
.error {
	border: solid 1px #c43d3d;
	color: #fff;
	background-color: #e24e36;
}
.error:before {
	font-family: FontAwesome;
	content: "\f05c";
	margin-right: 5px;
	font-size: 18px;
	vertical-align: middle;
}
.notificacion {
	border: solid 1px #3b8eb5;
	color: #fff;
	background-color: #3b97e1;
}
.notificacion:before {
	font-family: FontAwesome;
	content: "\f06a";
	margin-right: 5px;
	font-size: 18px;
	vertical-align: middle;
}
.alerta {
	border: solid 1px #d47800;
	color: #fff;
	background-color: #e28000;
}
.alerta:before {
	font-family: FontAwesome;
	content: "\f071";
	margin-right: 5px;
	font-size: 18px;
	vertical-align: middle;
}

.observacion-destacada {
	margin-top: 10px;
	padding: 10px 12px;
	border-left: 5px solid #ff3b30;
	border-radius: 6px;
	background: linear-gradient(90deg, #ffe082 0%, #ffcc80 45%, #ffab91 100%);
	color: #5d1f00;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
	box-shadow: 0 4px 10px rgba(255, 87, 34, 0.25);
	text-transform: none;
}

.caja {
	background-color: #f6f6f6;
	border-radius: 6px;
	margin: 20px auto;
	max-width: 400px;
	padding: 20px;
	transition-property: background-color;
	transition-duration: 0.5s;
	transition-timing-function: ease-in;
	transition-delay: 0.3s;
}

.sombra {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#userlogin div {
	text-align: center;
}
#userlogin h2 {
	text-align: center;
}

i {
	font-size: 14px;
	color: #292929;
	width: 20px;
	text-align: center;
	vertical-align: middle;
}

form label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
}

input[type="text"],
#userlogin input[type="password"],
input[type="number"],
textarea {
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	display: block;
	font-size: 16px;
	margin-bottom: 20px;
	padding: 10px;
	width: 100%;
	color: #111;
	-webkit-text-fill-color: #111;
}

input.inDataB,
input[type="number"].inDataB {
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
}

select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	color: #333;
	font-size: 16px;
	padding: 10px;
	width: 100%;
	margin-bottom: 20px;
}

select:focus {
	border-color: #007aff;
}

select option {
	background-color: #fff;
	color: #333;
}

.azul {
	background-color: #007aff;
}
.rojo {
	background-color: #ff6600;
}

.caja-mini {
	user-select: none;
	display: inline-block;
	border: 0;
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	padding: 7px 12px;
	margin: 5px 3px;
	text-decoration: none;
}

.boton {
	position: relative;
	user-select: none;
	display: inline-block;
	border: 0;
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	padding: 7px 12px;
	margin: 5px 3px;
	text-decoration: none;
	transition: transform 0.3s;
	box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.58);
	-webkit-box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.58);
	-moz-box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.58);
}

.boton:hover {
	background-color: #292929;
	color: #ddd;
	transform: perspective(100px) rotateX(10deg);
}

.boton i,
.caja-mini i {
	color: #fff;
	font-size: 16px;
	width: 30px;
}

#userlogin div.inv-recaptcha-holder {
	display: none;
}
.botones {
	text-align: right;
}
.linea {
	border: 1px solid #f6f6f6;
	border-radius: 6px;
	padding: 5px;
	background-color: rgba(255, 255, 255, 0.8);
	margin: 40px 0;
}
.encabezado {
	border-radius: 6px 6px 0 0cm;
	/*text-align: center;*/
	padding: 12px 7px;
	background-color: rgba(200, 200, 200, 0.2);
	font-size: 16px;
}

.producto {
	padding: 20px;
}
.margen {
	margin: 10px 0;
	padding: 7px 5px 1px 5px;
}
.margin-top {
	margin-top: 10px;
}
.amarillo {
	background-color: #f9e46e;
}
.verde {
	background-color: #33691e;
	color: #fff;
}
.cuerpo {
	padding: 10px;
}
.columnas {
	display: flex;
	justify-content: space-between;
}
.col-x2 {
	flex-grow: 4;
}
.opaco {
	color: rgba(0, 0, 0, 0.4);
}

.referencia {
	color: rgba(0, 0, 160, 0.6);
}
.redondear {
	border-radius: 60px;
}
.fijar {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
	background-color: rgba(29, 29, 29, 0.95);
	width: 100%;
	text-align: center;
	padding: 5px 0;
	z-index: 99;
}
.fijar .boton {
	margin: 0 3px;
	padding: 12px 7px;
}
.oculto {
	display: none;
}
.servicio {
	border-top: 4px solid #ccc;
	margin-bottom: 20px;
}

.fila {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.fila .campo {
	text-align: left;
}
button:disabled {
	background-color: gray;
}
