/**
 * Primera Vía — hoja de estilos principal.
 *
 * Índice
 * 1.  Fuentes
 * 2.  Tokens
 * 3.  Reset y base
 * 4.  Utilidades de layout
 * 5.  Tipografía editorial
 * 6.  Header y navegación
 * 7.  Overlay de búsqueda
 * 8.  Piezas: badge, kicker, botones
 * 9.  Cards
 * 10. Módulos de sidebar
 * 11. Portada
 * 12. Nota
 * 13. Archivo / categoría / búsqueda
 * 14. Paginación
 * 15. Página y 404
 * 16. Comentarios
 * 17. Widgets
 * 18. Footer
 * 19. Accesibilidad y estados
 */

/* ==========================================================================
   1. Fuentes
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-variable.woff2") format("woff2-variations"),
		url("../fonts/oswald-variable.woff2") format("woff2");
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2-variations"),
		url("../fonts/bricolage-grotesque-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
	/* Marca */
	--pv-orange: #ff542e;
	--pv-orange-dark: #e03d18;

	/* Tinta */
	--pv-ink: #1f1f1f;
	--pv-ink-2: #3a3a3a;
	--pv-ink-3: #6b6b6b;
	--pv-ink-4: #a5a5a5;

	/* Papel */
	--pv-paper: #ffffff;
	--pv-paper-2: #f2f0ee;
	--pv-paper-3: #e8e6e4;

	/* Líneas */
	--pv-line: #e8e6e4;
	--pv-line-2: #d6d4d2;

	/* Color de sección: lo pisa cada categoría vía atributo style */
	--pv-cat: var(--pv-orange);

	/* Tipografía */
	--pv-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
	--pv-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

	/* Escala fluida: extremos tomados del diseño (mobile 390 / desktop 1440) */
	--pv-size-hero: clamp(2.125rem, 1.6146rem + 2.095vw, 3.5rem);
	--pv-size-h1: clamp(2.25rem, 1.7857rem + 1.905vw, 3.5rem);
	--pv-size-card: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
	--pv-size-card-sm: clamp(1.1875rem, 1.1411rem + 0.1905vw, 1.3125rem);
	--pv-size-lead: clamp(1rem, 0.9071rem + 0.381vw, 1.25rem);

	/* Layout */
	--pv-shell: 1200px;
	--pv-shell-wide: 1080px;
	--pv-shell-text: 680px;
	--pv-shell-head: 800px;
	--pv-gutter: 24px;
	--pv-header-h: 68px;
	--pv-header-h-compact: 52px;

	/* Movimiento */
	--pv-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--pv-fast: 120ms;
	--pv-base: 200ms;
	--pv-slow: 320ms;
}

@media (max-width: 768px) {

	:root {
		--pv-gutter: 16px;
		--pv-header-h: 56px;
		--pv-header-h-compact: 48px;
	}
}

/* ==========================================================================
   3. Reset y base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	background: var(--pv-paper);
	color: var(--pv-ink-2);
	font-family: var(--pv-sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-wrap: pretty;
}

body.pv-no-scroll {
	overflow: hidden;
}

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

a {
	color: var(--pv-orange);
	text-decoration: none;
}

a:hover {
	color: var(--pv-orange-dark);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

p {
	margin: 0 0 1rem;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--pv-line);
	margin: 2rem 0;
}

/* ==========================================================================
   4. Utilidades de layout
   ========================================================================== */

.pv-shell {
	max-width: var(--pv-shell);
	margin: 0 auto;
	padding: 0 var(--pv-gutter);
}

.pv-shell--wide {
	max-width: var(--pv-shell-wide);
}

.pv-shell--text {
	max-width: calc(var(--pv-shell-text) + (var(--pv-gutter) * 2));
}

.pv-shell--head {
	max-width: calc(var(--pv-shell-head) + (var(--pv-gutter) * 2));
}

.pv-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 44px;
}

.pv-grid--3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: start;
}

.pv-grid--2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	align-items: start;
}

.pv-stack {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.pv-site-main {
	display: block;
}

@media (max-width: 1024px) {

	.pv-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.pv-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {

	.pv-grid--3,
	.pv-grid--2 {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pv-stack {
		gap: 28px;
	}
}

/* ==========================================================================
   5. Tipografía editorial
   ========================================================================== */

.pv-display {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.005em;
	line-height: 0.96;
	color: var(--pv-ink);
}

.pv-kicker {
	font-family: var(--pv-sans);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-cat);
}

.pv-meta {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--pv-ink-3);
}

.pv-meta a {
	color: inherit;
}

.pv-meta a:hover {
	color: var(--pv-orange);
}

.pv-meta strong,
.pv-meta .pv-meta__author {
	color: var(--pv-ink);
	font-weight: 700;
}

/* Encabezado de sección: etiqueta + filete grueso */
.pv-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.pv-section-head__label {
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink);
}

.pv-section-head__line {
	flex: 1;
	height: 2px;
	background: var(--pv-ink);
}

/* Divisor de día: Oswald + filete fino */
.pv-day {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0 4px;
}

.pv-day:first-child {
	margin-top: 0;
}

.pv-day__label {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(1.0625rem, 0.9954rem + 0.2755vw, 1.25rem);
	line-height: 1;
	color: var(--pv-ink);
}

.pv-day__line {
	flex: 1;
	height: 1px;
	background: var(--pv-line-2);
}

.pv-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink-3);
}

.pv-breadcrumb a {
	color: var(--pv-ink-3);
}

.pv-breadcrumb a:hover {
	color: var(--pv-orange);
}

.pv-breadcrumb__current {
	color: var(--pv-ink);
}

/* ==========================================================================
   6. Header y navegación
   ========================================================================== */

.pv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--pv-line);
	transition: box-shadow var(--pv-base) var(--pv-ease);
}

.pv-header.is-compact {
	box-shadow: 0 2px 10px rgba(31, 31, 31, 0.09);
}

.pv-header__bar {
	display: flex;
	align-items: center;
	gap: 20px;
	height: var(--pv-header-h);
	transition: height var(--pv-base) var(--pv-ease);
}

.pv-header.is-compact .pv-header__bar {
	height: var(--pv-header-h-compact);
}

.pv-header__spacer {
	flex: 1;
}

.pv-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.pv-branding__logo,
.pv-branding .custom-logo-link {
	display: flex;
}

.pv-branding__logo img,
.pv-branding .custom-logo {
	height: 22px;
	width: auto;
}

.pv-branding__text {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.375rem;
	line-height: 1;
	letter-spacing: 0.01em;
	color: var(--pv-ink);
	white-space: nowrap;
}

.pv-branding__text .pv-branding__accent {
	color: var(--pv-orange);
}

.pv-nav {
	border-top: 1px solid var(--pv-line);
	overflow: hidden;
	max-height: 46px;
	transition: max-height var(--pv-base) var(--pv-ease),
		opacity var(--pv-base) var(--pv-ease);
}

.pv-header.is-compact .pv-nav {
	max-height: 0;
	opacity: 0;
}

.pv-nav__list {
	display: flex;
	gap: 24px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.pv-nav__list::-webkit-scrollbar {
	display: none;
}

.pv-nav__list li {
	flex: none;
}

.pv-nav__list a {
	display: block;
	padding: 14px 0 11px;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink-2);
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-nav__list a:hover,
.pv-nav__list a:focus-visible {
	color: var(--pv-orange);
}

.pv-nav__list .current-menu-item > a,
.pv-nav__list .current-menu-ancestor > a,
.pv-nav__list .current-menu-parent > a,
.pv-nav__list .current_page_item > a,
.pv-nav__list .pv-nav__item--current > a {
	color: var(--pv-orange);
	border-bottom-color: var(--pv-orange);
}

/* Botón icono del header */
.pv-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--pv-ink-2);
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-icon-btn:hover,
.pv-icon-btn:focus-visible {
	color: var(--pv-orange);
}

@media (max-width: 768px) {

	.pv-header__bar {
		gap: 12px;
	}

	.pv-branding__logo img,
	.pv-branding .custom-logo {
		height: 20px;
	}

	.pv-branding__text {
		font-size: 1.125rem;
	}

	.pv-icon-btn {
		width: 44px;
		height: 44px;
		color: var(--pv-ink);
	}

	.pv-nav {
		max-height: 42px;
	}

	.pv-nav__list {
		gap: 18px;
	}

	.pv-nav__list a {
		padding: 12px 0 9px;
	}
}

/* ==========================================================================
   7. Overlay de búsqueda
   ========================================================================== */

.pv-search {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(31, 31, 31, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 120px var(--pv-gutter) 0;
	justify-content: center;
	overflow-y: auto;
}

.pv-search.is-open {
	display: flex;
}

.pv-search__inner {
	width: 100%;
	max-width: 720px;
	padding-bottom: 60px;
}

.pv-search__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.pv-search__label {
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-orange);
}

.pv-search__close {
	width: 36px;
	height: 36px;
	color: var(--pv-paper);
}

.pv-search__close:hover,
.pv-search__close:focus-visible {
	color: var(--pv-orange);
}

.pv-search__field {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--pv-paper);
	padding: 0 18px;
	border-bottom: 3px solid var(--pv-orange);
}

.pv-search__field svg {
	flex: none;
	color: var(--pv-ink-3);
}

.pv-search__input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	padding: 20px 0;
	font-family: inherit;
	font-size: 1.25rem;
	color: var(--pv-ink);
	background: transparent;
}

.pv-search__submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pv-search__suggestions {
	margin-top: 24px;
}

.pv-search__suggestions-label {
	font-weight: 700;
	font-size: 0.6875rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 12px;
}

.pv-search__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pv-search__tags a {
	padding: 7px 12px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	color: var(--pv-paper);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	transition: border-color var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-search__tags a:hover,
.pv-search__tags a:focus-visible {
	border-color: var(--pv-orange);
	color: var(--pv-orange);
}

@media (max-width: 768px) {

	.pv-search {
		padding: 24px var(--pv-gutter);
		background: rgba(31, 31, 31, 0.9);
	}

	.pv-search__close {
		width: 44px;
		height: 44px;
	}

	.pv-search__field {
		padding: 0 14px;
		gap: 10px;
	}

	.pv-search__input {
		padding: 16px 0;
		font-size: 1rem;
	}

	.pv-search__label {
		font-size: 0.6875rem;
	}

	.pv-search__tags a {
		font-size: 0.6875rem;
	}
}

/* ==========================================================================
   8. Piezas: badge, kicker, botones
   ========================================================================== */

.pv-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 10px;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-paper);
	background: var(--pv-cat);
	transition: opacity var(--pv-fast) var(--pv-ease);
}

a.pv-badge:hover,
a.pv-badge:focus-visible {
	color: var(--pv-paper);
	opacity: 0.85;
}

.pv-badge--outline {
	background: transparent;
	border: 2px solid var(--pv-paper);
	color: var(--pv-paper);
}

.pv-tag {
	display: inline-flex;
	padding: 6px 11px;
	border: 2px solid var(--pv-line-2);
	color: var(--pv-ink-2);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	transition: border-color var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-tag:hover,
.pv-tag:focus-visible {
	border-color: var(--pv-orange);
	color: var(--pv-orange);
}

.pv-tag--cat {
	border-color: var(--pv-cat);
	color: var(--pv-cat);
}

.pv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pv-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	background: transparent;
	border: 2px solid var(--pv-ink);
	padding: 0;
	cursor: pointer;
	color: var(--pv-ink);
	transition: background var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-btn-outline:hover,
.pv-btn-outline:focus-visible {
	background: var(--pv-ink);
	color: var(--pv-paper);
}

/* ==========================================================================
   9. Cards
   ========================================================================== */

/*
 * Las cards usan el patrón de "enlace estirado": el <a> envuelve solo al
 * titular — así el lector de pantalla anuncia el titular y no el bloque
 * entero — y un ::after invisible extiende su área de clic a toda la card.
 * Los enlaces que van encima (el badge) suben de capa para seguir siendo
 * clicables.
 */
.pv-card,
.pv-row {
	position: relative;
}

.pv-card__link {
	color: inherit;
}

.pv-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pv-card .pv-badge,
.pv-row .pv-badge {
	position: relative;
	z-index: 2;
}

.pv-card {
	display: flex;
	flex-direction: column;
	color: inherit;
}

.pv-card__media {
	overflow: hidden;
	background: var(--pv-paper-3);
	aspect-ratio: 16 / 9;
}

.pv-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--pv-slow) var(--pv-ease);
}

.pv-card:hover .pv-card__img,
.pv-card:focus-within .pv-card__img {
	transform: scale(1.03);
}

.pv-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 0 0;
}

.pv-card__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--pv-size-card);
	line-height: 0.96;
	letter-spacing: 0.005em;
	margin: 0;
	color: var(--pv-ink);
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-card:hover .pv-card__title,
.pv-card:focus-within .pv-card__title {
	color: var(--pv-orange);
}

.pv-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
	color: var(--pv-ink-2);
}

/* Hero: imagen a sangre con degradé y texto encima */
.pv-card--hero {
	display: block;
	position: relative;
}

.pv-card--hero .pv-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
}

.pv-card--hero .pv-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.1) 35%,
		rgba(0, 0, 0, 0.72) 100%);
}

.pv-card--hero .pv-card__body {
	position: absolute;
	inset: 0;
	justify-content: flex-end;
	gap: 10px;
	padding: 32px;
}

.pv-card--hero .pv-card__title {
	font-size: var(--pv-size-hero);
	line-height: 0.94;
	color: var(--pv-paper);
	max-width: 16ch;
}

.pv-card--hero:hover .pv-card__title,
.pv-card--hero:focus-within .pv-card__title {
	color: var(--pv-paper);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	text-decoration-color: var(--pv-orange);
}

.pv-card--hero .pv-card__excerpt {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 62ch;
}

.pv-card--hero .pv-meta {
	color: rgba(255, 255, 255, 0.75);
	margin-top: 2px;
}

.pv-card--hero .pv-meta strong,
.pv-card--hero .pv-meta .pv-meta__author {
	color: var(--pv-paper);
}

/* Card de color: nota sin imagen destacada, pintada con el color de su sección */
.pv-card--color {
	background: var(--pv-cat);
}

.pv-card--color .pv-card__body {
	padding: 24px;
	gap: 8px;
}

.pv-card--color .pv-card__title,
.pv-card--color:hover .pv-card__title {
	color: var(--pv-paper);
}

.pv-card--color:hover .pv-card__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.pv-card--color .pv-card__excerpt {
	color: rgba(255, 255, 255, 0.9);
}

.pv-card--color .pv-meta {
	color: rgba(255, 255, 255, 0.75);
}

.pv-card--color .pv-badge {
	background: transparent;
	border: 2px solid var(--pv-paper);
}

/* Card compacta: texto a la izquierda, miniatura a la derecha */
.pv-card--compact {
	flex-direction: row;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--pv-line);
	align-items: flex-start;
}

.pv-card--compact .pv-card__body {
	flex: 1;
	padding: 0;
	gap: 6px;
	min-width: 0;
}

.pv-card--compact .pv-card__title {
	font-size: var(--pv-size-card-sm);
	line-height: 0.98;
}

.pv-card--compact .pv-card__media {
	width: 104px;
	height: 78px;
	flex: none;
	aspect-ratio: auto;
}

/* Fila de archivo: hora + texto + miniatura */
.pv-row {
	display: flex;
	gap: 20px;
	padding: 18px 12px;
	margin: 0 -12px;
	border-bottom: 1px solid var(--pv-line);
	color: inherit;
	transition: background var(--pv-fast) var(--pv-ease);
	align-items: flex-start;
}

.pv-row:hover,
.pv-row:focus-within {
	background: var(--pv-paper-2);
}

.pv-row__time {
	font-family: var(--pv-display);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.2;
	color: var(--pv-orange);
	width: 52px;
	flex: none;
	padding-top: 2px;
}

.pv-row__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.pv-row__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--pv-size-card);
	line-height: 0.98;
	margin: 0;
	color: var(--pv-ink);
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-row:hover .pv-row__title,
.pv-row:focus-within .pv-row__title {
	color: var(--pv-orange);
}

.pv-row__excerpt {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
	color: var(--pv-ink-2);
}

.pv-row__media {
	width: 168px;
	height: 112px;
	flex: none;
	overflow: hidden;
	background: var(--pv-paper-3);
}

.pv-row__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--pv-slow) var(--pv-ease);
}

.pv-row:hover .pv-row__img {
	transform: scale(1.03);
}

@media (max-width: 768px) {

	.pv-card--hero .pv-card__media {
		aspect-ratio: 4 / 5;
	}

	.pv-card--hero .pv-card__body {
		padding: 20px;
		gap: 8px;
	}

	.pv-card--hero .pv-card__excerpt {
		font-size: 0.875rem;
		line-height: 1.45;
	}

	.pv-card--hero .pv-meta {
		font-size: 0.75rem;
	}

	.pv-card--compact .pv-card__media {
		width: 96px;
		height: 72px;
	}

	.pv-row {
		gap: 12px;
		padding: 14px 0;
		margin: 0;
	}

	.pv-row:hover {
		background: transparent;
	}

	.pv-row__time {
		width: 40px;
		font-size: 0.875rem;
	}

	.pv-row__excerpt {
		display: none;
	}

	.pv-row__media {
		width: 88px;
		height: 66px;
	}

	.pv-row__title {
		font-size: var(--pv-size-card-sm);
	}
}

/* ==========================================================================
   10. Módulos de sidebar
   ========================================================================== */

.pv-sidebar {
	display: flex;
	flex-direction: column;
	gap: 36px;
	min-width: 0;
}

/* Lo último */
.pv-latest__list {
	display: flex;
	flex-direction: column;
}

.pv-latest__item {
	display: flex;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid var(--pv-line);
	color: inherit;
}

.pv-latest__time {
	font-family: var(--pv-display);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: var(--pv-orange);
	width: 44px;
	flex: none;
}

.pv-latest__text {
	min-width: 0;
}

.pv-latest__kicker {
	display: block;
	font-weight: 700;
	font-size: 0.6875rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-cat);
}

.pv-latest__title {
	display: block;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--pv-ink);
	margin-top: 2px;
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-latest__item:hover .pv-latest__title,
.pv-latest__item:focus-visible .pv-latest__title {
	color: var(--pv-orange);
}

/* Más leídas */
.pv-ranked {
	background: var(--pv-paper-2);
	padding: 24px;
}

.pv-ranked__heading {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.25rem;
	line-height: 1;
	margin: 0 0 14px;
	color: var(--pv-ink);
}

.pv-ranked__item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--pv-line-2);
	color: inherit;
}

.pv-ranked__item:first-of-type {
	border-top: 0;
}

.pv-ranked__number {
	font-family: var(--pv-display);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 0.9;
	color: var(--pv-orange);
	flex: none;
}

.pv-ranked__title {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--pv-ink);
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-ranked__item:hover .pv-ranked__title,
.pv-ranked__item:focus-visible .pv-ranked__title {
	color: var(--pv-orange);
}

@media (max-width: 768px) {

	.pv-ranked {
		padding: 20px;
	}

	.pv-ranked__number {
		font-size: 1.625rem;
	}

	.pv-ranked__title {
		font-size: 0.875rem;
	}
}

/* ==========================================================================
   11. Portada
   ========================================================================== */

.pv-front {
	padding: 36px 0 0;
}

.pv-front__section {
	padding-top: 48px;
}

@media (max-width: 768px) {

	.pv-front {
		padding-top: 0;
	}

	/* En mobile el hero va a sangre completa, como en el diseño */
	.pv-front__hero-full {
		padding: 0;
		max-width: none;
	}

	.pv-front__section {
		padding-top: 32px;
	}
}

/* ==========================================================================
   12. Nota
   ========================================================================== */

.pv-article {
	padding-bottom: 24px;
}

.pv-article__head {
	padding-top: 20px;
}

.pv-article__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--pv-size-hero);
	line-height: 0.94;
	letter-spacing: 0.005em;
	margin: 14px 0 0;
	color: var(--pv-ink);
}

.pv-article__rule {
	width: 72px;
	height: 3px;
	background: var(--pv-orange);
	margin: 18px 0;
}

.pv-article__lead {
	font-size: var(--pv-size-lead);
	line-height: 1.45;
	color: var(--pv-ink-2);
	font-weight: 500;
	margin: 0;
}

.pv-article__byline {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 22px 0;
}

.pv-article__byline-text {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--pv-ink-3);
}

.pv-article__byline-spacer {
	flex: 1;
}

.pv-article__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.pv-article__figure {
	/* Sin margen vertical, pero conservando el centrado horizontal de .pv-shell. */
	margin-top: 0;
	margin-bottom: 0;
}

.pv-article__figure .pv-article__figure-media {
	overflow: hidden;
	background: var(--pv-paper-3);
	aspect-ratio: 16 / 7;
}

.pv-article__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pv-article__caption {
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--pv-ink-3);
	margin-top: 8px;
}

.pv-article__credit {
	color: var(--pv-ink-4);
}

.pv-article__body {
	padding-top: 36px;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--pv-ink-2);
}

.pv-article__body > *:last-child {
	margin-bottom: 0;
}

.pv-article__body p {
	margin: 0 0 1rem;
}

.pv-article__body h2,
.pv-article__body h3,
.pv-article__body h4 {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: 0.005em;
	color: var(--pv-ink);
	margin: 2rem 0 0.75rem;
}

.pv-article__body h2 {
	font-size: 1.75rem;
}

.pv-article__body h3 {
	font-size: 1.375rem;
}

.pv-article__body h4 {
	font-size: 1.125rem;
}

/* Los enlaces del cuerpo van subrayados, pero no los chips ni la paginación. */
.pv-article__body a:not(.pv-tag):not(.page-numbers) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pv-article__body blockquote {
	margin: 2rem 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--pv-orange);
	font-family: var(--pv-display);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 1.375rem;
	line-height: 1.1;
	color: var(--pv-ink);
}

.pv-article__body blockquote p:last-child {
	margin-bottom: 0;
}

.pv-article__body ul,
.pv-article__body ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.pv-article__body li {
	margin-bottom: 0.5rem;
}

.pv-article__body figure {
	margin: 2rem 0;
}

.pv-article__body figcaption,
.pv-article__body .wp-caption-text {
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--pv-ink-3);
	margin-top: 8px;
}

.pv-article__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
}

.pv-article__body th,
.pv-article__body td {
	border-bottom: 1px solid var(--pv-line);
	padding: 10px 12px;
	text-align: left;
}

.pv-article__body th {
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink);
}

.pv-article__body code,
.pv-article__body pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875rem;
}

.pv-article__body pre {
	background: var(--pv-paper-2);
	padding: 16px;
	overflow-x: auto;
}

.pv-article__tags {
	margin: 32px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--pv-line);
}

.pv-article__related {
	margin-top: 56px;
}

/* Alineaciones de WordPress dentro del cuerpo */
.pv-article__body .alignleft {
	float: left;
	margin: 0.35rem 1.5rem 1rem 0;
}

.pv-article__body .alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.5rem;
}

.pv-article__body .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.pv-article__body .alignwide {
	width: calc(100% + 120px);
	max-width: calc(100vw - (var(--pv-gutter) * 2));
	margin-left: -60px;
	margin-right: -60px;
}

.pv-article__body .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

@media (max-width: 900px) {

	.pv-article__body .alignwide {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 768px) {

	.pv-article__title {
		margin-top: 12px;
	}

	.pv-article__rule {
		width: 64px;
		margin: 14px 0;
	}

	.pv-article__byline {
		margin: 16px 0 18px;
	}

	.pv-article__byline-text {
		font-size: 0.75rem;
	}

	/* La foto de apertura va a sangre, y el epígrafe conserva su margen. */
	.pv-article__figure {
		padding-left: 0;
		padding-right: 0;
	}

	.pv-article__figure .pv-article__figure-media {
		aspect-ratio: 4 / 3;
	}

	.pv-article__caption {
		padding-left: var(--pv-gutter);
		padding-right: var(--pv-gutter);
	}

	.pv-article__body {
		padding-top: 24px;
		font-size: 1rem;
	}

	.pv-article__related {
		margin-top: 32px;
	}
}

/* ==========================================================================
   13. Archivo / categoría / búsqueda
   ========================================================================== */

.pv-archive__head {
	padding-top: 24px;
}

.pv-archive__titlebar {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 20px;
	margin: 16px 0 10px;
}

.pv-archive__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--pv-size-h1);
	line-height: 0.94;
	margin: 0;
	color: var(--pv-ink);
}

.pv-archive__title em {
	font-style: normal;
	color: var(--pv-orange);
}

.pv-archive__count {
	font-size: 0.8125rem;
	color: var(--pv-ink-3);
	padding-bottom: 8px;
}

.pv-archive__rule {
	height: 3px;
	background: var(--pv-orange);
}

.pv-archive__description {
	max-width: 68ch;
	margin: 16px 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--pv-ink-3);
}

.pv-archive__body {
	padding-top: 28px;
}

.pv-archive__list {
	min-width: 0;
}

.pv-none {
	padding: 40px 0 60px;
	max-width: 60ch;
}

.pv-none__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--pv-ink);
	margin-bottom: 12px;
}

.pv-none__text {
	color: var(--pv-ink-3);
}

@media (max-width: 768px) {

	.pv-archive__titlebar {
		align-items: baseline;
		gap: 10px;
		margin: 10px 0;
	}

	.pv-archive__count {
		padding-bottom: 0;
		font-size: 0.75rem;
	}

	.pv-archive__body {
		padding-top: 16px;
	}
}

/* ==========================================================================
   14. Paginación
   ========================================================================== */

.pv-pagination {
	margin-top: 28px;
}

.pv-pagination .nav-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.pv-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 2px solid var(--pv-line-2);
	background: var(--pv-paper);
	color: var(--pv-ink-2);
	font-weight: 700;
	font-size: 0.8125rem;
	transition: background var(--pv-fast) var(--pv-ease),
		border-color var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-pagination .page-numbers:hover {
	background: var(--pv-paper-2);
	color: var(--pv-ink);
}

.pv-pagination .page-numbers.current {
	border-color: var(--pv-orange);
	background: var(--pv-orange);
	color: var(--pv-paper);
}

.pv-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--pv-ink-3);
	min-width: auto;
	padding: 0 4px;
}

.pv-pagination .page-numbers.dots:hover {
	background: transparent;
}

.pv-pagination__status {
	font-size: 0.8125rem;
	color: var(--pv-ink-3);
	margin-left: auto;
}

@media (max-width: 768px) {

	.pv-pagination .nav-links {
		justify-content: center;
	}

	.pv-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
	}

	.pv-pagination__status {
		width: 100%;
		margin-left: 0;
		text-align: center;
		margin-top: 8px;
	}
}

/* ==========================================================================
   15. Página y 404
   ========================================================================== */

.pv-page {
	padding: 32px 0 24px;
}

.pv-page__title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--pv-size-h1);
	line-height: 0.94;
	margin: 0;
	color: var(--pv-ink);
}

.pv-page__rule {
	width: 72px;
	height: 3px;
	background: var(--pv-orange);
	margin: 18px 0 24px;
}

.pv-404 {
	padding: 64px 0 48px;
}

.pv-404__code {
	font-family: var(--pv-display);
	font-weight: 700;
	font-size: clamp(4rem, 2rem + 8vw, 8rem);
	line-height: 1;
	color: var(--pv-orange);
	margin-bottom: 12px;
}

.pv-404__actions {
	margin-top: 28px;
}

.pv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	background: var(--pv-ink);
	color: var(--pv-paper);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	border: 2px solid var(--pv-ink);
	cursor: pointer;
	transition: background var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-btn:hover,
.pv-btn:focus-visible {
	background: var(--pv-orange);
	border-color: var(--pv-orange);
	color: var(--pv-paper);
}

/* ==========================================================================
   16. Comentarios
   ========================================================================== */

.pv-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--pv-line);
}

.pv-comments .comments-title,
.pv-comments .comment-reply-title {
	font-family: var(--pv-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--pv-ink);
	margin-bottom: 20px;
}

.pv-comments .comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.pv-comments .comment-list ol.children {
	list-style: none;
	margin: 0;
	padding-left: 24px;
}

.pv-comments .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--pv-line);
}

.pv-comments .comment-author {
	font-weight: 700;
	color: var(--pv-ink);
}

.pv-comments .comment-author img {
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}

.pv-comments .comment-metadata {
	font-size: 0.75rem;
	color: var(--pv-ink-3);
	margin-bottom: 8px;
}

.pv-comments .comment-metadata a {
	color: var(--pv-ink-3);
}

.pv-comments input[type="text"],
.pv-comments input[type="email"],
.pv-comments input[type="url"],
.pv-comments textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--pv-line-2);
	background: var(--pv-paper);
	color: var(--pv-ink);
	outline: none;
	transition: border-color var(--pv-fast) var(--pv-ease);
}

.pv-comments input[type="text"]:focus,
.pv-comments input[type="email"]:focus,
.pv-comments input[type="url"]:focus,
.pv-comments textarea:focus {
	border-color: var(--pv-orange);
}

.pv-comments label {
	display: block;
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink);
	margin-bottom: 6px;
}

.pv-comments .form-submit input[type="submit"] {
	display: inline-flex;
	padding: 12px 18px;
	background: var(--pv-ink);
	color: var(--pv-paper);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	border: 2px solid var(--pv-ink);
	cursor: pointer;
	transition: background var(--pv-fast) var(--pv-ease);
}

.pv-comments .form-submit input[type="submit"]:hover {
	background: var(--pv-orange);
	border-color: var(--pv-orange);
}

/* ==========================================================================
   17. Widgets
   ========================================================================== */

.pv-widget {
	margin-bottom: 32px;
}

/*
 * Desde WordPress 5.8 el área de widgets usa bloques, y los bloques ignoran
 * el before_title/after_title del theme: el título sale como <h2
 * class="wp-block-heading">. Por eso estilamos las dos formas.
 */
.pv-widget .widget-title,
.pv-widget > h1,
.pv-widget > h2,
.pv-widget > h3,
.pv-widget .wp-block-heading,
.pv-widget .wp-block-search__label {
	font-family: var(--pv-sans);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-ink);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--pv-ink);
}

.pv-widget ul,
.pv-widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pv-widget li {
	padding: 10px 0;
	border-bottom: 1px solid var(--pv-line);
	font-size: 0.9375rem;
	line-height: 1.35;
}

.pv-widget li:last-child {
	border-bottom: 0;
}

.pv-widget li a {
	color: var(--pv-ink);
}

.pv-widget li a:hover {
	color: var(--pv-orange);
}

/* Listas anidadas (categorías jerárquicas) */
.pv-widget li ul {
	margin-top: 10px;
	padding-left: 14px;
	border-top: 1px solid var(--pv-line);
}

/* Bloque de búsqueda */
.pv-widget .wp-block-search__inside-wrapper {
	border: 2px solid var(--pv-line-2);
	padding: 0;
}

.pv-widget .wp-block-search__input {
	border: 0;
	outline: none;
	padding: 12px 14px;
	background: transparent;
	color: var(--pv-ink);
	min-width: 0;
}

.pv-widget .wp-block-search__button {
	background: var(--pv-ink);
	color: var(--pv-paper);
	border: 0;
	margin: 0;
	padding: 0 16px;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--pv-fast) var(--pv-ease);
}

.pv-widget .wp-block-search__button:hover {
	background: var(--pv-orange);
}

/* Nube de etiquetas: mismos chips que el módulo "Temas" */
.pv-widget .wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pv-widget .wp-block-tag-cloud a {
	padding: 6px 11px;
	border: 2px solid var(--pv-line-2);
	color: var(--pv-ink-2);
	font-weight: 700;
	font-size: 0.75rem !important;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	transition: border-color var(--pv-fast) var(--pv-ease),
		color var(--pv-fast) var(--pv-ease);
}

.pv-widget .wp-block-tag-cloud a:hover {
	border-color: var(--pv-orange);
	color: var(--pv-orange);
}

/* Últimas entradas y comentarios */
.pv-widget .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.75rem;
	color: var(--pv-ink-3);
	margin-top: 4px;
}

.pv-widget .wp-block-latest-comments__comment {
	padding: 10px 0;
	border-bottom: 1px solid var(--pv-line);
	font-size: 0.9375rem;
	line-height: 1.35;
	margin: 0;
	min-height: 0;
}

.pv-widget .wp-block-calendar,
.pv-widget table {
	font-size: 0.875rem;
}

.pv-widget select {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--pv-line-2);
	background: var(--pv-paper);
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

.pv-footer {
	background: var(--pv-ink);
	color: var(--pv-paper);
	margin-top: 64px;
}

.pv-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-top: 48px;
	padding-bottom: 32px;
}

.pv-footer__logo img {
	height: 22px;
	width: auto;
}

.pv-footer__tagline {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
	margin: 16px 0 0;
	max-width: 240px;
}

.pv-footer__heading {
	font-weight: 700;
	font-size: 0.6875rem;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pv-orange);
	margin-bottom: 12px;
}

.pv-footer__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pv-footer__list a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	transition: color var(--pv-fast) var(--pv-ease);
}

.pv-footer__list a:hover,
.pv-footer__list a:focus-visible {
	color: var(--pv-orange);
}

.pv-footer__divider {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pv-footer__bottom {
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.04em;
}

/* Variante compacta: nota y archivo */
.pv-footer--slim .pv-footer__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 32px;
	padding-bottom: 32px;
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.04em;
}

.pv-footer--slim .pv-footer__logo img {
	height: 20px;
}

@media (max-width: 900px) {

	.pv-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
}

@media (max-width: 768px) {

	.pv-footer {
		margin-top: 32px;
	}

	.pv-footer__top {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 32px;
		padding-bottom: 24px;
	}

	.pv-footer__logo img {
		height: 18px;
	}

	.pv-footer__tagline {
		max-width: none;
	}
}

/* ==========================================================================
   19. Accesibilidad y estados
   ========================================================================== */

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--pv-paper);
	clip: auto !important;
	clip-path: none;
	color: var(--pv-ink);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100001;
}

:focus-visible {
	outline: 3px solid var(--pv-orange);
	outline-offset: 2px;
}

.pv-latest__item:focus-visible,
.pv-ranked__item:focus-visible {
	outline-offset: -3px;
}

/* Admin bar: el header sticky no debe quedar debajo */
.admin-bar .pv-header {
	top: 32px;
}

@media (max-width: 782px) {

	.admin-bar .pv-header {
		top: 46px;
	}
}

@media (max-width: 600px) {

	.admin-bar .pv-header {
		top: 0;
	}
}

/* ==========================================================================
   20. Ajustes de composición
   ========================================================================== */

/* Apertura sin foto: bloque pintado con el color de la sección */
.pv-card--hero-flat .pv-card__body {
	position: static;
	padding: 40px 32px;
	gap: 10px;
}

.pv-card--hero-flat .pv-card__title {
	max-width: 20ch;
}

/* En mobile la apertura va a sangre, como en el diseño */
@media (max-width: 768px) {

	.pv-front__hero {
		margin-left: calc(var(--pv-gutter) * -1);
		margin-right: calc(var(--pv-gutter) * -1);
	}

	.pv-card--hero-flat .pv-card__body {
		padding: 28px 20px;
	}
}

/*
 * En mobile las dos cards secundarias de la portada se vuelven filas con
 * miniatura, igual que el diseño. Las que no tienen foto quedan como bloque
 * de color.
 */
@media (max-width: 640px) {

	.pv-front__secondary {
		gap: 0;
	}

	.pv-front__secondary .pv-card:not(.pv-card--color) {
		flex-direction: row;
		gap: 14px;
		padding: 16px 0;
		border-bottom: 1px solid var(--pv-line);
		align-items: flex-start;
	}

	.pv-front__secondary .pv-card:not(.pv-card--color) .pv-card__media {
		order: 2;
		width: 104px;
		height: 78px;
		flex: none;
		aspect-ratio: auto;
	}

	.pv-front__secondary .pv-card:not(.pv-card--color) .pv-card__body {
		order: 1;
		flex: 1;
		min-width: 0;
		padding: 0;
		gap: 6px;
	}

	.pv-front__secondary .pv-card:not(.pv-card--color) .pv-card__excerpt {
		display: none;
	}

	.pv-front__secondary .pv-card:not(.pv-card--color) .pv-card__title {
		font-size: var(--pv-size-card-sm);
		line-height: 0.98;
	}

	/* El badge pasa a ser volanta de texto, como en el mobile del diseño. */
	.pv-front__secondary .pv-card:not(.pv-card--color) .pv-badge {
		padding: 0;
		background: transparent;
		color: var(--pv-cat);
		font-size: 0.6875rem;
	}
}

/* Formulario de búsqueda suelto (widget) */
.pv-searchform .pv-search__field {
	border-bottom-width: 2px;
	padding: 0 12px;
}

.pv-searchform .pv-search__input {
	padding: 12px 0;
	font-size: 1rem;
}

/* Widgets del sidebar, agrupados */
.pv-sidebar__widgets .pv-widget:last-child {
	margin-bottom: 0;
}
