/*
Theme Name: Firmas EC Blog
Theme URI: https://firmaselectronicasecuador.com/
Author: Abitmedia S.A.
Author URI: https://abitmedia.cloud/
Description: Tema editorial ultraligero para el blog de Firmas Electrónicas Ecuador.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: fee-blog
*/

:root {
	--brand: #20116e;
	--brand-dark: #061e3e;
	--blue: #1c51ff;
	--blue-2: #295bff;
	--yellow: #f1d009;
	--yellow-light: #fed727;
	--ink: #111229;
	--muted: #68738f;
	--line: #e1e6f2;
	--soft: #f4f6ff;
	--cool: #f8faff;
	--white: #fff;
	--green: #20c978;
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 12px 32px rgba(32, 17, 110, .09);
	--shadow-hover: 0 22px 46px rgba(32, 17, 110, .15);
	--shell: 1180px;
	--pad: clamp(18px, 4vw, 30px);
	--font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 108px;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }

h1,
h2,
h3,
h4,
p { margin-top: 0; }

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
	border-radius: 5px;
}

.shell {
	width: min(100%, var(--shell));
	margin-inline: auto;
	padding-inline: var(--pad);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: -80px;
	left: 18px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--yellow);
	color: #080808;
	font-weight: 700;
	border-radius: 8px;
}

.skip-link:focus { top: 12px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 8px 28px rgba(6, 30, 62, .15);
}

.utility-bar {
	background: linear-gradient(90deg, var(--blue), var(--blue-2));
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
}

.utility-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 29px;
}

.utility-bar a { color: var(--white); }
.utility-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }

.main-nav {
	background: var(--brand);
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.main-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 70px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.brand img {
	width: 116px;
	height: auto;
}

.brand__tag {
	padding: 3px 8px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	color: #e5e7ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.desktop-nav { margin-left: auto; }
.site-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 9px;
	color: #c9c9ed;
	font-size: 14px;
	font-weight: 600;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
	background: rgba(255, 255, 255, .08);
	color: var(--white);
}

.main-nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	color: var(--white);
}

.icon-link:hover { background: rgba(255, 255, 255, .09); }
.icon-link svg { width: 20px; fill: currentColor; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary,
.button--yellow {
	background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
	box-shadow: 0 5px 16px rgba(241, 208, 9, .25);
	color: #101010;
}

.button--primary:hover,
.button--yellow:hover { filter: brightness(1.04); box-shadow: 0 9px 23px rgba(241, 208, 9, .34); }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; gap: 4px; width: 42px; height: 42px; padding: 11px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { height: 2px; background: var(--white); border-radius: 2px; }
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav nav {
	position: absolute;
	top: 52px;
	right: 0;
	width: min(290px, calc(100vw - 36px));
	padding: 14px;
	background: var(--brand);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 14px;
	box-shadow: 0 20px 44px rgba(0,0,0,.25);
}
.mobile-nav .site-menu { display: block; }
.mobile-nav .site-menu a { padding: 11px 10px; }
.mobile-nav .button { width: 100%; margin-top: 10px; }

/* Hero del blog */
.blog-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(55% 110% at 100% 0, rgba(28,81,255,.14), transparent 68%),
		radial-gradient(52% 100% at 0 100%, rgba(241,208,9,.13), transparent 72%),
		linear-gradient(180deg, var(--soft), var(--white));
}

.blog-hero::after {
	content: "";
	position: absolute;
	right: -130px;
	top: -210px;
	width: 510px;
	height: 510px;
	border: 1px solid rgba(28,81,255,.12);
	border-radius: 50%;
	box-shadow: 0 0 0 65px rgba(28,81,255,.025), 0 0 0 130px rgba(28,81,255,.018);
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	align-items: center;
	gap: 70px;
	min-height: 440px;
	padding-block: 70px;
}

.blog-hero__content { max-width: 760px; }
.eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.eyebrow > span { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.eyebrow--light { color: var(--yellow-light); }

.blog-hero h1 {
	max-width: 720px;
	margin-bottom: 20px;
	color: var(--brand);
	font-size: clamp(2.35rem, 5vw, 4.5rem);
	font-weight: 750;
	line-height: 1.03;
	letter-spacing: -.045em;
	text-wrap: balance;
}

.blog-hero h1 em { position: relative; color: var(--blue); font-style: normal; z-index: 0; }
.blog-hero h1 em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .04em;
	z-index: -1;
	height: .22em;
	background: var(--yellow);
	border-radius: 5px;
	opacity: .48;
}

.blog-hero__content > p:not(.eyebrow) { max-width: 650px; margin-bottom: 28px; color: #56627d; font-size: 18px; }
.blog-hero__mark { display: grid; place-items: center; }
.blog-hero__mark svg { width: 200px; filter: drop-shadow(0 20px 28px rgba(32,17,110,.18)); }
.blog-hero__mark path:first-child { fill: var(--brand); }
.blog-hero__mark rect { fill: var(--white); }
.blog-hero__mark path:last-child { fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: round; }

.search-form {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	width: min(100%, 650px);
	min-height: 58px;
	padding: 7px 7px 7px 18px;
	background: var(--white);
	border: 1px solid rgba(32,17,110,.13);
	border-radius: 15px;
	box-shadow: var(--shadow);
}

.search-form svg { width: 21px; fill: #7f89a1; }
.search-form input { min-width: 0; padding: 8px 0; background: transparent; border: 0; color: var(--ink); outline: 0; }
.search-form input::placeholder { color: #8c95aa; }
.search-form button { align-self: stretch; padding: 9px 20px; background: var(--blue); border: 0; border-radius: 10px; color: var(--white); font-weight: 700; }
.search-form button:hover { background: var(--brand); }

.topic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.topic-chips > span { font-weight: 700; }
.topic-chips a { padding: 5px 10px; background: rgba(28,81,255,.07); border: 1px solid rgba(28,81,255,.11); border-radius: 999px; color: var(--blue); font-weight: 700; }
.topic-chips a:hover { background: var(--blue); color: var(--white); }

/* Secciones y tarjetas */
.section { padding-block: clamp(64px, 8vw, 100px); }
.section--featured { background: var(--white); }
.section--latest { background: var(--cool); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; color: var(--brand); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.section-heading > p { max-width: 480px; margin-bottom: 5px; color: var(--muted); }
.section-heading--compact { margin-bottom: 30px; }

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.post-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 2px 6px rgba(32,17,110,.035);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-card:hover { transform: translateY(-5px); border-color: rgba(28,81,255,.25); box-shadow: var(--shadow-hover); }
.post-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, rgba(6,30,62,.1)); pointer-events: none; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 80% 10%, rgba(28,81,255,.18), transparent 35%), linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.post-card__placeholder::before { content: ""; position: absolute; width: 110px; height: 110px; border: 17px solid rgba(255,255,255,.09); border-radius: 50%; }
.post-card__placeholder span { position: relative; z-index: 1; padding: 5px 11px; background: var(--yellow); border-radius: 999px; color: #111; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.post-card__topic { margin-bottom: 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.post-card__title { margin-bottom: 10px; color: var(--brand); font-size: 21px; line-height: 1.25; letter-spacing: -.018em; text-wrap: balance; }
.post-card__title a { background-image: linear-gradient(var(--blue), var(--blue)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px; transition: background-size .2s ease; }
.post-card__title a:hover { color: var(--blue); background-size: 100% 2px; }
.post-card__excerpt { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; color: #818aa0; font-size: 12px; font-weight: 600; }

.featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.featured-grid .post-card:first-child { grid-row: 1 / 3; }
.featured-grid .post-card:first-child .post-card__media { aspect-ratio: 16 / 9; }
.featured-grid .post-card:first-child .post-card__body { padding: 28px; }
.featured-grid .post-card:first-child .post-card__title { font-size: clamp(1.6rem, 2.3vw, 2.15rem); }
.featured-grid .post-card:not(:first-child) { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
.featured-grid .post-card:not(:first-child) .post-card__media { height: 100%; aspect-ratio: auto; }
.featured-grid .post-card:not(:first-child) .post-card__body { padding: 18px; }
.featured-grid .post-card:not(:first-child) .post-card__title { font-size: 17px; }
.featured-grid .post-card:not(:first-child) .post-card__excerpt { display: none; }

.page-numbers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 42px 0 0; padding: 0; list-style: none; }
.page-numbers li { margin: 0; }
.page-numbers a,
.page-numbers span { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 7px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; color: var(--brand); font-size: 13px; font-weight: 700; }
.page-numbers .current,
.page-numbers a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Archivos y búsqueda */
.archive-hero {
	background: radial-gradient(55% 130% at 95% 0, rgba(28,81,255,.26), transparent 62%), var(--brand-dark);
	color: var(--white);
}

.archive-hero__inner { padding-block: clamp(55px, 8vw, 90px); }
.archive-hero h1 { max-width: 850px; margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.06; letter-spacing: -.04em; }
.archive-hero__description { max-width: 650px; margin-top: 18px; color: #c2cbe0; }
.archive-hero__description p { margin: 0; }
.archive-hero--search .search-form { margin-top: 28px; }

.empty-state { padding: 60px 28px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.empty-state h2 { margin-bottom: 10px; color: var(--brand); }
.empty-state p { color: var(--muted); }
.text-link { color: var(--blue); font-weight: 700; }

/* Entrada */
.article-hero {
	background: radial-gradient(55% 125% at 100% 0, rgba(28,81,255,.12), transparent 65%), linear-gradient(180deg, var(--soft), #fff);
	border-bottom: 1px solid var(--line);
}

.article-hero__inner { max-width: 1020px; padding-block: clamp(54px, 8vw, 90px); text-align: center; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; color: #7b85a0; font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); }
.article-hero__topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.article-hero__topics a,
.article-hero__topics > span { padding: 5px 10px; background: rgba(28,81,255,.08); border: 1px solid rgba(28,81,255,.12); border-radius: 999px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.article-hero h1 { max-width: 950px; margin: 0 auto 24px; color: var(--brand); font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.article-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; color: #6f7890; font-size: 13px; font-weight: 600; }
.author-initial { display: grid; place-items: center; width: 30px; height: 30px; background: var(--blue); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 3px 10px rgba(28,81,255,.25); color: var(--white); font-size: 12px; font-weight: 800; }
.article-hero--page .article-hero__inner { text-align: left; }
.article-hero--page .article-hero h1 { margin-left: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(240px, 300px); align-items: start; justify-content: space-between; gap: clamp(45px, 7vw, 82px); padding-top: clamp(50px, 7vw, 82px); padding-bottom: 80px; }
.page-layout { max-width: 870px; padding-block: 65px 90px; }
.article-content { min-width: 0; color: #30354a; font-size: 18px; line-height: 1.78; }
.article-content > *:first-child { margin-top: 0; }
.single .article-content > h1:first-child { display: none; }
.article-content p { margin-bottom: 1.5em; }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--brand); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 120px; }
.article-content h2 { margin: 2.1em 0 .72em; font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
.article-content h3 { margin: 1.9em 0 .65em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.article-content h4 { margin: 1.7em 0 .6em; font-size: 1.25rem; }
.article-content a:not(.button) { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(28,81,255,.35); text-underline-offset: 3px; }
.article-content a:not(.button):hover { text-decoration-color: currentColor; }
.article-content ul,
.article-content ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.article-content li { margin-bottom: .55em; padding-left: .25em; }
.article-content li::marker { color: var(--blue); font-weight: 700; }
.article-content strong { color: #1d2140; }
.article-content img { margin: 1.8em auto; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(32,17,110,.09); }
.article-content figure { max-width: 100%; margin: 2em 0; }
.article-content figure img { margin: 0; }
.article-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.article-content blockquote { position: relative; margin: 2em 0; padding: 24px 28px 24px 32px; background: var(--soft); border: 0; border-left: 5px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; color: var(--brand); font-size: 19px; font-weight: 600; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content hr { margin: 2.8em 0; border: 0; border-top: 1px solid var(--line); }
.article-content table { width: 100%; margin: 2em 0; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.article-content th,
.article-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--soft); color: var(--brand); }
.article-content tr:last-child td { border-bottom: 0; }
.article-content iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.article-content .wp-block-button__link { display: inline-flex; padding: 12px 20px; background: var(--blue); border-radius: 10px; color: var(--white); font-size: 15px; font-weight: 700; text-decoration: none; }
.article-content .alignwide { width: min(100vw - 48px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }

.article-sidebar { position: sticky; top: 125px; display: grid; gap: 20px; }
.sidebar-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(32,17,110,.06); }
.sidebar-card h2 { margin-bottom: 16px; color: var(--brand); font-size: 18px; line-height: 1.25; }
.sidebar-card .search-form { grid-template-columns: 18px minmax(0, 1fr); min-height: 48px; padding: 5px 12px; border-radius: 10px; box-shadow: none; }
.sidebar-card .search-form svg { width: 18px; }
.sidebar-card .search-form button { grid-column: 1 / -1; min-height: 39px; margin: 1px -6px 0; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list li + li { border-top: 1px solid var(--line); }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; color: #555f79; font-size: 13px; font-weight: 650; }
.category-list a:hover { color: var(--blue); }
.category-list small { display: grid; place-items: center; min-width: 25px; height: 25px; background: var(--soft); border-radius: 50%; color: var(--blue); font-weight: 800; }
.sidebar-card--cta { background: radial-gradient(80% 70% at 100% 0, rgba(28,81,255,.38), transparent 68%), var(--brand-dark); border: 0; color: var(--white); }
.sidebar-card--cta h2 { color: var(--white); font-size: 23px; }
.sidebar-card--cta > p:not(.eyebrow) { color: #bdc8dc; font-size: 14px; }
.sidebar-card--cta .button { width: 100%; margin-top: 5px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.article-tags span { color: var(--brand); font-weight: 800; }
.article-tags a { padding: 3px 8px; background: var(--soft); border-radius: 999px; text-decoration: none !important; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; padding: 18px 20px; background: var(--cool); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.share-row strong { margin-right: auto; color: var(--brand); }
.share-row a { padding: 6px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none !important; font-weight: 700; }

.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; margin-top: 45px; padding: 25px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box__initial { display: grid; place-items: center; width: 64px; height: 64px; background: linear-gradient(135deg, var(--blue), var(--brand)); border-radius: 18px; color: var(--white); font-size: 24px; font-weight: 800; }
.author-box__label { margin-bottom: 1px !important; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.author-box h2 { margin: 0 0 5px; font-size: 20px; }
.author-box div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation a { color: var(--brand) !important; font-size: 14px; font-weight: 800; line-height: 1.35; text-decoration: none !important; }
.post-navigation a:hover { color: var(--blue) !important; }
.related-posts { background: var(--cool); border-top: 1px solid var(--line); }

/* Comentarios */
.comments-area { margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--line); }
.comments-area > h2,
.comment-reply-title { color: var(--brand); font-size: 27px; }
.comment-list { margin: 0 0 38px !important; padding: 0 !important; list-style: none; }
.comment-list .comment { margin-bottom: 15px; padding: 18px; background: var(--cool); border: 1px solid var(--line); border-radius: 12px; }
.comment-list .children { margin-top: 15px; padding-left: 25px; list-style: none; }
.comment-author { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.comment-author img { width: 38px; margin: 0; border-radius: 50%; box-shadow: none; }
.comment-metadata { margin: 5px 0 12px; font-size: 11px; }
.comment-content { font-size: 15px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form > p { margin: 0; }
.comment-form-comment,
.comment-notes,
.comment-form-cookies-consent,
.form-submit { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 5px; color: var(--brand); font-size: 13px; font-weight: 700; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: 11px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .submit { padding: 12px 19px; background: var(--blue); border: 0; border-radius: 9px; color: var(--white); font-weight: 700; }

/* 404 */
.not-found { display: grid; place-items: center; min-height: 65vh; background: radial-gradient(60% 100% at 50% 0, rgba(28,81,255,.12), transparent 68%), var(--soft); }
.not-found__inner { max-width: 720px; padding-block: 80px; text-align: center; }
.not-found__code { margin-bottom: 0; color: var(--blue); font-size: 90px; font-weight: 800; line-height: 1; opacity: .17; }
.not-found h1 { margin-bottom: 12px; color: var(--brand); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.not-found__inner > p:not(.not-found__code) { color: var(--muted); }
.not-found .search-form { margin: 26px auto 18px; text-align: left; }

/* Footer */
.footer-cta { position: relative; overflow: hidden; background: radial-gradient(55% 160% at 50% 0, rgba(28,81,255,.35), transparent 65%), var(--brand-dark); color: var(--white); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 52px; }
.footer-cta h2 { margin-bottom: 7px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.footer-cta p:not(.eyebrow) { margin: 0; color: #bdc8dc; }
.footer-cta .button { flex: none; min-height: 48px; padding-inline: 24px; }

.site-footer { background: var(--brand); color: #c0c1e9; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(35px, 7vw, 85px); padding-block: 55px; }
.footer-brand img { width: 145px; }
.footer-brand p { max-width: 410px; margin: 18px 0 0; color: #abadcf; font-size: 14px; }
.site-footer h2 { margin-bottom: 14px; color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: #c0c1e9; font-size: 13px; }
.site-footer li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #9da1c9; font-size: 11px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom div { display: flex; gap: 17px; }
.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 1020px) {
	.desktop-nav { display: none; }
	.mobile-nav { display: block; }
	.blog-hero__inner { grid-template-columns: minmax(0, 1fr) 180px; gap: 35px; }
	.featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
	.featured-grid .post-card:first-child { grid-column: 1 / -1; grid-row: auto; }
	.featured-grid .post-card:not(:first-child) { display: flex; }
	.featured-grid .post-card:not(:first-child) .post-card__media { aspect-ratio: 16 / 10; height: auto; }
	.featured-grid .post-card:not(:first-child) .post-card__excerpt { display: block; }
	.posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
	.article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sidebar-card--cta { grid-column: 1 / -1; }
}

/* En escritorio el contenido editorial debe aparecer antes del primer scroll. */
@media (min-width: 783px) {
	.blog-hero__inner {
		min-height: 350px;
		gap: 48px;
		padding-block: 42px;
	}

	.blog-hero h1 {
		max-width: 690px;
		margin-bottom: 14px;
		font-size: clamp(2.6rem, 4vw, 3.7rem);
	}

	.blog-hero__content > p:not(.eyebrow) {
		margin-bottom: 20px;
		font-size: 17px;
	}

	.blog-hero__mark svg { width: 165px; }

	.blog-hero .search-form { min-height: 52px; }

	.article-hero__inner {
		padding-block: 40px 44px;
	}

	.article-hero h1 {
		max-width: 880px;
		margin-bottom: 18px;
		font-size: clamp(2.5rem, 4.2vw, 3.7rem);
	}

	.breadcrumbs { margin-bottom: 14px; }
	.article-hero__topics { margin-bottom: 11px; }

	.article-layout {
		padding-top: 38px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	.utility-bar__inner { justify-content: center; text-align: center; }
	.utility-bar__inner > span { display: none; }
	.header-cta { display: none; }
	.brand img { width: 102px; }
	.blog-hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 58px; }
	.blog-hero__mark { display: none; }
	.blog-hero h1 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
	.section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
	.article-hero h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
	.article-sidebar { grid-template-columns: 1fr; }
	.sidebar-card--cta { grid-column: auto; }
	.footer-cta__inner { align-items: flex-start; flex-direction: column; }
	.site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 620px) {
	:root { --pad: 18px; }
	html { scroll-padding-top: 96px; }
	.main-nav__inner { min-height: 64px; }
	.brand__tag { display: none; }
	.icon-link { width: 38px; height: 38px; }
	.mobile-nav summary { width: 38px; height: 38px; padding: 9px 8px; }
	.mobile-nav nav { top: 48px; }
	.blog-hero__content > p:not(.eyebrow) { font-size: 16px; }
	.search-form { grid-template-columns: 20px minmax(0, 1fr); min-height: 54px; padding: 7px 12px; }
	.search-form button { grid-column: 1 / -1; min-height: 40px; }
	.topic-chips { display: none; }
	.section { padding-block: 55px; }
	.featured-grid,
	.posts-grid { grid-template-columns: 1fr; gap: 18px; }
	.featured-grid .post-card:first-child { grid-column: auto; }
	.post-card__body,
	.featured-grid .post-card:first-child .post-card__body { padding: 20px; }
	.section-heading h2 { font-size: 2rem; }
	.archive-hero__inner { padding-block: 50px; }
	.article-hero__inner { padding-block: 45px; }
	.breadcrumbs { justify-content: flex-start; }
	.article-hero__topics { justify-content: flex-start; }
	.article-hero__inner { text-align: left; }
	.article-hero h1 { margin-left: 0; }
	.article-byline { justify-content: flex-start; }
	.article-layout { padding-top: 42px; padding-bottom: 55px; }
	.article-content { font-size: 17px; line-height: 1.72; }
	.article-content blockquote { padding: 20px 20px 20px 23px; font-size: 17px; }
	.article-content table { display: block; overflow-x: auto; }
	.article-content .alignwide { width: 100%; margin-left: 0; transform: none; }
	.share-row strong { width: 100%; }
	.author-box { grid-template-columns: 48px minmax(0, 1fr); padding: 20px; }
	.author-box__initial { width: 48px; height: 48px; border-radius: 13px; font-size: 19px; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation > div:last-child { text-align: left; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-form > p { grid-column: 1; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.site-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
