/*
 * serviNec: página «Contacto» (template-contacto.php)
 * assets/css/contacto.css · mismo lenguaje que Atención al cliente (fondo azulado, tarjetas blancas, píldoras azules)
 * e incluye el estilo del formulario de Fluent Forms dentro de .snec-ct__form
 */

.snec-ct {
	--ct-blue: #1565e8;
	--ct-blue-h: #0f55c9;
	--ct-ink: #111827;
	--ct-soft: #4b5563;
	--ct-mute: #6b7280;
	--ct-line: #e5e8ee;
	--ct-bg: #f3f6fb;
	--ct-tint: #e6edf9;
	background: var(--ct-bg);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--ct-ink);
	overflow: hidden;
}

.snec-ct__wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 22px 24px 88px;
	box-sizing: border-box;
}

/* ── Migas ───────────────────────────────────────────────────────────────── */
.snec-ct__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8f98;
}

.snec-ct__crumbs li + li::before {
	content: "|";
	margin: 0 10px;
	color: #b4b8c0;
}

.snec-ct__crumbs a {
	color: inherit;
	text-decoration: none;
}

.snec-ct__crumbs a:hover {
	color: var(--ct-blue);
}

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.snec-ct__head {
	max-width: 640px;
	margin: 26px auto 40px;
	text-align: center;
}

.snec-ct__badge {
	position: relative;
	width: 92px;
	height: 92px;
	margin: 0 auto 26px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, #ebf0fa 0, #edf2fa 55%, #eff3fb 100%);
	box-shadow: 0 0 0 10px rgba(236, 241, 250, .55), 0 0 0 11px rgba(255, 255, 255, .7);
}

.snec-ct__badge-arc {
	position: absolute;
	inset: -16px;
	border: 2px solid transparent;
	border-left-color: var(--ct-blue);
	border-radius: 50%;
	transform: rotate(38deg);
}

.snec-ct__badge-dots {
	position: absolute;
	top: 18px;
	right: -40px;
	width: 15px;
	height: 23px;
	background: radial-gradient(circle, #4f8bf0 1.3px, transparent 1.8px) 0 0 / 8px 8px;
}

.snec-ct__badge-ico {
	position: absolute;
	inset: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #ffffff;
	color: var(--ct-blue);
	box-shadow: 0 6px 18px rgba(30, 64, 140, .1);
}

.snec-ct__badge-ico svg {
	width: 24px;
	height: 24px;
}

.snec-ct__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--ct-ink);
}

.snec-ct__lead {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: #374151;
}

/* ── Rejilla: formulario + canales ───────────────────────────────────────── */
.snec-ct__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	align-items: start;
}

.snec-ct__card {
	border: 1px solid #f0f1f4;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(30, 64, 140, .06);
}

.snec-ct__form {
	padding: 32px 34px 34px;
}

.snec-ct__h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ct-ink);
}

.snec-ct__sub {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--ct-mute);
}

.snec-ct__aviso {
	margin: 0;
	padding: 14px;
	border: 1px dashed #94a3b8;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--ct-soft);
}

/* ── Fluent Forms ────────────────────────────────────────────────────────── */
.snec-ct__form .fluentform,
.snec-ct__form .frm-fluent-form {
	margin: 0;
}

/* El fieldset lleva estilos en línea (borde, margen…), pero no «display»: lo hacemos rejilla de 2 columnas. */
.snec-ct__form form.frm-fluent-form fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
	min-width: 0;
}

.snec-ct__form .fluentform .ff-el-group {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
}

.snec-ct__form .fluentform .ff-el-group.snec-ct-half {
	grid-column: auto;
}

.snec-ct__form .fluentform .ff-el-input--label {
	margin-bottom: 7px;
	padding: 0;
}

.snec-ct__form .fluentform .ff-el-input--label label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ct-ink);
}

.snec-ct__form .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after {
	margin-left: 3px;
	color: var(--ct-blue);
}

.snec-ct__form .fluentform .ff-el-form-control {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ct-line);
	border-radius: 10px;
	background: #fbfcfe;
	box-shadow: none;
	font: 400 14px/1.3 'Inter', system-ui, sans-serif;
	color: var(--ct-ink);
	transition: border-color .15s, box-shadow .15s, background .15s;
}

/* Fluent fija la altura con «select…:not([size]):not([multiple])»: misma especificidad + 1 para ganarle. */
.snec-ct__form .fluentform select.ff-el-form-control:not([size]):not([multiple]) {
	height: 48px;
	padding-right: 40px;
	-webkit-appearance: none;
	appearance: none;
	background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
	cursor: pointer;
}

.snec-ct__form .fluentform textarea.ff-el-form-control {
	height: auto;
	min-height: 140px;
	padding: 14px 16px;
	resize: vertical;
}

.snec-ct__form .fluentform .ff-el-form-control::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.snec-ct__form .fluentform .ff-el-form-control:hover {
	border-color: #cfd6e2;
}

.snec-ct__form .fluentform .ff-el-form-control:focus {
	border-color: #9fbef5;
	background-color: #ffffff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(21, 101, 232, .1);
}

.snec-ct__form .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #f1a7a1;
}

.snec-ct__form .fluentform .error.text-danger {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: #d92d20;
}

/* Casilla de aceptación */
.snec-ct__form .fluentform .ff-el-tc,
.snec-ct__form .fluentform .ff_t_c {
	font-size: 13px;
	line-height: 1.5;
	color: var(--ct-soft);
}

/* Fluent la monta como tabla (label = table-row): la pasamos a flex para separar casilla y texto. */
.snec-ct__form .fluentform .ff-el-tc label.ff_tc_label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.snec-ct__form .fluentform .ff-el-tc .ff_tc_checkbox,
.snec-ct__form .fluentform .ff-el-tc .ff_t_c {
	display: block;
	padding: 0;
}

.snec-ct__form .fluentform input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--ct-blue);
}

/* Botón */
.snec-ct__form .fluentform .ff_submit_btn_wrapper {
	margin: 4px 0 0;
	padding: 0;
}

.snec-ct__form .fluentform .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 24px 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--ct-blue) !important;
	color: #ffffff !important;
	font: 600 14.5px/1 'Inter', system-ui, sans-serif;
	cursor: pointer;
	transition: background .15s;
}

.snec-ct__form .fluentform .ff-btn-submit::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.snec-ct__form .fluentform .ff-btn-submit:hover {
	background: var(--ct-blue-h) !important;
	opacity: 1;
}

.snec-ct__form .fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid var(--ct-blue);
	outline-offset: 3px;
}

/* Mensaje de enviado */
.snec-ct__form .ff-message-success {
	margin: 0;
	padding: 18px 22px;
	border: 0;
	border-radius: 12px;
	background: #e7f8e6;
	box-shadow: none;
	font-size: 15px;
	font-weight: 500;
	color: #166534;
}

/* ── Canales ─────────────────────────────────────────────────────────────── */
.snec-ct__side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.snec-ct__side-title {
	margin: 4px 0 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ct-mute);
}

.snec-ct__channels {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-ct__channel {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 22px;
}

.snec-ct__channel-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ct-tint);
	color: var(--ct-blue);
}

.snec-ct__channel-ico svg,
.snec-ct__help-ico svg,
.snec-ct__help-arrow svg,
.snec-ct__perk-ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

.snec-ct__channel-ico svg {
	width: 20px;
	height: 20px;
}

.snec-ct__channel-body {
	min-width: 0;
}

.snec-ct__channel-title {
	margin: 2px 0 4px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ct-mute);
}

.snec-ct__channel-link {
	font-size: 16px;
	font-weight: 600;
	color: var(--ct-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.snec-ct__channel-link:hover {
	color: var(--ct-blue);
}

.snec-ct__channel-link:focus-visible,
.snec-ct__help:focus-visible {
	outline: 2px solid var(--ct-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.snec-ct__channel-text {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ct-mute);
}

.snec-ct__channel-lines {
	margin: 0;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.55;
	color: var(--ct-ink);
}

.snec-ct__channel-lines > span {
	display: block;
}

/* Enlace a Atención al cliente */
.snec-ct__help {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--ct-tint);
	color: var(--ct-ink);
	text-decoration: none;
	transition: background .15s;
}

.snec-ct__help:hover {
	background: #dbe6f8;
}

.snec-ct__help-ico {
	flex: none;
	width: 32px;
	height: 32px;
	color: var(--ct-blue);
}

.snec-ct__help-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.snec-ct__help-body strong {
	font-size: 14.5px;
	font-weight: 600;
}

.snec-ct__help-body span {
	font-size: 13px;
	font-weight: 500;
	color: var(--ct-blue);
}

.snec-ct__help-arrow {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 10px;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--ct-blue);
	color: #ffffff;
	transition: transform .15s;
}

.snec-ct__help:hover .snec-ct__help-arrow {
	transform: translateX(2px);
}

/* ── Ventajas ────────────────────────────────────────────────────────────── */
.snec-ct__perks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 840px;
	margin: 48px auto 0;
	padding: 22px 8px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 14px;
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 10px 30px rgba(30, 64, 140, .06);
}

.snec-ct__perk {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 6px 12px;
}

.snec-ct__perk + .snec-ct__perk {
	border-left: 1px solid #d5d9e0;
}

.snec-ct__perk-ico {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--ct-blue);
}

.snec-ct__perk-txt {
	font-size: 15px;
	font-weight: 500;
	color: var(--ct-ink);
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.snec-ct__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.snec-ct__channels {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

/* ── Móvil ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.snec-ct__wrap {
		padding: 16px 16px 56px;
	}

	.snec-ct__head {
		margin: 22px auto 28px;
	}

	.snec-ct__badge {
		width: 80px;
		height: 80px;
		margin-bottom: 24px;
	}

	.snec-ct__badge-ico {
		inset: 17px;
	}

	.snec-ct__title {
		margin-bottom: 12px;
		font-size: 30px;
	}

	.snec-ct__lead {
		font-size: 15px;
	}

	.snec-ct__grid {
		gap: 22px;
	}

	.snec-ct__form {
		padding: 24px 18px 26px;
	}

	.snec-ct__form form.frm-fluent-form fieldset {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.snec-ct__form .fluentform .ff-el-form-control {
		font-size: 16px; /* evita el zoom de iOS al enfocar */
	}

	.snec-ct__form .fluentform .ff_submit_btn_wrapper,
	.snec-ct__form .fluentform .ff-btn-submit {
		width: 100%;
	}

	.snec-ct__form .fluentform .ff-btn-submit {
		justify-content: center;
		height: 50px;
		font-size: 15px;
	}

	.snec-ct__channels {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.snec-ct__channel {
		padding: 18px;
	}

	.snec-ct__perks {
		margin-top: 32px;
		padding: 18px 4px;
	}

	.snec-ct__perk {
		flex-direction: column;
		gap: 8px;
		padding: 4px 6px;
		text-align: center;
	}

	.snec-ct__perk + .snec-ct__perk {
		border-left: 0;
	}

	.snec-ct__perk-ico {
		width: 20px;
		height: 20px;
	}

	.snec-ct__perk-txt {
		font-size: 13.5px;
		line-height: 1.3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snec-ct__help,
	.snec-ct__help-arrow,
	.snec-ct__form .fluentform .ff-el-form-control {
		transition: none;
	}
}
