/* ==========================================================================
   RutaBot · Mapa de rutas
   Componentes del tema y del plugin RutaBot Core.
   ========================================================================== */

:root {
	--rb-tinta: #0D1117;
	--rb-tinta-2: #161B22;
	--rb-void: #030712;
	--rb-anden: #EEF1F4;
	--rb-tarjeta: #FFFFFF;
	--rb-senal: #3B4450;
	--rb-gris: #5B6672;
	--rb-borde: #CBD3DB;
	--rb-divisor: #E3E8ED;
	--rb-divisor-oscuro: #21262D;
	--rb-claro: #F0F6FC;
	--rb-gris-oscuro: #A8B1BB;
	--rb-l1: #00E599;
	--rb-l2: #00B4D8;
	--rb-l3: #F5B544;
	--rb-t1: #007A55;
	--rb-t2: #007A8F;
	--rb-t3: #9A6400;
	--rb-alerta: #C9302C;
	--rb-mono: 'Overpass Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--rb-radio: 20px;
	--rb-linea: var(--rb-l1);
	--rb-linea-texto: var(--rb-t1);
	--rb-linea-tinta: #03140D;
}

.rb-linea-1 { --rb-linea: var(--rb-l1); --rb-linea-texto: var(--rb-t1); --rb-linea-tinta: #03140D; }
.rb-linea-2 { --rb-linea: var(--rb-l2); --rb-linea-texto: var(--rb-t2); --rb-linea-tinta: #021A20; }
.rb-linea-3 { --rb-linea: var(--rb-l3); --rb-linea-texto: var(--rb-t3); --rb-linea-tinta: #241700; }

/* ---------- Utilidades ---------- */

.rb-mono,
.rb-etiqueta,
.rb-kicker { font-family: var(--rb-mono); }

.rb-mono-fuerte { font-family: var(--rb-mono); font-weight: 700; }

.rb-etiqueta,
.rb-kicker {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rb-gris);
}

.rb-kicker--linea { color: var(--rb-linea-texto); }

.rb-apagado { color: var(--rb-gris); }

.rb-texto-linea-1 { color: var(--rb-t1); }
.rb-texto-linea-2 { color: var(--rb-t2); }
.rb-texto-linea-3 { color: var(--rb-t3); }

.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;
}

:where(a) { text-underline-offset: 3px; }

::selection { background: var(--rb-l1); color: var(--rb-tinta); }

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

/* ---------- Pastillas y estaciones ---------- */

.rb-pastilla {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	font-weight: 900;
	line-height: 1;
	background: var(--rb-borde);
	color: var(--rb-tinta);
}
.rb-pastilla--s { width: 24px; height: 24px; font-size: 12px; }
.rb-pastilla--m { width: 36px; height: 36px; font-size: 16px; }
.rb-pastilla--l { width: 40px; height: 40px; font-size: 18px; }
.rb-bg-linea-1 { background: var(--rb-l1); color: #03140D; }
.rb-bg-linea-2 { background: var(--rb-l2); color: #021A20; }
.rb-bg-linea-3 { background: var(--rb-l3); color: #241700; }

.rb-estacion {
	display: inline-block;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--rb-tarjeta);
	border: 5px solid var(--rb-tinta);
	box-sizing: border-box;
}
.rb-estacion--llena { background: var(--rb-tinta); }

/* ---------- Encabezado ---------- */

.rb-cabecera {
	background: var(--rb-tinta);
	color: var(--rb-claro);
}
.rb-cabecera .wp-block-site-title a { color: var(--rb-claro); display: inline-flex; align-items: center; gap: 12px; }
.rb-cabecera .wp-block-site-title a::before {
	content: "";
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: radial-gradient(circle at center, transparent 0 3px, var(--rb-tinta) 3px 7px, var(--rb-claro) 7px);
	flex: 0 0 auto;
}
.rb-cabecera .wp-block-navigation a { color: var(--rb-claro); }
.rb-cabecera .wp-block-navigation a:hover { color: var(--rb-l1); }
.rb-cabecera .wp-block-navigation .rb-nav-apagado > a { color: var(--rb-gris-oscuro); }
.rb-cabecera .wp-block-navigation .rb-nav-l1 > a::before,
.rb-cabecera .wp-block-navigation .rb-nav-l2 > a::before,
.rb-cabecera .wp-block-navigation .rb-nav-l3 > a::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: 1px;
}
.rb-cabecera .rb-nav-l1 > a::before { background: var(--rb-l1); }
.rb-cabecera .rb-nav-l2 > a::before { background: var(--rb-l2); }
.rb-cabecera .rb-nav-l3 > a::before { background: var(--rb-l3); }
.rb-cabecera .wp-block-navigation__responsive-container.is-menu-open { background: var(--rb-tinta); color: var(--rb-claro); padding: 32px 24px; }
.rb-cabecera .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 1.25rem; }
.rb-cabecera .wp-block-button__link { background: var(--rb-claro); color: var(--rb-tinta); }
.rb-cabecera .wp-block-button__link:hover { background: var(--rb-l1); color: var(--rb-tinta); }

@media (max-width: 640px) {
	.rb-cabecera .rb-boton-abono { display: none; }
}

.rb-franja {
	height: 8px;
	background: var(--rb-linea);
}

/* ---------- Botones ---------- */

.wp-block-button.is-style-contorno .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
	padding: 11px 20px;
}
.wp-block-button.is-style-contorno .wp-block-button__link:hover { background: var(--rb-tinta); color: var(--rb-claro); border-color: var(--rb-tinta); }
.wp-block-button.is-style-menta .wp-block-button__link { background: var(--rb-l1); color: #03140D; }
.wp-block-button.is-style-menta .wp-block-button__link:hover { background: var(--rb-claro); color: var(--rb-tinta); }

/* ---------- Grupos ---------- */

.wp-block-group.is-style-tarjeta,
.rb-tarjeta {
	background: var(--rb-tarjeta);
	border-radius: var(--rb-radio);
	padding: clamp(22px, 3vw, 36px);
}

.wp-block-group.is-style-tablero,
.rb-oscuro {
	background: var(--rb-tinta);
	color: var(--rb-claro);
	border-radius: var(--rb-radio);
	padding: clamp(22px, 4vw, 44px);
}
.is-style-tablero :where(h1, h2, h3, h4),
.rb-oscuro :where(h1, h2, h3, h4) { color: var(--rb-claro); }
.is-style-tablero a,
.rb-oscuro a { color: var(--rb-l1); }

.wp-block-group.is-style-error {
	background: #FFF5F5;
	border-radius: 14px;
	padding: 20px 22px;
}
.wp-block-group.is-style-error > :first-child {
	font-family: var(--rb-mono);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--rb-alerta);
	text-transform: uppercase;
	margin: 0;
}

/* ---------- Portada ---------- */

.rb-hero h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.92; letter-spacing: -0.045em; margin: 0; }
.rb-hero p { font-size: 1.15rem; color: var(--rb-senal); margin: 0; }

/* Mapa de líneas */
.rb-mapa {
	background: var(--rb-tarjeta);
	border-radius: var(--rb-radio);
	padding: clamp(24px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	gap: 44px;
}
.rb-mapa__linea { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.rb-mapa__nombre {
	flex: 0 0 200px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1.2;
	color: var(--rb-tinta);
	text-decoration: none;
}
.rb-mapa__nombre .rb-pastilla { background: var(--rb-linea); color: var(--rb-linea-tinta); }
.rb-mapa__via { flex: 999 1 560px; min-width: 0; position: relative; padding-top: 14px; }
.rb-mapa__via::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 23px;
	height: 8px;
	border-radius: 4px;
	background: var(--rb-linea);
}
.rb-mapa__via ol {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--rb-estaciones, 4), minmax(0, 1fr));
	gap: 12px;
}
.rb-mapa__via li > a,
.rb-mapa__via li > span {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-weight: 700;
	font-size: 0.90625rem;
	line-height: 1.35;
	color: var(--rb-tinta);
	text-decoration: none;
}
.rb-mapa__via li > a:hover span { text-decoration: underline; }
.rb-mapa__pilar { font-weight: 900; }
.rb-mapa__pendiente { color: var(--rb-gris); }
.rb-mapa__pendiente .rb-estacion { border-color: var(--rb-borde); }
.rb-mapa__pendiente span span { color: var(--rb-gris); font-weight: 600; }
.rb-mapa__leyenda {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	padding-top: 20px;
	border-top: 1px solid var(--rb-divisor);
	font-size: 0.84375rem;
	color: var(--rb-gris);
}
.rb-mapa__leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.rb-mapa__leyenda .rb-estacion { width: 16px; height: 16px; border-width: 4px; }

@media (max-width: 720px) {
	.rb-mapa__via { padding-top: 0; padding-left: 14px; }
	.rb-mapa__via::before { top: 0; bottom: 0; left: 9px; right: auto; width: 8px; height: auto; }
	.rb-mapa__via ol { grid-template-columns: 1fr; gap: 18px; }
	.rb-mapa__via li > a,
	.rb-mapa__via li > span { flex-direction: row; align-items: center; margin-left: -14px; }
}

/* Tablero de salidas */
.rb-tablero { overflow-x: auto; }
.rb-tablero table { width: 100%; min-width: 620px; border-collapse: collapse; font-family: var(--rb-mono); }
.rb-tablero th {
	text-align: left;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8B949E;
	padding: 0 16px 12px 0;
}
.rb-tablero td { padding: 18px 16px 18px 0; border-top: 1px solid var(--rb-divisor-oscuro); font-size: 1rem; vertical-align: middle; }
.rb-tablero td a { color: var(--rb-claro); text-decoration: none; }
.rb-tablero td a:hover { color: var(--rb-l1); text-decoration: underline; }
.rb-tablero__hora { color: var(--rb-l3); white-space: nowrap; text-transform: uppercase; }
.rb-tablero__tipo { color: var(--rb-gris-oscuro); text-transform: uppercase; font-size: 0.875rem; }
.rb-tablero__vacio { font-family: var(--rb-mono); color: var(--rb-gris-oscuro); }

/* Salidas compactas (barra lateral) */
.rb-salidas { list-style: none; margin: 0; padding: 0; }
.rb-salidas li a {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 26px;
	gap: 10px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--rb-divisor-oscuro);
	color: var(--rb-claro);
	text-decoration: none;
	font-size: 0.9375rem;
	line-height: 1.35;
}
.rb-salidas li a:hover { color: var(--rb-l1); }
.rb-salidas__hora { font-family: var(--rb-mono); color: var(--rb-l3); font-size: 0.8125rem; text-transform: uppercase; }

/* Tarjetas de entradas (Query Loop con clase rb-tarjetas) */
.rb-tarjetas .wp-block-post {
	background: var(--rb-tarjeta);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 22px 22px;
	box-shadow: inset 0 6px 0 var(--rb-linea);
}
.rb-tarjetas .wp-block-post > :first-child { margin-top: 28px; }
.rb-tarjetas .wp-block-post-title { font-size: 1.1875rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.rb-tarjetas .wp-block-post-excerpt { font-size: 0.96875rem; color: var(--rb-senal); margin: 0; }
.rb-tarjetas .wp-block-post-excerpt__more-text { display: none; }
.rb-tarjetas .wp-block-post-terms { font-family: var(--rb-mono); font-size: 0.78125rem; font-weight: 700; text-transform: uppercase; }
.rb-tarjetas .wp-block-post-terms a { color: var(--rb-linea-texto); text-decoration: none; }
.rb-tarjetas .wp-block-post-date { font-family: var(--rb-mono); font-size: 0.8125rem; color: var(--rb-gris); }

/* Lista de entradas (archivos) */
.rb-lista .wp-block-post {
	background: var(--rb-tarjeta);
	border-radius: 16px;
	padding: 20px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	align-items: baseline;
	box-shadow: inset 6px 0 0 var(--rb-linea);
}
.rb-lista .wp-block-post + .wp-block-post { margin-top: 12px; }
.rb-lista .wp-block-post-date { flex: 0 0 110px; font-family: var(--rb-mono); font-size: 0.8125rem; color: var(--rb-gris); text-transform: uppercase; }
.rb-lista .wp-block-post-title { flex: 999 1 380px; margin: 0; font-size: 1.1875rem; line-height: 1.35; font-weight: 800; }
.rb-lista .wp-block-post-terms { font-family: var(--rb-mono); font-size: 0.78125rem; font-weight: 700; text-transform: uppercase; }
.rb-lista .wp-block-post-terms a { color: var(--rb-linea-texto); text-decoration: none; }
.rb-lista .wp-block-post-excerpt { flex: 1 1 100%; margin: 0; font-size: 0.96875rem; color: var(--rb-senal); }
.rb-lista .wp-block-post-excerpt__more-text { display: none; }

.wp-block-query-pagination { gap: 8px; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--rb-tarjeta);
	color: var(--rb-tinta);
	text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current { background: var(--rb-tinta); color: var(--rb-claro); }

/* ---------- Entrada ---------- */

.rb-migas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--rb-mono); font-size: 0.8125rem; color: var(--rb-gris); }
.rb-migas a { color: var(--rb-gris); }

.rb-linea-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--rb-mono); font-size: 0.8125rem; }
.rb-linea-chip .rb-pastilla { width: 18px; height: 18px; font-size: 11px; }
.rb-linea-chip:hover span { text-decoration: underline; }

.rb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 0.9375rem; color: var(--rb-senal); }
.rb-meta .wp-block-post-author-name a { color: var(--rb-tinta); font-weight: 700; }
.rb-meta .wp-block-post-date,
.rb-meta .wp-block-post-modified-date,
.rb-meta .rb-mono { font-family: var(--rb-mono); font-size: 0.84375rem; }
.rb-meta .wp-block-avatar img { border-radius: 50%; }

.rb-sello {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rb-tinta);
	color: var(--rb-l1);
	font-weight: 800;
	font-size: 0.8125rem;
	text-transform: uppercase;
	line-height: 1.4;
}

.rb-aviso { font-size: 0.8125rem; color: var(--rb-gris); line-height: 1.5; max-width: 760px; }

.rb-cuerpo { font-size: 1.125rem; line-height: 1.7; color: #1F262E; }
.rb-cuerpo > * + * { margin-top: 1.4em; }
.rb-cuerpo h2 { margin-top: 2em; scroll-margin-top: 24px; }
.rb-cuerpo h3 { margin-top: 1.6em; }
.rb-cuerpo img { border-radius: 16px; }
.rb-cuerpo figure.wp-block-image figcaption { text-align: left; }
.rb-cuerpo :where(p, li) a { color: var(--rb-linea-texto); }
.rb-cuerpo code:not(pre code) {
	font-family: var(--rb-mono);
	font-size: 0.9em;
	background: var(--rb-tarjeta);
	padding: 1px 6px;
	border-radius: 6px;
}

/* Tabla comparativa */
.wp-block-table.is-style-comparativa,
.rb-cuerpo .wp-block-table {
	background: var(--rb-tarjeta);
	border-radius: 16px;
	overflow-x: auto;
}
.rb-cuerpo .wp-block-table table { border-collapse: collapse; min-width: 520px; }
.rb-cuerpo .wp-block-table :where(th, td) { border: 0; border-top: 1px solid var(--rb-divisor); padding: 14px 20px; text-align: left; }
.rb-cuerpo .wp-block-table thead th { border-top: 0; font-family: var(--rb-mono); font-size: 0.78125rem; text-transform: uppercase; color: var(--rb-gris); }
.rb-cuerpo .wp-block-table thead { border-bottom: 0; }
.rb-cuerpo .wp-block-table td:first-child { color: var(--rb-gris); }

/* Checklist */
.wp-block-list.is-style-checklist { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checklist li { position: relative; padding-left: 28px; }
.wp-block-list.is-style-checklist li + li { margin-top: 8px; }
.wp-block-list.is-style-checklist li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--rb-t1); }

/* Código */
.wp-block-code { overflow-x: auto; }
.wp-block-code code { font-family: var(--rb-mono); }

/* FAQ con bloque Detalles */
.rb-cuerpo .wp-block-details {
	background: var(--rb-tarjeta);
	padding: 18px 22px;
	margin-top: 0;
	border-top: 1px solid var(--rb-divisor);
}
.rb-cuerpo .wp-block-details:first-of-type,
.rb-cuerpo h2 + .wp-block-details { border-top: 0; border-radius: 16px 16px 0 0; margin-top: 1.4em; }
.rb-cuerpo .wp-block-details:has(+ :not(.wp-block-details)),
.rb-cuerpo .wp-block-details:last-child { border-radius: 0 0 16px 16px; }
.rb-cuerpo .wp-block-details summary { font-weight: 800; cursor: pointer; }

/* Veredicto */
.rb-veredicto {
	background: var(--rb-tinta);
	color: var(--rb-claro);
	border-radius: 18px;
	padding: clamp(22px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.rb-veredicto__titulo { font-family: var(--rb-mono); font-size: 0.8125rem; font-weight: 700; color: var(--rb-l1); text-transform: uppercase; }
.rb-veredicto__texto { margin: 0; font-size: 1.1875rem; line-height: 1.55; }
.rb-veredicto__perfiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rb-veredicto__perfil { background: var(--rb-tinta-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.rb-veredicto__perfil span { font-size: 0.75rem; font-weight: 700; color: #8B949E; text-transform: uppercase; }
.rb-veredicto__perfil strong { font-weight: 900; font-size: 1.125rem; line-height: 1.3; }

/* Tu recorrido */
.rb-recorrido {
	background: var(--rb-tarjeta);
	border-radius: var(--rb-radio);
	padding: 24px;
}
.rb-recorrido__titulo { display: block; font-family: var(--rb-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rb-gris); padding-bottom: 16px; }
.rb-recorrido ol { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.rb-recorrido ol::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--rb-linea); }
.rb-recorrido li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.rb-recorrido li::before { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--rb-tarjeta); border: 5px solid var(--rb-tinta); box-sizing: border-box; }
.rb-recorrido li.es-actual::before { background: var(--rb-tinta); }
.rb-recorrido a { color: var(--rb-senal); font-weight: 600; text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.rb-recorrido li.es-actual a { color: var(--rb-tinta); font-weight: 800; }
.rb-recorrido a:hover { color: var(--rb-tinta); text-decoration: underline; }

@media (min-width: 1000px) {
	.rb-columna-recorrido { position: sticky; top: 24px; }
}

/* Resumen de noticia */
.rb-resumen {
	background: var(--rb-tinta);
	color: var(--rb-claro);
	border-radius: 18px;
	padding: clamp(20px, 3vw, 28px);
	font-family: var(--rb-mono);
}
.rb-resumen__titulo { display: block; font-size: 0.78125rem; font-weight: 700; color: var(--rb-l3); padding-bottom: 12px; text-transform: uppercase; }
.rb-resumen dl { margin: 0; display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); font-size: 0.96875rem; line-height: 1.5; }
.rb-resumen dt,
.rb-resumen dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--rb-divisor-oscuro); }
.rb-resumen dt { color: #8B949E; text-transform: uppercase; }

.rb-fuente { font-size: 0.9375rem; }

/* Siguiente estación */
.rb-siguiente {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	background: var(--rb-tarjeta);
	border-radius: var(--rb-radio);
	padding: clamp(22px, 3vw, 36px);
	text-decoration: none;
	color: var(--rb-tinta);
}
.rb-siguiente__texto { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-siguiente__texto .rb-mono { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.rb-siguiente__titulo { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.1; }
.rb-siguiente__ruta { flex: 1 1 240px; display: flex; align-items: center; }
.rb-siguiente__barra { flex: 1; height: 8px; background: var(--rb-linea); }
.rb-siguiente__ruta b { padding-left: 14px; font-size: 28px; font-weight: 900; }
.rb-siguiente:hover .rb-siguiente__titulo { text-decoration: underline; }

/* Caja de autor */
.rb-autor { border-top: 2px solid var(--rb-tinta); padding-top: 24px; }
.rb-autor .wp-block-avatar img { border-radius: 50%; }
.rb-autor .wp-block-post-author-name { font-weight: 900; font-size: 1.125rem; }
.rb-autor .wp-block-post-author-biography { font-size: 1rem; color: var(--rb-senal); }

/* ---------- Directorio ---------- */

.rb-fila {
	background: var(--rb-tarjeta);
	border-radius: 16px;
	padding: 20px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: center;
	color: var(--rb-tinta);
	text-decoration: none;
}
.rb-fila:hover .rb-mono-fuerte { text-decoration: underline; }
.rb-fila .rb-pastilla--m { background: var(--rb-linea); color: var(--rb-linea-tinta); }
.rb-fila__nombre { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-fila__titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.125rem; }
.rb-fila__desc { font-size: 1rem; color: var(--rb-senal); line-height: 1.45; }
.rb-fila__datos { flex: 1 1 380px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-family: var(--rb-mono); font-size: 0.84375rem; color: var(--rb-senal); }
.rb-fila--patrocinado { outline: 2px dashed var(--rb-borde); outline-offset: -2px; }
.rb-patrocinado { padding: 2px 10px; border-radius: 999px; background: var(--rb-anden); font-family: var(--rb-mono); font-size: 0.71875rem; font-weight: 700; color: var(--rb-gris); text-transform: uppercase; }
.rb-directorio .wp-block-post + .wp-block-post { margin-top: 14px; }
.rb-directorio .wp-block-post > * { margin: 0; }

.rb-estado { font-family: var(--rb-mono); font-weight: 700; font-size: 0.84375rem; }
.rb-estado--probado { color: var(--rb-t1); }
.rb-estado--listado { color: var(--rb-gris); font-weight: 600; }
.rb-estado--viejo { color: var(--rb-alerta); }

.rb-leyenda { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 0.90625rem; color: var(--rb-senal); }
.rb-leyenda .rb-estado:not(:first-child) { margin-left: 14px; }

/* Letrero de estación (datos del repo) */
.rb-letrero { background: var(--rb-tinta); color: var(--rb-claro); border-radius: 18px; overflow: hidden; }
.rb-letrero__cabeza { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rb-divisor-oscuro); font-weight: 800; }
.rb-letrero .rb-pastilla--l { width: 34px; height: 34px; }
.rb-letrero dl { margin: 0; padding: 8px 22px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: 0.9375rem; }
.rb-letrero dt,
.rb-letrero dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rb-divisor-oscuro); }
.rb-letrero dt { color: #8B949E; }
.rb-letrero dd { font-family: var(--rb-mono); text-align: right; }
.rb-letrero dt:nth-last-of-type(1),
.rb-letrero dd:last-of-type { border-bottom: 0; }
.rb-letrero__boton {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 22px 18px;
	min-height: 48px;
	border-radius: 999px;
	background: var(--rb-claro);
	color: var(--rb-tinta) !important;
	font-weight: 800;
	text-decoration: none;
}
.rb-letrero__boton:hover { background: var(--rb-l1); }
.rb-letrero__pie { padding: 12px 22px; background: var(--rb-tinta-2); font-family: var(--rb-mono); font-size: 0.75rem; color: #8B949E; }

.rb-alternativas h2 { font-size: 1.75rem; margin: 0 0 16px; }
.rb-alternativas__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rb-alt { background: var(--rb-tarjeta); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--rb-tinta); text-decoration: none; }
.rb-alt:hover .rb-mono-fuerte { text-decoration: underline; }
.rb-alt__desc { font-size: 0.96875rem; color: var(--rb-senal); line-height: 1.5; }

/* ---------- Abono semanal (newsletter) y pie ---------- */

.rb-abono { background: var(--rb-tinta); color: var(--rb-claro); }
.rb-abono h2 { color: var(--rb-claro); font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.035em; }
.rb-abono p { color: var(--rb-gris-oscuro); }
.rb-tres-lineas { display: flex; gap: 6px; }
.rb-tres-lineas::before,
.rb-tres-lineas::after,
.rb-tres-lineas span { content: ""; display: block; width: 40px; height: 8px; border-radius: 4px; }
.rb-tres-lineas::before { background: var(--rb-l1); }
.rb-tres-lineas span { background: var(--rb-l2); }
.rb-tres-lineas::after { background: var(--rb-l3); }

.rb-pie { background: var(--rb-tinta); color: #8B949E; border-top: 1px solid var(--rb-divisor-oscuro); font-size: 0.875rem; }
.rb-pie a { color: #8B949E; text-decoration: none; }
.rb-pie a:hover { color: var(--rb-claro); text-decoration: underline; }
.rb-pie .wp-block-navigation a { color: #8B949E; }

/* ---------- Páginas ---------- */

.rb-cabeza-pagina h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.94; letter-spacing: -0.045em; }

/* Recorrido de publicación (Cómo revisamos) */
.rb-pasos { list-style: none; margin: 0; padding: 12px 0 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.rb-pasos::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 8px; border-radius: 4px; background: var(--rb-tinta); }
.rb-pasos li { position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--rb-senal); }
.rb-pasos li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--rb-tarjeta); border: 6px solid var(--rb-tinta); box-sizing: border-box; }
.rb-pasos li.es-humano::before { background: var(--rb-l1); }
.rb-pasos li strong { display: block; color: var(--rb-tinta); font-size: 1.1875rem; font-weight: 900; }
.rb-pasos li em { font-style: normal; font-family: var(--rb-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--rb-gris); }
.rb-pasos li.es-humano em { color: var(--rb-t1); }

@media (max-width: 720px) {
	.rb-pasos { grid-template-columns: 1fr; padding-left: 0; }
	.rb-pasos::before { top: 0; bottom: 0; left: 11px; right: auto; width: 8px; height: auto; }
	.rb-pasos li { padding-left: 44px; }
	.rb-pasos li::before { position: absolute; left: 0; top: 0; }
}

/* ---------- Búsqueda ---------- */

.wp-block-search__input {
	min-height: 50px;
	border-radius: 999px;
	border: 2px solid var(--rb-borde);
	padding: 0 18px;
	font: inherit;
	background: var(--rb-tarjeta);
}
.wp-block-search__button { border-radius: 999px; margin-left: 8px; }
.wp-block-search { flex: 1 1 280px; min-width: 0; }
.wp-block-search__inside-wrapper { flex-wrap: wrap; row-gap: 8px; }
.wp-block-search__input { min-width: 0; flex: 1 1 200px; }

@media (max-width: 640px) {
	.rb-tablero table { min-width: 0; }
	.rb-tablero th:nth-child(4),
	.rb-tablero td:nth-child(4) { display: none; }
	.rb-tablero td { font-size: 0.9375rem; padding-right: 12px; }
	.rb-fila__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Editor ---------- */

.editor-styles-wrapper .rb-cabecera { padding-block: 0; }

/* Las secciones de la plantilla se tocan sin franjas de fondo entre ellas. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.rb-componente > :first-child { margin-top: 0; }

main .rb-aviso { margin-left: 0 !important; }
.wp-block-button.rb-nav-l1 .wp-block-button__link::before,
.wp-block-button.rb-nav-l2 .wp-block-button__link::before,
.wp-block-button.rb-nav-l3 .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: -1px;
}
.wp-block-button.rb-nav-l1 .wp-block-button__link::before { background: var(--rb-l1); }
.wp-block-button.rb-nav-l2 .wp-block-button__link::before { background: var(--rb-l2); }
.wp-block-button.rb-nav-l3 .wp-block-button__link::before { background: var(--rb-l3); }
