/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

:root {
    --tej-font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
body:not(.wp-admin) h6,
body:not(.wp-admin) .entry-title,
body:not(.wp-admin) .widget-title,
body:not(.wp-admin) .footer-widgets .widget-title,
body:not(.wp-admin) .site-footer .widget-title,
body:not(.wp-admin) summary h1,
body:not(.wp-admin) summary h2,
body:not(.wp-admin) summary h3,
body:not(.wp-admin) summary h4,
body:not(.wp-admin) summary h5,
body:not(.wp-admin) summary h6 {
    font-family: var(--tej-font-heading);
}

/* 1Estilo base para el modal */
	.boton-modal-si {
		display: block;
    text-align: center;
    background: #44cb53;
    padding: 8px;
    font-weight: bold;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
	}
	.boton-modal-si:hover, .boton-modal-si:focus {
		background: #349e40;
	}
	.boton-modal-no {
		display: block;
    text-align: center;
    background: #d63838;
    padding: 8px;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
	}
	.boton-modal-no:hover, .boton-modal-no:focus {
		background: #b43030;
	}
	.texto-modal {
		font-size: 16px;
    text-align: center;
	}
	.modal-titulo {
		font-size: 20px;
    font-weight: bolder;
    text-align: center;
    display: block;
    margin-bottom: 10px;
	}
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Color de fondo con opacidad */
	  display: none;
    align-items: center;    /* Centramos verticalmente */
    justify-content: center;/* Centramos horizontalmente */
}
	.mostrar-modal {
    display: flex;
}

.modal-contenido {
    background-color: #fefefe;
    margin: 0;
    padding: 20px;
    border: 1px solid #888;
    width: 25%; /* Ancho del modal */
	  border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	  position: relative;
}

.modal-cerrar {
    color: #aaa;
    position: absolute;    /* Usamos posiciÃ³n absoluta para la "X" */
    top: -7px;             /* Desplazamiento desde la parte superior */
    right: 16px;           /* Desplazamiento desde la derecha */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;       /* Cambia el cursor a una mano al pasar por encima */
}

.modal-cerrar:hover, .modal-cerrar:focus {
    color: black;
}

/* Estilos responsivos */
@media screen and (max-width: 600px) {
    .modal-contenido {
        width: 85%;
    }
}

article.post footer.entry-meta {
    display: none;
}
/* Home pilot: a focused learning hub that keeps navigation above the feed. */
.site-content:has(.tej-home) {
	margin-top: 0;
	padding-top: 0;
}

.site-content:has(.tej-home) .content-area,
.site-content:has(.tej-home) .site-main,
.site-content:has(.tej-home) .inside-article,
.site-content:has(.tej-home) .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-content:has(.tej-home) .entry-header {
	display: none;
}

.tej-home {
	--tej-home-ink: #102f5b;
	--tej-home-blue: #1769e8;
	--tej-home-muted: #4d6284;
	--tej-home-line: #dce6f4;
	--tej-home-panel: #f7fbff;
	box-sizing: border-box;
	color: var(--tej-home-ink);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tej-home *,
.tej-home *::before,
.tej-home *::after {
	box-sizing: border-box;
}

.tej-home h1,
.tej-home h2,
.tej-home h3,
.tej-home p {
	margin-top: 0;
}

.tej-home a {
	color: var(--tej-home-blue);
	text-decoration: none;
}

.tej-home-hero {
	position: relative;
	overflow: hidden;
	padding: 46px 24px 32px;
	background: radial-gradient(circle at 50% 0%, #fff 0, #f6faff 58%, #f1f7ff 100%);
	text-align: center;
}

.tej-home-hero__inner,
.tej-home-benefits,
.tej-home-categories,
.tej-home-popular,
.tej-home-learning-grid {
	width: min(1120px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.tej-home-hero__inner {
	position: relative;
	z-index: 1;
}

.tej-home-hero h1 {
	max-width: 690px;
	margin: 0 auto 9px;
	color: #082a58;
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.1;
}

.tej-home-hero h1 span {
	color: #0d4fae;
}

.tej-home-hero__lead {
	margin-bottom: 2px;
	color: var(--tej-home-muted);
	font-size: 1rem;
}

.tej-home-hero__formula {
	margin-bottom: 20px;
	color: #213f68;
	font-size: .98rem;
}

.tej-home-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px;
	max-width: 710px;
	margin: 0 auto 13px;
	overflow: hidden;
	border: 1px solid #b8c9df;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 14px rgb(25 68 120 / 10%);
}

.tej-home-search input {
	width: 100%;
	min-width: 0;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	color: var(--tej-home-ink);
	font: inherit;
	font-size: .95rem;
	outline: none;
}

.tej-home-search input::placeholder {
	color: #7585a0;
	opacity: 1;
}

.tej-home-search:focus-within {
	border-color: #4185e7;
	box-shadow: 0 0 0 3px rgb(23 105 232 / 13%), 0 5px 14px rgb(25 68 120 / 10%);
}

.tej-home-search button {
	border: 0;
	background: #082c5d;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.tej-home-search button:hover,
.tej-home-search button:focus-visible {
	background: #0d4fae;
}

.tej-home-popular-searches {
	margin-bottom: 0;
	color: #506486;
	font-size: .88rem;
}

.tej-home-popular-searches a {
	font-weight: 700;
}

.tej-home-spark,
.tej-home-hero__icon {
	position: absolute;
	color: #8bb9f3;
	font-weight: 300;
	opacity: .56;
}

.tej-home-spark {
	top: 22%;
	font-size: 1.4rem;
}

.tej-home-spark--left { left: 7%; }
.tej-home-spark--right { right: 7%; }
.tej-home-hero__icon { top: 25px; font-size: 2.8rem; }
.tej-home-hero__icon--book { left: 11%; }
.tej-home-hero__icon--idea { right: 11%; }

.tej-home-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 24px;
	overflow: hidden;
	border: 1px solid var(--tej-home-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 13px rgb(21 57 102 / 5%);
}

.tej-home-benefit {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 13px;
	align-items: center;
	min-height: 88px;
	padding: 17px 23px;
}

.tej-home-benefit + .tej-home-benefit {
	border-left: 1px solid #e4ebf6;
}

.tej-home-benefit__icon,
.tej-home-category-card__icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 50%;
	background: #e8f1ff;
	color: #1769e8;
	font-size: 1.5rem;
	font-weight: 700;
}

.tej-home-benefit strong {
	display: block;
	margin-bottom: 3px;
	font-size: .97rem;
}

.tej-home-benefit p {
	margin-bottom: 0;
	color: #52657f;
	font-size: .84rem;
	line-height: 1.4;
}

.tej-home-categories,
.tej-home-popular {
	padding-top: 42px;
}

.tej-home-section-heading {
	display: flex;
	gap: 20px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tej-home-kicker {
	margin-bottom: 4px;
	color: #5b78a7;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tej-home h2 {
	margin-bottom: 0;
	color: #102f5b;
	font-size: clamp(1.35rem, 2vw, 1.68rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.18;
}

.tej-home-all-link {
	padding-bottom: 2px;
	font-size: .86rem;
	font-weight: 800;
	white-space: nowrap;
}

.tej-home-all-link span {
	margin-left: 5px;
	font-size: 1.1rem;
}

.tej-home-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
}

.tej-home-category-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 19px 16px 14px;
	border: 1px solid var(--tej-home-line);
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 2px 10px rgb(21 57 102 / 3%);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.tej-home-category-card {
	color: var(--tej-home-ink);
}

.tej-home-category-card:hover {
	transform: translateY(-3px);
	border-color: #b8cff0;
	box-shadow: 0 8px 20px rgb(21 57 102 / 10%);
}

.tej-home-category-card__icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 12px;
}

.tej-home-category-card--green .tej-home-category-card__icon { background: #e1f8e8; color: #229458; }
.tej-home-category-card--orange .tej-home-category-card__icon { background: #fff0d8; color: #d68717; }
.tej-home-category-card--purple .tej-home-category-card__icon { background: #f0e2ff; color: #7b42c4; }
.tej-home-category-card--pink .tej-home-category-card__icon { background: #ffe4ed; color: #d6406e; }
.tej-home-category-card--teal .tej-home-category-card__icon { background: #dcf7f4; color: #11988e; }

.tej-home-category-card h3 {
	margin-bottom: 6px;
	text-align: center;
	font-size: .98rem;
	line-height: 1.15;
}

.tej-home-category-card > p {
	min-height: 39px;
	margin-bottom: 10px;
	color: #52657f;
	font-size: .75rem;
	line-height: 1.35;
	text-align: center;
}

.tej-home-category-card__cta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #eef3f9;
	color: var(--tej-home-blue);
	font-size: .76rem;
	font-weight: 800;
}

.tej-home-category-card__cta b {
	font-size: .95rem;
}

.tej-home-category-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tej-home-category-card li + li {
	border-top: 1px solid #eef3f9;
}

.tej-home-category-card li a {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	padding: 6px 1px;
	font-size: .76rem;
	font-weight: 700;
}

.tej-home-category-card li a span { color: #8ca2c2; }

.tej-home-popular {
	padding-bottom: 42px;
}

.tej-home-popular-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.tej-home-topic {
	display: grid;
	grid-template-columns: 33px minmax(0, 1fr);
	column-gap: 9px;
	align-items: center;
	min-height: 92px;
	padding: 13px;
	border: 1px solid #e2eaf5;
	border-radius: 10px;
	background: #fbfdff;
	transition: border-color .18s ease, background-color .18s ease;
}

.tej-home-topic:hover {
	border-color: #b9cef0;
	background: #fff;
}

.tej-home-topic > span {
	display: grid;
	width: 33px;
	height: 33px;
	place-items: center;
	border-radius: 50%;
	background: #e9f2ff;
	color: #1d70e8;
	font-size: 1.05rem;
	font-weight: 800;
}

.tej-home-topic strong,
.tej-home-topic small,
.tej-home-topic em {
	grid-column: 2;
}

.tej-home-topic strong {
	color: #15345e;
	font-size: .81rem;
}

.tej-home-topic small {
	margin-top: 2px;
	color: #5b6e88;
	font-size: .69rem;
	line-height: 1.25;
}

.tej-home-topic em {
	margin-top: 5px;
	font-size: .7rem;
	font-style: normal;
	font-weight: 800;
}

.tej-home-learning-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
	gap: 18px;
	padding-top: 42px;
	padding-bottom: 42px;
}

.tej-home-learning-grid > * {
	min-width: 0;
}

.tej-home-method,
.tej-home-explanation {
	padding: 24px;
	border: 1px solid #dce6f4;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 13px rgb(21 57 102 / 4%);
}

.tej-home-method ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 17px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.tej-home-method li {
	position: relative;
}

.tej-home-method li:not(:last-child)::after {
	position: absolute;
	top: 18px;
	left: calc(50% + 24px);
	width: calc(100% - 38px);
	border-top: 1px dashed #91a9ca;
	content: "";
}

.tej-home-method li > span {
	display: grid;
	width: 37px;
	height: 37px;
	margin-bottom: 11px;
	place-items: center;
	border-radius: 50%;
	background: #092c5b;
	color: #fff;
	font-size: .84rem;
	font-weight: 800;
}

.tej-home-method li:nth-child(2) > span { background: #54a94e; }
.tej-home-method li:nth-child(3) > span { background: #9751cb; }

.tej-home-method strong {
	display: block;
	margin-bottom: 5px;
	font-size: .82rem;
	line-height: 1.25;
}

.tej-home-method li p {
	margin-bottom: 0;
	color: #52657f;
	font-size: .73rem;
	line-height: 1.4;
}

.tej-home-explanation > p:not(.tej-home-kicker):not(.tej-home-table-note) {
	margin: 6px 0 14px;
	color: #536680;
	font-size: .82rem;
}

.tej-home-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #d6e2f1;
	border-radius: 7px;
}

.tej-home-explanation table {
	width: 100%;
	min-width: 420px;
	border-spacing: 0;
	font-size: .75rem;
}

.tej-home-explanation th,
.tej-home-explanation td {
	padding: 10px 12px;
	border-bottom: 1px solid #dce6f4;
	color: #2d4c75;
	line-height: 1.3;
	text-align: left;
}

.tej-home-explanation thead th {
	background: #edf5ff;
	color: #173960;
	font-size: .72rem;
}

.tej-home-explanation tbody th {
	width: 27%;
	background: #f7fbff;
	color: #173960;
}

.tej-home-explanation tr > * + * { border-left: 1px solid #dce6f4; }
.tej-home-explanation tbody tr:last-child > * { border-bottom: 0; }

.tej-home-table-note {
	margin: 12px 0 0;
	color: #5a6f90;
	font-size: .77rem;
	text-align: center;
}

@media screen and (max-width: 1100px) {
	.tej-home-category-grid,
	.tej-home-popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tej-home-category-card > p { min-height: auto; }
}

@media screen and (max-width: 700px) {
	.tej-home-hero { padding: 35px 16px 29px; }
	.tej-home-hero__inner,
	.tej-home-benefits,
	.tej-home-categories,
	.tej-home-popular,
	.tej-home-learning-grid { width: min(100% - 28px, 540px); }
	.tej-home-hero h1 { font-size: clamp(2rem, 8.8vw, 2.65rem); }
	.tej-home-hero__lead { font-size: .92rem; }
	.tej-home-hero__formula { font-size: .85rem; line-height: 1.45; }
	.tej-home-spark,
	.tej-home-hero__icon { display: none; }
	.tej-home-benefits { grid-template-columns: 1fr; }
	.tej-home-benefit { min-height: 0; padding: 15px 17px; }
	.tej-home-benefit + .tej-home-benefit { border-top: 1px solid #e4ebf6; border-left: 0; }
	.tej-home-categories,
	.tej-home-popular { padding-top: 31px; }
	.tej-home-section-heading { align-items: flex-start; }
	.tej-home-all-link { padding-top: 15px; font-size: .78rem; }
	.tej-home-category-grid,
	.tej-home-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tej-home-category-card { padding: 16px 13px 11px; }
	.tej-home-category-card__icon { width: 43px; height: 43px; margin-bottom: 9px; }
	.tej-home-category-card h3 { font-size: .88rem; }
	.tej-home-category-card > p { font-size: .7rem; }
	.tej-home-category-card li a { font-size: .72rem; }
	.tej-home-topic { grid-template-columns: 29px minmax(0, 1fr); min-height: 83px; padding: 10px; }
	.tej-home-topic > span { width: 29px; height: 29px; font-size: .9rem; }
	.tej-home-topic strong { font-size: .75rem; }
	.tej-home-topic small { font-size: .65rem; }
	.tej-home-learning-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 30px; }
	.tej-home-method,
	.tej-home-explanation { padding: 19px 16px; }
	.tej-home-method ol { grid-template-columns: 1fr; gap: 15px; margin-top: 18px; }
	.tej-home-method li { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 10px; }
	.tej-home-method li > span { grid-row: span 2; margin-bottom: 0; }
	.tej-home-method li:not(:last-child)::after { display: none; }
	.tej-home-method strong { padding-top: 2px; }
	.tej-home-method li p { grid-column: 2; }
}

/* Biblioteca visual de categorías en la portada. */
.tej-home-category-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
}

.tej-home-category-card {
	--tej-category: #1976d2;
	--tej-category-soft: #edf5ff;
	position: relative;
	grid-column: span 3;
	min-height: 196px;
	padding: 24px 22px 19px;
	border: 1px solid #dfe8f2;
	border-radius: 16px;
	background: linear-gradient(142deg, var(--tej-category-soft) 0%, #ffffff 67%);
	box-shadow: 0 5px 16px rgb(18 55 94 / 5%);
	text-align: left;
	overflow: hidden;
}

.tej-home-category-card::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--tej-category);
	content: "";
}

.tej-home-category-card:nth-child(-n + 3) {
	grid-column: span 4;
}

.tej-home-category-card--blue { --tej-category: #1671d9; --tej-category-soft: #edf5ff; }
.tej-home-category-card--green { --tej-category: #188953; --tej-category-soft: #edf9f1; }
.tej-home-category-card--orange { --tej-category: #c9790d; --tej-category-soft: #fff5e5; }
.tej-home-category-card--purple { --tej-category: #7041bd; --tej-category-soft: #f6efff; }
.tej-home-category-card--pink { --tej-category: #c53d68; --tej-category-soft: #fff0f4; }
.tej-home-category-card--teal { --tej-category: #087f78; --tej-category-soft: #ecfaf8; }

.tej-home-category-card__icon {
	position: absolute;
	top: 22px;
	right: 20px;
	width: 56px;
	height: 56px;
	margin: 0;
	border: 1px solid rgb(255 255 255 / 76%);
	border-radius: 18px;
	background: rgb(255 255 255 / 76%) !important;
	box-shadow: 0 7px 18px rgb(18 55 94 / 8%);
	color: var(--tej-category) !important;
	font-size: 1.5rem;
}

.tej-home-category-card h3 {
	max-width: calc(100% - 68px);
	margin: 2px 0 8px;
	color: #102c4b;
	font-size: 1.1rem;
	line-height: 1.2;
	text-align: left;
}

.tej-home-category-card > p {
	max-width: calc(100% - 70px);
	min-height: 0;
	margin: 0;
	color: #53657d;
	font-size: .82rem;
	line-height: 1.5;
	text-align: left;
}

.tej-home-category-card__cta {
	justify-content: flex-start;
	margin-top: auto;
	padding-top: 18px;
	color: var(--tej-category);
	font-size: .78rem;
	letter-spacing: .01em;
}

.tej-home-category-card__cta b {
	margin-left: 3px;
	transition: transform .18s ease;
}

.tej-home-category-card:hover {
	border-color: color-mix(in srgb, var(--tej-category) 34%, #ffffff);
	box-shadow: 0 13px 28px rgb(18 55 94 / 13%);
}

.tej-home-category-card:hover .tej-home-category-card__cta b {
	transform: translateX(4px);
}

@media screen and (max-width: 1100px) {
	.tej-home-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tej-home-category-card,
	.tej-home-category-card:nth-child(-n + 3) {
		grid-column: span 1;
	}

	.tej-home-category-card:nth-child(7) {
		grid-column: 2;
	}
}

@media screen and (max-width: 700px) {
	.tej-home-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.tej-home-category-card,
	.tej-home-category-card:nth-child(-n + 3) {
		grid-column: span 1;
		min-height: 178px;
		padding: 19px 15px 14px;
	}

	.tej-home-category-card:nth-child(7) {
		grid-column: span 2;
	}

	.tej-home-category-card__icon {
		top: 16px;
		right: 14px;
		width: 46px;
		height: 46px;
		border-radius: 15px;
		font-size: 1.2rem;
	}

	.tej-home-category-card h3 {
		max-width: calc(100% - 52px);
		font-size: .94rem;
	}

	.tej-home-category-card > p {
		max-width: calc(100% - 54px);
		font-size: .72rem;
		line-height: 1.42;
	}

	.tej-home-category-card__cta {
		padding-top: 12px;
		font-size: .7rem;
	}
}

/* Tabla institucional: conserva la informacion completa sin desbordar en movil. */
.tej-institutional-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tej-institutional-table-wrap:focus-visible {
	outline: 3px solid #0d2b45;
	outline-offset: 3px;
}

.tej-institutional-table-wrap table {
	min-width: 48rem;
}

/* Ajuste final del hero editorial: sin tarjeta exterior y con beneficios en línea. */
body.tej-modern-page.separate-containers .inside-article,
body.tej-modern-page .inside-article {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.tej-modern-page .entry-header:has(.tej-editorial-hero) {
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

@media screen and (max-width: 768px) {
	body.tej-modern-page.separate-containers .inside-article,
	body.tej-modern-page .inside-article {
		padding: 0;
		border-radius: 0;
	}
}

/* Hero de artículos alineado con el fondo y el lenguaje de las categorías. */
body.tej-modern-page .site-content {
	background: #ffffff;
}

body.tej-modern-page .migas {
	display: none;
}

body.tej-modern-page.separate-containers .inside-article,
body.tej-modern-page .inside-article {
	overflow: visible;
}

body.tej-modern-page .entry-header:has(.tej-editorial-hero) {
	box-sizing: border-box;
	width: calc(100% + 100px);
	max-width: none;
	margin-left: -50px;
	padding: 40px 106px 34px;
	background: radial-gradient(circle at 18% 18%, #ffffff 0, transparent 26%), linear-gradient(135deg, #eef7ff 0%, #f9fcff 55%, #eaf5ff 100%);
	text-align: left;
}

body.tej-modern-page .tej-editorial-hero {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "content" "benefits";
	row-gap: 24px;
}

body.tej-modern-page .tej-editorial-hero__content {
	max-width: 640px;
}

body.tej-modern-page .tej-editorial-hero__breadcrumb {
	display: flex;
	gap: 7px;
	margin: 0 0 16px;
	color: #6685a3;
	font-size: .76rem;
	line-height: 1.25;
}

body.tej-modern-page .tej-editorial-hero__breadcrumb a {
	color: inherit;
	text-decoration: none;
}

body.tej-modern-page .tej-editorial-hero__breadcrumb a:hover {
	color: #1269ad;
	text-decoration: underline;
}

body.tej-modern-page .tej-editorial-hero__breadcrumb .aioseo-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

body.tej-modern-page .tej-editorial-hero__breadcrumb .aioseo-breadcrumb-separator {
	margin: 0;
}

body.tej-modern-page .tej-editorial-hero .entry-title.tej-page-title {
	gap: 10px;
	margin: 0;
}

body.tej-modern-page .tej-editorial-hero .tej-page-title__prefix {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: #3d79ae;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.tej-modern-page .tej-editorial-hero .tej-page-title__topic {
	color: #0d3765;
	font-size: clamp(2.3rem, 5vw, 3.8rem);
	font-weight: 600;
	line-height: 1.12;
}

body.tej-modern-page .tej-editorial-hero__description {
	margin-top: 16px;
	font-weight: 400;
}

body.tej-modern-page .tej-editorial-hero__cta {
	margin-top: 20px;
}

body.tej-modern-page .tej-hero-benefits {
	gap: 28px;
}

body.tej-modern-page .tej-hero-benefit {
	font-weight: 400;
}

@media screen and (max-width: 900px) {
	body.tej-modern-page .entry-header:has(.tej-editorial-hero) {
		width: calc(100% + 32px);
		margin-left: -16px;
		padding-right: 32px;
		padding-left: 32px;
	}
}

@media screen and (max-width: 600px) {
	body.tej-modern-page .entry-header:has(.tej-editorial-hero) {
		width: calc(100% + 32px);
		margin-left: -16px;
		padding: 30px 32px 28px;
	}

	body.tej-modern-page .tej-editorial-hero__breadcrumb {
		margin-bottom: 13px;
	}

	body.tej-modern-page .tej-hero-benefits {
		gap: 12px;
	}
}

/* Apertura editorial: bloque de lectura suave con guía visual lateral. */
body.tej-modern-page .entry-content .tej-post-hero-intro {
	padding: 28px 30px;
	border: 1px solid #dce6f3;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 3px 13px rgb(21 57 102 / 5%);
}

body.tej-modern-page .entry-content .tej-post-hero-intro p {
	color: #193f67;
}

body.tej-modern-page .entry-content .tej-modern-content-wrapper.tej-visual-polish--pillar-clean > .tej-post-hero-section {
	margin-block-start: 0;
}

body.tej-modern-page .entry-content {
	padding-top: 26px;
}

@media screen and (max-width: 600px) {
	body.tej-modern-page .entry-content {
		padding-top: 22px;
	}

	body.tej-modern-page .entry-content .tej-post-hero-intro {
		padding: 22px 20px;
	}
}

/* Entradas heredadas: una sola columna de lectura, sin lateral de widgets. */
body.wp-singular:not(.tej-modern-page) #primary {
	float: none;
	width: 100%;
}

body.wp-singular:not(.tej-modern-page) #left-sidebar,
body.wp-singular:not(.tej-modern-page) #right-sidebar {
	display: none;
}

/* Imágenes educativas: escala de lectura compacta en escritorio.
 * Los microlotes actuales y futuros reutilizan .tej-educational-visuals. */
@media screen and (min-width: 901px) {
	body.wp-singular .entry-content .tej-educational-visuals {
		width: 100%;
		max-width: 504px;
		margin-inline: auto;
	}

	body.tej-modern-page .entry-content .tej-modern-content-wrapper > :has(+ .tej-educational-visuals) {
		margin-block-end: 24px;
	}
}

/* AdSense de inicio: reserva el espacio antes de que llegue la creatividad. */
.tej-adsense-slot--inicio {
	box-sizing: border-box;
	display: grid;
	width: 336px;
	min-width: 336px;
	max-width: 336px;
	min-height: 280px;
	margin: 32px auto;
	place-items: center;
	overflow: hidden;
}

.tej-adsense-slot--inicio .adsbygoogle {
	display: inline-block !important;
	width: 336px !important;
	height: 280px !important;
}

@media screen and (max-width: 600px) {
	.tej-adsense-slot--inicio {
		margin-block: 26px;
	}
}
