/*
Plugin Name: 420Crea Editorial Framework
Description: Sistema editorial global y neutral para artículos de WordPress.
Version: 1.0.0
Author: 420Crea
*/

/* =========================================================
   420CREA EDITORIAL FRAMEWORK v1.0.0
   Sistema global de diseño para artículos

   Compatible con:
   - 420Crea Stack
   - Gutenberg
   - Editor clásico
   - Elementor
   - Rank Math
   - SEOPress
   - Yoast SEO
   - Artículos heredados

   Aplicación:
   - Entradas individuales del blog

   No afecta:
   - Páginas
   - Productos WooCommerce
   - Categorías
   - Etiquetas
   - Archivos
   ========================================================= */


/* =========================================================
   1. VARIABLES GLOBALES
   ========================================================= */

:root {
	--c420-editorial-primary: #082f4f;
	--c420-editorial-primary-dark: #051f35;
	--c420-editorial-primary-light: #eaf3f8;

	--c420-editorial-secondary: #176f9d;
	--c420-editorial-secondary-dark: #10577d;
	--c420-editorial-accent: #2d97c4;

	--c420-editorial-success: #21855b;
	--c420-editorial-warning: #a96912;
	--c420-editorial-danger: #b84545;

	--c420-editorial-text: #263746;
	--c420-editorial-text-soft: #566979;
	--c420-editorial-heading: #102f43;
	--c420-editorial-muted: #718391;

	--c420-editorial-background: #ffffff;
	--c420-editorial-background-soft: #f5f9fc;
	--c420-editorial-background-highlight: #edf6fa;

	--c420-editorial-border: #d8e5ec;
	--c420-editorial-border-strong: #bdd4e1;

	--c420-editorial-shadow:
		0 18px 50px rgba(18, 55, 77, 0.08);

	--c420-editorial-shadow-small:
		0 8px 24px rgba(18, 55, 77, 0.08);

	--c420-editorial-radius: 24px;
	--c420-editorial-radius-medium: 18px;
	--c420-editorial-radius-small: 12px;

	--c420-editorial-content-width: 980px;
	--c420-editorial-reading-width: 780px;

	--c420-editorial-font-size: 18px;
	--c420-editorial-line-height: 1.78;
	--c420-editorial-transition: 180ms ease;
}


/* =========================================================
   2. ÁREA PRINCIPAL DEL ARTÍCULO
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content > .elementor-widget-container
) {
	width: min(100%, var(--c420-editorial-content-width));
	margin-inline: auto;
	padding: clamp(24px, 4vw, 44px);
	color: var(--c420-editorial-text);
	background: var(--c420-editorial-background);
	border: 1px solid rgba(189, 212, 225, 0.72);
	border-radius: var(--c420-editorial-radius);
	box-shadow: var(--c420-editorial-shadow);
	font-size: var(--c420-editorial-font-size);
	line-height: var(--c420-editorial-line-height);
	letter-spacing: -0.005em;
	overflow: visible;
}


/* Evita una tarjeta duplicada cuando Elementor ya envuelve el contenido */

.single-post
.elementor-widget-theme-post-content
:where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content
) {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}


/* =========================================================
   3. CABECERA DEL ARTÍCULO
   ========================================================= */

.single-post :where(
	.entry-title,
	.post-title,
	.c420-single-title,
	.elementor-widget-theme-post-title h1
) {
	max-width: var(--c420-editorial-content-width);
	margin-inline: auto;
	color: var(--c420-editorial-heading);
	font-size: clamp(36px, 5vw, 62px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.045em;
	text-wrap: balance;
}


.single-post :where(
	.entry-meta,
	.post-meta,
	.c420-post-meta,
	.ct-entry-meta
) {
	color: var(--c420-editorial-muted);
	font-size: 14px;
	line-height: 1.5;
}


.single-post :where(
	.post-thumbnail,
	.ct-featured-image,
	.c420-featured-image
) img {
	display: block;
	width: 100%;
	max-width: var(--c420-editorial-content-width);
	height: auto;
	margin-inline: auto;
	border-radius: var(--c420-editorial-radius);
	box-shadow: var(--c420-editorial-shadow-small);
	object-fit: cover;
}


/* =========================================================
   4. TIPOGRAFÍA
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) p {
	margin: 0 0 1.35em;
	color: var(--c420-editorial-text);
	font-size: inherit;
	line-height: inherit;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) > p:first-child {
	color: #203c50;
	font-size: clamp(19px, 2vw, 22px);
	font-weight: 500;
	line-height: 1.68;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) strong {
	color: var(--c420-editorial-heading);
	font-weight: 750;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) em {
	color: var(--c420-editorial-text-soft);
}


/* =========================================================
   5. ENCABEZADOS
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(h2, h3, h4, h5, h6) {
	color: var(--c420-editorial-heading);
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
	scroll-margin-top: 130px;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h2 {
	position: relative;
	margin: clamp(50px, 7vw, 76px) 0 24px;
	padding: 0 0 15px 20px;
	font-size: clamp(27px, 3vw, 38px);
	line-height: 1.16;
	border-bottom: 1px solid var(--c420-editorial-border);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h2::before {
	content: "";
	position: absolute;
	top: 0.12em;
	bottom: 0.42em;
	left: 0;
	width: 5px;
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		var(--c420-editorial-secondary),
		var(--c420-editorial-primary)
	);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h3 {
	margin: 38px 0 17px;
	font-size: clamp(22px, 2.4vw, 29px);
	line-height: 1.25;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h4 {
	margin: 30px 0 14px;
	font-size: 21px;
	line-height: 1.3;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h5 {
	margin: 26px 0 12px;
	font-size: 18px;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) h6 {
	margin: 24px 0 12px;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) > h2:first-child {
	margin-top: 0;
}


/* =========================================================
   6. ENLACES
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) a:not(.c420-cta-button):not(.mh-cta-button):not(.wp-element-button) {
	color: var(--c420-editorial-primary);
	font-weight: 650;
	text-decoration-line: underline;
	text-decoration-color: rgba(23, 111, 157, 0.35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition:
		color var(--c420-editorial-transition),
		text-decoration-color var(--c420-editorial-transition);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) a:not(.c420-cta-button):not(.mh-cta-button):not(.wp-element-button):hover {
	color: var(--c420-editorial-secondary-dark);
	text-decoration-color: currentColor;
}


/* =========================================================
   7. SEPARADORES
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(hr, .c420-hr, .mh-hr) {
	clear: both;
	width: 100%;
	height: 1px;
	margin: clamp(42px, 6vw, 70px) 0;
	padding: 0;
	border: 0;
	background: linear-gradient(
		90deg,
		transparent,
		var(--c420-editorial-border-strong) 16%,
		var(--c420-editorial-border-strong) 84%,
		transparent
	);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(hr, .c420-hr, .mh-hr) + h2 {
	margin-top: 0;
}


/* =========================================================
   8. LISTAS
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(ul, ol) {
	margin: 0 0 1.7em;
	padding-left: 1.35em;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) li {
	margin-bottom: 0.7em;
	padding-left: 0.25em;
	line-height: 1.68;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) li::marker {
	color: var(--c420-editorial-secondary);
	font-weight: 800;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) li > :is(ul, ol) {
	margin-top: 0.7em;
	margin-bottom: 0;
}


/* =========================================================
   9. IMÁGENES
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) img {
	max-width: 100%;
	height: auto;
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) > img:not(.c420-img-right):not(.c420-img-left):not(.mh-img-right):not(.mh-img-left) {
	display: block;
	width: 100%;
	margin: 32px auto;
	box-shadow: var(--c420-editorial-shadow-small);
}


.single-post :is(.c420-img-right, .mh-img-right) {
	float: right;
	width: min(44%, 430px);
	margin: 6px 0 26px 34px;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: var(--c420-editorial-shadow-small);
}


.single-post :is(.c420-img-left, .mh-img-left) {
	float: left;
	width: min(44%, 430px);
	margin: 6px 34px 26px 0;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: var(--c420-editorial-shadow-small);
}


/* =========================================================
   10. FIGURAS Y PIES DE FOTO
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) figure {
	max-width: 100%;
	margin: 34px auto;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) figure img {
	display: block;
	width: 100%;
	margin: 0;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: var(--c420-editorial-shadow-small);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) figcaption {
	margin-top: 11px;
	padding-inline: 4px;
	color: var(--c420-editorial-muted);
	font-size: 13px;
	font-style: normal;
	line-height: 1.55;
	text-align: left;
}


.single-post :is(.c420-img-right-wide, .mh-img-right-wide) {
	float: right;
	width: min(48%, 460px);
	margin: 6px 0 30px 36px;
}


.single-post :is(.c420-img-right-wide, .mh-img-right-wide)
:is(.c420-img-right, .mh-img-right) {
	float: none;
	width: 100%;
	margin: 0;
}


.single-post :is(.c420-img-left-wide, .mh-img-left-wide) {
	float: left;
	width: min(48%, 460px);
	margin: 6px 36px 30px 0;
}


.single-post :is(.c420-img-left-wide, .mh-img-left-wide)
:is(.c420-img-left, .mh-img-left) {
	float: none;
	width: 100%;
	margin: 0;
}


.single-post :is(.c420-clear, .mh-clear) {
	display: block;
	clear: both;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
)::after {
	content: "";
	display: table;
	clear: both;
}


/* =========================================================
   11. CAJAS DESTACADAS
   ========================================================= */

.single-post :is(.c420-box, .mh-box) {
	position: relative;
	clear: both;
	margin: 32px 0;
	padding: 24px 26px 22px 30px;
	overflow: hidden;
	color: var(--c420-editorial-text);
	background:
		linear-gradient(
			135deg,
			rgba(234, 243, 248, 0.98),
			rgba(245, 249, 252, 0.98)
		);
	border: 1px solid #cce2ee;
	border-left: 6px solid var(--c420-editorial-secondary);
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: 0 8px 24px rgba(20, 86, 120, 0.07);
}


.single-post :is(.c420-box, .mh-box)::after {
	content: "";
	position: absolute;
	top: -45px;
	right: -45px;
	width: 135px;
	height: 135px;
	border-radius: 50%;
	background: rgba(23, 111, 157, 0.07);
	pointer-events: none;
}


.single-post :is(.c420-box, .mh-box) > strong:first-child {
	position: relative;
	z-index: 1;
	display: block;
	margin-bottom: 8px;
	color: var(--c420-editorial-primary-dark);
	font-size: 18px;
	font-weight: 800;
}


.single-post :is(.c420-box, .mh-box) p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--c420-editorial-text);
}


.single-post :is(.c420-mini, .mh-mini) {
	clear: both;
	margin: 28px 0;
	padding: 22px 25px;
	background: var(--c420-editorial-background-soft);
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post :is(.c420-mini, .mh-mini) > strong:first-child {
	display: block;
	margin-bottom: 13px;
	color: var(--c420-editorial-heading);
	font-size: 17px;
	font-weight: 800;
}


.single-post :is(.c420-mini, .mh-mini) :is(ul, ol) {
	margin-bottom: 0;
}


/* =========================================================
   12. CITAS
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) blockquote {
	position: relative;
	clear: both;
	margin: 35px 0;
	padding: 27px 30px 27px 68px;
	color: var(--c420-editorial-heading);
	background: #f1f8fc;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) blockquote::before {
	content: "“";
	position: absolute;
	top: 9px;
	left: 23px;
	color: var(--c420-editorial-secondary);
	font-family: Georgia, serif;
	font-size: 65px;
	font-weight: 700;
	line-height: 1;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) blockquote p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   13. TABLAS RESPONSIVE
   ========================================================= */

.single-post :is(.c420-table-wrap, .mh-table-wrap),
.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) .wp-block-table {
	clear: both;
	width: 100%;
	margin: 32px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: 0 7px 22px rgba(18, 55, 77, 0.06);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) table {
	width: 100%;
	min-width: 680px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	font-size: 15px;
	line-height: 1.55;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) thead {
	background: linear-gradient(
		135deg,
		var(--c420-editorial-primary-dark),
		var(--c420-editorial-primary)
	);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) th {
	padding: 17px 18px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
	border: 0;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) td {
	padding: 16px 18px;
	color: var(--c420-editorial-text);
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--c420-editorial-border);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) tbody tr:nth-child(even) {
	background: var(--c420-editorial-background-soft);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) tbody tr:last-child td {
	border-bottom: 0;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) tbody tr {
	transition: background var(--c420-editorial-transition);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) tbody tr:hover {
	background: #eef7fc;
}


/* =========================================================
   14. PREGUNTAS FRECUENTES
   ========================================================= */

.single-post :is(.c420-faq, .mh-faq) {
	clear: both;
	display: grid;
	gap: 14px;
	margin: 30px 0 10px;
}


.single-post :is(.c420-faq, .mh-faq) details {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-small);
	box-shadow: 0 5px 18px rgba(18, 55, 77, 0.05);
	transition:
		border-color var(--c420-editorial-transition),
		box-shadow var(--c420-editorial-transition),
		transform var(--c420-editorial-transition);
}


.single-post :is(.c420-faq, .mh-faq) details:hover {
	border-color: #b7d4e3;
	box-shadow: 0 9px 24px rgba(18, 55, 77, 0.08);
	transform: translateY(-1px);
}


.single-post :is(.c420-faq, .mh-faq) details[open] {
	border-color: #a9cedf;
	background: #fbfdfe;
}


.single-post :is(.c420-faq, .mh-faq) summary {
	position: relative;
	display: block;
	padding: 20px 56px 20px 22px;
	color: var(--c420-editorial-heading);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
	user-select: none;
}


.single-post :is(.c420-faq, .mh-faq) summary::-webkit-details-marker {
	display: none;
}


.single-post :is(.c420-faq, .mh-faq) summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 19px;
	display: grid;
	width: 28px;
	height: 28px;
	color: #ffffff;
	background: var(--c420-editorial-primary);
	border-radius: 50%;
	font-size: 21px;
	font-weight: 500;
	line-height: 1;
	place-items: center;
	transform: translateY(-50%);
	transition:
		transform var(--c420-editorial-transition),
		background var(--c420-editorial-transition);
}


.single-post :is(.c420-faq, .mh-faq) details[open] summary::after {
	content: "−";
	background: var(--c420-editorial-secondary);
	transform: translateY(-50%) rotate(180deg);
}


.single-post :is(.c420-faq, .mh-faq) details > p {
	margin: 0;
	padding: 0 22px 22px;
	color: var(--c420-editorial-text-soft);
	font-size: 16px;
	line-height: 1.7;
}


/* =========================================================
   15. NOTAS
   ========================================================= */

.single-post :is(.c420-note, .mh-note) {
	clear: both;
	margin: 28px 0;
	padding: 18px 21px;
	color: var(--c420-editorial-text-soft) !important;
	background: #f7fafc;
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-small);
	font-size: 14px !important;
	line-height: 1.65 !important;
}


/* =========================================================
   16. FUENTES
   ========================================================= */

.single-post [id="fuentes"] + p,
.single-post [id="fuentes"] ~ :is(.c420-note, .mh-note) {
	color: var(--c420-editorial-text-soft);
}


.single-post [id="fuentes"] ~ ul {
	padding: 22px 24px 22px 43px;
	background: var(--c420-editorial-background-soft);
	border: 1px solid var(--c420-editorial-border);
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post [id="fuentes"] ~ ul li {
	margin-bottom: 10px;
	font-size: 15px;
}


/* =========================================================
   17. LLAMADAS A LA ACCIÓN
   ========================================================= */

.single-post :is(.c420-cta, .mh-cta) {
	position: relative;
	clear: both;
	margin: clamp(48px, 7vw, 80px) 0 8px;
	padding: clamp(28px, 5vw, 46px);
	overflow: hidden;
	color: #ffffff;
	background:
		radial-gradient(
			circle at 90% 5%,
			rgba(255, 255, 255, 0.18),
			transparent 32%
		),
		linear-gradient(
			135deg,
			var(--c420-editorial-primary-dark),
			var(--c420-editorial-primary) 55%,
			var(--c420-editorial-secondary-dark)
		);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--c420-editorial-radius);
	box-shadow: 0 20px 45px rgba(7, 52, 79, 0.22);
}


.single-post :is(.c420-cta, .mh-cta)::before {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -110px;
	width: 290px;
	height: 290px;
	border: 48px solid rgba(255, 255, 255, 0.055);
	border-radius: 50%;
	pointer-events: none;
}


.single-post :is(.c420-cta, .mh-cta) h3 {
	position: relative;
	z-index: 1;
	margin: 0 0 15px;
	color: #ffffff;
	font-size: clamp(25px, 3vw, 35px);
	line-height: 1.15;
}


.single-post :is(.c420-cta, .mh-cta) p {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin-bottom: 13px;
	color: rgba(255, 255, 255, 0.91);
	font-size: 17px;
	line-height: 1.65;
}


.single-post :is(.c420-cta, .mh-cta) p:last-child {
	margin: 24px 0 0;
}


.single-post :is(.c420-cta, .mh-cta) strong {
	color: #ffffff;
}


.single-post :is(.c420-cta-button, .mh-cta-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-left: 8px;
	padding: 12px 21px;
	color: var(--c420-editorial-primary-dark) !important;
	background: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(4, 37, 56, 0.22);
	transition:
		transform var(--c420-editorial-transition),
		box-shadow var(--c420-editorial-transition),
		background var(--c420-editorial-transition);
}


.single-post :is(.c420-cta-button, .mh-cta-button):hover {
	color: #ffffff !important;
	background: transparent;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(4, 37, 56, 0.28);
}


/* =========================================================
   18. BOTONES DE WORDPRESS
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(
	.wp-element-button,
	.wp-block-button__link
) {
	padding: 13px 24px;
	color: #ffffff;
	background: var(--c420-editorial-primary);
	border: 2px solid var(--c420-editorial-primary);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 750;
	text-decoration: none;
	box-shadow: 0 7px 20px rgba(8, 47, 79, 0.18);
	transition:
		background var(--c420-editorial-transition),
		border-color var(--c420-editorial-transition),
		transform var(--c420-editorial-transition);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(
	.wp-element-button,
	.wp-block-button__link
):hover {
	background: var(--c420-editorial-secondary-dark);
	border-color: var(--c420-editorial-secondary-dark);
	transform: translateY(-2px);
}


/* =========================================================
   19. CÓDIGO
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) code {
	padding: 0.16em 0.38em;
	color: #174963;
	background: #eaf4f8;
	border-radius: 5px;
	font-family:
		"SFMono-Regular",
		Consolas,
		"Liberation Mono",
		monospace;
	font-size: 0.88em;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) pre {
	max-width: 100%;
	margin: 30px 0;
	padding: 22px;
	overflow-x: auto;
	color: #e8f3f8;
	background: #102f43;
	border-radius: var(--c420-editorial-radius-medium);
	font-size: 14px;
	line-height: 1.65;
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) pre code {
	padding: 0;
	color: inherit;
	background: transparent;
}


/* =========================================================
   20. CONTENIDO MULTIMEDIA
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(
	iframe,
	video,
	.wp-block-embed,
	.wp-video
) {
	max-width: 100%;
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) .wp-block-embed {
	margin: 34px 0;
	overflow: hidden;
	box-shadow: var(--c420-editorial-shadow-small);
}


/* =========================================================
   21. ÍNDICES DE CONTENIDO
   ========================================================= */

.single-post :where(
	.c420-toc,
	.c420-table-of-contents,
	.rank-math-list,
	#rank-math-toc,
	.ez-toc-container,
	.lwptoc
) {
	clear: both;
	margin: 30px 0 42px;
	padding: 24px 27px;
	background: var(--c420-editorial-background-highlight);
	border: 1px solid #cce2ee;
	border-radius: var(--c420-editorial-radius-medium);
	box-shadow: 0 8px 22px rgba(18, 55, 77, 0.06);
}


.single-post :where(
	.c420-toc,
	.c420-table-of-contents,
	#rank-math-toc,
	.ez-toc-container,
	.lwptoc
) :is(
	h2,
	h3,
	.ez-toc-title,
	.lwptoc_title
) {
	margin: 0 0 14px;
	padding: 0;
	color: var(--c420-editorial-heading);
	border: 0;
	font-size: 20px;
}


.single-post :where(
	.c420-toc,
	.c420-table-of-contents,
	#rank-math-toc,
	.ez-toc-container,
	.lwptoc
) :is(h2, h3)::before {
	display: none;
}


.single-post :where(
	.c420-toc,
	.c420-table-of-contents,
	#rank-math-toc,
	.ez-toc-container,
	.lwptoc
) ul {
	margin: 0;
	padding-left: 20px;
}


.single-post :where(
	.c420-toc,
	.c420-table-of-contents,
	#rank-math-toc,
	.ez-toc-container,
	.lwptoc
) li {
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.5;
}


/* =========================================================
   22. GUTENBERG
   ========================================================= */

.single-post .wp-block-image {
	margin-top: 34px;
	margin-bottom: 34px;
}


.single-post .wp-block-image img {
	box-shadow: var(--c420-editorial-shadow-small);
}


.single-post .wp-block-columns {
	gap: 28px;
	margin-block: 34px;
}


.single-post .wp-block-group {
	border-radius: var(--c420-editorial-radius-medium);
}


.single-post .alignwide {
	width: min(1100px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}


.single-post .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}


/* =========================================================
   23. ACCESIBILIDAD
   ========================================================= */

.single-post :where(
	.entry-content,
	.post-content,
	.c420-article-content,
	.c420-editorial-content,
	.elementor-widget-theme-post-content
) :is(a, button, summary):focus-visible {
	outline: 3px solid rgba(45, 151, 196, 0.65);
	outline-offset: 4px;
	border-radius: 5px;
}


@media (prefers-reduced-motion: reduce) {
	.single-post *,
	.single-post *::before,
	.single-post *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* =========================================================
   24. TABLET
   ========================================================= */

@media (max-width: 900px) {

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content > .elementor-widget-container
	) {
		padding: 30px;
		border-radius: 20px;
	}

	.single-post :is(
		.c420-img-right,
		.c420-img-left,
		.c420-img-right-wide,
		.c420-img-left-wide,
		.mh-img-right,
		.mh-img-left,
		.mh-img-right-wide,
		.mh-img-left-wide
	) {
		float: none;
		width: min(100%, 680px);
		margin: 30px auto;
	}

	.single-post :is(
		.c420-img-right-wide,
		.mh-img-right-wide
	) :is(
		.c420-img-right,
		.mh-img-right
	),
	.single-post :is(
		.c420-img-left-wide,
		.mh-img-left-wide
	) :is(
		.c420-img-left,
		.mh-img-left
	) {
		width: 100%;
		margin: 0;
	}

	.single-post :is(.c420-cta-button, .mh-cta-button) {
		margin-top: 12px;
		margin-left: 0;
	}

}


/* =========================================================
   25. MÓVIL
   ========================================================= */

@media (max-width: 640px) {

	:root {
		--c420-editorial-font-size: 17px;
		--c420-editorial-line-height: 1.72;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content > .elementor-widget-container
	) {
		width: 100%;
		padding: 22px 18px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.single-post :where(
		.entry-title,
		.post-title,
		.c420-single-title,
		.elementor-widget-theme-post-title h1
	) {
		font-size: clamp(32px, 10vw, 45px);
		line-height: 1.08;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) > p:first-child {
		font-size: 18px;
		line-height: 1.65;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) h2 {
		margin-top: 48px;
		padding-bottom: 13px;
		padding-left: 16px;
		font-size: 27px;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) h3 {
		font-size: 22px;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) :is(hr, .c420-hr, .mh-hr) {
		margin: 45px 0;
	}

	.single-post :is(.c420-box, .mh-box) {
		padding: 21px 20px 20px 23px;
		border-left-width: 5px;
		border-radius: 15px;
	}

	.single-post :is(.c420-mini, .mh-mini) {
		padding: 20px;
		border-radius: 15px;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) blockquote {
		padding: 54px 20px 22px;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) blockquote::before {
		top: 12px;
		left: 18px;
	}

	.single-post :is(.c420-faq, .mh-faq) summary {
		padding: 18px 52px 18px 18px;
		font-size: 16px;
	}

	.single-post :is(.c420-faq, .mh-faq) details > p {
		padding: 0 18px 19px;
		font-size: 15px;
	}

	.single-post :is(.c420-cta, .mh-cta) {
		margin-inline: -4px;
		padding: 27px 22px;
		border-radius: 18px;
	}

	.single-post :is(.c420-cta, .mh-cta) h3 {
		font-size: 27px;
	}

	.single-post :is(.c420-cta, .mh-cta) p {
		font-size: 16px;
	}

	.single-post :is(.c420-cta-button, .mh-cta-button) {
		display: flex;
		width: 100%;
		margin-top: 15px;
		padding: 13px 18px;
		text-align: center;
	}

	.single-post :where(
		.c420-toc,
		.c420-table-of-contents,
		.rank-math-list,
		#rank-math-toc,
		.ez-toc-container,
		.lwptoc
	) {
		padding: 21px 19px;
	}

	.single-post .alignwide,
	.single-post .alignfull {
		width: calc(100vw - 20px);
	}

}


/* =========================================================
   26. PANTALLAS MUY PEQUEÑAS
   ========================================================= */

@media (max-width: 390px) {

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content > .elementor-widget-container
	) {
		padding-inline: 15px;
	}

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content
	) h2 {
		font-size: 25px;
	}

	.single-post :is(.c420-table-wrap, .mh-table-wrap) {
		width: calc(100% + 8px);
		margin-inline: -4px;
	}

}


/* =========================================================
   27. IMPRESIÓN
   ========================================================= */

@media print {

	.single-post :where(
		.entry-content,
		.post-content,
		.c420-article-content,
		.c420-editorial-content,
		.elementor-widget-theme-post-content > .elementor-widget-container
	) {
		width: 100%;
		max-width: none;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.single-post :is(.c420-cta, .mh-cta) {
		color: #000000;
		background: #ffffff;
		border: 1px solid #777777;
		box-shadow: none;
	}

	.single-post :is(.c420-cta, .mh-cta) :is(h3, p, strong) {
		color: #000000;
	}

	.single-post :is(.c420-faq, .mh-faq) details {
		display: block;
	}

	.single-post :is(.c420-faq, .mh-faq)
	details:not([open]) > *:not(summary) {
		display: block;
	}

	.single-post a {
		color: #000000 !important;
		text-decoration: underline !important;
	}

	.single-post :where(
		h2,
		h3,
		h4,
		figure,
		table,
		.c420-box,
		.c420-mini,
		.c420-faq details,
		.mh-box,
		.mh-mini,
		.mh-faq details
	) {
		break-inside: avoid;
	}

}
