/* Ponceelrelajado: dirección visual "Evolución" (D-015). Móvil primero. */

:root {
	--c-bg: #f4f3ef;
	--c-card: #fff;
	--c-ink: #161c22;
	--c-text: #1b2229;
	--c-muted: #566068;
	--c-soft: #f0efea;
	--c-border: #e2e0d9;
	--c-accent: #c0262d;
	--c-link: #c0262d;
	--c-link-hover: #9b1d23;
	--c-accent-dark: #9b1d23;
	--c-on-accent: #fff;
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
	--wrap: 1100px;
	--wrap-narrow: 720px;
	--gap: 1.25rem;
	--radius: 8px;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
iframe { border: 0; }

a { color: var(--c-link); text-underline-offset: 0.15em; }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.5em 0 0.5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }

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

.skip-link {
	position: absolute; left: 0.5rem; top: -4rem;
	padding: 0.5rem 1rem;
	background: var(--c-text); color: #fff;
	z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2rem); }

/* Cabecera y menús (móvil: marca arriba, menú en una fila con desplazamiento) */
.site-header { background: var(--c-ink); color: #fff; border-top: 4px solid var(--c-accent); }
.site-header .site-title { color: #fff; }
.brand-mark { color: #e03a40; }
.brand-mark__c { fill: #f06a6f; }
.site-title__text { letter-spacing: -0.02em; }
.site-title__text b { color: #ff5a60; font-weight: 800; }
.brand-mark__b { fill: #e03a40; }
.site-header .menu a { color: #e9ebed; }
.site-header .menu a:hover, .site-header .menu .current-menu-item > a, .site-header .menu .current-menu-ancestor > a { color: #fff; border-bottom-color: #e03a40; }
.site-header :focus-visible { outline-color: #fff; }
.site-header__inner {
	display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
	padding-top: 0.75rem; padding-bottom: 0.25rem;
}
.site-title {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em;
	text-decoration: none; color: var(--c-text);
}
.brand-mark { flex: none; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.25rem; white-space: nowrap; }
.menu a { display: inline-block; padding: 0.55rem 0; text-decoration: none; color: var(--c-text); font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a { color: var(--c-link); border-bottom-color: var(--c-accent); }
.menu .sub-menu { list-style: none; margin: 0; padding-left: 1rem; }

@media (min-width: 720px) {
	.site-header__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; }
	.site-nav { width: auto; overflow: visible; }
}

.site-main { min-height: 50vh; padding-bottom: 2rem; }

/* Pie */

/* Rejillas y tarjetas */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; }
.card__media { display: block; background: var(--c-soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.grid--projects .card__media { aspect-ratio: 4 / 3; }
/* Proyectos en la home: 2 columnas en móvil, 4 en escritorio, sin extracto en pantallas chicas */
.block .grid--projects { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1rem; }
.block .grid--projects .card__title { font-size: 0.9375rem; }
.block .grid--projects .card__excerpt { display: none; }
@media (min-width: 720px) {
	.block .grid--projects { grid-template-columns: repeat(4, 1fr); }
	.block .grid--projects .card__excerpt { display: block; }
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 1.15rem; margin: 0.25rem 0 0.4rem; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a:hover { color: var(--c-link); text-decoration: underline; }
.card__excerpt { margin: 0; color: var(--c-muted); font-size: 0.9375rem; }
.post-meta { margin: 0.6rem 0 0; font-size: 0.875rem; color: var(--c-muted); }
.post-meta a { color: var(--c-link); font-weight: 600; text-decoration: none; }

/* Escenario oscuro de la home (como Hipertextual/Xataka): presentación, temas y vitrina */
.stage {
	background:
		radial-gradient(60rem 22rem at 85% -5%, rgba(192, 38, 45, 0.28), transparent 70%),
		var(--c-ink);
	color: #fff; padding-bottom: 1.5rem;
}
.stage .intro__title { color: #fff; }
.stage .intro__text { color: #c4cacf; }
.stage .link-arrow { color: #ff8a8f; }
.stage .vitrina { margin-top: 1rem; }
.stage :focus-visible { outline-color: #fff; }

.topics { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics__label { flex: none; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ff8a8f; }
.topics__list { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.topics__list a {
	display: block; white-space: nowrap; padding: 0.3rem 0.8rem; font-size: 0.875rem; font-weight: 600;
	color: #e9ebed; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
}
.topics__list a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* Vitrina: nota grande + 4 pequeñas con título sobre la imagen */
.vitrina { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 1.25rem 0 0; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-ink); aspect-ratio: 1; isolation: isolate; }
.tile--big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 14, 18, 0.88) 0%, rgba(10, 14, 18, 0.35) 45%, rgba(10, 14, 18, 0) 70%); }
.tile__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0.75rem; color: #fff; }
.tile__cat { display: inline-block; margin-bottom: 0.35rem; padding: 0.1rem 0.45rem; background: var(--c-accent); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; }
.tile__title { margin: 0; font-size: 0.9375rem; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile--big .tile__title { font-size: clamp(1.25rem, 5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; -webkit-line-clamp: 4; }
.tile__date { margin: 0.35rem 0 0; font-size: 0.8125rem; color: #d5d9dd; }
.tile__link { color: inherit; text-decoration: none; }
.tile__link::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.tile:hover img, .tile:focus-within img { transform: scale(1.05); }
.tile:focus-within { outline: 3px solid var(--c-accent); outline-offset: 2px; }

@media (min-width: 900px) {
	.vitrina { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 15rem); gap: 0.625rem; }
	.tile, .tile--big { aspect-ratio: auto; }
	.tile--big { grid-column: 1 / 3; grid-row: 1 / 3; }
	.tile__body { padding: 1rem; }
	.tile__title { font-size: 1rem; }
	.tile--big .tile__title { font-size: 2rem; }
}

/* Home: presentación, bloques y listas compactas */
.intro { position: relative; padding: 1.75rem 0 0.5rem; }
.intro::after {
	content: ""; position: absolute; right: 0; top: 1.75rem; width: 0.9rem; height: 6.5rem;
	background:
		linear-gradient(var(--c-accent) 0 22%, transparent 22% 26%, #d84148 26% 48%, transparent 48% 52%, #e56a6f 52% 74%, transparent 74% 78%, #f0a3a6 78% 100%);
	opacity: 0.9;
}
@media (max-width: 480px) { .intro::after { height: 3.5rem; top: 1.75rem; } .intro__title { padding-right: 1.5rem; } }
.intro__title { margin: 0 0 0.5rem; font-size: clamp(1.625rem, 6.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.intro__text { margin: 0 0 1rem; color: var(--c-muted); max-width: 40rem; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

.block { margin: 2rem 0; }
.block__title {
	display: flex; align-items: center; gap: 0.75rem;
	margin: 0 0 0.875rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase;
}
.block__title::before { content: ""; width: 0.875rem; height: 0.875rem; background: var(--c-accent); flex: none; }
.block__title::after { content: ""; flex: 1; height: 2px; background: var(--c-border); }

.list { display: grid; gap: 0.625rem; }
.compact {
	display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.875rem; align-items: start; padding: 0.625rem;
	background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.compact:hover { box-shadow: 0 6px 18px rgba(22, 28, 34, 0.1); transform: translateY(-2px); }
.compact:not(:has(.compact__media)) { grid-template-columns: 1fr; }
.compact__media { display: block; aspect-ratio: 4 / 3; background: var(--c-soft); border-radius: var(--radius); overflow: hidden; }
.compact__media img { width: 100%; height: 100%; object-fit: cover; }
.compact__title { margin: 0.1rem 0 0; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.compact__title a { color: var(--c-text); text-decoration: none; }
.compact__title a:hover { color: var(--c-link); text-decoration: underline; }
.compact .post-meta { margin: 0; font-size: 0.8125rem; }

@media (min-width: 720px) {
	.list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
	.compact { grid-template-columns: 8.5rem 1fr; }
}

/* Destacado */
.hero { margin: 1.25rem 0 0; }
.hero__media { display: block; aspect-ratio: 16 / 9; background: var(--c-soft); border-radius: var(--radius); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__title { font-size: clamp(1.375rem, 5vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0.25rem 0 0.5rem; }
.hero__title a { color: var(--c-text); text-decoration: none; }
.hero__title a:hover { color: var(--c-link); }
.hero__excerpt { margin: 0; color: var(--c-muted); }

/* Entradas y páginas */
.page-title, .entry__title { margin-top: 1.5rem; }
.archive-header { margin-bottom: 1rem; }
.archive-description { color: var(--c-muted); }
.entry__media { margin: 0 0 1.5rem; aspect-ratio: 16 / 9; background: var(--c-soft); border-radius: var(--radius); overflow: hidden; }
.entry__media img { width: 100%; height: 100%; object-fit: cover; }
.entry__content { overflow-wrap: anywhere; }
.entry__content img { border-radius: var(--radius); }
.entry__content pre { overflow-x: auto; padding: 1rem; background: var(--c-soft); border-radius: var(--radius); font-size: 0.9rem; }
.entry__content code { font-size: 0.9em; }
.entry__content blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 4px solid var(--c-border); color: var(--c-muted); }
.entry__content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--c-border); padding: 0.4rem 0.6rem; }
.entry__footer { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--c-muted); }

/* Alineaciones y medios de contenido migrado */
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption, figure { max-width: 100%; margin: 1rem 0; }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--c-muted); }
.wp-block-image img, .wp-block-gallery img { height: auto; }

/* Paginación y navegación */
.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; margin: 2rem 0; }
.pagination .page-numbers { padding: 0.3rem 0.7rem; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.post-navigation .nav-sub { display: block; margin-bottom: 0.2rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
.post-navigation .nav-previous a, .post-navigation .nav-next a { display: block; height: 100%; padding: 0.75rem 1rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); font-weight: 700; text-decoration: none; line-height: 1.35; }
.post-navigation .nav-next a { text-align: right; }
.post-navigation a:hover { border-color: var(--c-accent); color: var(--c-link); }
@media (min-width: 720px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }

/* Llamado a contacto */
.cta { margin: 2.5rem 0; padding: 1.75rem 1.5rem; background: var(--c-ink); color: #fff; border-radius: var(--radius); border-left: 6px solid var(--c-accent); }
.cta__title { margin-top: 0; color: #fff; }
.cta .button:hover { background: #e03a40; }
.button {
	display: inline-block; padding: 0.65rem 1.25rem;
	background: var(--c-accent); color: var(--c-on-accent);
	border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--c-accent-dark); color: var(--c-on-accent); }

/* Formularios y comentarios */
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
	width: 100%; max-width: 100%; padding: 0.55rem 0.7rem;
	font: inherit; border: 1px solid var(--c-border); border-radius: var(--radius);
}
.search-form { display: flex; gap: 0.5rem; max-width: 480px; }
.search-form label { flex: 1; }
.search-submit, .comment-form .submit {
	padding: 0.55rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
	background: var(--c-accent); color: var(--c-on-accent); border: 0; border-radius: var(--radius);
}
.comments { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--c-border); }
.comment-meta { font-size: 0.875rem; color: var(--c-muted); }
.comment-meta .avatar { float: left; margin-right: 0.75rem; border-radius: 50%; }

/* Anuncios: altura reservada por inline style, sin saltos de diseño */
.ad-slot {
	position: relative; display: flex; align-items: center; justify-content: center;
	margin: 1.5rem auto; max-width: var(--wrap); overflow: hidden;
	background: var(--c-soft);
}
.ad-slot__label {
	position: absolute; top: 2px; left: 6px;
	font-size: 0.6875rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.ad-slot--mobile { display: none; }
.ad-slot--desktop { display: flex; }
@media (max-width: 767px) {
	.ad-slot--desktop { display: none; }
	.ad-slot--mobile { display: flex; }
}
@media (max-width: 1023px) {
	.ad-slot--sidebar { display: none; }
}
@media (min-width: 768px) {
	.ad-slot--mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Diseños por sección de la home */
.layout-lead { display: grid; gap: 1rem; }
.layout-lead .card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.layout-lead .card__media { border-radius: 0; }
.layout-lead .card__body { padding: 0.875rem 1rem 1rem; }
.layout-lead .card__title { font-size: 1.25rem; line-height: 1.25; }
.layout-lead .list { align-content: start; }
@media (min-width: 900px) {
	.layout-lead { grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
	.layout-lead .list { grid-template-columns: 1fr; }
}

.layout-rows { display: grid; gap: 0.625rem; }
.row-card {
	display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.875rem; align-items: start; padding: 0.625rem;
	background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.row-card:hover { box-shadow: 0 6px 18px rgba(22, 28, 34, 0.1); transform: translateY(-2px); }
.row-card__media { display: block; aspect-ratio: 16 / 9; background: var(--c-soft); border-radius: var(--radius); overflow: hidden; }
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.row-card__title a { color: var(--c-text); text-decoration: none; }
.row-card__title a:hover { color: var(--c-link); text-decoration: underline; }
.row-card .post-meta { margin: 0.25rem 0 0; font-size: 0.8125rem; }
.row-card__excerpt { display: none; margin: 0.4rem 0 0; color: var(--c-muted); font-size: 0.9375rem; }
@media (min-width: 720px) {
	.row-card { grid-template-columns: 14rem 1fr; gap: 1.25rem; padding: 0.875rem; }
	.row-card__title { font-size: 1.25rem; }
	.row-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Entrada individual */
.wrap--article { max-width: calc(780px + 2rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: 0.8125rem; color: var(--c-muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.25rem; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-link); text-decoration: underline; }
.entry__title { margin: 0.5rem 0 0.75rem; font-size: clamp(1.75rem, 6.5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--c-muted); }
.entry-meta__cat { padding: 0.15rem 0.55rem; background: var(--c-accent); color: #fff !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border-radius: 3px; }
.entry-meta__upd { color: var(--c-accent-dark); font-weight: 600; }
.entry__media { margin: 0 0 1.75rem; }
.entry__content { font-size: 1.0625rem; line-height: 1.75; }
.entry__content > :first-child { margin-top: 0; }
.entry__content h2 { margin: 2.25rem 0 0.75rem; font-size: clamp(1.4rem, 4.5vw, 1.75rem); letter-spacing: -0.01em; }
.entry__content h3 { margin: 1.75rem 0 0.5rem; font-size: 1.25rem; }
.entry__content p, .entry__content ul, .entry__content ol { margin: 0 0 1.15rem; }
.entry__content ul, .entry__content ol { padding-left: 1.4rem; }
.entry__content li { margin-bottom: 0.35rem; }
.entry__content a { text-decoration: underline; text-decoration-thickness: 1px; }
.entry__content :not(pre) > code { padding: 0.12em 0.4em; background: var(--c-soft); border: 1px solid var(--c-border); border-radius: 4px; font-family: var(--font-mono); font-size: 0.875em; }
.entry__content pre { margin: 1.5rem 0; padding: 1rem 1.15rem; background: var(--c-ink); color: #e9ebed; border-radius: var(--radius); border-left: 4px solid var(--c-accent); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; }
.entry__content pre code { font-family: inherit; font-size: inherit; }
.entry__content blockquote { margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 4px solid var(--c-accent); color: var(--c-text); font-size: 1.125rem; font-style: italic; }
.entry__content hr { margin: 2rem 0; border: 0; border-top: 2px solid var(--c-border); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 1.75rem 0 0; }
.tags__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); margin-right: 0.25rem; }
.tags a { padding: 0.2rem 0.65rem; font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--c-text); background: var(--c-card); border: 1px solid var(--c-border); border-radius: 999px; }
.tags a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.related .card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.related .card__media { border-radius: 0; }
.related .card__body { padding: 0.75rem 0.875rem 0.9rem; }
.related .card__excerpt { display: none; }
.related .card__title { font-size: 1rem; line-height: 1.3; }

/* Portada de nota a todo el ancho (solo con imagen >= 1200 px). En escritorio la imagen queda fija al hacer scroll. */
.entry-hero { position: relative; display: flex; align-items: flex-end; min-height: 20rem; color: #fff; background: var(--c-ink); overflow: hidden; }
.entry-hero__bg { position: absolute; inset: 0; }
.entry-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.entry-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 18, 0.92) 0%, rgba(10, 14, 18, 0.55) 45%, rgba(10, 14, 18, 0.25) 100%); }
.entry-hero__body { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 1.5rem; }
.wrap--hero { max-width: var(--wrap); width: 100%; margin: 0 auto; }
.entry-hero .entry__title { color: #fff; max-width: 52rem; margin-top: 0.75rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.entry-hero .crumbs ol, .entry-hero .crumbs a, .entry-hero .entry-meta { color: #d5d9dd; }
.entry-hero .entry-meta__upd { color: #ffb4b7; }
.entry-hero :focus-visible { outline-color: #fff; }
@media (min-width: 1024px) {
	.entry-hero { min-height: 26rem; }
}
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.entry-hero { clip-path: inset(0); }
	.entry-hero__bg { position: static; }
	.entry-hero__bg img { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; }
}

/* Contenido + barra lateral */
.with-sidebar { display: block; }
.with-sidebar__main { min-width: 0; max-width: 780px; margin: 0 auto; }
.sidebar { display: none; }
@media (min-width: 1024px) {
	.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: stretch; }
	.with-sidebar__main { max-width: none; margin: 0; }
	.sidebar { display: block; padding-top: 1.5rem; }
}
.widget { margin: 0 0 1.5rem; padding: 1rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); }
.widget__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.widget__title::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--c-accent); }
.widget__list { list-style: none; margin: 0; padding: 0; }
.widget__list li { padding: 0.55rem 0; border-top: 1px solid var(--c-border); }
.widget__list li:first-child { border-top: 0; padding-top: 0; }
.widget__list a { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; color: var(--c-text); text-decoration: none; }
.widget__list a:hover { color: var(--c-link); text-decoration: underline; }
.widget__list time { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--c-muted); }
.widget__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.widget__chips a { display: block; padding: 0.2rem 0.65rem; font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--c-text); border: 1px solid var(--c-border); border-radius: 999px; }
.widget__chips a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.widget--cta { background: var(--c-ink); color: #fff; border: 0; border-left: 5px solid var(--c-accent); }
.widget--cta p { margin: 0 0 0.75rem; color: #c4cacf; }
.widget .search-form { max-width: none; }
.sidebar__sticky { position: sticky; top: 1rem; }

.entry-hero + .wrap { padding-top: 1.5rem; }

/* Cabecera de archivo / búsqueda y listados */
.page-hero {
	background: radial-gradient(50rem 16rem at 90% -10%, rgba(192, 38, 45, 0.3), transparent 70%), var(--c-ink);
	color: #fff; padding: 1.75rem 0 1.5rem; border-bottom: 4px solid var(--c-accent);
}
.page-hero__kicker { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ff8a8f; }
.page-hero__title { margin: 0; font-size: clamp(1.75rem, 7vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; overflow-wrap: anywhere; }
.page-hero__text { max-width: 44rem; margin-top: 0.5rem; color: #c4cacf; }
.page-hero__text p { margin: 0; }
.page-hero__count { margin: 0.75rem 0 0; font-size: 0.875rem; color: #aab1b8; }
.page-hero__search { margin-top: 1rem; }
.page-hero__search .search-form { max-width: 28rem; }
.page-hero input[type="search"] { background: #fff; color: var(--c-text); border-color: transparent; }
.page-hero :focus-visible { outline-color: #fff; }

.archive-lead { margin: 1.5rem 0 0.75rem; }
.archive-lead .card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.archive-lead .card__media { border-radius: 0; }
.archive-lead .card__body { padding: 1rem 1.15rem 1.15rem; }
.archive-lead .card__title { font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }
.archive-rows { margin: 0 0 1rem; }
.archive-empty { margin: 2rem 0; }
.with-sidebar__main .pagination { margin-top: 1.5rem; }
.page-hero + .wrap { padding-top: 1.5rem; }
.page-hero + .wrap .archive-lead { margin-top: 0; }

/* Paginación compacta y centrada */
.pagination .nav-links { justify-content: center; gap: 0.4rem; }
.pagination .page-numbers { min-width: 2.5rem; padding: 0.4rem 0.75rem; text-align: center; background: var(--c-card); }
.pagination .page-numbers.current { background: var(--c-accent); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-link); }


/* Galerías de contenido */
.gallery { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 1.5rem 0; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius); }
.gallery-caption { font-size: 0.8125rem; color: var(--c-muted); }
.gallery-columns-1 { grid-template-columns: 1fr; }

/* Lightbox */
.entry__content img.is-zoomable, .entry__content a[href$=".jpg"] img, .entry__content a[href$=".jpeg"] img, .entry__content a[href$=".png"] img, .entry__content a[href$=".webp"] img, .entry__content a[href$=".gif"] img { cursor: zoom-in; }
.lightbox-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 11, 14, 0.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 11, 14, 0.94); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; margin: 0; max-width: 92vw; max-height: 94vh; }
.lightbox__img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; background: #111; }
.lightbox__cap { margin-top: 0.6rem; max-width: 60rem; font-size: 0.9375rem; color: #d5d9dd; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; font-size: 2rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.12); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-accent); }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }
.lightbox--single .lightbox__nav { display: none; }
.lightbox__count { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); font-size: 0.875rem; color: #aab1b8; }
.lightbox :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Pie del sitio */
.site-footer { margin-top: 2rem; background: var(--c-ink); color: #aab1b8; border-top: 4px solid var(--c-accent); font-size: 0.9375rem; }
.site-footer a { color: #e9ebed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); padding-top: 2.25rem; padding-bottom: 2rem; }
.site-footer__brand, .site-footer__cta { grid-column: 1 / -1; }
.site-footer .site-title { color: #fff; }
.site-footer__tagline { margin: 0.75rem 0 1rem; max-width: 24rem; color: #aab1b8; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.social a { display: block; padding: 0.3rem 0.8rem; font-size: 0.875rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); text-decoration: none; }
.site-footer__title { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ff8a8f; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 0.45rem; }
.footer-list a { color: #d5d9dd; }
.site-footer__cta p { margin: 0 0 0.9rem; max-width: 24rem; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; font-size: 0.8125rem; }
.site-footer__bar p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 900px) {
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem 2.5rem; }
	.site-footer__brand, .site-footer__cta { grid-column: auto; }
}

/* Cabecera con interruptor de tema */
.site-header__inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand toggle" "nav nav"; align-items: center; gap: 0.25rem 0.75rem; }
.site-branding { grid-area: brand; }
.site-nav { grid-area: nav; }
.theme-toggle {
	grid-area: toggle; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; cursor: pointer;
	color: #e9ebed; background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%;
}
.theme-toggle:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.theme-toggle__sun { display: none; }
@media (min-width: 720px) {
	.site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav toggle"; gap: 0 1.25rem; }
	.site-nav { justify-self: end; }
}

/* Modo oscuro: sigue al sistema; el interruptor guarda la elección (data-theme="dark" | "light") */
:root[data-theme="dark"] {
	color-scheme: dark;
	--c-bg: #0f1419; --c-card: #19212a; --c-ink: #0a0e12; --c-text: #e7eaed; --c-muted: #9ca7b1;
	--c-soft: #1e2730; --c-border: #2a343e; --c-link: #ff7b80; --c-link-hover: #ffa3a6;
}
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		color-scheme: dark;
		--c-bg: #0f1419; --c-card: #19212a; --c-ink: #0a0e12; --c-text: #e7eaed; --c-muted: #9ca7b1;
		--c-soft: #1e2730; --c-border: #2a343e; --c-link: #ff7b80; --c-link-hover: #ffa3a6;
	}
	:root:not([data-theme]) .theme-toggle__moon { display: none; }
	:root:not([data-theme]) .theme-toggle__sun { display: block; }
}
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea { background: var(--c-card); color: var(--c-text); }
.page-hero input[type="search"] { background: #fff; color: #1b2229; }
:root[data-theme="dark"] .entry__content pre, :root[data-theme="dark"] .tile { border: 1px solid var(--c-border); }
:root[data-theme="dark"] .entry__media img, :root[data-theme="dark"] .card__media img, :root[data-theme="dark"] .compact__media img, :root[data-theme="dark"] .row-card__media img { filter: brightness(0.92); }

/* Portafolio (estilo editorial): cabecera, filtros de texto, mosaico y ficha */
.pf-head { padding: 2.25rem 0 1.5rem; text-align: center; }
.pf-head__kicker { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-link); }
.pf-head__title { margin: 0; font-size: clamp(2.75rem, 11vw, 5.75rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.pf-head__text { max-width: 40rem; margin: 1rem auto 0; color: var(--c-muted); }
.pf-head__text p { margin: 0 0 0.5rem; }
.pf-filters ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pf-filters li + li::before { content: "/"; margin: 0 0.6rem; color: var(--c-border); }
.pf-filters a { font-weight: 600; color: var(--c-text); text-decoration: none; }
.pf-filters a:hover, .pf-filters a.is-active { color: var(--c-link); }
.pf-filters sup { margin-left: 0.15rem; font-size: 0.65em; font-weight: 700; color: var(--c-muted); }

.pf-grid { column-count: 2; column-gap: 1rem; margin: 1.5rem 0 1rem; }
@media (min-width: 900px) { .pf-grid { column-count: 3; column-gap: 1.75rem; } }
.pf-item { display: inline-block; width: 100%; margin: 0 0 1.5rem; break-inside: avoid; }
.pf-item__link { display: block; color: var(--c-text); text-decoration: none; }
.pf-item__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-soft); }
.pf-item__media img { width: 100%; height: auto; transition: transform 0.6s ease; }
.pf-item__badge {
	position: absolute; right: 0.75rem; bottom: 0.75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	font-size: 1.25rem; color: #fff; background: var(--c-accent); border-radius: 50%; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.pf-item__link:hover .pf-item__media img, .pf-item__link:focus-visible .pf-item__media img { transform: scale(1.05); }
.pf-item__link:hover .pf-item__badge, .pf-item__link:focus-visible .pf-item__badge { opacity: 1; transform: none; }
@media (hover: none) { .pf-item__badge { display: none; } }
.pf-item__caption { display: block; padding-top: 0.6rem; }
.pf-item__title { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.pf-item__link:hover .pf-item__title { color: var(--c-link); }
.pf-item__meta { display: block; margin-top: 0.1rem; font-size: 0.8125rem; color: var(--c-muted); }

.pf-detail-head { padding-top: 0.25rem; }
.pf-detail-head__meta { margin: 1.25rem 0 0; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-link); }
.pf-detail-head__title { margin: 0.25rem 0 1.75rem; max-width: 60rem; font-size: clamp(2.25rem, 9vw, 5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; overflow-wrap: anywhere; }
.pf-intro { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .pf-intro { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; } }
.pf-intro__media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--c-soft); }
.pf-intro__media img { width: 100%; height: auto; }
.pf-intro__body .entry__content { font-size: 1.0625rem; }
.pf-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.25rem; margin: 1.5rem 0; padding: 1.1rem 0 0; border-top: 2px solid var(--c-text); }
.pf-facts > div { min-width: 0; }
.pf-facts dt { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.pf-facts dd { margin: 0.1rem 0 0; font-weight: 600; }
.pf-facts__wide { grid-column: 1 / -1; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.pf-tags li { padding: 0.15rem 0.65rem; font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--c-border); border-radius: 999px; }

.project-shots { display: grid; gap: 1.25rem; margin: 2.5rem 0; }
.pf-shot { display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-soft); }
.pf-shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.pf-next { position: relative; display: block; margin: 2.5rem 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--c-ink); color: #fff; text-decoration: none; }
.pf-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: transform 0.6s ease, opacity 0.3s ease; }
.pf-next:hover img { transform: scale(1.04); opacity: 0.6; }
.pf-next__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; }
.pf-next__kicker { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a8f; }
.pf-next__title { display: block; margin-top: 0.25rem; font-size: clamp(1.5rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.pf-next:hover { color: #fff; }
@media (min-width: 720px) { .pf-next { aspect-ratio: 16 / 6; } .pf-next__body { padding: 2rem; } }
.pf-next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 18, 0.92), rgba(10, 14, 18, 0.25) 65%); }
.pf-next__body { z-index: 1; }
.pf-next img { opacity: 0.7; }
.pf-next:hover img { opacity: 0.85; }

/* Trabaja conmigo: servicios, proceso y formulario */
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.25rem 0 0; }
.page-hero .link-arrow { color: #ff8a8f; }

.services { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.service { display: flex; flex-direction: column; padding: 1.25rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.service:hover { border-color: var(--c-accent); box-shadow: 0 8px 22px rgba(22, 28, 34, 0.1); transform: translateY(-2px); }
.service__num { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; color: var(--c-link); }
.service__title { margin: 0.4rem 0 0.4rem; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.service__text { flex: 1; margin: 0 0 0.9rem; color: var(--c-muted); font-size: 0.9375rem; }

.steps { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.steps li { position: relative; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; font-weight: 800; color: #fff; background: var(--c-accent); border-radius: 50%; }
.steps h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--c-muted); font-size: 0.9375rem; }

.contact { scroll-margin-top: 1rem; }
.contact__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; } }
.contact__points { margin: 1rem 0 0; padding: 0; list-style: none; }
.contact__points li { position: relative; margin: 0 0 0.5rem; padding-left: 1.5rem; }
.contact__points li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--c-link); }

.form { padding: 1.25rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); }
.form__row { display: grid; gap: 0; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form__field { margin: 0 0 1rem; }
.form__field label { display: block; margin: 0 0 0.3rem; font-size: 0.875rem; font-weight: 700; }
.form__field label span { color: var(--c-link); }
.form select, .form input[type="url"], .form textarea { width: 100%; padding: 0.65rem 0.75rem; font: inherit; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.form input[type="text"], .form input[type="email"] { background: var(--c-bg); padding: 0.65rem 0.75rem; }
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.form__check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 0 1.1rem; font-size: 0.875rem; }
.form__check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--c-accent); }
.form__actions { margin: 0; }
.form__actions .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0.8rem 1.6rem; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { margin: 0 0 1.1rem; padding: 0.8rem 1rem; font-weight: 600; border-radius: var(--radius); border-left: 5px solid; }
.form__notice--ok { background: #e6f4ea; color: #14532d; border-color: #1e8e3e; }
.form__notice--error { background: #fdecea; color: #7f1d1d; border-color: #c0262d; }
:root[data-theme="dark"] .form__notice--ok { background: #12301d; color: #b7f0c6; }
:root[data-theme="dark"] .form__notice--error { background: #3a1517; color: #ffc9cc; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .form__notice--ok { background: #12301d; color: #b7f0c6; }
	:root:not([data-theme]) .form__notice--error { background: #3a1517; color: #ffc9cc; }
}

/* Acerca de */
.about { display: grid; gap: 1.5rem; margin: 1.75rem 0 1rem; }
@media (min-width: 800px) { .about { grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; } }
.about__photo { margin: 0; max-width: 20rem; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--c-soft); border: 4px solid var(--c-card); box-shadow: 0 10px 30px rgba(22, 28, 34, 0.18); }
.about__body .entry__content { font-size: 1.0625rem; }
.about__sub { margin: 2rem 0 0.75rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.social--light a { color: var(--c-text); border-color: var(--c-border); background: var(--c-card); }
.social--light a:hover { color: #fff; }
.about__links { display: grid; gap: 0.75rem; margin: 2.5rem 0 1rem; }
@media (min-width: 720px) { .about__links { grid-template-columns: repeat(3, 1fr); } }
.about__link { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.25rem; color: var(--c-muted); text-decoration: none; background: var(--c-card); border: 1px solid var(--c-border); border-left: 5px solid var(--c-accent); border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.about__link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 28, 34, 0.1); color: var(--c-muted); }
.about__link-title { font-size: 1.125rem; font-weight: 800; color: var(--c-text); }

/* Invítame una cerveza */
.support { display: grid; gap: 0.75rem; }
@media (min-width: 800px) { .support { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.support__card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem; background: var(--c-card); border: 1px solid var(--c-border); border-top: 5px solid var(--c-accent); border-radius: var(--radius); }
.support__title { margin: 0 0 0.4rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.support__text { flex: 1; margin: 0 0 1rem; color: var(--c-muted); font-size: 0.9375rem; }
.support__id { margin: 0 0 0.75rem; }
.support__id code { padding: 0.35rem 0.75rem; font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 700; background: var(--c-soft); border: 1px dashed var(--c-border); border-radius: 4px; }
.support__btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0.7rem 1.25rem; }
.support__note { margin: 0.9rem 0 0; font-size: 0.8125rem; color: var(--c-muted); }
.support__free { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.support__free li { position: relative; margin: 0 0 0.6rem; padding-left: 1.6rem; }
.support__free li::before { content: "♥"; position: absolute; left: 0; color: var(--c-link); }
.support__thanks { margin: 0; font-size: 1.0625rem; }

/* Anuncios: dentro de la cabecera oscura (sin franja blanca) y dentro del listado de la home */
.site-header { display: flow-root; }
.site-header .ad-slot { width: calc(100% - 2rem); margin: 0.5rem auto 0.75rem; background: rgba(255, 255, 255, 0.06); }
.site-header .ad-slot__label { color: #9ca7b1; }
.list__ad { grid-column: 1 / -1; display: flex; justify-content: center; padding: 0.75rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); }
.list__ad .ad-slot { width: auto; margin: 0; background: transparent; }

/* 404 */
.term { max-width: 36rem; margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-left: 4px solid var(--c-accent); border-radius: var(--radius); color: #d5d9dd; overflow-wrap: anywhere; }
.term__line { margin: 0; }
.term__prompt { color: #7ee2b8; }
.term__err { color: #ff8a8f; }
.term__cursor { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.25em; vertical-align: text-bottom; background: #ff8a8f; animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term__cursor { animation: none; } }
.error-topics { margin-top: 1rem; }
.error-contact { margin: 2rem 0 1rem; color: var(--c-muted); }
