/*
Theme Name: Revista Turismo
Theme URI: https://revistaturismo.es/
Description: Tema editorial para revista turística digital especializada en España.
Author: Revista Turismo
Author URI: https://revistaturismo.es/
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revistaturismo
Tags: blog, news, magazine, travel, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, accessibility-ready, editor-style
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--rt-accent: #00808a;
	--rt-accent-dark: #006269;
	--rt-ink: #0f2a33;
	--rt-cream: #f7fbfb;
	--rt-white: #ffffff;
	--rt-grey: #4a6068;
	--rt-line: #d5e4e6;
	--rt-sand: #e4f3f2;
	--rt-coral: #ff6b57;
	--rt-sun: #ffc857;
	--rt-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--rt-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rt-wrap: 1200px;
	--rt-narrow: 760px;
	--rt-gap: clamp(1rem, 2.4vw, 2rem);
	--rt-header-h: 72px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rt-header-h) + 16px); }
body {
	margin: 0;
	background: var(--rt-cream);
	color: var(--rt-ink);
	font-family: var(--rt-font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rt-accent-dark); }
::selection { background: var(--rt-sun); color: var(--rt-ink); }
h1, h2, h3, h4 { font-family: var(--rt-font-serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--rt-line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--rt-white); clip: auto !important; clip-path: none; color: var(--rt-ink); display: block;
	height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; font-weight: 600;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100001; background: var(--rt-ink); color: #fff; padding: 12px 18px; }
.rt-wrap { width: min(100% - 2rem, var(--rt-wrap)); margin-inline: auto; }
.rt-narrow { width: min(100% - 2rem, var(--rt-narrow)); margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption, figure { margin: 0 0 1.5em; max-width: 100%; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--rt-grey); padding-top: .5rem; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ==========================================================================
   3. Botones y etiquetas
   ========================================================================== */
.rt-btn, .wp-block-button__link, input[type="submit"], button.rt-btn {
	display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border: 2px solid var(--rt-accent);
	background: var(--rt-accent); color: #fff; font: 600 .95rem/1 var(--rt-font-sans); text-decoration: none;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.rt-btn:hover, input[type="submit"]:hover { background: var(--rt-accent-dark); border-color: var(--rt-accent-dark); color: #fff; }
.rt-btn--ghost { background: transparent; color: var(--rt-accent); }
.rt-btn--ghost:hover { background: var(--rt-accent); color: #fff; }
.rt-btn--light { background: var(--rt-coral); border-color: var(--rt-coral); color: var(--rt-ink); }
.rt-btn--light:hover { background: var(--rt-sun); border-color: var(--rt-sun); color: var(--rt-ink); }
.rt-tag {
	display: inline-block; font: 600 .78rem/1.2 var(--rt-font-sans); letter-spacing: .04em; color: var(--rt-accent);
	text-decoration: none; padding: .25rem 0; border-bottom: 2px solid var(--rt-coral);
}
.rt-tag:hover { color: var(--rt-accent-dark); }
.rt-chip {
	display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border: 1px solid var(--rt-line); background: var(--rt-white);
	color: var(--rt-ink); text-decoration: none; font-size: .92rem; border-radius: 999px; transition: border-color .2s, background-color .2s;
}
.rt-chip:hover, .rt-chip[aria-current="true"] { border-color: var(--rt-accent); background: var(--rt-accent); color: #fff; }
.rt-chip small { opacity: .7; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--rt-white); border-bottom: 1px solid var(--rt-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--rt-header-h); }
.site-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--rt-ink); text-decoration: none; }
.site-brand:hover { color: var(--rt-ink); }
.site-brand svg { width: 42px; height: 42px; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1; }
.site-brand__small { font: 400 .72rem/1 var(--rt-font-serif); letter-spacing: .32em; text-indent: .02em; }
.site-brand__name { font: 700 1.55rem/1.1 var(--rt-font-serif); letter-spacing: .01em; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 48px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.75rem, 1.6vw, 1.7rem); flex-wrap: wrap; }
.main-nav a {
	display: block; padding: .5rem 0; color: var(--rt-ink); text-decoration: none; font: 600 .78rem/1 var(--rt-font-sans);
	letter-spacing: .09em; text-transform: uppercase; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav a[aria-current="page"] { color: var(--rt-accent); border-bottom-color: var(--rt-coral); }
.main-nav .sub-menu { display: none; }
.header-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn { background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--rt-ink); display: inline-flex; border-radius: 50%; }
.icon-btn:hover { background: var(--rt-cream); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { display: none; }
.search-panel { display: none; border-top: 1px solid var(--rt-line); background: var(--rt-cream); padding: 1.25rem 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: .5rem; width: 100%; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--rt-line); background: #fff; font: inherit; color: var(--rt-ink);
}
.search-form button { padding: .85rem 1.4rem; background: var(--rt-ink); color: #fff; border: 0; font: 600 .95rem var(--rt-font-sans); cursor: pointer; }
.search-form button:hover { background: var(--rt-accent); }

@media (max-width: 1060px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rt-white); border-bottom: 1px solid var(--rt-line); padding: .5rem 1rem 1.25rem; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: .95rem 0; border-bottom: 1px solid var(--rt-line); font-size: .85rem; }
}

/* ==========================================================================
   5. Migas de pan
   ========================================================================== */
.breadcrumbs { font-size: .875rem; color: var(--rt-grey); margin: 0 0 1.4rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .55rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .55rem; color: var(--rt-line); }
.breadcrumbs a { color: var(--rt-grey); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rt-accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--rt-ink); }

/* ==========================================================================
   6. Portada
   ========================================================================== */
.hero { position: relative; color: #fff; min-height: clamp(460px, 74vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: #0f4a52; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,51,.05) 25%, rgba(15,42,51,.72) 100%); }
.hero__content { position: relative; z-index: 2; padding-block: 3rem clamp(2.5rem, 7vw, 5rem); max-width: 760px; animation: rt-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { color: #fff; margin-bottom: .4em; font-size: clamp(2.6rem, 8vw, 5.6rem); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; margin-bottom: 1.8rem; color: rgba(255,255,255,.92); }
.hero__kicker { font: 600 .85rem var(--rt-font-sans); letter-spacing: .08em; margin-bottom: 1rem; display: block; }
@keyframes rt-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.section { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.section--white { background: var(--rt-white); }
.section--dark { background: var(--rt-ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rt-line); }
.section--dark .section-head { border-color: rgba(255,255,255,.2); }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--rt-grey); max-width: 38em; }
.section-head a.more { font-weight: 600; font-size: .95rem; white-space: nowrap; }

.feature { display: grid; gap: var(--rt-gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.7fr 1fr; } }
.feature-main { position: relative; display: grid; align-content: end; min-height: 520px; color: #fff; overflow: hidden; background: #0f4a52; }
.feature-main .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature-main:hover .cover { transform: scale(1.03); }
.feature-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,42,51,.85)); }
.feature-main__body { position: relative; z-index: 2; padding: clamp(1.25rem, 3vw, 2.5rem); }
.feature-main h2, .feature-main h2 a { color: #fff; text-decoration: none; font-size: clamp(1.8rem, 4vw, 2.9rem); }
.feature-main .rt-tag { color: #fff; }
.feature-main p { color: rgba(255,255,255,.9); max-width: 36em; margin-bottom: 1.4rem; }
.feature-side { display: grid; gap: 0; align-content: start; }
.feature-side .card--row { padding-block: 1.1rem; border-top: 1px solid var(--rt-line); }
.feature-side .card--row:first-child { border-top: 0; padding-top: 0; }

/* Tarjetas */
.grid { display: grid; gap: calc(var(--rt-gap) * 1.2) var(--rt-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--rt-sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: 1.35rem; margin: 0; }
.card__title a { color: var(--rt-ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.card__title a:hover { color: var(--rt-ink); background-size: 100% 1px; }
.card__excerpt { color: var(--rt-grey); font-size: .98rem; margin: 0; }
.card__meta { color: var(--rt-grey); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: auto; }
.card--row { flex-direction: row; gap: 1rem; align-items: flex-start; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 1.12rem; }
.card--row .card__body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

/* Destinos */
.dest-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .dest-grid { grid-template-columns: repeat(4, 1fr); } }
.dest { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; background: #0f4a52; }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dest:hover img { transform: scale(1.05); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,42,51,.8)); }
.dest__label { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; }
.dest__name { font: 700 1.35rem/1.1 var(--rt-font-serif); display: block; }
.dest__count { font-size: .82rem; opacity: .9; }
.dest:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--rt-gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }
.cat-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font: 700 1.25rem var(--rt-font-serif); }
.cat-list a:hover { color: #fff; padding-left: .5rem; }
.cat-list a { transition: padding-left .2s; }
.cat-list small { font: 400 .85rem var(--rt-font-sans); opacity: .75; align-self: center; }

/* Newsletter */
.newsletter { background: var(--rt-accent); color: #fff; }
.newsletter__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { color: #fff; margin-bottom: .3em; }
.newsletter p { margin: 0; color: #fff; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: .95rem 1rem; border: 2px solid #fff; background: #fff; color: var(--rt-ink); font: inherit; }
.newsletter-form .rt-btn { background: var(--rt-coral); border-color: var(--rt-coral); color: var(--rt-ink); }
.newsletter-form .rt-btn:hover { background: var(--rt-sun); border-color: var(--rt-sun); color: var(--rt-ink); }
.newsletter__msg { flex-basis: 100%; font-size: .95rem; margin-top: .4rem; }
.newsletter__legal { flex-basis: 100%; font-size: .8rem; opacity: .85; }
.newsletter__legal a { color: #fff; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ==========================================================================
   7. Archivos y buscador
   ========================================================================== */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; border-bottom: 1px solid var(--rt-line); margin-bottom: 2rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head__desc { max-width: 46em; color: var(--rt-grey); font-size: 1.12rem; }
.page-head__desc p:last-child { margin-bottom: 0; }
.filters { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 0 0 2rem; padding: 1rem; background: var(--rt-white); border: 1px solid var(--rt-line); }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } }
.filters label { display: block; font-size: .8rem; font-weight: 600; color: var(--rt-grey); margin-bottom: .25rem; }
.filters select { width: 100%; padding: .7rem .75rem; border: 1px solid var(--rt-line); background: #fff; font: inherit; color: var(--rt-ink); }
.filters .rt-btn { padding-block: .8rem; }
.pagination { margin: 3rem 0 0; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: 0; margin: 0; }
.pagination a, .pagination span.page-numbers { display: inline-flex; min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem; align-items: center; justify-content: center; border: 1px solid var(--rt-line); background: #fff; color: var(--rt-ink); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--rt-accent); color: var(--rt-accent); }
.pagination .current { background: var(--rt-ink); border-color: var(--rt-ink); color: #fff; }
.pagination .dots { border: 0; background: none; }
.no-results { padding: 3rem 0; text-align: center; }
.author-box { display: flex; gap: 1.2rem; align-items: center; }
.author-box img { border-radius: 50%; }

/* ==========================================================================
   8. Artículo
   ========================================================================== */
.entry-head { padding-block: clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.entry-head h1 { max-width: 20ch; margin: .5rem 0 .4em; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.entry-sub { font: 400 clamp(1.15rem, 2.4vw, 1.5rem)/1.45 var(--rt-font-serif); color: var(--rt-grey); max-width: 36em; margin-bottom: 1.4rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; font-size: .9rem; color: var(--rt-grey); padding-top: 1rem; border-top: 1px solid var(--rt-line); }
.entry-meta a { color: var(--rt-ink); font-weight: 600; text-decoration: none; }
.entry-hero { width: min(100% - 2rem, 1100px); margin: 0 auto 2.5rem; }
.entry-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); width: min(100% - 2rem, 1100px); margin-inline: auto; }
@media (min-width: 1000px) { .entry-layout { grid-template-columns: 280px minmax(0, 1fr); } .entry-layout.has-aside { grid-template-columns: 280px minmax(0, 1fr); } }
.entry-aside { align-self: start; }
@media (min-width: 1000px) { .entry-aside { position: sticky; top: calc(var(--rt-header-h) + 24px); } .admin-bar .entry-aside { top: calc(var(--rt-header-h) + 56px); } }
.toc { border: 1px solid var(--rt-line); background: var(--rt-white); padding: 1.1rem 1.25rem; font-size: .95rem; }
.toc summary { font: 700 1.05rem var(--rt-font-serif); cursor: pointer; }
.toc ol { margin: .8rem 0 0; padding-left: 1.1rem; }
.toc ol ol { margin-top: .3rem; font-size: .9rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--rt-ink); text-decoration: none; }
.toc a:hover { color: var(--rt-accent); text-decoration: underline; }
.entry-content { font-size: 1.14rem; line-height: 1.75; max-width: var(--rt-narrow); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--rt-line); }
.entry-content h3 { margin-top: 1.7em; }
.entry-content img { margin-block: 1.5rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 4px solid var(--rt-coral); font: italic 1.3rem/1.5 var(--rt-font-serif); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .98rem; }
.entry-content th, .entry-content td { border: 1px solid var(--rt-line); padding: .6rem .8rem; text-align: left; }
.entry-content th { background: var(--rt-sand); }
.practical { background: var(--rt-sand); border-left: 4px solid var(--rt-sun); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.practical h2, .practical h3 { margin-top: 0; padding-top: 0; border: 0; font-size: 1.3rem; }
.practical ul { margin-bottom: 0; }
.faq { margin: 2.5rem 0; }
.faq details { border-bottom: 1px solid var(--rt-line); padding: 1rem 0; }
.faq summary { font: 700 1.15rem var(--rt-font-serif); cursor: pointer; }
.faq details p { margin: .8rem 0 0; }
.post-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.related { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--rt-white); margin-top: 3rem; }
.page-links { margin: 2rem 0; }
.post-nav { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--rt-line); background: #fff; text-decoration: none; color: var(--rt-ink); font-family: var(--rt-font-serif); font-weight: 700; }
.post-nav a:hover { border-color: var(--rt-accent); }
.post-nav small { display: block; font: 400 .8rem var(--rt-font-sans); color: var(--rt-grey); margin-bottom: .2rem; }
.post-nav .next { text-align: right; }

/* Comentarios */
.comments { margin-top: 3rem; max-width: var(--rt-narrow); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.2rem 0; border-top: 1px solid var(--rt-line); }
.comment-meta { font-size: .88rem; color: var(--rt-grey); }
.comment-author .avatar { float: left; margin-right: .8rem; border-radius: 50%; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--rt-line); font: inherit; background: #fff; }

/* Páginas y 404 */
.page-article { padding-block: 2rem 4rem; }
.error-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem) 2rem; }
.error-404 h1 { max-width: 16ch; margin-inline: auto; }
.error-404 p { color: var(--rt-grey); max-width: 34em; margin-inline: auto; margin-bottom: 1.8rem; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: var(--rt-ink); color: rgba(255,255,255,.82); padding-top: clamp(2.5rem, 6vw, 4rem); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 700 1.05rem var(--rt-font-serif); color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .site-brand { color: #fff; margin-bottom: 1rem; }
.footer-contact { margin-top: 1rem; font-size: .9rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.social a:hover { background: #fff; color: var(--rt-ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-bottom li { margin: 0; }

/* Widgets */
.widget { margin-bottom: 1.75rem; }
.widget-title { font-size: 1.1rem; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: .35rem 0; border-bottom: 1px solid var(--rt-line); }

/* Accesibilidad / preferencias */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .newsletter, .related, .search-panel, .entry-aside, .comments { display: none; }
	body { background: #fff; }
}
