﻿/* ===== ESTILOS BASE (MOBILE FIRST) ===== */
@font-face {
	font-family: 'Visby Round CF';
	/*src: url('portal/fonts/VisbyRoundCF-Bold.woff2') format('woff2'), url('portal/fonts/VisbyRoundCF-Bold.woff') format('woff');*/
	src: url('../portal/fonts/VisbyRoundCF-Bold.woff2') format('woff2'), url('../portal/fonts/VisbyRoundCF-Bold.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	width: 100%;
	font-family: 'Visby Round CF', Arial, sans-serif;
}

body {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	overflow: hidden;
	position: relative;
	padding: 1rem;
}

.video-container {
	position: fixed;
	inset: 0;
	z-index: -10;
	overflow: hidden;
	background: black;
}

.video-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* Clave para que se adapte */
	transition: opacity 1s ease-in-out;
	opacity: 0;
}

	.video-layer.active {
		opacity: 1;
	}

.login-card {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.15); /* Transparente */
	backdrop-filter: blur(10px); /* Difuminado detrás */
	-webkit-backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	width: 100%;
	max-width: 400px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card img {
	width: 100%;
	margin-bottom: 1.5rem;
}

.form-group {
	position: relative;
	margin-bottom: 1.5rem;
}
	.form-group input {
		display: block;
		width: 100%;
		padding: 0.75rem 0.75rem 0.75rem 0.75rem;
		padding: 0.75rem;
		margin-bottom: 1rem;
		border: 1px solid #ccc;
		border-radius: 5px;
		font-size: 1rem;
		outline: none;
		font-family: 'Visby Round CF', Arial, sans-serif;
	}

	.form-group label {
		position: absolute;
		top: 50%;
		left: 0.75rem;
		transform: translateY(-50%);
		color: #aaa;
		font-size: 2rem;
		pointer-events: none;
		transition: all 0.3s ease;
	}

	.form-group input:focus + label,
	.form-group input:not(:placeholder-shown) + label {
		top: -0.6rem;
		background: none;
		padding: 0 0.25rem;
		font-size: 1.2rem;
		color: #FFB03A;
		text-shadow: 0 0 1px #fff, /* Brillo blanco muy suave */
		-1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 2px #000;
	}

.btn-guardar {
	width: 100%;
	padding: 0.75rem;
	background-color: #FFB03A;
	color: #FE2491;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
	transition: background-color 0.3s ease;
	font-size: 1rem;
	text-shadow: 0 0 1px #fff, /* Brillo blanco muy suave */
	-1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 2px #000;
}

	.btn-guardar:hover {
		background-color: #e60077;
	}

.login-card .links {
	margin-top: 1rem;
	justify-content: space-between;
	font-size: 0.9rem;
}

	.login-card .links a {
		color: #FFB03A;
		text-shadow: 0 0 1px #000, /* Brillo blanco muy suave */
		-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 2px #000;
		text-decoration: none;
	}

		.login-card .links a:hover {
			text-decoration: underline;
		}

.hidden {
	display: none !important;
}

.alert-danger {
	position: relative;
	padding: 1.2rem 2.5rem 1.2rem 1.2rem;
	background: rgba(255, 0, 138, 0.08);
	color: #ff008a;
	border: 1px solid #ff008a;
	border-radius: 8px;
	margin-top: 1rem;
	font-weight: bold;
	font-size: 1rem;
	text-align: center;
	min-height: 48px;
	display: inline-block; /* Cambio clave: evita que se estire a todo el ancho */
	max-width: 100%;
	width: auto; /* ← ESTA es la clave */
	position: relative;
}
.alert-danger {
	width: fit-content;
	margin: 1rem auto 0 auto;
}
	.alert-danger span {
		display: inline-block; /* En línea para que no empuje cosas */
		width: auto;
	}

.close-error-btn {
	top: 8px;
	right: 8px;
	background: transparent;
	border: none;
	font-size: 1.25rem;
	color: #ff008a;
	cursor: pointer;
	width: 32px;
	height: 32px;
	padding: 0; /* ← ESTO es lo que te faltaba */
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	line-height: 1;
	z-index: 2;
	transition: background 0.2s ease, color 0.2s ease;
}

	.close-error-btn:hover {
		background: #ff008a;
		color: white;
	}


/* === Mobile específico: iPhone 12/13 Pro (390x844) === */
@media (max-width: 420px) {
	.login-card {
		padding: 1rem;
		max-width: 100%;
		box-shadow: none;
	}
	.form-group input {
		font-size: 0.95rem;
		padding: 0.6rem;
	}

	.login-card button {
		font-size: 0.95rem;
		padding: 0.6rem;
	}
	.video-layer {
		object-fit: cover;
		object-position: 30% center; /* 30%% del ancho, centrado verticalmente */
	}
}

/* === Tablets (como 768x1024) === */
@media (min-width: 421px) and (max-width: 1024px) {
	.login-card {
		padding: 2rem;
		max-width: 80%;
	}
	.form-group input {
		font-size: 1rem;
		padding: 0.75rem;
	}

	.login-card button {
		font-size: 1rem;
	}

	.video-layer {
		object-position: center;
		object-position: 30% center; /* 30%% del ancho, centrado verticalmente */
	}

}

/* === Laptops/Desktop (como 1440x900) === */
@media (min-width: 1025px) and (max-width: 1500px) {
	.login-card {
		max-width: 450px;
		padding: 2.5rem;
	}

		.login-card button {
			font-size: 1.1rem;
			padding: 1rem;
		}

	.video-layer {
		object-position: center center;
	}
}

.popup-soporte-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.popup-soporte-content {
	background: #fff;
	padding: 2rem 2.5rem;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.18);
	text-align: center;
	position: relative;
	min-width: 260px;
}

.popup-soporte-close {
	position: absolute;
	top: 8px;
	right: 14px;
	font-size: 1.5rem;
	cursor: pointer;
	color: #888;
}
