/* ============================================================
   Theme: Radio · v1.0.0
   Fondo negro, letras blancas. Cabecera fija, hero de 2 columnas
   (reproductor + ficha de contacto) y pie centrado.
   Sin frameworks: Grid + Flexbox.
   ------------------------------------------------------------
   NOTA SOBRE TIPOGRAFÍA: Arial solo tiene 400 y 700. Los pesos
   800/900 los sintetiza el navegador (negrita falsa, más ancha y
   borrosa), así que aquí solo se usan 400, 500, 600 y 700.
   ============================================================ */

/* --------------------------------------------------- variables ---- */
:root {
    /* Las dos únicas variables que Apariencia puede sobrescribir
       (site_head_inline_styles() emite --site-primary y --site-accent). */
    --site-primary: #000000;
    --site-accent: #ffffff;

    --rt-bg: #121212;
    --rt-surface: #1b1b1b;
    --rt-surface-2: #232323;
    --rt-border: #2f2f2f;
    --rt-text: #ffffff;
    --rt-text-mute: #a8a8a8;

    --rt-container: 1180px;
    --rt-radius: 8px;
    --rt-header-h: 72px;

    --font-sans: Arial, Helvetica, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--rt-bg);
    color: var(--rt-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: var(--site-accent);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rt-text);
    line-height: 1.28;
    margin: 0 0 .5em;
}

/* ---------------------------------------------------- utilidades ---- */
.rt-container {
    width: 100%;
    max-width: var(--rt-container);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rt-skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    padding: 10px 16px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: normal;
    z-index: 200;
}

.rt-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* ------------------------------------------------------- cabecera ---- */
/* Header normal (no fijo): scrollea con la página. */
.rt-header {
    background: var(--site-primary);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.rt-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--rt-header-h);
}

.rt-branding {
    flex: 0 0 auto;
    min-width: 0;
}

.rt-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.rt-site-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
}

.rt-logo {
    display: block;
    max-height: 44px;
    width: auto;
}

/* Menú: en escritorio el <aside> es "display: contents", así que el
   <nav> vuelve a ser una columna más de la cabecera (un solo menú,
   sin duplicarlo en el drawer). */
.rt-drawer {
    display: contents;
}

.rt-drawer-head {
    display: none;
}

.rt-drawer-backdrop {
    display: none;
}

.rt-nav-toggle {
    display: none;
}

/* El menú se pega a la derecha (la marca queda sola a la izquierda). */
.rt-nav-header {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
}

.rt-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-menu-header a {
    display: inline-block;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.rt-menu-header a:hover,
.rt-menu-header .current-menu-item>a {
    border-bottom-color: var(--site-accent);
}

/* Redes sociales (hero de la home) */
.rt-socials {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rt-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
}

.rt-social-link:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.rt-social-link .rt-icon {
    width: 18px;
    height: 18px;
}

/* ---------------------------------------------------------- hero ---- */
/* El hero NO va dentro de .rt-container: es el propio bloque, así que ocupa
   el 100% del ancho de la ventana (sin trucos de 100vw y sin recortes contra
   la barra de scroll). Mide el alto de la pantalla menos la cabecera y las
   columnas se estiran a ese alto completo: el contenido va centrado DENTRO de
   cada columna. Sin padding vertical, para que las cajas lleguen hasta arriba. */
.rt-main {
    display: block;
}

.rt-hero {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: calc(80vh - var(--rt-header-h));
    padding: 40px 24px;
}

/* Fondo del hero (solo cuando hay imagen). La capa oscura viene del degradado
   que emite header.php: mantiene legible el texto blanco. Para quitarla,
   sobrescribe background-image desde el CSS personalizado. */
.rt-hero-has-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Sobre una foto, las cajas se oscurecen un poco para que el contenido se lea. */
.rt-hero-has-bg .rt-hero-col {
    background: rgba(18, 18, 18, .72);
}

.rt-hero-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Cada columna es una caja con borde y sin radius. El contenido va centrado
   dentro, así que las dos cajas quedan de la misma altura.
   flex-direction: column es imprescindible: en fila, con varios hijos
   directos (ficha + "Nosotros") cada uno con width:100%, el flex los
   encogía al 50% y acababan uno al lado del otro. */
.rt-hero-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    padding: 28px 24px;
    border: 1px solid var(--rt-border);
    border-radius: 0;
}

.rt-hero-col>* {
    width: 100%;
    min-width: 0;
}

/* ------------------------------------------------ reproductor ---- */
.rt-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Marco del logo: abraza a la imagen (width: fit-content) para que el
   degradado SOLO se vea en el padding de 3px = borde animado. Si la caja
   midiera más que la imagen, el degradado asomaría por detrás.
   radio exterior 8px → radio interior 5px (8 - 3 de padding). */
.rt-player-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 3px;
    border-radius: 8px;
    background-image: linear-gradient(115deg, #05180e, #0b4527, #00b859, #b7ffdb, #00b859, #0b4527, #05180e);
    background-size: 320% 320%;
    background-position: 0% 50%;
    animation: rt-art-border 6s ease-in-out infinite;
}

/* Del oscuro al verde claro y de vuelta. */
@keyframes rt-art-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.rt-player-art-image {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 5px;
}

.rt-player-art-fallback {
    display: block;
    width: 190px;
    height: 190px;
    color: #6b6b6b;
}

.rt-player-art-fallback svg {
    width: 100%;
    height: 100%;
}

.rt-player-title {
    margin: 0 0 20px;
    font-size: 21px;
    font-weight: 700;
}

.rt-player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 26px;
}

.rt-player-volume-icon {
    display: inline-flex;
    color: var(--rt-text-mute);
}

.rt-volume {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 4px;
    border-radius: 999px;
    background: #3a3a3a;
    outline: none;
    cursor: pointer;
}

.rt-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.rt-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.rt-volume-value {
    min-width: 40px;
    font-size: 13px;
    color: var(--rt-text-mute);
    text-align: left;
}

.rt-play {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rt-play:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .08);
}

.rt-play:active {
    transform: scale(.94);
}

.rt-play:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 3px;
}

/* Los dos iconos ocupan la MISMA celda del grid: así se cruzan con opacidad y
   escala en vez de aparecer y desaparecer de golpe. */
.rt-play svg {
    grid-area: 1 / 1;
    width: 30px;
    height: 30px;
    transition: opacity .18s ease, transform .18s ease;
}

.rt-play .rt-pause-icon {
    opacity: 0;
    transform: scale(.5);
}

.rt-player.is-playing .rt-play .rt-play-icon {
    opacity: 0;
    transform: scale(.5);
}

.rt-player.is-playing .rt-play .rt-pause-icon {
    opacity: 1;
    transform: scale(1);
}

/* Sonando: anillo que late (indicador de "en directo"). */
.rt-player.is-playing .rt-play::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    pointer-events: none;
    animation: rt-live-pulse 1.8s ease-out infinite;
}

@keyframes rt-live-pulse {
    0% {
        transform: scale(.92);
        opacity: .75;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Conectando con el stream: spinner dentro del propio botón. */
.rt-player.is-loading .rt-play {
    cursor: progress;
    background: #e4e4e4;
}

.rt-player.is-loading .rt-play svg {
    opacity: 0;
    transform: scale(.5);
}

.rt-player.is-loading .rt-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .18);
    border-top-color: #000;
    animation: rt-spin .7s linear infinite;
}

@keyframes rt-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .rt-play,
    .rt-play svg {
        transition: none;
    }

    .rt-player.is-playing .rt-play::after {
        animation: none;
        opacity: 0;
    }

    /* El borde del logo deja de animarse: queda en su estado inicial. */
    .rt-player-art {
        animation: none;
    }

    /* El spinner NO se desactiva: informa de que está conectando; solo va más lento. */
    .rt-player.is-loading .rt-play::before {
        animation-duration: 1.8s;
    }
}

/* ----------------------------------------- ficha de contacto ---- */
/* Rejilla de 2 columnas: WhatsApp y Email comparten fila y la Ubicación,
   al añadirse con .rt-contact-item-wide, ocupa las dos (ancho completo).
   Sin fondo ni borde: los datos van "suelos" sobre la columna. */
.rt-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-contact-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.rt-contact-item-wide {
    grid-column: 1 / -1;
}

.rt-contact-icon {
    display: inline-flex;
    justify-content: center;
    padding-top: 2px;
    color: var(--rt-text-mute);
}

.rt-contact-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.rt-contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rt-text-mute);
}

.rt-contact-value {
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    overflow-wrap: break-word;
}

a.rt-contact-value:hover {
    color: var(--site-accent);
    text-decoration: underline;
}

/* ------------------------------------------------- nosotros ---- */
/* Reseña del panel, siempre debajo de la ficha de contacto. */
.rt-about {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rt-border);
}

.rt-about-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.rt-about-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    white-space: pre-line;
    overflow-wrap: break-word;
}

/* Primer hijo de la columna: sin el separador de arriba. */
.rt-about:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Iconos de redes dentro del hero (la home los pinta aquí, debajo de
   "Nosotros"; en el resto de vistas siguen en la cabecera). */
.rt-hero-socials {
    margin-top: 26px;
}

.rt-hero-socials:first-child {
    margin-top: 0;
}

/* ------------------------------------------------------- paneles ---- */
.rt-panel {
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    padding: 26px;
}

.rt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    color: var(--rt-text-mute);
}

.rt-empty-title {
    color: #fff;
    margin: 0;
}

.rt-empty-text {
    margin: 0;
}

.rt-empty p {
    margin: 0;
}

.rt-search-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.rt-search-wrap-lg {
    margin: 14px 0 0;
    max-width: 440px;
}

/* ----------------------------------------------- archivos/listas ---- */
.rt-archive,
.rt-single {
    padding: 40px 0 64px;
}

.rt-page-header {
    margin-bottom: 22px;
}

.rt-page-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rt-text-mute);
}

.rt-page-title {
    margin: 0 0 8px;
    font-size: 30px;
}

.rt-page-description {
    margin: 0 0 8px;
    max-width: 75ch;
    color: var(--rt-text-mute);
}

.rt-page-meta {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--rt-text-mute);
}

.rt-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rt-post-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.rt-post-row-has-image {
    grid-template-columns: 220px 1fr;
}

.rt-post-row-media {
    overflow: hidden;
    border-radius: 6px;
}

.rt-post-row-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: cover;
}

.rt-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rt-post-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}

.rt-post-date {
    font-size: 13px;
    color: var(--rt-text-mute);
}

.rt-post-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--rt-text-mute);
}

.rt-post-row-title {
    margin: 0 0 8px;
    font-size: 22px;
}

.rt-post-row-title a {
    color: #fff;
    text-decoration: none;
}

.rt-post-row-title a:hover {
    color: var(--site-accent);
    text-decoration: underline;
}

.rt-post-row-excerpt {
    margin: 0;
    color: var(--rt-text-mute);
}

/* -------------------------------------------------------- entrada ---- */
.rt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--rt-text-mute);
}

.rt-breadcrumb a {
    color: var(--rt-text-mute);
    text-decoration: none;
}

.rt-breadcrumb a:hover {
    color: #fff;
}

.rt-crumb-sep {
    color: var(--rt-border);
}

.rt-single-title {
    margin: 0 0 10px;
    font-size: 34px;
}

.rt-single-meta {
    margin-bottom: 16px;
}

.rt-single-excerpt {
    margin: 0 0 22px;
    padding-left: 14px;
    border-left: 3px solid var(--site-accent);
    font-size: 18px;
    font-style: italic;
    color: var(--rt-text-mute);
}

.rt-single-media {
    margin: 0 0 24px;
}

.rt-single-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--rt-radius);
}

.rt-single-caption {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--rt-text-mute);
}

.rt-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 34px 0 8px;
    padding: 20px 0;
    border-top: 1px solid var(--rt-border);
    border-bottom: 1px solid var(--rt-border);
}

.rt-author-box-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.rt-author-box-name {
    margin: 0 0 4px;
    font-size: 17px;
}

.rt-author-box-bio {
    margin: 0;
    font-size: 14px;
    color: var(--rt-text-mute);
}

.rt-author-avatar {
    display: block;
    width: 90px;
    height: 90px;
    margin-bottom: 14px;
    border-radius: 50%;
    object-fit: cover;
}

.rt-after-content {
    margin-top: 34px;
}

.rt-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 34px;
}

.rt-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--rt-surface-2);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    color: #fff;
    text-decoration: none;
}

.rt-post-nav-link span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rt-text-mute);
}

.rt-post-nav-link strong {
    font-size: 15px;
}

.rt-post-nav-next {
    text-align: right;
}

.rt-post-nav-link:hover {
    border-color: var(--site-accent);
}

/* ---------------------------------------------------- relacionadas ---- */
.rt-related {
    margin-top: 40px;
}

.rt-related-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rt-border);
    font-size: 20px;
}

.rt-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rt-related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--rt-surface-2);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
}

.rt-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rt-related-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.rt-related-card-title {
    margin: 0;
    font-size: 16px;
}

.rt-related-card-title a {
    color: #fff;
    text-decoration: none;
}

.rt-related-card-title a:hover {
    color: var(--site-accent);
    text-decoration: underline;
}

.rt-related-excerpt {
    margin: 0;
    font-size: 14px;
    color: var(--rt-text-mute);
}

.rt-related-date {
    margin-top: auto;
    font-size: 12px;
    color: var(--rt-text-mute);
}

/* ------------------------------------------------------- contenido ---- */
.rt-entry {
    font-size: 17px;
    line-height: 1.75;
    color: #e9e9e9;
}

.rt-entry>*:first-child {
    margin-top: 0;
}

.rt-entry a {
    color: var(--site-accent);
    text-decoration: underline;
}

.rt-entry img,
.rt-entry iframe,
.rt-entry video,
.rt-entry audio {
    max-width: 100%;
}

.rt-entry iframe {
    border: 0;
}

.rt-entry blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--rt-border);
    font-style: italic;
    color: var(--rt-text-mute);
}

.rt-entry code,
.rt-entry pre {
    background: #0d0d0d;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 15px;
}

.rt-entry code {
    padding: 2px 6px;
}

.rt-entry pre {
    padding: 14px;
    overflow-x: auto;
}

.rt-entry pre code {
    padding: 0;
    border: 0;
    background: none;
}

.rt-entry table {
    width: 100%;
    border-collapse: collapse;
}

.rt-entry th,
.rt-entry td {
    padding: 8px 10px;
    border: 1px solid var(--rt-border);
}

.rt-entry figure {
    margin: 1.4em 0;
}

.rt-entry figcaption {
    font-size: 13px;
    color: var(--rt-text-mute);
}

.rt-entry hr {
    border: 0;
    border-top: 1px solid var(--rt-border);
}

/* ------------------------------------------------------- busqueda ---- */
.site-searchform {
    display: flex;
    gap: 10px;
    max-width: 440px;
}

.site-searchform input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 14px;
    background: #0f0f0f;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
    color: #fff;
    font: inherit;
}

.site-searchform input[type="search"]::placeholder {
    color: #7d7d7d;
}

.site-searchform button {
    padding: 11px 18px;
    background: #fff;
    border: 0;
    border-radius: 6px;
    color: #000;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* --------------------------------------------------- paginacion ---- */
.rt-pagination {
    margin-top: 26px;
}

.site-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-pagination a,
.site-pagination span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    background: var(--rt-surface-2);
    border: 1px solid var(--rt-border);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.site-pagination a:hover {
    border-color: var(--site-accent);
}

.site-pagination .page-current span {
    background: #fff;
    border-color: #fff;
    color: #000;
    font-weight: 700;
}

.site-pagination .page-dots {
    padding: 8px 2px;
    color: var(--rt-text-mute);
}

/* ----------------------------------------------------------- 404 ---- */
.rt-404 {
    padding: 60px 0;
}

.rt-404-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.rt-404-code {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--site-accent);
}

.rt-404-title {
    margin: 0;
    font-size: 26px;
}

.rt-404-text {
    margin: 0;
    max-width: 60ch;
    color: var(--rt-text-mute);
}

.rt-404-actions {
    margin: 8px 0;
}

.rt-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.rt-btn-accent {
    background: var(--site-accent);
    color: #000;
}

/* ---------------------------------------------------------- widgets ---- */
.widget {
    margin: 0 0 22px;
}

.widget-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.widget-content {
    font-size: 14px;
    color: var(--rt-text-mute);
}

.widget-content p {
    margin: 0 0 10px;
}

.widget-content ul {
    margin: 0;
    padding-left: 18px;
}

.widget-content li {
    margin-bottom: 6px;
}

.widget-content a {
    color: var(--site-accent);
}

.widget-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ----------------------------------------------------------- pie ---- */
.rt-footer {
    padding: 26px 0;
    background: var(--site-primary);
    color: #fff;
}

.rt-footer-inner {
    text-align: center;
}

.rt-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 26px;
    text-align: left;
}

.rt-footer-col {
    flex: 1 1 260px;
    min-width: 0;
    max-width: 400px;
}

.rt-footer-col .widget:last-child {
    margin-bottom: 0;
}

.rt-footer-col .widget-title {
    color: #fff;
    font-size: 15px;
}

.rt-footer-col .widget-content {
    color: var(--rt-text-mute);
}

.rt-footer-col .widget-latest-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-footer-col .widget-latest-posts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rt-footer-col .widget-latest-post-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.rt-footer-col .widget-latest-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
}

.rt-footer-col .widget-latest-post-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.rt-footer-col .widget-latest-post-date {
    display: block;
    font-size: 12px;
    color: var(--rt-text-mute);
}

.rt-footer-menu {
    margin-bottom: 16px;
}

.rt-menu-footer {
    justify-content: center;
    gap: 18px;
}

.rt-menu-footer a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.rt-menu-footer a:hover {
    text-decoration: underline;
}

.rt-footer-credit {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.rt-footer-credit a {
    color: #fff;
}

/* ------------------------------------------------------ responsive ---- */
@media (max-width: 900px) {
    .rt-nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 38px;
        margin-left: auto;
        padding: 8px 10px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 6px;
        cursor: pointer;
    }

    .rt-nav-toggle span {
        display: block;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .rt-nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rt-nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .rt-nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .rt-drawer {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 120;
        display: flex;
        flex-direction: column;
        width: 84vw;
        max-width: 320px;
        height: 100%;
        padding: 0 20px 24px;
        background: #0b0b0b;
        border-right: 1px solid var(--rt-border);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .rt-drawer.is-open {
        transform: translateX(0);
    }

    .rt-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
        padding: 18px 0;
        border-bottom: 1px solid var(--rt-border);
    }

    .rt-drawer-title {
        font-weight: 700;
        color: #fff;
    }

    .rt-drawer-close {
        padding: 6px;
        background: transparent;
        border: 0;
        color: #fff;
        cursor: pointer;
    }

    .rt-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(0, 0, 0, .65);
    }

    .rt-drawer-backdrop[hidden] {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    .rt-nav-header {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .rt-menu-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .rt-menu-header a {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--rt-border);
    }

    .rt-menu-header a:hover,
    .rt-menu-header .current-menu-item>a {
        border-bottom-color: var(--rt-border);
        color: var(--site-accent);
    }

    .rt-socials {
        gap: 8px;
    }

    .rt-social-link {
        width: 34px;
        height: 34px;
    }

    .rt-social-link .rt-icon {
        width: 16px;
        height: 16px;
    }

    .rt-hero {
        min-height: 0;
        padding: 30px 20px 46px;
    }

    .rt-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .rt-panel {
        padding: 20px 18px;
    }

    .rt-hero-col {
        padding: 22px 18px;
    }

    .rt-site-title {
        font-size: 18px;
    }

    .rt-page-title {
        font-size: 24px;
    }

    .rt-single-title {
        font-size: 27px;
    }

    .rt-post-row-has-image {
        grid-template-columns: 1fr;
    }

    .rt-post-row-image {
        max-height: 200px;
    }

    .rt-related-grid {
        grid-template-columns: 1fr;
    }

    .rt-post-nav {
        grid-template-columns: 1fr;
    }

    .rt-post-nav-next {
        text-align: left;
    }

    .rt-author-box {
        align-items: flex-start;
    }

    .rt-footer-widgets {
        gap: 20px;
    }

    .rt-footer-col {
        flex: 1 1 100%;
        max-width: none;
    }

    .rt-contact-item {
        grid-template-columns: 26px 1fr;
        gap: 10px;
    }

    .rt-entry {
        font-size: 16px;
    }
}

/* Muy angosto: las dos columnas de la ficha se estrechan (siguen siendo 2),
   solo se aprieta el hueco para que el texto no se parta tanto. */
@media (max-width: 520px) {
    .rt-contact-list {
        gap: 18px 14px;
    }

    .rt-contact-item {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 8px;
    }
}