/* Estilos minimos solo para la maqueta. Reemplazar por CSS corporativo en implementacion real. */
* { box-sizing: border-box; }
body {
	font-family: Arial, Helvetica, sans-serif;
	background: #f4f4f4;
	color: #333;
	margin: 0;
	padding: 0;
}
.lead-header {
	background: #db0011;
	color: #fff;
	padding: 16px 24px;
}
.lead-header h1 { margin: 0; font-size: 20px; }

/* Banner de header controlado por el parametro de URL "im" */
.lead-banner {
	width: 100%;
	line-height: 0;
}
.lead-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	max-width: 980px;
	object-fit: cover;
	margin: auto;
}
.lead-container {
	max-width: 980px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 24px;
}
.lead-title { font-size: 22px; margin: 0 0 4px; }
.lead-subtitle { color: #666; margin: 0 0 20px; font-size: 14px; }
.lead-section-title {
	font-size: 16px;
	margin: 24px 0 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
	color: #db0011;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: bold; }
.req::after { content: " *"; color: #db0011; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
}
.form-row .helper { font-size: 12px; color: #888; margin-top: 4px; }

/* Campos con label en el mismo renglon que el input */
.form-row.inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.form-row.inline > label {
	display: inline-block;
	margin-bottom: 0;
	flex: 0 0 160px;
}
.form-row.inline > input,
.form-row.inline > select {
	flex: 1 1 auto;
	width: auto;
}
.form-row.inline > .helper,
.form-row.inline > .error-msg,
.form-row.inline > .link-renapo { flex-basis: 100%; }
@media (max-width: 560px) {
	.form-row.inline > label { flex-basis: 100%; }
}
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row label { font-size: 13px; font-weight: normal; }
.error-msg { color: #db0011; font-size: 12px; margin-top: 4px; display: none; }
.error-msg.show { display: block; }
.actions { margin-top: 24px; }
.btn-primary {
	background: #db0011;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 15px;
	border-radius: 3px;
	cursor: pointer;
}
.btn-primary:hover { background: #b3000e; }
/* ACCVS-216: estado deshabilitado del CTA hasta aceptar el consentimiento */
.btn-primary:disabled { background: #e0a0a6; cursor: not-allowed; }
.btn-primary:disabled:hover { background: #e0a0a6; }
@media (max-width: 560px) {
	.actions {
		margin-top: 20px;
	}
	.actions .btn-primary,
	.btn-primary {
		display: block;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}
}
.hidden { display: none; }
.form-row.inline.hidden { display: none; }
/* Utilidades de visualizacion (evitan estilos inline por CSP style-src 'self') */
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.curp-input { text-transform: uppercase; font-family: monospace; }
.uppercase-input { text-transform: uppercase; }
.confirm-box {
	margin: 24px auto 0;
	padding: 0 0 24px;
	max-width: 720px;
}
.confirm-card {
	text-align: center;
	color: #333;
	padding: 24px 16px 0;
	background: linear-gradient(90deg, #fff 0%, #fff 55%, #fafafa 100%);
	border: 1px solid #ececec;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.confirm-success-icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin: 0 auto 12px;
	place-items: center;
	border: 2px solid #93a99f;
	border-radius: 50%;
	color: #58766b;
	font-size: 24px;
	font-weight: 700;
}
.confirm-title {
	margin: 0;
	color: #222;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
}
.confirm-intro {
	max-width: 500px;
	margin: 14px auto 0;
	color: #707070;
	font-size: 13px;
	line-height: 1.55;
}
.confirm-envelope {
	position: relative;
	width: 110px;
	height: 78px;
	margin: 34px auto 22px;
}
.confirm-envelope-body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
	background: #db0011;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}
.confirm-envelope-body:before,
.confirm-envelope-body:after {
	position: absolute;
	bottom: -34px;
	width: 85px;
	height: 65px;
	background: #fff;
	content: "";
	transform: rotate(32deg);
}
.confirm-envelope-body:before {
	left: -38px;
}
.confirm-envelope-body:after {
	right: -38px;
	transform: rotate(-32deg);
}
.confirm-envelope-flap {
	position: absolute;
	z-index: 3;
	top: 13px;
	right: 15px;
	left: 15px;
	height: 47px;
	background: #f04a51;
	clip-path: polygon(0 0, 50% 67%, 100% 0, 100% 100%, 0 100%);
}
.confirm-envelope-fold {
	position: absolute;
	z-index: 4;
	bottom: 13px;
	width: 66px;
	height: 3px;
	background: #fff;
}
.confirm-envelope-fold-left {
	left: 1px;
	transform: rotate(31deg);
}
.confirm-envelope-fold-right {
	right: 1px;
	transform: rotate(-31deg);
}
.confirm-user-symbol {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 50%;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 2px solid #dc777d;
	border-radius: 50%;
	background: #fff;
	color: #dc777d;
	font-size: 18px;
	transform: translateX(-50%);
}
.confirm-tracking-box {
	padding: 18px 20px 15px;
	border-radius: 5px;
	background: #f0faf6;
}
.confirm-tracking-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #4b685d;
	font-size: 13px;
}
.confirm-copy-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #607c72;
	font-size: 18px;
	cursor: pointer;
}
.confirm-tracking-box strong {
	display: block;
	margin-top: 5px;
	color: #32735e;
	font-size: 22px;
	letter-spacing: 0.3px;
}
.confirm-tracking-box p {
	margin: 4px 0 0;
	color: #587166;
	font-size: 11px;
}
.confirm-copy-feedback {
	margin-top: 8px;
	font-size: 11px;
	color: #32735e;
}
.confirm-copy-feedback.error {
	color: #b3000e;
}
.confirm-experience {
	margin-top: 28px;
	text-align: left;
}
.confirm-section-title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.confirm-outline-icon {
	display: grid;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 1px solid #d8a0a4;
	border-radius: 50%;
	color: #db0011;
	font-size: 17px;
}
.confirm-section-title h3,
.confirm-summary h3,
.confirm-expectations h4 {
	margin: 0;
}
.confirm-section-title h3 {
	color: #222;
	font-size: 15px;
}
.confirm-section-title p {
	margin: 5px 0 0;
	color: #707070;
	font-size: 12px;
	line-height: 1.5;
}
.confirm-expectations {
	margin-top: 20px;
	padding: 18px 16px;
	border: 1px solid #eee;
	background: #fff;
}
.confirm-expectations h4 {
	margin-bottom: 18px;
	font-size: 13px;
}
.confirm-expectation-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.confirm-expectation {
	position: relative;
	text-align: center;
	font-size: 11px;
}
.confirm-expectation:not(:last-child):after {
	position: absolute;
	top: 20px;
	right: -7px;
	width: 1px;
	height: 48px;
	background: #ededed;
	content: "";
}
.confirm-expectation-icon {
	display: grid;
	width: 36px;
	height: 36px;
	margin: 0 auto 9px;
	place-items: center;
	border-radius: 50%;
	background: #fff3f3;
	color: #db0011;
	font-size: 20px;
}
.confirm-expectation strong,
.confirm-expectation span {
	display: block;
}
.confirm-expectation strong {
	color: #444;
	font-size: 11px;
	font-weight: 400;
}
.confirm-expectation span {
	color: #707070;
	font-size: 10px;
}
.confirm-summary {
	margin-top: 25px;
	text-align: left;
}
.confirm-summary h3 {
	margin-bottom: 12px;
	font-size: 14px;
}
.confirm-summary-list {
	margin: 0;
}
.confirm-summary-row {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) 1fr;
	gap: 16px;
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 12px;
}
.confirm-summary-row dt {
	color: #777;
}
.confirm-summary-row dd {
	margin: 0;
	color: #353535;
	text-align: right;
}
.confirm-privacy-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 22px;
	padding: 12px;
	border-radius: 5px;
	background: #f3f8f6;
	color: #557269;
	text-align: left;
}
.confirm-privacy-icon {
	flex: 0 0 auto;
	color: #4a8770;
	font-size: 20px;
}
.confirm-privacy-notice p {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
}
.confirm-privacy-notice a {
	color: #236c55;
	font-weight: 700;
	text-decoration: underline;
}
.confirm-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}
.confirm-back-button,
.confirm-finish-button {
	flex: 1;
	min-height: 42px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.confirm-back-button {
	border: 1px solid #ddd;
	background: #fff;
	color: #555;
}
.confirm-finish-button {
	border: 1px solid #db0011;
	background: #db0011;
	color: #fff;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.confirm-finish-button:hover {
	border-color: #b8000f;
	background: #b8000f;
}
.legal { font-size: 12px; color: #777; margin-top: 20px; line-height: 1.5; }
.two-col { display: flex; gap: 16px; }
.two-col > .form-row { flex: 1; }
@media (max-width: 560px) { .two-col { display: block; } }
.two-col.hidden { display: none; }
@media (max-width: 560px) {
	.confirm-title {
		font-size: 24px;
	}
	.confirm-expectation-grid {
		gap: 6px;
	}
	.confirm-expectation:not(:last-child):after {
		right: -4px;
	}
	.confirm-summary-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.confirm-summary-row dd {
		text-align: left;
	}
}
@media (max-width: 480px) {
	.confirm-card {
		padding: 20px 12px 0;
	}
	.confirm-actions {
		flex-direction: column-reverse;
	}
}

/* Grupos de opciones (radio / checkbox multiple) */
.option-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.option-group label { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; }
.option-group input { width: auto; }

/* Enlace RENAPO */
.link-renapo { font-size: 12px; margin-top: 4px; display: inline-block; }
.link-renapo a { color: #db0011; text-decoration: underline; }

/* Estado autocompletado (solo lectura) */
input[readonly] { background: #f0f0f0; color: #555; }

/* Opcion 2: date-picker personalizado que bloquea (gris/no clicable)
   sabados, domingos y festivos, en lugar del input nativo type="date". */
.datepicker { position: relative; }
.datepicker-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}
.datepicker-panel {
	position: absolute;
	z-index: 50;
	top: calc(100% + 4px);
	left: 0;
	width: 280px;
	max-width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 10px;
}
.datepicker-panel[hidden] { display: none; }
.datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.dp-title { font-weight: bold; font-size: 14px; color: #333; }
.dp-nav {
	background: #db0011;
	color: #fff;
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.dp-nav:disabled { background: #e0a0a6; cursor: not-allowed; }
.datepicker-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.dp-weekday {
	text-align: center;
	font-size: 11px;
	color: #888;
	padding: 4px 0;
	font-weight: bold;
}
.dp-day {
	text-align: center;
	padding: 8px 0;
	border: none;
	background: #f6f6f6;
	border-radius: 4px;
	font-size: 13px;
	color: #333;
	cursor: pointer;
}
.dp-day:hover:not(.dp-disabled):not(.dp-empty) { background: #db0011; color: #fff; }
.dp-empty { background: transparent; cursor: default; }
.dp-disabled {
	background: #f0f0f0;
	color: #c4c4c4;
	cursor: not-allowed;
	text-decoration: line-through;
}
.dp-selected { background: #db0011; color: #fff; }

/* Imagen de criterios de aceptacion */
.criteria-img { text-align: center; margin: 16px 0 8px; }
.criteria-img img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	background: #fafafa;
}
.criteria-caption { font-size: 12px; color: #888; margin-top: 4px; }
/* ACCVS-215 (delta): microcopy legal/de confianza debajo de la imagen */
.criteria-microcopy { font-size: 12px; color: #555; margin: 8px auto 4px; max-width: 520px; line-height: 1.5; }
.trust-copy {
	background: #f5f8ff;
	border-left: 3px solid #0b62d6;
	color: #33527a;
	font-size: 12px;
	padding: 10px 12px;
	border-radius: 3px;
	margin-bottom: 12px;
}

/* ACCVS-212: Modal de cookies y consentimientos */
.consent-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 1000;
}
.consent-overlay.hidden { display: none; }
.consent-modal {
	background: #fff;
	max-width: 300px;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}
.consent-header {
	background: #f2f2f2;
	color: #db0011;
	padding: 16px;
	text-align: center;
}
.consent-header h2 { margin: 0; font-size: 16px; color: #db0011; letter-spacing: 0.5px; }
.consent-modal-body { padding: 24px; }
.consent-body { font-size: 14px; color: #444; line-height: 1.5; margin: 8px 0; }
.consent-link a { color: #db0011; text-decoration: underline; font-size: 13px; }
.consent-microcopy { font-size: 12px; color: #777; margin: 8px 0 12px; }
.consent-check { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; text-align: left; }
.consent-check input { margin-top: 3px; accent-color: #db0011; }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.consent-actions .btn-primary:disabled { background: #e0a0a6; cursor: not-allowed; }
.btn-secondary {
	background: #fff;
	color: #555;
	border: none;
	padding: 12px 22px;
	font-size: 15px;
	border-radius: 3px;
	cursor: pointer;
}
.btn-secondary:hover { background: #f0f0f0; }
body.modal-open { overflow: hidden; }

/* ACCVS-225: pantalla estandar de servicio no disponible para errores inesperados */
.unavailable-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 1100;
}
.unavailable-overlay.hidden { display: none; }
.unavailable-card {
	background: #ffffff;
	max-width: 300px;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
	padding: 26px 22px 20px;
	border: 1px solid #f1f1f1;
}
.unavailable-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.unavailable-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #fff3f2;
	border: 1px solid rgba(219, 0, 17, 0.15);
	color: #db0011;
	font-size: 20px;
	font-weight: 700;
	flex-shrink: 0;
	letter-spacing: -2px;
}
.unavailable-label {
	display: block;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #1f1f1f;
	line-height: 1.2;
}
.unavailable-text {
	margin: 0 0 18px;
	color: #4b4b4b;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}
.unavailable-info-label {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #333333;
	letter-spacing: 0.02em;
}
.unavailable-bullets {
	background: #fff3f2;
	border: 1px solid rgba(219, 0, 17, 0.15);
	border-radius: 10px;
	padding: 12px 14px;
}
.unavailable-list {
	margin: 0;
	padding-left: 16px;
	list-style: none;
}
.unavailable-list li {
	position: relative;
	padding-left: 14px;
	margin: 7px 0;
	font-size: 14px;
	color: #3a3a3a;
	line-height: 1.45;
}
.unavailable-list li::before {
	content: "";
	display: inline-block;
	position: absolute;
	left: 0;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #db0011;
}
.unavailable-body {
	padding: 0;
	line-height: 1.55;
	color: #333;
}
.unavailable-actions {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
.unavailable-button {
	background: #db0011;
	color: #fff;
	border: none;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(219, 0, 17, 0.18);
	transition: background 0.2s ease;
}
.unavailable-button:hover { background: #b80010; }
.unavailable-code {
	margin-top: 12px;
	font-size: 12px;
	color: #777;
}

/* ACCVS-217: Paso de verificacion OTP (aislado del OTP/WBA legacy) */
.otp-step { margin-top: 8px; }
.otp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 1001;
}
.otp-overlay.hidden { display: none; }
.otp-modal {
	background: #fff;
	max-width: 300px;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}
.otp-header {
	background: #f2f2f2;
	color: #db0011;
	padding: 16px;
	text-align: center;
}
.otp-header h2 { margin: 0; font-size: 16px; color: #db0011; letter-spacing: 0.5px; }
.otp-body { padding: 20px 22px 18px; }
.otp-input {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}
.otp-code-wrap {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 8px;
}
.otp-box {
	width: 42px;
	height: 48px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	font-size: 24px;
	font-weight: 700;
	font-family: monospace;
	text-align: center;
	color: #1f2937;
	box-sizing: border-box;
}
.otp-box:focus {
	outline: none;
	border-color: #db0011;
	box-shadow: 0 0 0 3px rgba(219, 0, 17, 0.12);
}
.otp-helper { font-size: 12px; color: #666; margin-top: 8px; }
.otp-timer { font-size: 12px; color: #888; margin-top: 6px; }
.otp-msg { font-size: 13px; margin-top: 8px; min-height: 18px; }
.otp-msg--info { color: #33527a; }
.otp-msg--ok { color: #1d6b3a; }
.otp-msg--warn { color: #8a6d00; }
.otp-msg--error { color: #db0011; }
.otp-error-inline {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fff5f6;
	color: #333;
	text-align: left;
	border-radius: 4px;
}
.otp-error-inline strong {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}
.otp-error-inline span {
	font-size: 12px;
	line-height: 1.5;
}
.otp-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
