/* Fuentes autoalojadas: genera menos peticiones y evita el bloqueo de Google Fonts */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/25c61ceb68.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a4fe79f7ca.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a972324267.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/25c61ceb68.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a4fe79f7ca.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a972324267.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/25c61ceb68.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a4fe79f7ca.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/a972324267.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/e5bab11d09.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/40fe3cf772.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/e5bab11d09.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/40fe3cf772.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/e5bab11d09.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(//radiobonanza997.com/wp-content/themes/radio-bonanza/assets/fonts/40fe3cf772.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*
Theme Name: Radio Bonanza
Theme URI: https://radiobonanza997.com/
Author: HostingNica
Author URI: https://hostingnica.net/
Description: Tema de bloques nativo para Radio Bonanza 99.7 FM. Diseño oscuro con acentos naranja y teal, modo claro conmutable, carrusel de portada con reproductor, noticias por categorías, equipo y formulario de contacto sin plugins.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.11.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radio-bonanza
Tags: block-theme, blog, news, dark-mode, light-mode, custom-colors, editor-style, featured-images, full-site-editing, translation-ready
*/

/* ==========================================================================
   1. Tokens — modo oscuro (por defecto)
   ========================================================================== */
:root {
	--rb-bg: #0c1226;
	--rb-bg-2: #131b36;
	--rb-surface: #131b36;
	--rb-surface-2: #18213f;
	--rb-ink: #eef1f7;
	--rb-mut: #9aa6c4;
	--rb-hot: #ff6a2b;
	--rb-hot-ink: #1a0b04;
	--rb-sig: #3dd6c6;
	--rb-sig-ink: #05221f;
	--rb-line: #26335a;
	--rb-line-soft: rgba(255, 255, 255, .07);
	--rb-header: rgba(12, 18, 38, .82);
	--rb-glass: rgba(8, 12, 26, .9);
	--rb-shadow: 0 18px 40px rgba(0, 0, 0, .38);
	--rb-shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
	--rb-ring: rgba(61, 214, 198, .35);
	--rb-glow: radial-gradient(60% 60% at 50% 0%, rgba(255, 106, 43, .16), transparent 70%);
	--rb-radius: 18px;
	--rb-wrap-max: 1140px;
	--rb-g-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
	--rb-g-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color-scheme: dark;
}

/* ==========================================================================
   2. Tokens — modo claro
   ========================================================================== */
[data-theme="light"] {
	--rb-bg: #f5f7fc;
	--rb-bg-2: #ffffff;
	--rb-surface: #ffffff;
	--rb-surface-2: #f1f4fb;
	--rb-ink: #101728;
	--rb-mut: #5a6478;
	--rb-hot: #e2551b;
	--rb-hot-ink: #ffffff;
	--rb-sig: #0f8f84;
	--rb-sig-ink: #ffffff;
	--rb-line: #dfe4ef;
	--rb-line-soft: rgba(16, 23, 40, .08);
	--rb-header: rgba(255, 255, 255, .86);
	--rb-glass: rgba(255, 255, 255, .92);
	--rb-shadow: 0 18px 42px rgba(23, 37, 66, .12);
	--rb-shadow-sm: 0 6px 18px rgba(23, 37, 66, .08);
	--rb-ring: rgba(15, 143, 132, .28);
	--rb-glow: radial-gradient(60% 60% at 50% 0%, rgba(226, 85, 27, .1), transparent 70%);
	color-scheme: light;

	/* Remapeo de la paleta de bloques para que los bloques nativos se adapten */
	--wp--preset--color--base: #f5f7fc;
	--wp--preset--color--surface: #ffffff;
	--wp--preset--color--ink: #101728;
	--wp--preset--color--muted: #5a6478;
	--wp--preset--color--accent: #e2551b;
	--wp--preset--color--signal: #0f8f84;
	--wp--preset--color--line: #dfe4ef;
	--wp--preset--color--white: #ffffff;
}

[data-theme="dark"] {
	--wp--preset--color--base: #0c1226;
	--wp--preset--color--surface: #131b36;
	--wp--preset--color--ink: #eef1f7;
	--wp--preset--color--muted: #9aa6c4;
	--wp--preset--color--accent: #ff6a2b;
	--wp--preset--color--signal: #3dd6c6;
	--wp--preset--color--line: #26335a;
	--wp--preset--color--white: #ffffff;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	font-family: var(--rb-g-body);
	background: var(--rb-bg);
	color: var(--rb-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
	font-family: var(--rb-g-display);
	line-height: 1.05;
	margin: 0;
	letter-spacing: -.02em;
}

p {
	color: var(--rb-mut);
}

a {
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid var(--rb-sig);
	outline-offset: 3px;
	border-radius: 6px;
}

.rb-wrap {
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
}

.rb-section {
	padding: 96px 0;
}

.rb-lead {
	color: var(--rb-mut);
	max-width: 56ch;
	margin: 0 0 40px;
	font-size: 1.05rem;
}

.rb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rb-sig);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.rb-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--rb-sig);
	border-radius: 2px;
}

.rb-h2 {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 800;
	margin: 0 0 12px;
	color: var(--rb-ink);
}

/* ==========================================================================
   4. Encabezado
   ========================================================================== */
.rb-header {
	position: relative;
	z-index: 60;
	background: var(--rb-header);
	border-bottom: 1px solid var(--rb-line);
	transition: box-shadow .25s ease;
}

/* El desenfoque va en un pseudo-elemento: aplicado al propio encabezado crea un
   bloque contenedor y el menú móvil (position: fixed) queda recortado dentro. */
.rb-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.rb-header > * {
	position: relative;
	z-index: 1;
}

/* Cabecera fija: se activa desde el panel (Portada → Cabecera).
   WordPress envuelve la parte de plantilla en su propio <header>, que mide lo
   mismo que la barra; sin fijar ese contenedor, position: sticky no tiene
   recorrido y la cabecera nunca se pega. */
body.rb-sticky-header .wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 60;
}

/* Refuerzo para plantillas donde la cabecera no sea la primera parte. */
@supports selector(:has(*)) {
	body.rb-sticky-header .wp-block-template-part:has(> .rb-header) {
		position: sticky;
		top: 0;
		z-index: 60;
	}
}

body.rb-sticky-header .rb-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

[data-theme="light"] body.rb-sticky-header .rb-header.is-scrolled,
html[data-theme="light"] body.rb-sticky-header .rb-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(23, 37, 66, .12);
}

.rb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 70px;
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
}

/* Marca */
.rb-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rb-brand .wp-block-site-title {
	font-family: var(--rb-g-display);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -.02em;
	margin: 0;
	line-height: 1.1;
}

.rb-brand .wp-block-site-title a {
	color: var(--rb-ink);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.rb-brand .wp-block-site-title a::before {
	content: "";
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--rb-hot) 0 28%, transparent 30%),
		repeating-radial-gradient(circle, var(--rb-sig) 0 2px, transparent 2px 7px);
}

.rb-brand .wp-block-site-tagline {
	font-size: .78rem;
	color: var(--rb-mut);
	margin: 0;
	font-family: var(--rb-g-body);
}

/* Marca configurable (módulo RB · Marca) */
.rb-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.rb-brand__logo {
	display: block;
	height: var(--rb-logo-h, 40px);
	width: auto;
	max-width: 240px;
	object-fit: contain;
}

.rb-brand__mark {
	width: var(--rb-logo-h, 40px);
	height: var(--rb-logo-h, 40px);
	flex: none;
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--rb-hot) 0 28%, transparent 30%),
		repeating-radial-gradient(circle, var(--rb-sig) 0 2px, transparent 2px 7px);
}

.rb-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
}

.rb-brand__name {
	font-family: var(--rb-g-display);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -.02em;
	color: var(--rb-ink);
}

.rb-brand__tagline {
	margin-top: 2px;
	font-size: .72rem;
	line-height: 1.2;
	color: var(--rb-mut);
}

@media (max-width: 1100px) {
	.rb-brand__tagline {
		display: none;
	}
}

@media (max-width: 520px) {
	.rb-brand {
		gap: 8px;
	}

	.rb-brand__name {
		font-size: 1.1rem;
	}
}

/* Navegación */
.rb-header .wp-block-navigation {
	font-weight: 500;
	font-size: .98rem;
}

.rb-header .wp-block-navigation a {
	color: var(--rb-mut);
	transition: color .2s ease;
}

.rb-header .wp-block-navigation a:hover,
.rb-header .wp-block-navigation .current-menu-item > a {
	color: var(--rb-ink);
}

/* Elemento activo del menú */
.rb-header .wp-block-navigation .rb-nav-active > a {
	color: var(--rb-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--rb-hot);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

/* --------------------------------------------------------------------------
   Menú móvil: capa a pantalla completa, color del sitio translúcido + blur
   -------------------------------------------------------------------------- */
.rb-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	z-index: 99990;
	display: block !important;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 96px 24px 48px;
	background: var(--rb-header) !important;
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	backdrop-filter: blur(22px) saturate(140%);
	color: var(--rb-ink);
}

body.admin-bar .rb-header .wp-block-navigation__responsive-container.is-menu-open {
	padding-top: 128px;
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: static;
	background: transparent !important;
	color: var(--rb-ink);
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--rb-line);
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: 0;
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 16px 2px;
	font-size: 1.18rem;
	font-weight: 600;
	color: var(--rb-ink);
}

.rb-header .wp-block-navigation__responsive-container.is-menu-open .rb-nav-active > .wp-block-navigation-item__content {
	color: var(--rb-sig);
	text-decoration: none;
}

/* Botón de cierre: fijo, con tamaño táctil y siempre por encima del overlay */
.rb-header .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 99995;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--rb-line);
	border-radius: 50%;
	background: var(--rb-bg-2);
	color: var(--rb-ink);
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.rb-header .wp-block-navigation__responsive-container-close:hover {
	background: var(--rb-hot);
	border-color: var(--rb-hot);
	color: var(--rb-hot-ink);
}

.rb-header .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
}

/* Con la barra de administración, el botón baja para no quedar debajo */
body.admin-bar .rb-header .wp-block-navigation__responsive-container-close {
	top: 50px;
}

/* En escritorio el menú vuelve a ser una fila normal, sin capa */
@media (min-width: 600px) {
	.rb-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		background: transparent !important;
		padding: 0;
		position: static;
		height: auto;
	}
}

.rb-header .wp-block-navigation__responsive-container-close,
.rb-header .wp-block-navigation__responsive-container-open {
	color: var(--rb-ink);
}

/* Acciones del encabezado */
.rb-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.rb-header__actions .wp-block-button__link {
	padding: .6em 1.35em;
	font-size: .92rem;
}

/* Botón de tema */
.rb-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rb-line);
	background: var(--rb-surface);
	color: var(--rb-ink);
	cursor: pointer;
	padding: 0;
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.rb-toggle:hover {
	transform: translateY(-1px);
	border-color: var(--rb-sig);
}

.rb-toggle svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rb-toggle .rb-icon-sun {
	display: none;
}

[data-theme="light"] .rb-toggle .rb-icon-sun {
	display: block;
}

[data-theme="light"] .rb-toggle .rb-icon-moon {
	display: none;
}

/* Botón del encabezado / reproductor */
.rb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 11px 22px;
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	font: 700 .92rem var(--rb-g-body);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
	white-space: nowrap;
}

.rb-btn:hover {
	transform: translateY(-2px);
	background: var(--rb-sig);
	color: var(--rb-sig-ink);
}

/* ==========================================================================
   5. Hero + carrusel
   ========================================================================== */
.rb-hero {
	position: relative;
	min-height: calc(100svh - 70px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.rb-slides {
	position: relative;
	flex: 1;
	min-height: 520px;
}

.rb-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s ease;
	overflow: hidden;
	padding: 0;
}

.rb-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.rb-slide--1 { background: linear-gradient(120deg, #0c1226 15%, #3a1d63 70%, #ff6a2b 140%); }
.rb-slide--2 { background: linear-gradient(120deg, #0c1226 15%, #0b4a52 75%, #3dd6c6 150%); }
.rb-slide--3 { background: linear-gradient(120deg, #0c1226 15%, #5a1530 70%, #ff6a2b 150%); }
.rb-slide--4 { background: linear-gradient(120deg, #0c1226 15%, #1d2e6e 75%, #7a8cff 160%); }
.rb-slide--5 { background: linear-gradient(120deg, #0c1226 15%, #0b3a52 75%, #6bd0ff 160%); }

[data-theme="light"] .rb-slide--1 { background: linear-gradient(120deg, #2b1a4d 0%, #6b3a8f 65%, #ff8a4c 130%); }
[data-theme="light"] .rb-slide--2 { background: linear-gradient(120deg, #08343a 0%, #0d6b70 70%, #3dd6c6 140%); }
[data-theme="light"] .rb-slide--3 { background: linear-gradient(120deg, #42112a 0%, #8a2145 70%, #ff6a2b 140%); }
[data-theme="light"] .rb-slide--4 { background: linear-gradient(120deg, #131f4f 0%, #2b3f8f 70%, #7a8cff 150%); }
[data-theme="light"] .rb-slide--5 { background: linear-gradient(120deg, #062a3a 0%, #0b5670 70%, #6bd0ff 150%); }

/* Anillos decorativos */
.rb-slide::after {
	content: "";
	position: absolute;
	right: -6%;
	bottom: -22%;
	width: 62%;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		repeating-radial-gradient(circle, rgba(61, 214, 198, .45) 0 2px, transparent 2px 42px);
	opacity: .35;
	pointer-events: none;
	mask-image: radial-gradient(circle, #000 35%, transparent 72%);
	-webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}

.rb-slide__inner {
	position: relative;
	z-index: 2;
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
	padding-bottom: 96px;
}

.rb-slide__tag {
	display: inline-block;
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	font-weight: 700;
	padding: 5px 15px;
	border-radius: 999px;
	margin-bottom: 18px;
	font-size: .88rem;
}

.rb-slide__text {
	max-width: 640px;
}

.rb-slide h1,
.rb-slide h2 {
	color: #fff;
	font-size: clamp(2.4rem, 6.6vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin-bottom: 20px;
	text-wrap: balance;
}

.rb-slide p {
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	color: #d6dcee;
	margin: 0 0 28px;
	max-width: 46ch;
}

.rb-slide .wp-block-buttons {
	margin-top: 4px;
}

/* Controles del carrusel */
.rb-slider-ui {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
}

.rb-arrow {
	pointer-events: auto;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	background: rgba(12, 18, 38, .45);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.rb-arrow:hover {
	background: var(--rb-hot);
	border-color: var(--rb-hot);
	color: var(--rb-hot-ink);
}

.rb-arrow--prev { left: 20px; }
.rb-arrow--next { right: 20px; }

.rb-dots {
	pointer-events: auto;
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 6;
}

.rb-dots button {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, .42);
	cursor: pointer;
	padding: 0;
	transition: width .25s ease, background .25s ease;
}

.rb-dots button.is-active {
	background: var(--rb-hot);
	width: 34px;
}

/* ==========================================================================
   6. Reproductor
   ========================================================================== */
.rb-player {
	position: relative;
	z-index: 7;
	background: var(--rb-glass);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--rb-line);
	padding: 10px 0;
}

.rb-player__inner {
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	min-height: 76px;
}

.rb-play {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 0;
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	font-size: 1.2rem;
	cursor: pointer;
	flex: none;
	display: grid;
	place-items: center;
	transition: background .2s ease, transform .2s ease;
}

.rb-play:hover {
	background: var(--rb-sig);
	color: var(--rb-sig-ink);
	transform: scale(1.04);
}

.rb-now {
	flex: 1;
	min-width: 170px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rb-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rb-hot);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rb-live::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rb-hot);
	animation: rb-pulse 1.6s infinite;
}

@keyframes rb-pulse {
	50% { opacity: .25; }
}

.rb-now strong {
	font-family: var(--rb-g-display);
	font-weight: 800;
	font-size: 1.08rem;
	line-height: 1.2;
	color: var(--rb-ink);
}

.rb-now span {
	color: var(--rb-mut);
	font-size: .86rem;
}

.rb-eq {
	display: flex;
	gap: 3px;
	align-items: flex-end;
	height: 30px;
}

.rb-eq i {
	width: 5px;
	height: 6px;
	background: var(--rb-sig);
	border-radius: 2px;
}

.rb-player.is-playing .rb-eq i {
	animation: rb-eq .9s ease-in-out infinite;
}

.rb-eq i:nth-child(2) { animation-delay: .15s; }
.rb-eq i:nth-child(3) { animation-delay: .3s; }
.rb-eq i:nth-child(4) { animation-delay: .45s; }
.rb-eq i:nth-child(5) { animation-delay: .6s; }

@keyframes rb-eq {
	50% { height: 30px; }
}

.rb-vol {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--rb-mut);
	font-size: .9rem;
}

.rb-vol input[type="range"] {
	accent-color: var(--rb-hot);
	width: 110px;
}

/* ==========================================================================
   7. Franja de características
   ========================================================================== */
.rb-strip {
	background: var(--rb-bg-2);
	border-block: 1px solid var(--rb-line);
	padding: 56px 0;
}

.rb-strip__inner {
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}

.rb-strip h3 {
	color: var(--rb-sig);
	font-size: 1.12rem;
	margin: 0 0 8px;
}

.rb-strip p {
	margin: 0;
	color: var(--rb-mut);
	font-size: .97rem;
}

/* Franja de características (módulo del panel) */
.rb-strip__item {
	margin: 0;
}

.rb-strip__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: rgba(61, 214, 198, .12);
	color: var(--rb-sig);
}

.rb-strip__icon svg {
	width: 26px;
	height: 26px;
}

[data-theme="light"] .rb-strip__icon {
	background: rgba(15, 143, 132, .12);
}

/* ==========================================================================
   8. Noticias
   ========================================================================== */
.rb-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.rb-tabs .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--rb-line);
	color: var(--rb-mut);
	border-radius: 999px;
	padding: .45em 1.15em;
	font: 500 .95rem var(--rb-g-body);
	transition: all .2s ease;
}

.rb-tabs .wp-block-button__link:hover,
.rb-tabs .is-active .wp-block-button__link {
	background: var(--rb-sig);
	border-color: var(--rb-sig);
	color: var(--rb-sig-ink);
}

/* Listados (blog, categorías, búsqueda): la rejilla va en el <ul> del query.
   El contenedor .rb-news-grid NO se convierte en rejilla, porque el bloque de
   consulta es su único hijo y se quedaría en una sola columna. */
.rb-news-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: stretch;
}

.rb-news-grid .wp-block-post-template > li {
	display: flex;
	margin: 0;
}

.rb-card {
	width: 100%;
	background: var(--rb-surface);
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rb-shadow);
	border-color: color-mix(in srgb, var(--rb-line) 55%, var(--rb-sig));
}

.rb-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	height: auto;
	overflow: hidden;
	background: var(--rb-surface-2);
}

.rb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.rb-card:hover .rb-card__media img {
	transform: scale(1.05);
}

.rb-card__media .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
}

/* Miniatura degradada cuando la entrada no tiene imagen */
.rb-thumb {
	height: 100%;
	width: 100%;
	background: var(--rb-grad, linear-gradient(135deg, #3a1d63, #ff6a2b));
	position: relative;
}

.rb-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-radial-gradient(circle at 85% 120%, rgba(255, 255, 255, .18) 0 2px, transparent 2px 26px);
	opacity: .5;
}

.rb-card__chip {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 2;
	background: var(--rb-glass);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.rb-card__chip a {
	color: var(--rb-ink);
}

.rb-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.rb-card__body h3,
.rb-card__body .wp-block-post-title {
	font-size: 1.18rem;
	line-height: 1.25;
	margin: 0;
}

.rb-card__body .wp-block-post-title a {
	color: var(--rb-ink);
}

.rb-card__body .wp-block-post-title a:hover {
	color: var(--rb-hot);
}

.rb-card__body p,
.rb-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--rb-mut);
	font-size: .95rem;
	line-height: 1.55;
}

.rb-card__body .wp-block-post-date {
	color: var(--rb-mut);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-top: auto;
}

/* ==========================================================================
   9. Equipo
   ========================================================================== */
.rb-staff {
	background: var(--rb-bg-2);
	border-block: 1px solid var(--rb-line);
}

/* Carrusel del equipo: deslizable con el dedo, flechas opcionales */
.rb-carousel {
	position: relative;
}

.rb-carousel__viewport {
	overflow: hidden;
}

.rb-carousel__track {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 6px 2px 10px;
}

.rb-carousel__track::-webkit-scrollbar {
	display: none;
}

.rb-carousel__item {
	flex: 0 0 calc((100% - (var(--rb-visible, 3) - 1) * 32px) / var(--rb-visible, 3));
	scroll-snap-align: start;
	min-width: 0;
}

.rb-carousel__arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--rb-line);
	background: var(--rb-surface);
	color: var(--rb-ink);
	font-size: 1.5rem;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: var(--rb-shadow-sm);
	transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.rb-carousel__arrow:hover {
	background: var(--rb-hot);
	border-color: var(--rb-hot);
	color: var(--rb-hot-ink);
}

.rb-carousel__arrow:disabled {
	opacity: .3;
	cursor: default;
	background: var(--rb-surface);
	color: var(--rb-ink);
	border-color: var(--rb-line);
}

.rb-carousel__arrow--prev {
	left: -18px;
}

.rb-carousel__arrow--next {
	right: -18px;
}

.rb-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.rb-carousel__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--rb-line);
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}

.rb-carousel__dots button.is-active {
	width: 28px;
	background: var(--rb-hot);
}

@media (max-width: 1024px) {
	.rb-carousel__item {
		flex-basis: calc((100% - 32px) / 2);
	}
}

@media (max-width: 640px) {
	.rb-carousel__item {
		flex-basis: 100%;
	}

	.rb-carousel__arrow--prev {
		left: 0;
	}

	.rb-carousel__arrow--next {
		right: 0;
	}
}

/* Grilla del equipo (página Staff) */
.rb-staff-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.rb-staff-grid > * {
	margin-block-start: 0 !important;
}

@media (max-width: 1200px) {
	.rb-staff-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.rb-staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.rb-staff-grid {
		grid-template-columns: 1fr;
	}
}

.rb-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.rb-avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font: 800 2.6rem var(--rb-g-display);
	color: #fff;
	background: var(--rb-grad, linear-gradient(135deg, #ff6a2b, #7a1d4a));
	box-shadow: 0 0 0 4px var(--rb-bg-2), 0 0 0 6px var(--rb-hot);
	margin-bottom: 14px;
	overflow: hidden;
}

.rb-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-person h3,
.rb-person .wp-block-post-title {
	font-size: 1.22rem;
	margin: 0;
}

.rb-person .wp-block-post-title a {
	color: var(--rb-ink);
}

.rb-person .wp-block-post-excerpt__excerpt {
	color: var(--rb-sig);
	font-weight: 500;
	font-size: .95rem;
	margin: 0;
}

.rb-person .wp-block-post-content,
.rb-person .rb-bio {
	color: var(--rb-mut);
	font-size: .93rem;
	margin: 4px 0 0;
}

/* ==========================================================================
   10. Contacto
   ========================================================================== */
.rb-contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 56px;
	align-items: start;
}

.rb-info p {
	margin: 0 0 14px;
	color: var(--rb-mut);
}

.rb-info b {
	color: var(--rb-ink);
}

.rb-form {
	display: grid;
	gap: 16px;
}

.rb-form label {
	display: grid;
	gap: 6px;
	font-weight: 500;
	color: var(--rb-ink);
	font-size: .95rem;
}

.rb-form input,
.rb-form select,
.rb-form textarea {
	background: var(--rb-bg-2);
	border: 2px solid var(--rb-line);
	border-radius: 12px;
	color: var(--rb-ink);
	padding: 13px 16px;
	font: 400 1rem var(--rb-g-body);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.rb-form input:focus,
.rb-form select:focus,
.rb-form textarea:focus {
	border-color: var(--rb-sig);
	outline: 0;
	box-shadow: 0 0 0 4px var(--rb-ring);
}

.rb-form button[type="submit"] {
	justify-self: start;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font: 700 1rem var(--rb-g-body);
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.rb-form button[type="submit"]:hover {
	transform: translateY(-2px);
	background: var(--rb-sig);
	color: var(--rb-sig-ink);
}

.rb-form__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.rb-ok {
	color: var(--rb-sig);
	font-weight: 700;
	min-height: 1.5em;
	margin: 0;
}

.rb-error {
	color: var(--rb-hot);
	font-weight: 700;
	min-height: 1.5em;
	margin: 0;
}

/* ==========================================================================
   11. Mapa
   ========================================================================== */
.rb-map {
	position: relative;
	height: 440px;
	background: var(--rb-bg-2);
	border-top: 1px solid var(--rb-line);
	overflow: hidden;
	padding: 0;
}

.rb-map > svg {
	width: 100%;
	height: 100%;
	display: block;
}

.rb-map__pin {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -110%);
	text-align: center;
	z-index: 3;
}

.rb-map__pin .lbl {
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 12px;
	white-space: nowrap;
	box-shadow: var(--rb-shadow-sm);
}

.rb-map__pin .lbl small {
	display: block;
	font-weight: 500;
	opacity: .85;
	font-size: .8rem;
}

.rb-map__pin::after {
	content: "";
	display: block;
	margin: 0 auto;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: var(--rb-hot);
}

.os-map__link,
.rb-map__link {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 4;
}

/* Mapa embebido de Google Maps */
.rb-map--embed {
	padding: 0;
	background: var(--rb-surface-2);
}

.rb-map__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(.95);
}

.rb-map--embed .rb-map__pin {
	display: none;
}

/* ==========================================================================
   12. Archivo / entrada
   ========================================================================== */
.rb-archive-head {
	background: var(--rb-bg-2);
	border-bottom: 1px solid var(--rb-line);
	padding: 64px 0 44px;
}

.rb-archive-head .rb-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rb-single {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.rb-single .wp-block-post-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 16px;
	color: var(--rb-ink);
}

.rb-single__meta {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	color: var(--rb-mut);
	font-size: .88rem;
	margin-bottom: 26px;
}

.rb-single .wp-block-post-featured-image {
	margin: 0 0 30px;
	border-radius: var(--rb-radius);
	overflow: hidden;
}

.rb-single .wp-block-post-content {
	font-size: 1.04rem;
	line-height: 1.8;
	color: var(--rb-ink);
}

.rb-single .wp-block-post-content p {
	color: var(--rb-ink);
}

.rb-single .wp-block-post-content h2,
.rb-single .wp-block-post-content h3 {
	margin-top: 1.8em;
}

.rb-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.rb-pagination .page-numbers {
	padding: 9px 15px;
	border-radius: 10px;
	border: 1px solid var(--rb-line);
	color: var(--rb-mut);
}

.rb-pagination .page-numbers.current,
.rb-pagination .page-numbers:hover {
	background: var(--rb-sig);
	border-color: var(--rb-sig);
	color: var(--rb-sig-ink);
}

.rb-badge {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.rb-badge a {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	border: 1px solid var(--rb-line);
	background: var(--rb-surface);
	color: var(--rb-ink);
	font-size: .8rem;
	font-weight: 700;
}

.rb-badge a:hover {
	border-color: var(--rb-sig);
	color: var(--rb-sig);
}

.rb-single__nav {
	margin-top: 28px;
}

.rb-single__nav a {
	font-weight: 600;
	color: var(--rb-sig);
}

.wp-block-search {
	max-width: 520px;
}

.wp-block-search__input {
	background: var(--rb-bg-2);
	border: 2px solid var(--rb-line);
	border-radius: 999px;
	padding: 12px 20px;
	color: var(--rb-ink);
	font-family: var(--rb-g-body);
}

.wp-block-search__input:focus {
	border-color: var(--rb-sig);
	outline: 0;
	box-shadow: 0 0 0 4px var(--rb-ring);
}

.wp-block-search__button {
	border-radius: 999px;
}

/* ==========================================================================
   13. Pie
   ========================================================================== */
.rb-footer {
	background: var(--rb-bg-2);
	border-top: 1px solid var(--rb-line);
	padding: 56px 0 28px;
}

.rb-footer__inner {
	width: min(var(--rb-wrap-max), 92%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.rb-footer h4 {
	font-family: var(--rb-g-display);
	font-size: .86rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rb-ink);
	margin: 0 0 14px;
}

.rb-footer p,
.rb-footer a {
	color: var(--rb-mut);
	font-size: .93rem;
	line-height: 1.7;
}

.rb-footer a:hover {
	color: var(--rb-sig);
}

.rb-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rb-footer li {
	margin-bottom: 8px;
}

.rb-footer__bottom {
	width: min(var(--rb-wrap-max), 92%);
	margin: 34px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--rb-line);
	text-align: center;
	color: var(--rb-mut);
	font-size: .86rem;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.rb-contact__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.rb-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1100px) {
	.rb-header__inner {
		gap: 12px;
		flex-wrap: wrap;
	}

	.rb-header .wp-block-navigation {
		font-size: .92rem;
	}

	.rb-brand .wp-block-site-tagline {
		display: none;
	}
}

@media (max-width: 820px) {
	.rb-section {
		padding: 64px 0;
	}

	.rb-hero {
		min-height: auto;
	}

	.rb-slides {
		min-height: 620px;
	}

	.rb-slide {
		align-items: flex-start;
		padding-top: 48px;
	}

	.rb-slide__inner {
		padding-bottom: 150px;
	}

	.rb-slide::after {
		width: 110%;
		right: -30%;
		bottom: -10%;
		opacity: .22;
	}

	.rb-arrow {
		width: 42px;
		height: 42px;
	}

	.rb-dots {
		bottom: 118px;
	}

	.rb-player__inner {
		gap: 12px;
		padding: 6px 0;
	}

	.rb-vol {
		display: none;
	}

	.rb-eq {
		display: none;
	}

	.rb-brand .wp-block-site-tagline {
		display: none;
	}

	.rb-header__actions .wp-block-button {
		display: none;
	}

	.rb-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rb-map {
		height: 340px;
	}
}

@media (max-width: 520px) {
	.rb-slide h1,
	.rb-slide h2 {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}

	.rb-arrow {
		display: none;
	}
}

/* ==========================================================================
   15. Accesibilidad y utilidades
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	padding: 12px 18px;
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999999;
	border-radius: 8px;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.wp-block-post-content > * + * {
	margin-block-start: 1.1em;
}

.rb-no-results {
	padding: 28px 0;
	color: var(--rb-mut);
}

/* ==========================================================================
   16. Módulos dinámicos (bloques del tema)
   ========================================================================== */
.rb-slide__title {
	color: #fff;
	font-size: clamp(2.4rem, 6.6vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 0 0 20px;
	line-height: 1.05;
	text-wrap: balance;
}

.rb-slide__lead {
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	color: #d6dcee;
	margin: 0 0 28px;
	max-width: 46ch;
}

.rb-slide__cta {
	margin-top: 4px;
}

/* Pestañas (enlaces a categorías) */
.rb-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 32px;
}

.rb-tab {
	display: inline-block;
	padding: .5em 1.2em;
	border-radius: 999px;
	border: 2px solid var(--rb-line);
	color: var(--rb-mut);
	font-weight: 500;
	font-size: .95rem;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rb-tab:hover,
.rb-tab.is-active {
	background: var(--rb-sig);
	border-color: var(--rb-sig);
	color: var(--rb-sig-ink);
}

/* Tarjetas generadas por el módulo de noticias */
.rb-card__link {
	display: block;
	height: 100%;
}

.rb-card__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.rb-card:hover .rb-card__link img {
	transform: scale(1.05);
}

.rb-thumb {
	display: block;
}

.rb-card__title {
	font-size: 1.18rem;
	line-height: 1.25;
	margin: 0;
}

.rb-card__title a {
	color: var(--rb-ink);
}

.rb-card__title a:hover {
	color: var(--rb-hot);
}

.rb-card__excerpt {
	margin: 0;
	color: var(--rb-mut);
	font-size: .95rem;
	line-height: 1.55;
}

.rb-card__date {
	color: var(--rb-mut);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-top: auto;
}

.rb-card__chip a {
	color: var(--rb-ink);
	text-decoration: none;
}

/* Equipo */
.rb-person__name {
	font-size: 1.22rem;
	margin: 0;
}

.rb-person__name a {
	color: var(--rb-ink);
}

.rb-person__role {
	color: var(--rb-sig);
	font-weight: 500;
	font-size: .95rem;
	margin: 0;
}

.rb-person__bio {
	color: var(--rb-mut);
	font-size: .93rem;
	margin: 4px 0 0;
}

/* Contacto */
.rb-info__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.rb-info__list li {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--rb-mut);
}

.rb-info__list span {
	min-width: 104px;
	color: var(--rb-ink);
	font-weight: 600;
}

.rb-info__list a {
	color: var(--rb-sig);
}

/* Avisos del editor / vista previa */
.rb-block-notice {
	border: 2px dashed var(--rb-line);
	border-radius: 14px;
	padding: 28px;
	text-align: center;
	color: var(--rb-mut);
	background: var(--rb-bg-2);
}

.rb-block-notice strong {
	display: block;
	margin-bottom: 6px;
	color: var(--rb-ink);
}

.rb-editor-preview {
	pointer-events: none;
}

.rb-categories-control {
	max-height: 220px;
	overflow: auto;
}

/* Rejilla del módulo RB · Noticias (sus tarjetas son hijas directas) */
.rb-news-grid--module {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Columnas configurables (1 a 4) desde el panel */
.rb-news-grid--module.rb-cols-1 { grid-template-columns: 1fr; }
.rb-news-grid--module.rb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-news-grid--module.rb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-news-grid--module.rb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.rb-news-grid .wp-block-post-template,
	.rb-news-grid--module,
	.rb-news-grid--module.rb-cols-2,
	.rb-news-grid--module.rb-cols-3,
	.rb-news-grid--module.rb-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rb-news-grid .wp-block-post-template,
	.rb-news-grid--module,
	.rb-news-grid--module.rb-cols-1,
	.rb-news-grid--module.rb-cols-2,
	.rb-news-grid--module.rb-cols-3,
	.rb-news-grid--module.rb-cols-4 {
		grid-template-columns: 1fr;
	}
}

.rb-news-grid .rb-card {
	height: 100%;
}
/* Las rejillas de los módulos no heredan el margen entre bloques:
   WordPress lo aplica a partir del segundo hijo y descuadra las columnas. */
.rb-strip__inner > *,
.rb-live > *,
.rb-features > *,
.rb-news-grid > *,
.rb-team-grid > *,
.rb-contact__grid > * {
	margin-block-start: 0 !important;
}

.rb-strip__inner {
	align-items: start;
}

.rb-footer__brand {
	font-family: var(--rb-g-display);
	font-size: 1.05rem;
	letter-spacing: .02em;
	margin: 0 0 6px;
	color: var(--rb-ink);
}

.rb-footer__slogan {
	color: var(--rb-mut);
	font-size: .93rem;
	margin: 0 0 14px;
}

.rb-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
}

.rb-footer__social-link {
	color: var(--rb-sig);
	font-weight: 600;
	font-size: .9rem;
}

.rb-footer__contact {
	color: var(--rb-mut);
	font-size: .93rem;
	line-height: 1.8;
	margin: 0;
}

.rb-footer__label {
	color: var(--rb-ink);
	font-weight: 600;
}

.rb-footer__copy {
	margin: 0;
	color: var(--rb-mut);
	font-size: .86rem;
}

/* Reproductor compacto en la barra de navegación */
.rb-hplayer {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 14px 5px 5px;
	border: 1px solid var(--rb-line);
	border-radius: 999px;
	background: var(--rb-surface);
}

.rb-hplayer__btn {
	width: 36px;
	height: 36px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--rb-hot);
	color: var(--rb-hot-ink);
	font-size: .9rem;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.rb-hplayer__btn:hover {
	background: var(--rb-sig);
	color: var(--rb-sig-ink);
}

.rb-hplayer__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.rb-hplayer .rb-live {
	font-size: .6rem;
	letter-spacing: .08em;
}

.rb-hplayer .rb-live::before {
	width: 6px;
	height: 6px;
}

.rb-hplayer__name {
	font-family: var(--rb-g-body);
	font-size: .8rem;
	font-weight: 700;
	color: var(--rb-ink);
	white-space: nowrap;
}

.rb-hplayer__eq {
	height: 18px;
}

.rb-hplayer__eq i {
	width: 4px;
}

.rb-hplayer.is-playing .rb-eq i {
	animation: rb-eq .9s ease-in-out infinite;
}

@media (max-width: 1000px) {
	.rb-hplayer__meta,
	.rb-hplayer__eq {
		display: none;
	}

	.rb-hplayer {
		padding: 5px;
	}
}

/* Pie: logo, enlaces y redes */
.rb-footer__col--brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rb-footer__logo img {
	max-height: 58px;
	width: auto;
	display: block;
}

.rb-footer__title {
	font-family: var(--rb-g-display);
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rb-ink);
	margin: 0 0 14px;
}

.rb-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rb-footer__links li {
	margin-bottom: 8px;
}

.rb-footer__links a {
	color: var(--rb-mut);
	font-size: .93rem;
}

.rb-footer__links a:hover {
	color: var(--rb-sig);
}

.rb-footer__social-title {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--rb-ink);
	margin: 4px 0 8px;
}

.rb-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rb-social-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--rb-line);
	border-radius: 999px;
	color: var(--rb-mut);
	font-size: .88rem;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.rb-social-link:hover {
	color: var(--rb-ink);
	border-color: var(--rb-sig);
	background: rgba(61, 214, 198, .08);
}

.rb-social-icon {
	width: 17px;
	height: 17px;
	flex: none;
}

/* El reproductor se acopla al borde inferior del carrusel */
.rb-player {
	position: relative;
	z-index: 7;
}

.wp-block-radio-bonanza-hero + .wp-block-radio-bonanza-player,
.rb-hero + .rb-player {
	margin-top: -46px;
}

@media (max-width: 820px) {
	.wp-block-radio-bonanza-hero + .wp-block-radio-bonanza-player,
	.rb-hero + .rb-player {
		margin-top: -18px;
	}
}

/* Secciones a ancho completo dentro de la plantilla */
.alignfull.rb-section,
.alignfull.rb-hero,
.alignfull.rb-player,
.alignfull.rb-strip {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}



/* ==========================================================================
   Botones flotantes de contacto
   ========================================================================== */
.rb-fabs {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none;
}

.rb-fab {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px 10px 13px;
	border-radius: 999px;
	background: var(--rb-surface);
	border: 1px solid var(--rb-line);
	color: var(--rb-ink);
	font: 600 .92rem/1 var(--rb-g-body);
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.rb-fab__icon {
	display: grid;
	place-items: center;
}

.rb-fab svg {
	width: 20px;
	height: 20px;
	display: block;
}

.rb-fab__label {
	white-space: nowrap;
}

.rb-fab:hover {
	transform: translateY(-2px);
}

.rb-fab--whatsapp {
	background: #25d366;
	border-color: #25d366;
	color: #04291b;
}

.rb-fab--whatsapp:hover {
	background: #1fbe5a;
	border-color: #1fbe5a;
}

.rb-fab--phone {
	background: var(--rb-hot);
	border-color: var(--rb-hot);
	color: var(--rb-hot-ink);
}

.rb-fab--phone:hover {
	background: var(--rb-sig);
	border-color: var(--rb-sig);
	color: var(--rb-sig-ink);
}

.rb-fab--email {
	background: var(--rb-sig);
	border-color: var(--rb-sig);
	color: var(--rb-sig-ink);
}

.rb-fab--email:hover {
	background: var(--rb-hot);
	border-color: var(--rb-hot);
	color: var(--rb-hot-ink);
}

.rb-fab--telegram {
	background: #29a9eb;
	border-color: #29a9eb;
	color: #04202e;
}

.rb-fab--telegram:hover {
	background: #1d95d2;
	border-color: #1d95d2;
}

@media (max-width: 520px) {
	.rb-fabs {
		right: 14px;
		bottom: 14px;
		gap: 8px;
	}

	.rb-fab {
		padding: 9px 14px 9px 11px;
		font-size: .86rem;
	}

	.rb-fab svg {
		width: 18px;
		height: 18px;
	}
}
/* ==========================================================================
   Mejoras de Lighthouse
   ========================================================================== */

/* Título de la franja (ahora es H2 por orden de encabezados) */
.rb-strip .rb-strip__title {
	margin: 0 0 8px;
	font-family: var(--rb-g-display);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--rb-sig);
}

/* Mapa: fachada que se carga al pulsar (sin cookies ni pesos de terceros) */
.rb-map__facade {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 380px;
	padding: 32px 20px;
	background:
		radial-gradient(60% 80% at 20% 20%, rgba(61, 214, 198, .16), transparent 60%),
		radial-gradient(60% 80% at 80% 80%, rgba(255, 106, 43, .14), transparent 60%),
		var(--rb-surface-2);
}

.rb-map__load {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 26px 34px;
	border: 1px solid var(--rb-line);
	border-radius: 18px;
	background: var(--rb-surface);
	color: var(--rb-ink);
	font-family: var(--rb-g-body);
	cursor: pointer;
	text-align: center;
	box-shadow: var(--rb-shadow-sm);
	transition: border-color .2s ease, transform .2s ease;
}

.rb-map__load:hover {
	border-color: var(--rb-hot);
	transform: translateY(-2px);
}

.rb-map__load-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(61, 214, 198, .14);
	color: var(--rb-sig);
}

.rb-map__load-icon svg {
	width: 24px;
	height: 24px;
}

.rb-map__load-text {
	font-family: var(--rb-g-display);
	font-size: 1.05rem;
	font-weight: 800;
}

.rb-map__load small {
	color: var(--rb-mut);
	font-size: .82rem;
}

/* Áreas táctiles de al menos 44 px */
@media (max-width: 1024px) {
	.rb-header .wp-block-navigation .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.rb-footer__social-link,
	.rb-social-list a {
		min-width: 44px;
		min-height: 44px;
	}
}