/* === extraído de View/Themed/{Uejn,Madariaga}/Plugin/Risto/Pages/landing.ctp (#539) ===
   Compartido entre los themes Uejn y Madariaga: el <style> embebido era idéntico salvo
   la variable --navy (color institucional). Uejn usa el valor por defecto de este archivo;
   Madariaga lo pisa con View/Themed/Madariaga/webroot/css/pages_landing_override.css
   (cargado después de este). Ninguno de los dos themes tiene colors.css propio con brand
   colors — la paleta de este portal es local a esta vista, sin token global equivalente,
   ver lint-tokens-ok. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

.prov-landing {
	--navy:  #1a3a6b; /* lint-tokens-ok: color de marca institucional del portal (Uejn por defecto, sin colors.css propio) */
	--navy-hover: #0f2340; /* lint-tokens-ok: idem, variante hover */
	--gold:  #b8952a; /* lint-tokens-ok: color de marca institucional del portal, sin colors.css propio */
	--bg:    #f7f6f2; /* lint-tokens-ok: fondo de marca institucional del portal, sin colors.css propio */
	--text:  #1a1a2e; /* lint-tokens-ok: color de marca institucional del portal, sin colors.css propio */
	--muted: #888; /* lint-tokens-ok: color de marca institucional del portal, sin colors.css propio */

	/* Fix round 1: el layout default_landing de Uejn/Madariaga NO carga colors.css,
	   así que var(--color-white)/var(--color-grey-N)/var(--border-color-light) quedaban
	   indefinidas (regresión visual: botón INGRESAR con texto oscuro, footer negro).
	   Se localizan acá con el valor literal original del <style> extraído. */
	--white: #fff; /* lint-tokens-ok: layout default_landing no carga colors.css */
	--grey-mid: #aaa; /* lint-tokens-ok: layout default_landing no carga colors.css */
	--grey-light: #bbb; /* lint-tokens-ok: layout default_landing no carga colors.css */
	--border-light: #ddd; /* lint-tokens-ok: layout default_landing no carga colors.css */

	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	padding: 2rem;
	position: relative;
}

/* Logo SVG */
.prov-logo-wrap {
	width: 100%;
	max-width: 400px;
	--color-primary: var(--navy);
}

.prov-logo-wrap svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Separador */
.prov-rule {
	width: 48px;
	height: 2px;
	background: var(--gold);
	border: none;
	margin: 2.5rem 0 2rem;
	flex-shrink: 0;
}

/* Subtítulo área */
.prov-area {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
}

/* Título principal */
.prov-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 300;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--navy);
	text-align: center;
	margin-top: 0.6rem;
	line-height: 1.2;
}

/* Botón login */
.prov-btn-login {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 2.8rem;
	padding: 0.9rem 2.8rem;
	background: var(--navy);
	color: var(--white);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 3px;
	transition: background 0.2s, transform 0.15s;
}

.prov-btn-login:hover,
.prov-btn-login:focus {
	background: var(--navy-hover);
	color: var(--white);
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}

.prov-btn-login svg {
	opacity: 0.75;
	flex-shrink: 0;
}

/* Link registrarse */
.prov-register-link {
	margin-top: 1.2rem;
	font-size: 0.78rem;
	color: var(--muted);
	text-align: center;
}

.prov-register-link a {
	color: var(--navy);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.prov-register-link a:hover {
	border-bottom-color: var(--navy);
}

/* Modal */
.prov-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(26, 54, 85, 0.55); /* lint-tokens-ok: tinte institucional del backdrop, sin equivalente exacto en --color-* */
	backdrop-filter: blur(3px);
	z-index: 100;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.prov-modal-backdrop.is-open {
	display: flex;
}

.prov-modal {
	background: var(--white);
	border-radius: 6px;
	max-width: 420px;
	width: 100%;
	padding: 2.4rem 2.4rem 2rem;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.18); /* lint-tokens-ok: sombra custom (geometría/opacidad) sin equivalente exacto en --shadow-* */
	animation: modalIn 0.18s ease;
}

@keyframes modalIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.prov-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--grey-mid);
	line-height: 1;
	padding: 0.25rem;
	transition: color 0.15s;
}

.prov-modal-close:hover { color: var(--navy); }

.prov-modal-icon {
	width: 44px;
	height: 44px;
	background: #eef2f7; /* lint-tokens-ok: fondo institucional claro, sin equivalente exacto en --color-* */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.2rem;
}

.prov-modal-icon svg { color: var(--navy); }

.prov-modal h2 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.6rem;
	letter-spacing: 0.01em;
}

.prov-modal p {
	font-size: 0.85rem;
	color: #555; /* lint-tokens-ok: gris institucional más oscuro que --color-grey base, sin equivalente exacto */
	line-height: 1.65;
	margin-bottom: 1.4rem;
}

.prov-modal-email {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--bg);
	border: 1px solid var(--border-light);
	border-radius: 4px;
	padding: 0.6rem 1rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--navy);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
	width: 100%;
	justify-content: center;
	margin-bottom: 1.2rem;
}

.prov-modal-email:hover {
	background: #eef2f7; /* lint-tokens-ok: fondo institucional claro, sin equivalente exacto en --color-* */
	border-color: var(--navy);
	color: var(--navy);
	text-decoration: none;
}

.prov-modal-note {
	font-size: 0.72rem;
	color: var(--grey-mid);
	text-align: center;
	margin-bottom: 0 !important; /* lint-tokens-ok: pisa el margin-bottom del <p> genérico del modal */
}

/* Footer */
.prov-footer {
	position: absolute;
	bottom: 1.5rem;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0.7rem;
	color: var(--grey-light);
	letter-spacing: 0.04em;
	padding: 0 1rem;
}

@media (max-width: 480px) {
	.prov-logo-wrap { max-width: 280px; }
	.prov-rule { margin: 2rem 0 1.5rem; }
}
