.wac-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba( 17, 20, 24, 0.55 );
	pointer-events: auto;
}

.wac-overlay[hidden] {
	display: none;
}

body.wac-abierto {
	overflow: hidden;
}

.wac-modal {
	width: 100%;
	max-width: 26rem;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.75rem;
	border-radius: 12px;
	background: #fff;
	color: #1a1d21;
	font-family: inherit;
	box-shadow: 0 18px 45px rgba( 0, 0, 0, 0.25 );
	animation: wac-entrada 0.18s ease-out;
}

.wac-modal--ok {
	text-align: center;
}

@keyframes wac-entrada {
	from { opacity: 0; transform: translateY( 10px ); }
	to   { opacity: 1; transform: none; }
}

.wac-paso[hidden] {
	display: none;
}

.wac-titulo {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.wac-sub {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #5b6169;
}

.wac-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #5b6169;
}

.wac-campo {
	display: flex;
	align-items: stretch;
	border: 1px solid #c9cdd3;
	border-radius: 8px;
	overflow: hidden;
}

.wac-campo:focus-within {
	border-color: #128c7e;
	box-shadow: 0 0 0 3px rgba( 18, 140, 126, 0.18 );
}

.wac-prefijo {
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
	background: #f1f3f5;
	border-right: 1px solid #c9cdd3;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wac-modal input[type="tel"] {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.75rem;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.wac-modal input[type="tel"]:focus {
	outline: none;
}

.wac-error {
	margin: 0.6rem 0 0;
	font-size: 0.875rem;
	color: #c0392b;
}

.wac-error[hidden] {
	display: none;
}

.wac-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: #e3f4f1;
	color: #128c7e;
}

.wac-acciones {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.4rem;
}

.wac-btn {
	display: block;
	width: 100%;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.wac-btn[hidden] {
	display: none;
}

.wac-btn:focus-visible {
	outline: 2px solid #128c7e;
	outline-offset: 2px;
}

.wac-btn--primario,
.wac-btn--primario:hover {
	background: #128c7e;
	color: #fff;
	text-decoration: none;
}

.wac-btn--primario:hover:not( :disabled ) {
	background: #0f7a6d;
}

.wac-btn--primario:disabled {
	opacity: 0.65;
	cursor: default;
}

.wac-btn--texto {
	background: transparent;
	color: #5b6169;
}

.wac-btn--texto:hover {
	color: #1a1d21;
}

@media ( prefers-reduced-motion: reduce ) {
	.wac-modal {
		animation: none;
	}
}

/* Aviso legal */
.wac-legal {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #6b7078;
	text-align: center;
}

.wac-legal[hidden] {
	display: none;
}

.wac-legal a,
.wac-acepto a {
	color: #128c7e;
	text-decoration: underline;
}

.wac-acepto {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #5b6169;
	cursor: pointer;
}

.wac-acepto[hidden] {
	display: none;
}

.wac-acepto input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.1rem 0 0;
	accent-color: #128c7e;
}
