/*
Theme Name: TuDineroClaro
Theme URI: https://tudineroclaro.com
Author: José Luis MB
Description: Tema rápido y optimizado para SEO y Google AdSense, pensado para sitios de créditos, seguros y hogar. Incluye modo día/noche, índice automático, datos estructurados, espacios para anuncios, ads.txt automático, páginas legales y formulario de contacto.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tdc
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   Colores y tipografía
   ========================================================== */
:root {
	--paper: #F5F7F4;
	--surface: #FFFFFF;
	--sunk: #EAF0EC;
	--ink: #14261F;
	--muted: #55665E;
	--line: #D7E0DA;
	--brand: #0E5E45;
	--brand-ink: #FFFFFF;
	--link: #0B5A42;

	--c-creditos: #0E5E45;
	--c-creditos-bg: #E2F1EA;
	--c-seguros: #2C5A86;
	--c-seguros-bg: #E3ECF6;
	--c-hogar: #8A5A10;
	--c-hogar-bg: #F6ECD9;

	--font-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-read: "Literata", Georgia, "Times New Roman", serif;

	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 20px;
	--wrap: 1120px;
	--narrow: 760px;
	--gap: clamp(16px, 3vw, 28px);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0F1A16;
	--surface: #15241E;
	--sunk: #1A2C25;
	--ink: #E4EDE8;
	--muted: #9DB1A7;
	--line: #263A32;
	--brand: #4CC097;
	--brand-ink: #0B1712;
	--link: #6FD3AE;

	--c-creditos: #5ACCA2;
	--c-creditos-bg: #173A2E;
	--c-seguros: #86B2DE;
	--c-seguros-bg: #1A2E44;
	--c-hogar: #E5B65E;
	--c-hogar-bg: #3A2D16;

	color-scheme: dark;
}

/* Sin JavaScript: respeta la preferencia del sistema. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--paper: #0F1A16; --surface: #15241E; --sunk: #1A2C25; --ink: #E4EDE8; --muted: #9DB1A7; --line: #263A32;
		--brand: #4CC097; --brand-ink: #0B1712; --link: #6FD3AE;
		--c-creditos: #5ACCA2; --c-creditos-bg: #173A2E; --c-seguros: #86B2DE; --c-seguros-bg: #1A2E44; --c-hogar: #E5B65E; --c-hogar-bg: #3A2D16;
		color-scheme: dark;
	}
}

/* Color por categoría: se hereda con data-cat="..." */
[data-cat="creditos"], .cat-creditos { --cat: var(--c-creditos); --cat-bg: var(--c-creditos-bg); }
[data-cat="seguros"], .cat-seguros { --cat: var(--c-seguros); --cat-bg: var(--c-seguros-bg); }
[data-cat="hogar"], .cat-hogar { --cat: var(--c-hogar); --cat-bg: var(--c-hogar-bg); }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s ease, color .25s ease;
}

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

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }

.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: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--r-sm);
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gap) * 2); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 1rem/1 var(--font-ui);
	padding: 13px 20px; border: 0; border-radius: var(--r-sm);
	background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn--small { padding: 9px 14px; font-size: .9rem; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 1px solid var(--line); border-radius: 50%;
	background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }

/* ==========================================================
   Cabecera
   ========================================================== */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--cat, var(--brand)); transform-origin: 0 50%; transform: scaleX(0); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { flex: 0 0 auto; }
.brand__name {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none;
}
.brand__mark { color: var(--brand); }
.custom-logo { max-height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: var(--r-sm);
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-post-ancestor > a, .main-nav .current-category-ancestor > a { background: var(--sunk); }
.main-nav .sub-menu { display: none; }

.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }

.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.header-search { border-top: 1px solid var(--line); padding-block: 14px; background: var(--paper); }

.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-form__input, .contact-form input, .contact-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: 1rem/1.4 var(--font-ui); color: var(--ink);
	padding: 12px 14px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r-sm);
}
.search-form__input:focus, .contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }

@media (max-width: 860px) {
	.menu-toggle { display: inline-grid; }
	.main-nav {
		position: absolute; inset: 100% 0 auto; margin: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px var(--gap) 16px; display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 12px; font-size: 1.05rem; }
	.header-actions { margin-left: auto; }
}

/* ==========================================================
   Portada
   ========================================================== */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.hero__title {
	font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
	max-width: 16ch; margin-bottom: .35em;
}
.hero__text { font-family: var(--font-read); font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 48ch; margin: 0 0 32px; }

/* Pestañas de sección: el elemento distintivo del tema */
.tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tab {
	position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
	padding: 22px 20px 20px; text-decoration: none; color: var(--ink);
	background: var(--surface); border: 1px solid var(--line); border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
}
.tab::before {
	content: ""; position: absolute; top: -1px; left: -1px; width: 46%; height: 7px;
	background: var(--cat); border-radius: 4px 10px 0 0;
}
.tab__name { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; color: var(--cat); }
.tab__desc { font-size: .95rem; color: var(--muted); line-height: 1.4; }
.tab:hover { background: var(--cat-bg); border-color: var(--cat); }
@media (max-width: 700px) { .tabs { grid-template-columns: 1fr; } }

.section-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 18px; }
.latest, .cat-row { margin-block: clamp(32px, 5vw, 56px); }
.cat-row { padding-top: 26px; border-top: 3px solid var(--cat); }
.cat-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-row__head .section-title { color: var(--cat); }
.more-link { font-weight: 600; color: var(--cat); }

/* ==========================================================
   Tarjetas
   ========================================================== */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
	display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--cat-bg, var(--sunk)); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder {
	display: grid; place-items: center; height: 100%;
	font-size: 3.4rem; font-weight: 800; color: var(--cat, var(--muted)); opacity: .55;
}
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card__title { font-size: 1.18rem; margin: 0; letter-spacing: -.015em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; }
.card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.card__meta { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
.card .cat-tag { position: relative; z-index: 1; align-self: flex-start; }

.cat-tag {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	font-size: .8rem; font-weight: 650; text-decoration: none;
	color: var(--cat, var(--brand)); background: var(--cat-bg, var(--sunk));
}
.cat-tag:hover { text-decoration: underline; }

/* ==========================================================
   Artículo
   ========================================================== */
.entry-header { padding-top: clamp(24px, 4vw, 44px); }
.entry-title { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 14px; }
.entry--page .entry-title { margin-top: 8px; }
.entry-lead { font-family: var(--font-read); font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--muted); margin: 0 0 22px; }

.entry-meta { display: flex; align-items: center; gap: 12px; padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.entry-meta .avatar { border-radius: 50%; }
.entry-meta__author { font-weight: 650; color: var(--ink); text-decoration: none; }
.entry-meta__line { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .88rem; color: var(--muted); }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.entry-image { margin: 28px auto 0; max-width: calc(var(--wrap)); }
.entry-image img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.entry-image figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }

.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); margin-top: clamp(28px, 4vw, 44px); }
.entry--page .entry-content { margin-top: 20px; }
@media (max-width: 1000px) { .entry-layout { grid-template-columns: 1fr; } }
.entry-main { max-width: var(--narrow); min-width: 0; }

/* Texto de lectura */
.entry-content { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.75; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 1.9em 0 .6em; }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--cat, var(--brand)); }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-family: var(--font-ui); font-size: .86rem; color: var(--muted); margin-top: 6px; }
.entry-content strong { font-weight: 700; }
.entry-content blockquote {
	margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cat, var(--brand));
	font-style: italic; color: var(--muted);
}
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content code { font-size: .9em; background: var(--sunk); padding: 2px 6px; border-radius: 4px; }

.entry-content .table-wrap { overflow-x: auto; margin-bottom: 1.4em; border: 1px solid var(--line); border-radius: var(--r-md); }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; line-height: 1.45; }
.entry-content th, .entry-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { background: var(--sunk); font-weight: 650; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table { margin-inline: 0; }

/* Cajas útiles para el redactor: añade la clase al bloque */
.entry-content .clave, .entry-content .is-style-clave {
	font-family: var(--font-ui); font-size: 1rem; line-height: 1.6;
	padding: 18px 20px; border-radius: var(--r-md); background: var(--cat-bg, var(--sunk));
	border-left: 4px solid var(--cat, var(--brand));
}

/* Índice */
.toc {
	font-family: var(--font-ui); font-size: .98rem; line-height: 1.45;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	padding: 16px 20px; margin: 1.6em 0;
}
.toc summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.toc ol { margin: 12px 0 0; padding-left: 1.2em; }
.toc ol ol { margin-top: 6px; font-size: .94rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.disclaimer {
	display: flex; gap: 12px; align-items: flex-start;
	margin: 36px 0 24px; padding: 16px 18px;
	background: var(--sunk); border-radius: var(--r-md); color: var(--muted); font-size: .9rem;
}
.disclaimer svg { flex: 0 0 auto; margin-top: 2px; color: var(--cat, var(--brand)); }
.disclaimer p { margin: 0; }

.tag-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--muted); text-decoration: none; }
.tag-list a:hover { border-color: var(--muted); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; padding-block: 18px; border-block: 1px solid var(--line); }
.share__label { font-weight: 650; margin-right: 6px; }
.share__btn {
	font: 600 .9rem/1 var(--font-ui); padding: 10px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--muted); }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
.author-box .avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box__name { font-weight: 700; margin: 0 0 4px; }
.author-box__bio { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.author-box__link { font-size: .9rem; font-weight: 600; }

.related { margin-block: clamp(40px, 6vw, 72px) 20px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Barra lateral */
.sidebar__sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }
.widget { font-size: .95rem; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.recent-list li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.recent-list a { color: var(--ink); text-decoration: none; font-weight: 550; }
.recent-list a:hover { color: var(--link); text-decoration: underline; }
.topic-list { display: flex; flex-direction: column; gap: 8px; }
.topic-list a { display: block; padding: 10px 14px; border-radius: var(--r-sm); background: var(--cat-bg); color: var(--cat); font-weight: 650; text-decoration: none; }
.topic-list a:hover { text-decoration: underline; }
.topic-list--inline { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
@media (max-width: 1000px) { .sidebar__sticky { position: static; } }

/* ==========================================================
   Anuncios
   ========================================================== */
.tdc-ad { margin: 28px auto; text-align: center; min-height: 100px; clear: both; }
.tdc-ad--header { margin-block: 16px 0; min-height: 90px; }
.tdc-ad--sidebar { margin: 0; min-height: 250px; }
.tdc-ad__label { display: block; font: 500 .72rem/1 var(--font-ui); color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.entry-content .tdc-ad { font-family: var(--font-ui); }
.tdc-ad--preview {
	display: grid; place-items: center; padding: 16px;
	border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); font-size: .88rem;
}

/* ==========================================================
   Archivos, búsqueda y estados vacíos
   ========================================================== */
.archive-header { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); margin-bottom: clamp(20px, 3vw, 32px); border-bottom: 3px solid var(--cat, var(--line)); background: var(--cat-bg, transparent); }
.archive-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 8px; color: var(--cat, var(--ink)); }
.archive-desc { font-family: var(--font-read); color: var(--muted); max-width: 60ch; font-size: 1.08rem; }
.archive-desc p { margin: 0; }
.archive-header .search-form { margin-top: 18px; }

.empty { text-align: center; padding: clamp(40px, 8vw, 96px) 0; }
.empty p { color: var(--muted); }
.empty .search-form { margin: 20px auto 0; }
.big-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--brand); margin: 0 0 12px; }

.navigation.pagination { margin: 40px 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.page-numbers.dots { border: 0; background: none; }

/* ==========================================================
   Formularios y comentarios
   ========================================================== */
.contact-form { font-family: var(--font-ui); font-size: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form p { margin: 0 0 16px; }
.contact-form__legal { font-size: .86rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; }
.notice { font-family: var(--font-ui); padding: 14px 16px; border-radius: var(--r-sm); }
.notice--ok { background: var(--c-creditos-bg); color: var(--c-creditos); }
.notice--error { background: #F8E1DF; color: #8E2A1F; }
[data-theme="dark"] .notice--error { background: #3D1E1A; color: #F2A99F; }

.comments { margin-block: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .84rem; margin: 4px 0 8px; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form p { margin: 0 0 14px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title { font-size: 1.3rem; }

/* ==========================================================
   Pie
   ========================================================== */
.site-footer { margin-top: clamp(48px, 7vw, 96px); padding: 44px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: .94rem; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__about p { color: var(--muted); max-width: 40ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer__note { margin: 32px 0 6px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer__copy { margin: 0; color: var(--muted); font-size: .86rem; }

/* Aviso de cookies */
.cookie-banner {
	position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%);
	width: min(680px, calc(100% - 24px));
	display: flex; align-items: center; gap: 16px;
	padding: 14px 16px; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: 0 10px 30px rgba(10, 30, 22, .18); font-size: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } }

/* Bloques de WordPress */
.alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 1000px) { .alignwide { margin-inline: 0; } }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption-text, .gallery-caption { font-size: .86rem; color: var(--muted); }
.sticky .card__title::before { content: "Destacado: "; color: var(--brand); }
.bypostauthor > .comment-body .comment-author { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .sidebar, .tdc-ad, .share, .related, .comments, .cookie-banner, .progress { display: none !important; }
	body { background: #fff; color: #000; }
}
