/*
 * El Diario — páginas y 404 en PHP (inc/ed-page.php).
 * Colores de marca: azul #003d80 / #1c244b, texto #324a6d, amarillo #ffcc00.
 * Puntos de corte 1024 / 767 px (los del resto del tema hijo).
 */

.ed-page {
	--ed-blue: #003d80;
	--ed-navy: #1c244b;
	--ed-text: #2b3a55;
	--ed-muted: #5b6b82;
	--ed-yellow: #ffcc00;
	--ed-line: #e3e8ef;
	--ed-soft: #f4f6fa;
	--ed-radius: 10px;
	--ed-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 20px rgba(16, 24, 40, 0.06);
	--ed-sticky: 96px; /* alto del header fijo + aire */
	color: var(--ed-text);
}

.admin-bar .ed-page {
	--ed-sticky: 128px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ---------------------------------------------------------------- Contenedor */

.ed-page-wrap {
	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	padding: 40px 20px 72px;
}

.ed-page-wide .ed-page-wrap {
	max-width: 1180px;
}

.ed-page-full .ed-page-wrap {
	max-width: none;
	padding: 0;
}

.ed-page-doc .ed-page-wrap {
	max-width: 1180px;
}

/* ---------------------------------------------------------------- Cabecera */

.ed-page-hero {
	background: linear-gradient(180deg, var(--ed-soft) 0%, #fff 100%);
	border-bottom: 1px solid var(--ed-line);
}

.ed-page-hero-inner {
	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	padding: 48px 20px 36px;
}

.ed-page-doc .ed-page-hero-inner {
	max-width: 1180px;
}

.ed-page h1.ed-page-title {
	position: relative;
	margin: 0;
	padding-top: 18px;
	font-family: "PT Serif", serif;
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ed-navy);
}

/* Filete amarillo de marca sobre el título. */
.ed-page h1.ed-page-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--ed-yellow);
}

.ed-page-updated,
.ed-page-count {
	display: inline-block;
	margin: 16px 16px 0 0;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	color: var(--ed-muted);
}

/* Número de secciones como etiqueta (sin separadores que queden colgando al saltar de línea). */
.ed-page-count {
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ed-line);
	font-size: 13px;
}

/* ---------------------------------------------------------------- Texto */

.ed-page-content {
	font-size: 18px;
	line-height: 1.7;
}

.ed-page-content > *:first-child {
	margin-top: 0;
}

.ed-page-content p,
.ed-page-content li {
	color: var(--ed-text);
}

.ed-page-content a {
	color: var(--ed-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ed-page-content a:hover {
	text-decoration-thickness: 2px;
}

/* Foxiz pone letra capital al primer párrafo de .rbct (pensado para notas); las páginas no la usaban. */
.ed-page .ed-page-content p::first-letter {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

.ed-page-content h2 {
	margin: 56px 0 16px;
	font-family: "PT Serif", serif;
	font-size: 28px;
	line-height: 1.25;
	color: var(--ed-navy);
	scroll-margin-top: var(--ed-sticky);
}

.ed-page-content h3,
.ed-page-content h4 {
	color: var(--ed-navy);
}

.ed-page-content figure {
	margin: 28px 0;
}

.ed-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* El logo del medio repetía el del header: se lleva a la cabecera solo si va junto al título. */
.ed-page-content .ed-logo img {
	max-width: 160px;
	border-radius: 0;
}

/* Tablas: con borde suave y desplazamiento horizontal en pantallas chicas. */
.ed-page-content table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}

.ed-page-content th,
.ed-page-content td {
	padding: 10px 12px;
	border: 1px solid var(--ed-line);
	vertical-align: top;
	text-align: left;
}

.ed-page-content tr:first-child td,
.ed-page-content th {
	background: var(--ed-soft);
	font-weight: 700;
	color: var(--ed-navy);
}

/* Filas de columnas (contenedores de Elementor con varios hijos). */
.ed-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 28px 0;
	align-items: stretch;
}

.ed-row > * {
	margin: 0;
}

/* ---------------------------------------------------------------- Documentos con índice */

.ed-page-doc .ed-page-wrap {
	padding-top: 32px;
}

.ed-page-grid {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.ed-page-main {
	max-width: 760px;
	min-width: 0;
}

.ed-page-aside {
	position: sticky;
	top: var(--ed-sticky);
}

.ed-page-aside-inner {
	max-height: calc(100vh - var(--ed-sticky) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 8px 4px 0;
	scrollbar-width: thin;
}

.ed-toc-title {
	margin: 0 0 12px;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ed-muted);
}

.ed-toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ed-toc;
	border-left: 2px solid var(--ed-line);
}

.ed-toc-list li {
	counter-increment: ed-toc;
	margin: 0;
}

.ed-toc-list a {
	display: flex;
	gap: 10px;
	margin-left: -2px;
	padding: 7px 10px 7px 14px;
	border-left: 2px solid transparent;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	line-height: 1.35;
	color: var(--ed-muted);
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.ed-toc-list a::before {
	content: counter(ed-toc);
	flex: 0 0 18px;
	font-variant-numeric: tabular-nums;
	color: #9aa3ae;
}

.ed-toc-list a:hover {
	color: var(--ed-navy);
	background: var(--ed-soft);
}

.ed-toc-list a.is-active {
	border-left-color: var(--ed-yellow);
	background: #fffbea;
	font-weight: 600;
	color: var(--ed-navy);
}

.ed-toc-list a.is-active::before {
	color: var(--ed-navy);
}

/* Secciones numeradas igual que el índice. */
.ed-page-doc .ed-page-content {
	counter-reset: ed-sec;
}

.ed-page-doc .ed-page-content h2[id] {
	counter-increment: ed-sec;
	padding-top: 24px;
	border-top: 1px solid var(--ed-line);
}

.ed-page-doc .ed-page-content h2[id]::before {
	content: counter(ed-sec, decimal-leading-zero);
	display: block;
	margin-bottom: 6px;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ed-blue);
}

.ed-page-doc .ed-page-content > h2[id]:first-child,
.ed-page-doc .ed-page-content > h2[id]:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Índice plegable (solo móvil/tablet). */
.ed-page-toc-mobile {
	display: none;
	margin: 0 0 32px;
	border: 1px solid var(--ed-line);
	border-radius: var(--ed-radius);
	background: #fff;
	box-shadow: var(--ed-shadow);
}

.ed-page-toc-mobile summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--ed-navy);
}

.ed-page-toc-mobile summary::-webkit-details-marker {
	display: none;
}

.ed-page-toc-mobile summary::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}

.ed-page-toc-mobile[open] summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

.ed-toc-count {
	min-width: 26px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ed-soft);
	font-size: 13px;
	text-align: center;
	color: var(--ed-muted);
}

.ed-page-toc-mobile .ed-toc-list {
	margin: 0 16px 14px;
}

/* Botón flotante y panel del índice (móvil). */
.ed-toc-fab {
	position: fixed;
	z-index: 90;
	left: 50%;
	bottom: 20px;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ed-navy);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.25);
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transform: translateX(-50%);
}

.ed-toc-fab[hidden] {
	display: none !important;
}

.ed-toc-sheet {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: rgba(16, 24, 40, 0.45);
}

.ed-toc-sheet[hidden] {
	display: none;
}

.ed-toc-sheet-panel {
	box-sizing: border-box;
	width: 100%;
	max-height: 78vh;
	overflow-y: auto;
	padding: 8px 20px 28px;
	border-radius: 16px 16px 0 0;
	background: #fff;
	animation: ed-sheet-in 0.2s ease-out;
}

@keyframes ed-sheet-in {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
}

.ed-toc-sheet-head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	background: #fff;
}

.ed-toc-sheet-head .ed-toc-title {
	margin: 0;
}

.ed-toc-close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--ed-soft);
	font-size: 22px;
	line-height: 1;
	color: var(--ed-navy);
	cursor: pointer;
}

.ed-toc-sheet .ed-toc-list a {
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 15px;
}

.ed-toc-open {
	overflow: hidden;
}

/* Barra de progreso de lectura. */
.ed-page-progress {
	position: fixed;
	z-index: 1001;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	pointer-events: none;
}

.admin-bar .ed-page-progress {
	top: 32px;
}

.ed-page-progress span {
	display: block;
	height: 100%;
	background: var(--ed-yellow);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* Lista de chequeo (íconos Verdadero / Falso / Dudoso en Buenas prácticas). */
.ed-check {
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--ed-line);
	border-radius: var(--ed-radius);
	background: #fff;
	box-shadow: var(--ed-shadow);
	text-align: center;
}

.ed-check figure {
	margin: 0 0 12px;
}

.ed-check img {
	max-width: 96px;
	margin: 0 auto;
}

.ed-check ul {
	margin: 0;
	padding-left: 18px;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

/* ---------------------------------------------------------------- Contacto (formulario WPForms) */

/* WPForms "moderno" usa div.wpforms-container-full y sus propias variables de color. */
.ed-page .ed-page-content div.wpforms-container,
.ed-page .ed-page-content div.wpforms-container-full {
	--wpforms-button-background-color: #003d80;
	--wpforms-button-background-color-alt: #1c244b;
	--wpforms-button-border-radius: 8px;
	--wpforms-button-size-height: 50px;
	--wpforms-field-border-radius: 8px;
	--wpforms-field-border-color: #c9d2de;
	--wpforms-field-size-input-height: 48px;
	--wpforms-label-color: #1c244b;
	margin: 0;
	padding: 32px;
	border: 1px solid var(--ed-line);
	border-radius: var(--ed-radius);
	background: #fff;
	box-shadow: var(--ed-shadow);
}

.ed-page-content .wpforms-container .wpforms-field {
	padding: 10px 0;
}

.ed-page-content .wpforms-container .wpforms-field-label {
	margin-bottom: 8px;
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--ed-navy);
}

.ed-page-content .wpforms-container .wpforms-field-sublabel,
.ed-page-content .wpforms-container .wpforms-field-description,
.ed-page-content .wpforms-container .wpforms-field-limit-text {
	font-size: 13px;
	color: var(--ed-muted);
}

.ed-page-content .wpforms-container input[type="text"],
.ed-page-content .wpforms-container input[type="email"],
.ed-page-content .wpforms-container input[type="tel"],
.ed-page-content .wpforms-container input[type="number"],
.ed-page-content .wpforms-container select,
.ed-page-content .wpforms-container textarea {
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #c9d2de;
	border-radius: 8px;
	background: #fff;
	font-size: 16px; /* 16 px: iOS no hace zoom al tocar el campo */
	color: var(--ed-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ed-page-content .wpforms-container textarea {
	min-height: 140px;
}

.ed-page-content .wpforms-container input:focus,
.ed-page-content .wpforms-container select:focus,
.ed-page-content .wpforms-container textarea:focus {
	border-color: var(--ed-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 61, 128, 0.15);
}

.ed-page-content .wpforms-container .wpforms-submit-container {
	padding-top: 16px;
}

.ed-page-content .wpforms-container button[type="submit"] {
	min-height: 50px;
	padding: 12px 36px;
	border: 0;
	border-radius: 8px;
	background: var(--ed-blue);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s;
}

.ed-page-content .wpforms-container button[type="submit"]:hover {
	background: var(--ed-navy);
}

/* ---------------------------------------------------------------- Membresías y Gracias */

.ed-page-wide .ed-page-wrap {
	padding-top: 24px;
}

/* Portada: texto a la izquierda y collage a la derecha en escritorio. */
.ed-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: center;
	margin: 0 0 56px;
	padding: 40px 0;
}

.ed-page-content .ed-hero h1 {
	position: relative;
	margin: 0 0 16px;
	padding-top: 18px;
	font-family: "PT Serif", serif;
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.1;
	color: var(--ed-navy);
}

.ed-page-content .ed-hero h1::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--ed-yellow);
}

.ed-hero h1 ~ p {
	font-size: 20px;
	color: var(--ed-muted);
}

.ed-collage {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.ed-collage-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ed-collage-col:first-child {
	align-items: flex-end;
	padding-top: 40px; /* escalonado */
}

.ed-collage-col:last-child {
	align-items: flex-start;
}

.ed-collage-col figure {
	width: 100%;
	margin: 0;
}

.ed-collage-col:first-child figure:first-child,
.ed-collage-col:last-child figure:last-child {
	width: 62%;
}

.ed-collage img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: var(--ed-shadow);
}

/* Secciones centradas (Pricing, Benefits, CTA, Logos). */
.ed-section,
.ed-certified {
	margin: 72px auto;
	text-align: center;
}

.ed-page-content .ed-section h1,
.ed-page-content .ed-section h2,
.ed-page-content .ed-section h3,
.ed-page-content .ed-certified h2 {
	max-width: 820px;
	margin: 0 auto 16px;
	font-family: "PT Serif", serif;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ed-navy);
}

.ed-section p,
.ed-certified p {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	color: var(--ed-muted);
}

/*
 * Texto de presentación de Membresías (3 párrafos): columna de lectura a la
 * izquierda; el párrafo corto del medio ("Y así queremos continuar.") como
 * frase de transición destacada entre los dos largos.
 */
.ed-section.ed-section-pricing {
	max-width: 680px;
	margin-top: 0;
	padding-left: 28px;
	border-left: 4px solid var(--ed-yellow);
	text-align: left;
}

.ed-section.ed-section-pricing p {
	max-width: none;
	margin: 0 0 22px;
	font-family: "PT Serif", serif;
	font-size: 19px;
	line-height: 1.75;
	color: var(--ed-text);
}

/* El texto vino pegado con color negro en línea: que use el de la marca. */
.ed-section.ed-section-pricing p span[style] {
	color: inherit !important;
	font-weight: inherit !important;
}

.ed-section.ed-section-pricing b,
.ed-section.ed-section-pricing strong {
	color: var(--ed-navy);
}

.ed-section.ed-section-pricing p:nth-child(2) {
	margin: 32px 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ed-navy);
}

.ed-section.ed-section-pricing p:last-child {
	margin-bottom: 0;
}

.ed-section .ed-row {
	margin-top: 36px;
}

.ed-certified img {
	max-width: 380px;
	margin: 16px auto 0;
	border-radius: 0;
}

/* Llamada final como banda de marca. */
.ed-section.ed-section-cta {
	padding: 48px 24px;
	border-radius: 16px;
	background: var(--ed-blue);
}

.ed-page-content .ed-section.ed-section-cta h3,
.ed-page-content .ed-section.ed-section-cta h2 {
	margin-bottom: 0;
	color: #fff;
}

/* Planes de Foxiz: las clases plan-* vienen del CSS del tema. */
.ed-plans {
	--plan-box-color: var(--ed-blue); /* Foxiz (swpm.css) pinta el fondo con esta variable */
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 40px 0 0;
	align-items: stretch;
}

.ed-plans .plan-box {
	height: 100%;
}

.ed-plans .plan-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 32px 28px;
	border-radius: 14px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.ed-plans .plan-box:hover .plan-inner {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 61, 128, 0.3);
}

/* El plan del medio, un poco más destacado (solo diseño, sin textos nuevos). */
.ed-plans .plan-box:nth-child(2) .plan-inner {
	background: var(--ed-navy);
	outline: 3px solid var(--ed-yellow);
	outline-offset: -3px;
}

.ed-plans .plan-box .plan-heading {
	margin: 0 0 8px;
	font-family: "PT Serif", serif;
	font-size: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.ed-plans .plan-box .plan-description {
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	font-style: italic;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

.ed-plans .plan-price-wrap {
	margin: 20px 0;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ed-plans .plan-price-wrap,
.ed-plans .plan-price-unit,
.ed-plans .plan-price,
.ed-plans .plan-feature {
	color: #fff;
}

.ed-plans .plan-price {
	font-size: 54px;
	line-height: 1;
}

.ed-plans .plan-tenure {
	color: rgba(255, 255, 255, 0.65);
}

.ed-plans .plan-features {
	flex: 1 1 auto;
	text-align: left;
}

.ed-plans .plan-feature {
	font-size: 15px;
	line-height: 1.5;
}

/* Botón de pago siempre abajo, a todo el ancho de la tarjeta. */
.ed-plans .plan-button-wrap {
	margin-top: 24px;
}

.ed-plans .plan-button-wrap form {
	margin: 0;
}

.ed-plans .plan-button-wrap .button,
.ed-plans .plan-button-wrap input[type="submit"],
.ed-plans .plan-button-wrap button {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 8px;
	background: var(--ed-yellow);
	font-size: 16px;
	font-weight: 700;
	color: var(--ed-navy);
	cursor: pointer;
	transition: filter 0.15s;
}

.ed-plans .plan-button-wrap .button:hover,
.ed-plans .plan-button-wrap input[type="submit"]:hover,
.ed-plans .plan-button-wrap button:hover {
	filter: brightness(0.95);
}

/* Cajas de ventajas (widget icon-box). */
.ed-iconbox {
	box-sizing: border-box;
	height: 100%;
	padding: 28px 22px;
	border: 1px solid var(--ed-line);
	border-top: 4px solid var(--ed-yellow);
	border-radius: var(--ed-radius);
	background: #fff;
	box-shadow: var(--ed-shadow);
	text-align: left;
}

.ed-page-content .ed-iconbox h4 {
	margin: 0 0 10px;
	font-family: "PT Serif", serif;
	font-size: 19px;
	line-height: 1.3;
	color: var(--ed-navy);
}

.ed-page-content .ed-iconbox p {
	margin: 0;
	max-width: none;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ed-muted);
}

/* Gracias: la primera sección (título + texto + ventajas) como tarjeta de confirmación. */
.ed-page-gracias .ed-section-benefits:first-child {
	margin-top: 24px;
	padding: 56px 32px 40px;
	border-radius: 16px;
	background: linear-gradient(180deg, var(--ed-soft) 0%, #fff 70%);
}

.ed-page-gracias .ed-section-benefits:first-child::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--ed-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231c244b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 34px no-repeat;
	box-shadow: 0 8px 24px rgba(255, 204, 0, 0.4);
}

/* ---------------------------------------------------------------- Botón y 404 */

.ed-button {
	display: inline-block;
	padding: 15px 40px;
	border-radius: 8px;
	background: var(--ed-navy);
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.ed-button:hover {
	color: #fff;
	background: var(--ed-blue);
}

/* 404: tarjeta centrada con el estilo de las demás páginas. */
.ed-404 {
	background: linear-gradient(180deg, var(--ed-soft) 0%, #fff 60%);
}

.ed-404 .ed-page-wrap {
	max-width: 640px;
	padding: 72px 20px 96px;
	text-align: center;
}

.ed-404-card {
	padding: 56px 40px 44px;
	border: 1px solid var(--ed-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--ed-shadow);
}

.ed-404 h1.ed-404-code {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-bottom: 14px;
	font-family: "PT Serif", serif;
	font-size: 120px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ed-navy);
}

/* Filete amarillo de marca bajo el número. */
.ed-404 h1.ed-404-code::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--ed-yellow);
	transform: translateX(-50%);
}

.ed-404-text {
	margin: 20px 0 28px;
	font-family: "PT Serif", serif;
	font-size: 21px;
	color: var(--ed-text);
}

/* Buscador: campo y botón unidos. */
.ed-404-search {
	display: flex;
	max-width: 440px;
	margin: 0 auto 20px;
	border: 1px solid #c9d2de;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ed-404-search:focus-within {
	border-color: var(--ed-blue);
	box-shadow: 0 0 0 3px rgba(0, 61, 128, 0.15);
}

.ed-404-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 10px 16px;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
}

.ed-404-search button {
	padding: 0 22px;
	border: 0;
	background: var(--ed-yellow);
	font-weight: 700;
	color: var(--ed-navy);
	cursor: pointer;
}

.ed-404-search button:hover {
	filter: brightness(0.95);
}

/* "Regresar a inicio" como enlace secundario bajo el buscador. */
.ed-404 .ed-button {
	padding: 12px 28px;
	background: transparent;
	border: 1px solid var(--ed-line);
	color: var(--ed-navy);
}

.ed-404 .ed-button:hover {
	background: var(--ed-soft);
	color: var(--ed-navy);
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 1024px) {
	.ed-page-grid {
		display: block;
	}

	.ed-page-aside {
		display: none;
	}

	.ed-page-main {
		max-width: 760px;
		margin: 0 auto;
	}

	.ed-page-doc .ed-page-hero-inner {
		max-width: 800px;
	}

	.ed-page-toc-mobile {
		display: block;
	}

	.ed-toc-fab {
		display: inline-flex;
	}

	.ed-hero {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 16px 0;
	}

	.ed-plans {
		grid-template-columns: 1fr;
		max-width: 460px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ---------------------------------------------------------------- Móvil */

@media (max-width: 767px) {
	.ed-page {
		--ed-sticky: 84px;
	}

	.ed-page-wrap {
		padding: 28px 16px 64px;
	}

	.ed-page-hero-inner {
		padding: 32px 16px 24px;
	}

	.ed-page-content {
		font-size: 17px;
	}

	.ed-page-content h2 {
		margin-top: 44px;
		font-size: 23px;
	}

	.ed-page-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ed-page .ed-page-content div.wpforms-container,
	.ed-page .ed-page-content div.wpforms-container-full {
		padding: 20px 16px;
	}

	.ed-page-content .wpforms-container button[type="submit"] {
		width: 100%;
	}

	/* Collage: cuadrícula 2 × 2 pareja (el escalonado no cabe en móvil). */
	.ed-collage-col:first-child {
		padding-top: 0;
	}

	.ed-collage-col figure,
	.ed-collage-col:first-child figure:first-child,
	.ed-collage-col:last-child figure:last-child {
		width: 100%;
	}

	.ed-collage img {
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}

	.ed-hero h1 ~ p {
		font-size: 18px;
	}

	.ed-section,
	.ed-certified {
		margin: 52px auto;
	}

	.ed-section.ed-section-pricing {
		padding-left: 18px;
	}

	.ed-section.ed-section-pricing p {
		font-size: 17px;
		line-height: 1.7;
	}

	.ed-section.ed-section-pricing p:nth-child(2) {
		margin: 24px 0;
		font-size: 22px;
	}

	.ed-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ed-section.ed-section-cta {
		padding: 36px 20px;
	}

	.ed-page-gracias .ed-section-benefits:first-child {
		padding: 40px 18px 28px;
	}

	.ed-404 .ed-page-wrap {
		padding: 40px 16px 64px;
	}

	.ed-404-card {
		padding: 40px 20px 32px;
	}

	.ed-404 h1.ed-404-code {
		font-size: 88px;
	}
}
