/* =========================================================================
   Noble Vínculo — formulario de solicitud
   Usa las variables del tema; si faltaran, cae a valores equivalentes.
   ========================================================================= */

.nvs-form {
	--c-navy: var(--nv-navy, #0A192F);
	--c-gold: var(--nv-gold, #C5A059);
	--c-gold-ink: var(--nv-gold-ink, #8A6A2F);
	--c-cream: var(--nv-cream, #F9F7F2);
	--c-ink: var(--nv-charcoal, #2C2C2C);
	--c-soft: var(--nv-charcoal-soft, #5A5A5A);
	--c-linea: #DCD6C8;

	max-width: 760px;
	margin-inline: auto;
	font-family: var(--nv-sans, "Inter", system-ui, sans-serif);
	color: var(--c-ink);
}

/* Trampa para robots: fuera de pantalla, nunca oculta con display:none
   porque algunos robots detectan eso */
.nvs-trampa {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------- Bloques -------------------------------- */

.nvs-bloque {
	border: none;
	border-top: 1px solid var(--c-linea);
	margin: 0 0 12px;
	padding: 40px 0 28px;
}
.nvs-bloque:first-of-type { border-top: none; padding-top: 0; }

.nvs-bloque__titulo {
	font-family: var(--nv-serif, Georgia, serif);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--c-navy);
	padding: 0;
	margin-bottom: 26px;
}

.nvs-intro,
.nvs-nota {
	font-size: 16.5px;
	line-height: 1.72;
	color: var(--c-soft);
	margin: 0 0 24px;
}
.nvs-nota {
	background: #FFFFFF;
	border: 1px solid #E6E0D3;
	border-left: 3px solid var(--c-gold);
	border-radius: 2px;
	padding: 18px 20px;
	margin-top: 20px;
	margin-bottom: 0;
	font-size: 15.5px;
}

/* -------------------------------- Campos -------------------------------- */

.nvs-campo { margin-bottom: 26px; }
.nvs-campo:last-child { margin-bottom: 0; }

.nvs-fila {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 0 26px;
}

.nvs-form label,
.nvs-label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--c-navy);
	margin-bottom: 8px;
}

.nvs-ayuda {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: var(--c-soft);
	font-weight: 400;
	margin-bottom: 8px;
}

.nvs-opcional { font-weight: 400; color: var(--c-soft); }

.nvs-form input[type="text"],
.nvs-form input[type="email"],
.nvs-form input[type="tel"],
.nvs-form input[type="date"],
.nvs-form input[type="file"],
.nvs-form select,
.nvs-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 16px; /* 16px evita que iOS haga zoom al enfocar */
	line-height: 1.5;
	color: var(--c-ink);
	background: #FFFFFF;
	border: 1px solid #C9C2B2;
	border-radius: 3px;
	padding: 14px 15px;
	min-height: 48px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.nvs-form textarea { min-height: 120px; resize: vertical; }

.nvs-form input:focus,
.nvs-form select:focus,
.nvs-form textarea:focus {
	outline: none;
	border-color: var(--c-gold);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, .22);
}

.nvs-form input[type="file"] { padding: 11px 13px; cursor: pointer; }

/* ------------------------------- Opciones ------------------------------- */

.nvs-opciones { display: flex; flex-direction: column; gap: 2px; }

.nvs-opciones label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 400;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--c-ink);
	margin: 0;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	min-height: 44px;
	transition: background-color .2s ease, border-color .2s ease;
}
.nvs-opciones label:hover { background: #FFFFFF; border-color: #E6E0D3; }
.nvs-opciones label:has(input:checked) {
	background: #FFFFFF;
	border-color: var(--c-gold);
}

.nvs-opciones--linea { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.nvs-opciones--linea label { flex: 0 1 auto; padding-inline: 20px; }

.nvs-form input[type="radio"],
.nvs-form input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--c-gold-ink);
	cursor: pointer;
}

/* -------------------------------- Escala -------------------------------- */

.nvs-escala {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.nvs-escala__extremo {
	font-size: 14px;
	color: var(--c-soft);
	flex: 0 1 auto;
}

.nvs-escala__punto {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 10px 14px;
	min-width: 48px;
	min-height: 48px;
	border: 1px solid #DCD6C8;
	border-radius: 3px;
	background: #FFFFFF;
	cursor: pointer;
	font-weight: 400;
	transition: border-color .2s ease, background-color .2s ease;
}
.nvs-escala__punto:hover { border-color: var(--c-gold); }
.nvs-escala__punto:has(input:checked) {
	border-color: var(--c-gold);
	background: #FBF6EC;
}

/* ---------------------------- Consentimiento ---------------------------- */

.nvs-consent label {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-ink);
	margin: 0;
	padding: 16px 18px;
	background: #FFFFFF;
	border: 1px solid #E6E0D3;
	border-radius: 3px;
	cursor: pointer;
	transition: border-color .2s ease;
}
.nvs-consent label:hover { border-color: var(--c-gold); }
.nvs-consent label:has(input:checked) { border-color: var(--c-gold); }
.nvs-consent a { color: var(--c-gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- Mensajes ------------------------------- */

.nvs-error {
	display: block;
	font-size: 14.5px;
	line-height: 1.5;
	color: #A32020;
	margin-top: 7px;
	font-weight: 500;
}

.nvs-aviso {
	border-radius: 3px;
	padding: 18px 20px;
	margin-bottom: 32px;
	font-size: 16px;
	line-height: 1.65;
}
.nvs-aviso--error {
	background: #FBEAEA;
	border: 1px solid #E8C4C4;
	border-left: 3px solid #A32020;
	color: #7A2222;
}
.nvs-aviso p { margin: 0; }

/* -------------------------------- Enviar -------------------------------- */

.nvs-enviar {
	border-top: 1px solid var(--c-linea);
	padding-top: 32px;
	text-align: center;
}
.nvs-enviar .nvs-ayuda { margin-top: 14px; }

/* -------------------------------- Gracias ------------------------------- */

.nvs-gracias .nv-wrap { max-width: 660px; text-align: center; }

.nvs-gracias__icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 1px solid rgba(197, 160, 89, .5);
	border-radius: 50%;
	color: var(--nv-gold-ink, #8A6A2F);
	margin-bottom: 28px;
}
.nvs-gracias__icono svg { width: 32px; height: 32px; }

.nvs-gracias h2 {
	font-family: var(--nv-serif, Georgia, serif);
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 500;
	line-height: 1.16;
	color: var(--nv-navy, #0A192F);
	margin: 0 0 22px;
}
.nvs-gracias p {
	font-size: 18px;
	line-height: 1.75;
	color: var(--nv-charcoal, #2C2C2C);
	margin: 0 0 18px;
}
.nvs-gracias__nota { font-size: 15.5px; color: var(--nv-charcoal-soft, #5A5A5A); }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 768px) {
	.nvs-bloque { padding: 30px 0 22px; }
	.nvs-escala { gap: 7px; }
	.nvs-escala__punto { min-width: 44px; padding: 9px 10px; }
	.nvs-escala__extremo { flex: 1 0 100%; }
	.nvs-enviar .nv-cta-grande { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nvs-form * { transition: none !important; }
}
