/*
Theme Name:        Retrobros
Theme URI:         https://retrobros.es/
Author:            Retrobros
Author URI:        https://retrobros.es/
Description:       Tema clásico para retrobros.es: diseño moderno y oscuro (con modo claro) que conserva la identidad del sitio, con el rótulo de líneas y la franja de piezas de Tetris. Entradas en lista, la más reciente arriba, y barra lateral de widgets. Compatible con Jetpack (scroll infinito, vídeos responsive) y Smush (lazy load).
Version:           1.0.0
Requires at least: 6.4
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:       retrobros
Tags:              blog, dark, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Fuente del rótulo (Monoton), incluida en el tema: sin peticiones a Google
   ========================================================================== */
@font-face {
	font-family: "Monoton";
	src: url("assets/fonts/monoton.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Variables (modo oscuro por defecto)
   ========================================================================== */
:root {
	--rb-bg: #12141c;
	--rb-surface: #1a1d29;
	--rb-surface-2: #252a3a;
	--rb-border: #2c3245;
	--rb-text: #e8eaf0;
	--rb-muted: #a3a9bb;
	--rb-accent: #ffcc33;
	--rb-accent-hover: #ffe08a;
	--rb-on-accent: #12141c;
	--rb-link: #ffcc33;

	/* colores clásicos de las piezas de Tetris */
	--rb-t-c: #1ec8e6; /* I */
	--rb-t-y: #ffd21f; /* O */
	--rb-t-p: #9b30d9; /* T */
	--rb-t-g: #2fc94a; /* S */
	--rb-t-r: #e8253a; /* Z */
	--rb-t-b: #2a5ff0; /* J */
	--rb-t-o: #f07a12; /* L */

	--rb-font-display: "Monoton", "Arial Black", Impact, sans-serif;
	--rb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--rb-radius: 10px;
	--rb-max: 1200px;
	--rb-content: 720px;
	--rb-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.18);

	color-scheme: dark;
}

html.rb-scheme-light {
	--rb-bg: #f5f6f8;
	--rb-surface: #ffffff;
	--rb-surface-2: #eef0f4;
	--rb-border: #dde1e8;
	--rb-text: #1a1d29;
	--rb-muted: #555c70;
	--rb-accent: #ffcc33;
	--rb-accent-hover: #f0b800;
	--rb-on-accent: #12141c;
	--rb-link: #8a5d00;
	--rb-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.08);
	color-scheme: light;
}
@media (prefers-color-scheme: light) {
	html.rb-scheme-auto {
		--rb-bg: #f5f6f8;
		--rb-surface: #ffffff;
		--rb-surface-2: #eef0f4;
		--rb-border: #dde1e8;
		--rb-text: #1a1d29;
		--rb-muted: #555c70;
		--rb-accent: #ffcc33;
		--rb-accent-hover: #f0b800;
		--rb-on-accent: #12141c;
		--rb-link: #8a5d00;
		--rb-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.08);
		color-scheme: light;
	}
}

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

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

body {
	margin: 0;
	background: var(--rb-bg);
	color: var(--rb-text);
	font-family: var(--rb-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-wrap: break-word;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

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

:focus-visible {
	outline: 3px solid var(--rb-t-c);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 2rem 0 0.75rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, dl, blockquote, figure, pre, table {
	margin: 0 0 1.25rem;
}

blockquote {
	margin-left: 0;
	padding: 0.75rem 1.25rem;
	border-left: 4px solid var(--rb-accent);
	background: var(--rb-surface-2);
	border-radius: 0 var(--rb-radius) var(--rb-radius) 0;
}

code, kbd, pre, samp {
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
	font-size: 0.92em;
}
pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--rb-surface-2);
	border-radius: var(--rb-radius);
}

hr {
	border: 0;
	height: 1px;
	background: var(--rb-border);
	margin: 2rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
}
th, td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--rb-border);
	text-align: left;
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */
.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: var(--rb-accent);
	border-radius: 6px;
	clip: auto !important;
	clip-path: none;
	color: var(--rb-on-accent);
	display: block;
	font-weight: 700;
	height: auto;
	left: 1rem;
	padding: 0.85rem 1.1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Elementos comunes
   ========================================================================== */
.rb-container {
	width: 100%;
	max-width: var(--rb-max);
	margin: 0 auto;
	padding: 0 16px;
}

.rb-surface {
	position: relative;
	background: var(--rb-surface);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius);
	box-shadow: var(--rb-shadow);
}

.rb-btn,
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 8px;
	background: var(--rb-accent);
	color: var(--rb-on-accent);
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.rb-btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--rb-accent-hover);
	color: var(--rb-on-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--rb-border);
	border-radius: 8px;
	background: var(--rb-bg);
	color: var(--rb-text);
	font: inherit;
}
input:focus,
textarea:focus,
select:focus {
	border-color: var(--rb-accent);
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.rb-header {
	background: var(--rb-surface);
	border-bottom: 1px solid var(--rb-border);
}
.rb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.rb-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}
.rb-brand .custom-logo-link {
	display: block;
	flex-shrink: 0;
}
.rb-brand .custom-logo {
	/* el logo es un JPG con fondo blanco: lo presentamos como una ficha */
	width: auto;
	max-height: 52px;
	padding: 2px;
	background: #fff;
	border-radius: 8px;
}
.rb-site-title {
	margin: 0;
	font-family: var(--rb-font-display);
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	font-weight: 400;
	line-height: 1.3;
}
.rb-site-title a {
	color: var(--rb-text);
	text-decoration: none;
}
.rb-site-title a span {
	color: var(--rb-accent);
}
html.rb-scheme-light .rb-site-title a span {
	color: var(--rb-link);
}
.rb-site-description {
	margin: 0.35rem 0 0;
	color: var(--rb-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Navegación */
.rb-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rb-nav a {
	display: block;
	padding: 0.6rem 0.85rem;
	border-radius: 6px;
	color: var(--rb-text);
	font-weight: 600;
	text-decoration: none;
}
.rb-nav a:hover,
.rb-nav a:focus-visible {
	background: var(--rb-surface-2);
}
.rb-nav .current-menu-item > a,
.rb-nav .current-menu-ancestor > a {
	color: var(--rb-link);
}
.rb-nav .current-menu-item > a::before {
	/* guiño retro: cursor de menú de selección */
	content: "\25B6\00a0";
	font-size: 0.7em;
	vertical-align: 0.1em;
}

.rb-menu-toggle {
	display: none;
	background: var(--rb-surface-2);
	color: var(--rb-text);
}
.rb-menu-toggle:hover {
	background: var(--rb-border);
	color: var(--rb-text);
}
.rb-menu-toggle__icon {
	display: inline-block;
	width: 16px;
	height: 12px;
	margin-right: 0.5rem;
	vertical-align: -1px;
	background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
		linear-gradient(currentColor 0 0) 0 5px / 100% 2px no-repeat,
		linear-gradient(currentColor 0 0) 0 10px / 100% 2px no-repeat;
}

@media (min-width: 900px) {
	.rb-nav > div > ul,
	.rb-nav > ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.25rem;
	}
	.rb-nav li {
		position: relative;
	}
	.rb-nav .sub-menu {
		position: absolute;
		top: 100%;
		right: 0;
		z-index: 50;
		min-width: 220px;
		padding: 0.4rem;
		background: var(--rb-surface);
		border: 1px solid var(--rb-border);
		border-radius: var(--rb-radius);
		box-shadow: var(--rb-shadow);
		display: none;
	}
	.rb-nav li:hover > .sub-menu,
	.rb-nav li:focus-within > .sub-menu {
		display: block;
	}
}

@media (max-width: 899px) {
	.rb-header__inner {
		flex-wrap: wrap;
	}
	.rb-brand {
		flex: 1 1 0;
	}
	.rb-menu-toggle {
		display: inline-block;
		flex-shrink: 0;
	}
	.rb-nav {
		flex-basis: 100%;
		display: none;
	}
	.rb-nav.is-open {
		display: block;
	}
	.rb-nav .sub-menu a {
		padding-left: 2rem;
	}
	.no-js .rb-nav {
		display: block;
	}
	.no-js .rb-menu-toggle {
		display: none;
	}
}

/* ==========================================================================
   Portada: rótulo y piezas de Tetris
   ========================================================================== */
.rb-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	background: var(--rb-bg);
}
.rb-hero__title {
	margin: 0;
	padding: clamp(2rem, 6vw, 4rem) 16px clamp(1rem, 3vw, 2rem);
	color: var(--rb-text);
	font-family: var(--rb-font-display);
	font-size: clamp(2.2rem, 9vw, 6rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.1;
}
.rb-hero__title a {
	color: inherit;
	text-decoration: none;
}
.rb-hero__tagline {
	margin: -0.5rem 0 1.5rem;
	padding: 0 16px;
	color: var(--rb-muted);
}

.rb-tetris {
	display: grid;
	grid-template-columns: repeat(40, 1fr);
	width: 100%;
}
.rb-tetris > span {
	aspect-ratio: 1;
}
.rb-tetris > [class] {
	/* bloque con relieve, como en el Tetris original */
	--rb-bevel: clamp(2px, 0.45vw, 6px);
	background: var(--rb-cell);
	box-shadow:
		inset var(--rb-bevel) var(--rb-bevel) 0 rgba(255, 255, 255, 0.45),
		inset calc(var(--rb-bevel) * -1) calc(var(--rb-bevel) * -1) 0 rgba(0, 0, 0, 0.35);
}
.rb-tetris .c { --rb-cell: var(--rb-t-c); }
.rb-tetris .y { --rb-cell: var(--rb-t-y); }
.rb-tetris .p { --rb-cell: var(--rb-t-p); }
.rb-tetris .g { --rb-cell: var(--rb-t-g); }
.rb-tetris .r { --rb-cell: var(--rb-t-r); }
.rb-tetris .b { --rb-cell: var(--rb-t-b); }
.rb-tetris .o { --rb-cell: var(--rb-t-o); }

/* En el resto de páginas solo se ve una franja baja de piezas */
.rb-hero--slim .rb-tetris > :nth-child(-n + 120) {
	display: none;
}

/* Colores de categoría con la paleta Tetris */
.rb-badge.rb-c-0 { color: var(--rb-t-c); }
.rb-badge.rb-c-1 { color: var(--rb-t-y); }
.rb-badge.rb-c-2 { color: #c77dff; }
.rb-badge.rb-c-3 { color: var(--rb-t-g); }
.rb-badge.rb-c-4 { color: #ff6b7a; }
.rb-badge.rb-c-5 { color: #7fa2ff; }
.rb-badge.rb-c-6 { color: var(--rb-t-o); }
html.rb-scheme-light .rb-badge[class*="rb-c-"] { color: var(--rb-link); }

/* ==========================================================================
   Estructura
   ========================================================================== */
.rb-main-wrap {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
}
.rb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}
@media (min-width: 1000px) {
	.has-sidebar .rb-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.rb-section-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
}

.rb-archive-header {
	margin-bottom: 2rem;
}
.rb-archive-header h1 {
	margin-top: 0;
}
.rb-archive-header .archive-description {
	color: var(--rb-muted);
}

/* ==========================================================================
   Lista de entradas: una debajo de otra, la más reciente arriba
   ========================================================================== */
.rb-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.rb-list .rb-card {
		flex-direction: row;
	}
	.rb-list .rb-card__media {
		flex: 0 0 38%;
		aspect-ratio: auto;
		min-height: 200px;
	}
	.rb-list .rb-card__body {
		padding: 1.4rem 1.6rem;
	}
	.rb-list .rb-card__title {
		font-size: 1.35rem;
	}
}

.rb-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.rb-card:hover,
.rb-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--rb-accent);
}
.rb-card__media {
	display: block;
	text-decoration: none;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rb-surface-2);
}
.rb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rb-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--rb-muted);
	font-family: var(--rb-font-display);
	font-size: 0.7rem;
}
.rb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1.2rem 1.25rem;
}
.rb-card__title {
	margin: 0.4rem 0 0.6rem;
	font-size: 1.15rem;
	line-height: 1.35;
}
.rb-card__title a {
	color: var(--rb-text);
	text-decoration: none;
}
/* Toda la tarjeta clicable sin anidar enlaces */
.rb-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.rb-card__excerpt {
	margin: 0 0 1rem;
	color: var(--rb-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}
.rb-card__excerpt p {
	margin: 0;
}
.rb-card__footer {
	margin-top: auto;
	color: var(--rb-muted);
	font-size: 0.85rem;
}

.rb-badge {
	position: relative;
	z-index: 2; /* por encima del enlace de la tarjeta */
	align-self: flex-start;
	color: var(--rb-link);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}
.rb-badge:hover {
	text-decoration: underline;
}

/* Destacadas (sticky) */
.rb-card.sticky {
	border-color: var(--rb-accent);
}
.rb-card.sticky .rb-card__body::before {
	content: "\2605  Destacado";
	display: block;
	margin-bottom: 0.25rem;
	color: var(--rb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

/* ==========================================================================
   Entrada / página individual
   ========================================================================== */
.rb-article {
	padding: clamp(1.25rem, 4vw, 2.5rem);
}
.rb-article__header {
	margin-bottom: 1.75rem;
}
.rb-article__title {
	margin: 0.4rem 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.rb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	color: var(--rb-muted);
	font-size: 0.92rem;
}
.rb-meta a {
	color: var(--rb-muted);
}
.rb-article__thumb {
	margin: 0 0 2rem;
	overflow: hidden;
	border-radius: var(--rb-radius);
}
.rb-article__thumb img {
	width: 100%;
}

.entry-content {
	max-width: var(--rb-content);
}
.no-sidebar .entry-content {
	margin-left: auto;
	margin-right: auto;
}
.entry-content > * {
	max-width: 100%;
}
.entry-content img {
	display: inline-block;
}
.entry-content figure img,
.entry-content .wp-block-image img {
	display: block;
}

.rb-article__footer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rb-border);
}
.rb-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--rb-surface-2);
	color: var(--rb-text);
	font-size: 0.85rem;
	text-decoration: none;
}
.rb-tags a:hover {
	background: var(--rb-accent);
	color: var(--rb-on-accent);
}

/* Bloques y alineaciones de WordPress */
.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}
.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.alignwide,
.alignfull {
	max-width: 100%;
}
.wp-caption,
figcaption,
.wp-element-caption {
	color: var(--rb-muted);
	font-size: 0.88rem;
	text-align: center;
}
.wp-caption {
	max-width: 100%;
}
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.75rem;
}
.gallery-item {
	margin: 0;
}
.wp-block-embed,
.wp-block-video {
	margin-bottom: 1.5rem;
}
.sticky,
.bypostauthor {
	/* clases requeridas por WordPress */
	position: relative;
}

/* Navegación entre entradas y paginación */
.post-navigation {
	margin-top: 2.5rem;
}
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.2rem;
	background: var(--rb-surface);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius);
	text-decoration: none;
}
.post-navigation a:hover {
	border-color: var(--rb-accent);
}
.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}
.rb-post-nav__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--rb-muted);
	font-size: 0.8rem;
}
.rb-post-nav__title {
	color: var(--rb-text);
	font-weight: 700;
}

.navigation.pagination {
	margin-top: 2.5rem;
}
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}
.page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--rb-border);
	border-radius: 8px;
	background: var(--rb-surface);
	color: var(--rb-text);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
a.page-numbers:hover {
	border-color: var(--rb-accent);
}
.page-numbers.current {
	background: var(--rb-accent);
	border-color: var(--rb-accent);
	color: var(--rb-on-accent);
}
.page-numbers.dots {
	background: transparent;
	border-color: transparent;
}

/* ==========================================================================
   Barra lateral
   ========================================================================== */
.rb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.rb-sidebar .widget {
	margin: 0;
	padding: 1.25rem;
	background: var(--rb-surface);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius);
	font-size: 0.98rem;
}
.rb-sidebar .widget-title,
.rb-sidebar .widget h2,
.rb-sidebar .wp-block-heading {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rb-muted);
}
.rb-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rb-sidebar .widget li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--rb-border);
}
.rb-sidebar .widget li:last-child {
	border-bottom: 0;
}
.rb-sidebar .widget ul ul {
	margin-top: 0.35rem;
	padding-left: 1rem;
	border-top: 1px solid var(--rb-border);
}
.rb-sidebar .widget li a {
	color: var(--rb-text);
	text-decoration: none;
}
.rb-sidebar .widget li a:hover {
	color: var(--rb-link);
}

/* Formulario de búsqueda */
.search-form {
	display: flex;
	gap: 0.5rem;
}
.search-form label {
	flex: 1;
}

/* ==========================================================================
   Comentarios
   ========================================================================== */
.rb-comments {
	margin-top: 2.5rem;
	padding: clamp(1.25rem, 4vw, 2rem);
}
.comment-list,
.comment-list .children {
	list-style: none;
	padding: 0;
}
.comment-list .children {
	margin-left: clamp(0.75rem, 3vw, 2rem);
}
.comment-body {
	margin-bottom: 1.25rem;
	padding: 1rem;
	background: var(--rb-surface-2);
	border-radius: var(--rb-radius);
}
.comment-author .avatar {
	float: left;
	margin-right: 0.75rem;
	border-radius: 50%;
}
.comment-metadata {
	font-size: 0.85rem;
}
.comment-metadata a {
	color: var(--rb-muted);
}
.reply a {
	font-size: 0.85rem;
	font-weight: 700;
}
.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 700;
}

/* ==========================================================================
   404 y resultados vacíos
   ========================================================================== */
.rb-gameover {
	padding: clamp(2rem, 6vw, 4rem) 1.5rem;
	text-align: center;
}
.rb-gameover__title {
	margin: 0 0 1rem;
	font-family: var(--rb-font-display);
	font-size: clamp(1.25rem, 5vw, 2.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: var(--rb-t-r);
}
.rb-gameover .search-form {
	max-width: 480px;
	margin: 1.5rem auto 0;
}

/* ==========================================================================
   Pie
   ========================================================================== */
.rb-footer {
	margin-top: 2rem;
	background: var(--rb-surface);
	border-top: 1px solid var(--rb-border);
	color: var(--rb-muted);
	font-size: 0.92rem;
}
.rb-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}
.rb-footer a {
	color: var(--rb-text);
}
.rb-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rb-footer__credits {
	margin: 0;
}
.rb-to-top {
	text-decoration: none;
}

/* ==========================================================================
   Jetpack
   ========================================================================== */
#infinite-handle {
	grid-column: 1 / -1;
	margin-top: 2rem;
	text-align: center;
}
#infinite-handle span,
#infinite-handle span button {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border-radius: 8px !important;
	background: var(--rb-accent) !important;
	color: var(--rb-on-accent) !important;
	font: inherit !important;
	font-weight: 700 !important;
}
.infinite-loader {
	grid-column: 1 / -1;
	margin: 2rem auto;
}
.rb-list .infinite-wrap {
	display: contents;
}
.infinite-scroll .navigation.pagination,
.infinite-scroll.neverending .rb-footer {
	display: none;
}
.infinity-end.neverending .rb-footer {
	display: block;
}
.sharedaddy,
.jp-relatedposts {
	margin-top: 2rem !important;
}
.sd-title,
.jp-relatedposts-headline {
	color: var(--rb-muted) !important;
}
.jp-relatedposts-post-title a {
	color: var(--rb-text) !important;
}
.jp-relatedposts-post-context,
.jp-relatedposts-post-date {
	color: var(--rb-muted) !important;
	opacity: 1 !important;
}

/* Smush lazy load: aparición suave */
img.lazyload,
img.lazyloading {
	opacity: 0;
}
img.lazyloaded {
	opacity: 1;
	transition: opacity 0.3s ease;
}

/* ==========================================================================
   Móvil
   ========================================================================== */
@media (max-width: 600px) {
	.rb-main-wrap {
		padding-top: 1.5rem;
	}
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}
	.post-navigation .nav-next {
		grid-column: auto;
		text-align: left;
	}
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1rem;
	}
	.rb-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Impresión
   ========================================================================== */
@media print {
	body {
		background: #fff;
		color: #000;
	}
	.rb-header,
	.rb-footer,
	.rb-sidebar,
	.rb-comments,
	.post-navigation {
		display: none;
	}
}
