/**
 * Modal de bienvenida — selección de sede.
 * Tipografías: handle astra-child-sede-welcome-fonts (functions.php).
 */

html.nj-sede-welcome-open,
html.nj-sede-welcome-open body {
	overflow: hidden;
}

.nj-sede-welcome {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
}

.nj-sede-welcome.nj-sede-welcome--hidden {
	display: none;
}

.nj-sede-welcome__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 45, 0.55);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.nj-sede-welcome__panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(853px, 100%);
	min-height: min(452px, 90vh);
	max-height: 92vh;
	overflow: auto;
	padding: 2.75rem 2.5rem 2.25rem;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 31, 54, 0.22);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nj-sede-welcome__panel::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0.07;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(circle at 80% 20%, #1b5e9e 0%, transparent 55%),
		radial-gradient(circle at 15% 85%, #1b5e9e 0%, transparent 50%);
}

/* Misma idea que farmacia-login-popup__watermark (+ --custom): esquina inferior izquierda del panel. */
.nj-sede-welcome__watermark {
	position: absolute;
	inset: auto auto 0 0;
	z-index: 0;
	width: 75%;
	max-width: 520px;
	aspect-ratio: 1;
	pointer-events: none;
}

.nj-sede-welcome__watermark--custom {
	inset: auto auto 0 0;
	width: min(72%, 420px);
	max-width: 420px;
	background-color: transparent;
	background-image: var(--nj-sede-welcome-watermark);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: contain;
	mask: none;
	-webkit-mask: none;
}

.nj-sede-welcome__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	margin: 0;
	padding: 0.35rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	border-radius: 10px;
	z-index: 2;
}

.nj-sede-welcome__close:focus-visible {
	outline: 2px solid #1b5e9e;
	outline-offset: 3px;
}

.nj-sede-welcome__title {
	position: relative;
	z-index: 1;
	margin: 0 2.5rem 1rem;
	font-family: 'Nunito', system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(1.35rem, 3.2vw, 45px);
	line-height: 1.15;
	text-align: center;
	color: #1b2a49;
}

.nj-sede-welcome__text {
	position: relative;
	z-index: 1;
	margin: 0;
	width: min(671px, 100%);
	font-family: 'Open Sans', system-ui, sans-serif;
	font-weight: 400;
	font-size: clamp(0.95rem, 1.6vw, 20px);
	line-height: 1.55;
	text-align: center;
	color: #1b2a49;
}

.nj-sede-welcome__tagline {
	position: relative;
	z-index: 1;
	margin: 1rem 0 0;
	width: min(671px, 100%);
	font-family: 'Open Sans', system-ui, sans-serif;
	font-weight: 700;
	font-style: italic;
	font-size: clamp(0.95rem, 1.6vw, 20px);
	line-height: 1.55;
	text-align: center;
	color: #1b2a49;
}

.nj-sede-welcome__field {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	width: min(648px, 100%);
	height: 48px;
	margin-top: 50px;
	padding: 0 0.35rem 0 0.5rem;
	background: #fff;
	border-radius: 43px;
	box-shadow: 0 4px 18px rgba(15, 31, 54, 0.08);
	border: 1.6px solid rgba(27, 42, 73, 0.12);
}

.nj-sede-welcome__field-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin-inline-end: 0.45rem;
	padding: 0;
	line-height: 0;
	background: transparent;
	border: 0;
	overflow: visible;
	box-sizing: border-box;
}

.nj-sede-welcome__field-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto;
	overflow: visible;
	color: var(--sede-trigger-color, #1b2a49);
}

.nj-sede-welcome__select {
	flex: 1;
	min-width: 0;
	margin: 0;
	height: 100%;
	padding: 0 2.25rem 0 0.25rem;
	border: 0;
	background: transparent;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #1b2a49;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nj-sede-welcome__select option {
	color: #1b2a49;
}

.nj-sede-welcome__select:invalid {
	color: #5a6578;
}

.nj-sede-welcome__select:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.nj-sede-welcome__caret {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-inline-start: 5px solid transparent;
	border-inline-end: 5px solid transparent;
	border-top: 6px solid #1b2a49;
	pointer-events: none;
}

@media (max-width: 600px) {
	.nj-sede-welcome__panel {
		padding: 2.5rem 1.25rem 1.75rem;
	}

	.nj-sede-welcome__title {
		margin-inline: 2.75rem 2rem;
	}
}
