/**
 * Estilos para secciones SEO/GEO de las 4 Landings Core y cabecera NAP de /contacto/.
 *
 * @package Kuperfilt_Theme
 */

.kpm-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Sección SEO / GEO debajo de la grilla de modelos (4 Landings Core)
   ========================================================================== */

/* Desactiva el scroll-snap vertical obligatorio de Elementor en landings con lectura larga SEO/GEO */
html:has(.kpm-seo-landing),
body:has(.kpm-seo-landing) {
	scroll-snap-type: none !important;
	scroll-behavior: auto !important;
}

html:has(.kpm-seo-landing) .seccion-scroll,
html:has(.kpm-seo-landing) .kpm-seo-landing,
html:has(.kpm-seo-landing) footer,
html:has(.kpm-seo-landing) .kpm-site-footer {
	scroll-snap-align: none !important;
	scroll-snap-stop: normal !important;
}

.kpm-seo-landing {
	position: relative;
	z-index: 100;
	background-color: #ffffff;
	color: #1e293b;
	font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
	padding-block: clamp(48px, 6vw, 84px);
	padding-inline: clamp(20px, 5vw, 64px);
	border-block-start: 4px solid #004586;
}

.kpm-seo-landing__inner {
	max-inline-size: 1180px;
	margin-inline: auto;
}

.kpm-seo-landing__eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eff6ff;
	color: #004586;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.kpm-seo-landing h1 {
	margin: 0 0 18px;
	color: #0f172a;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: clamp(1.75rem, 2.8vw, 2.55rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.01em;
}

.kpm-seo-landing__lead {
	margin: 0 0 36px;
	max-inline-size: 76ch;
	color: #334155;
	font-size: clamp(1.06rem, 1.25vw, 1.2rem);
	line-height: 1.68;
}

.kpm-seo-landing h2 {
	margin: clamp(34px, 4vw, 48px) 0 16px;
	padding-block-end: 10px;
	border-block-end: 2px solid #e2e8f0;
	color: #004586;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	font-weight: 700;
	line-height: 1.25;
}

.kpm-seo-landing p {
	margin: 0 0 16px;
	color: #334155;
	font-size: 1.05rem;
	line-height: 1.68;
}

.kpm-seo-landing a {
	color: #004586;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kpm-seo-landing a:hover,
.kpm-seo-landing a:focus-visible {
	color: #1d2a61;
}

.kpm-seo-landing ul,
.kpm-seo-landing ol {
	margin: 0 0 24px;
	padding-inline-start: 22px;
	display: grid;
	gap: 14px;
}

.kpm-seo-landing li {
	color: #334155;
	font-size: 1.04rem;
	line-height: 1.65;
}

.kpm-seo-landing code {
	padding: 1px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.92em;
}

/* ==========================================================================
   Tabla Comparativa HTML Nativa (Responsive + Sticky + Container Queries)
   ========================================================================== */

.kpm-table-wrapper {
	overflow: auto;
	max-inline-size: 100%;
	margin-block: 24px 36px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
	container-type: inline-size;
}

.kpm-table-wrapper:focus-visible {
	outline: 3px solid #004586;
	outline-offset: 3px;
}

.kpm-comp-table {
	inline-size: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-family: 'Source Sans 3', Arial, sans-serif;
	font-size: 0.97rem;
	color: #1e293b;
}

.kpm-comp-table thead {
	position: sticky;
	inset-block-start: 0;
	z-index: 2;
}

.kpm-comp-table thead th {
	padding: 13px 15px;
	background-color: #004586;
	color: #ffffff;
	font-weight: 700;
	text-align: start;
	border-block-end: 1px solid #003569;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
	white-space: nowrap;
}

.kpm-comp-table thead th:last-child {
	border-inline-end: 0;
}

.kpm-comp-table thead th a {
	color: #ffffff;
	text-decoration: underline;
}

.kpm-comp-table thead th a:hover,
.kpm-comp-table thead th a:focus-visible {
	color: #dbeafe;
}

.kpm-comp-table tbody tr {
	background-color: #ffffff;
}

.kpm-comp-table tbody tr:nth-child(even) {
	background-color: #f8fafc;
}

.kpm-comp-table tbody th,
.kpm-comp-table tbody td {
	padding: 11px 15px;
	border-block-end: 1px solid #e2e8f0;
	border-inline-end: 1px solid #e2e8f0;
	vertical-align: top;
	line-height: 1.48;
}

.kpm-comp-table tbody tr:last-child th,
.kpm-comp-table tbody tr:last-child td {
	border-block-end: 0;
}

.kpm-comp-table tbody td:last-child {
	border-inline-end: 0;
}

.kpm-comp-table tbody th {
	position: sticky;
	inset-inline-start: 0;
	z-index: 1;
	background-color: inherit;
	font-weight: 700;
	color: #0f172a;
	text-align: start;
}

@container (width < 640px) {
	.kpm-comp-table,
	.kpm-comp-table thead,
	.kpm-comp-table tbody,
	.kpm-comp-table tr,
	.kpm-comp-table th,
	.kpm-comp-table td {
		display: block;
	}

	.kpm-comp-table thead {
		display: none;
	}

	.kpm-comp-table tbody tr {
		margin: 12px;
		border: 1px solid #cbd5e1;
		border-radius: 6px;
		overflow: hidden;
		background-color: #ffffff;
	}

	.kpm-comp-table tbody th {
		position: sticky;
		inset-block-start: 0;
		z-index: 2;
		background-color: #eff6ff;
		color: #004586;
		border-inline-end: 0;
		border-block-end: 1px solid #cbd5e1;
	}

	.kpm-comp-table tbody td {
		border-inline-end: 0;
		padding: 10px 14px;
	}

	.kpm-comp-table tbody td:nth-child(2)::before {
		content: var(--label-2) ": ";
		font-weight: 700;
		color: #004586;
	}

	.kpm-comp-table tbody td:nth-child(3)::before {
		content: var(--label-3) ": ";
		font-weight: 700;
		color: #004586;
	}

	.kpm-comp-table tbody td:nth-child(4)::before {
		content: var(--label-4) ": ";
		font-weight: 700;
		color: #004586;
	}

	.kpm-comp-table tbody td:nth-child(5)::before {
		content: var(--label-5) ": ";
		font-weight: 700;
		color: #004586;
	}

	.kpm-comp-table tbody td:nth-child(6)::before {
		content: var(--label-6) ": ";
		font-weight: 700;
		color: #004586;
	}
}

/* ==========================================================================
   Preguntas Frecuentes (FAQs con subtítulos H3 visibles para SEO y GEO)
   ========================================================================== */

.kpm-faq-grid {
	display: grid;
	gap: 16px;
	margin-block-start: 20px;
}

.kpm-faq-item {
	padding: 20px 24px;
	border: 1px solid #e2e8f0;
	border-inline-start: 4px solid #004586;
	border-radius: 8px;
	background: #f8fafc;
}

.kpm-faq-item h3 {
	margin: 0 0 8px;
	color: #0f172a;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1.14rem;
	font-weight: 700;
	line-height: 1.35;
}

.kpm-faq-item p {
	margin: 0;
	color: #334155;
	font-size: 1.02rem;
	line-height: 1.62;
}

/* ==========================================================================
   Página de Contacto (/contacto/) — Cabecera NAP Institucional
   ========================================================================== */

.kpm-contact-nap {
	position: relative;
	z-index: 100;
	padding-block: calc(var(--kuperfilt-header-height, 84px) + 42px) 28px;
	padding-inline: clamp(20px, 5vw, 64px);
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	color: #1e293b;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.kpm-contact-nap__inner {
	max-inline-size: 1140px;
	margin-inline: auto;
}

.kpm-contact-nap h1 {
	margin: 0 0 10px;
	color: #004586;
	font-size: clamp(1.85rem, 3vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
}

.kpm-contact-nap__subtitle {
	margin: 0 0 28px;
	color: #475569;
	font-size: 1.12rem;
	line-height: 1.55;
}

.kpm-contact-nap__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.kpm-contact-nap__card {
	padding: 20px 22px;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 69, 134, 0.05);
}

.kpm-contact-nap__card h2 {
	margin: 0 0 8px;
	color: #004586;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.kpm-contact-nap__card address,
.kpm-contact-nap__card p {
	margin: 0;
	font-style: normal;
	color: #1e293b;
	font-size: 1.02rem;
	line-height: 1.58;
}

.kpm-contact-nap__card a {
	color: #004586;
	font-weight: 600;
	text-decoration: none;
}

.kpm-contact-nap__card a:hover,
.kpm-contact-nap__card a:focus-visible {
	text-decoration: underline;
}

body.page-id-73 .elementor-73 .elementor-element.elementor-element-08322f7 {
	--margin-top: 0px;
	--min-height: auto;
	padding-block-end: 56px;
}
