/*
Theme Name: Vagabundo-Bits Dark
Theme URI: https://vbits.me/
Description: Primera capa visual oscura y minimalista para Vagabundo-Bits.
Author: Vagabundo-Bits
Template: blocksy
Version: 0.8.2
*/

:root {
  --vb-bg: #0b0c0e;
  --vb-surface: #141619;
  --vb-surface-2: #1b1e22;
  --vb-text: #eeeae2;
  --vb-muted: #a4a6a8;
  --vb-line: rgba(255, 255, 255, .12);
  --vb-accent: #78b58b;
}

html {
  background: var(--vb-bg);
}

body {
  background: var(--vb-bg) !important;
  color: var(--vb-text) !important;
}

body,
button,
input,
textarea,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  letter-spacing: -.025em;
}

.ct-header,
.ct-header [data-row],
.ct-footer {
  background: rgba(11, 12, 14, .94) !important;
  color: var(--vb-text) !important;
}

.ct-header {
  border-bottom: 1px solid var(--vb-line);
  position: relative;
  z-index: 10;
}

.ct-header a,
.ct-footer a,
.site-title a,
.header-menu-1 a {
  color: var(--vb-text) !important;
}

.site-title {
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.header-menu-1 a {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#main {
  background: var(--vb-bg);
}

.vb-hero {
  isolation: isolate;
  min-height: min(720px, 76vh);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: stretch;
  gap: clamp(2rem, 6vw, 6rem);
  margin: 0 calc(50% - 50vw);
  padding: clamp(3.5rem, 8vw, 7rem) max(6vw, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--vb-line);
}

.vb-hero::after {
  background: linear-gradient(90deg, rgba(11, 12, 14, .98) 0%, rgba(11, 12, 14, .82) 45%, rgba(11, 12, 14, .25) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.vb-hero-bg {
  background: center / cover no-repeat;
  filter: blur(18px) grayscale(1);
  inset: -28px;
  opacity: .28;
  position: absolute;
  transform: scale(1.08);
  z-index: -2;
}

.vb-hero-content {
  align-self: center;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.vb-hero-kicker {
  color: var(--vb-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin: 0 0 1.4rem;
  text-transform: uppercase;
}

.vb-hero h1 {
  color: var(--vb-text);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: .9;
  margin: 0;
  max-width: 8ch;
}

.vb-hero-description {
  color: #d0ccc4;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  margin: 2rem 0 2.2rem;
  max-width: 34rem;
}

.vb-hero-link {
  align-items: center;
  border: 1px solid rgba(238, 234, 226, .45);
  color: var(--vb-text) !important;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 700;
  gap: .8rem;
  letter-spacing: .12em;
  padding: .95rem 1.2rem;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.vb-hero-link:hover {
  background: var(--vb-text);
  border-color: var(--vb-text);
  color: var(--vb-bg) !important;
  transform: translateY(-2px);
}

.vb-hero-portrait {
  align-self: center;
  background: center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  min-height: clamp(300px, 52vw, 540px);
  position: relative;
  z-index: 1;
}

.vb-hero-portrait::after {
  border: 1px solid rgba(199, 168, 120, .55);
  content: "";
  inset: 14px;
  pointer-events: none;
  position: absolute;
}

.vb-section-label {
  color: var(--vb-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin: 0 auto;
  max-width: 1180px;
  padding: 3rem max(1.5rem, 4vw) 0;
  text-transform: uppercase;
}

.entries {
  gap: 1rem !important;
}

.entry-card {
  background: var(--vb-surface) !important;
  border: 1px solid var(--vb-line) !important;
  box-shadow: none !important;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.entry-card:hover {
  background: var(--vb-surface-2) !important;
  border-color: rgba(199, 168, 120, .55) !important;
  transform: translateY(-3px);
}

.entry-card .entry-title a {
  color: var(--vb-text) !important;
}

.entry-card .entry-excerpt,
.entry-card .entry-meta,
.entry-card .entry-meta a {
  color: var(--vb-muted) !important;
}

.entry-card .meta-categories a {
  color: var(--vb-accent) !important;
}

#footer {
  border-top: 1px solid var(--vb-line);
  margin-top: 3rem;
}

/* No mostramos el artículo de bienvenida de WordPress en la portada. */
.home .post-1 {
  display: none;
}

@media (max-width: 700px) {
  .vb-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-height: auto;
    padding: 4rem 1.25rem 3rem;
  }

  .vb-hero::after {
    background: linear-gradient(180deg, rgba(11, 12, 14, .88), rgba(11, 12, 14, .7));
  }

  .vb-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }

  .vb-hero-portrait {
    min-height: min(90vw, 420px);
    width: 100%;
  }

  .vb-section-label {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Ajuste de alineación dentro de la cuadrícula de Blocksy. */
.entries > .vb-hero,
.entries > .vb-section-label {
  box-sizing: border-box;
  grid-column: 1 / -1;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.entries > .vb-section-label {
  max-width: none;
}

.entries {
  align-items: stretch;
}

.entry-card {
  min-width: 0;
}

/* Segunda iteración: portada estable y artículos en columna única. */
.entries {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.entries > .vb-hero,
.entries > .vb-section-label {
  grid-column: 1 / -1;
  width: 100%;
}

.vb-hero {
  background: var(--vb-bg);
  margin: 0;
  width: 100%;
}

.vb-hero-bg,
.vb-hero-portrait {
  background-image: url('/wp-content/uploads/2016/11/00177-vagabundo-1.jpg') !important;
}

.vb-hero h1 {
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.entry-card {
  width: 100%;
}

@media (max-width: 900px) {
  .vb-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .vb-hero-content {
    max-width: none;
  }

  .vb-hero h1 {
    font-size: clamp(3rem, 12vw, 6rem);
  }
}

/* Tercera iteración: portada contenida con navegación lateral. */
.vb-hero {
  box-sizing: border-box;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(180px, .62fr) minmax(125px, .38fr);
  margin-left: auto;
  margin-right: auto;
  max-width: 1160px;
  min-width: 0;
  width: calc(100% - 2rem);
}

.vb-hero-content,
.vb-hero-portrait,
.vb-hero-nav {
  min-width: 0;
}

.vb-hero h1 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.vb-hero-nav {
  align-self: center;
  border-left: 1px solid var(--vb-line);
  padding-left: clamp(1rem, 2vw, 2rem);
  position: relative;
  z-index: 1;
}

.vb-hero-nav p {
  color: var(--vb-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.vb-hero-nav nav {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.vb-hero-nav a {
  color: var(--vb-text) !important;
  font-size: .82rem;
  transition: color .2s ease, padding-left .2s ease;
}

.vb-hero-nav a:hover {
  color: var(--vb-accent) !important;
  padding-left: .35rem;
}

@media (max-width: 1100px) {
  .vb-hero {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .68fr);
  }

  .vb-hero-nav {
    align-items: baseline;
    border-left: 0;
    border-top: 1px solid var(--vb-line);
    display: flex;
    gap: 1.5rem;
    grid-column: 1 / -1;
    padding: 1.2rem 0 0;
  }

  .vb-hero-nav p {
    margin: 0;
  }

  .vb-hero-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .7rem 1.3rem;
  }
}

@media (max-width: 700px) {
  .vb-hero {
    gap: 2rem;
    width: calc(100% - 1.5rem);
  }

  .vb-hero-nav {
    align-items: flex-start;
    display: block;
  }

  .vb-hero-nav nav {
    margin-top: .9rem;
  }
}

/* Cuarta iteración: evitar el desbordamiento del titular. */
.vb-hero {
  display: grid !important;
  max-width: 1080px;
  width: calc(100% - 2.5rem);
}

.vb-hero-content {
  min-width: 0 !important;
  overflow: hidden;
}

.vb-hero h1 {
  display: block;
  font-size: clamp(3rem, 6vw, 5.5rem) !important;
  hyphens: none;
  line-height: .94;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  white-space: normal;
  width: 100%;
  word-break: normal !important;
}

@media (max-width: 1400px) {
  .vb-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, .62fr) !important;
  }

  .vb-hero-nav {
    border-left: 0;
    border-top: 1px solid var(--vb-line);
    display: flex;
    gap: 1.5rem;
    grid-column: 1 / -1;
    padding: 1.2rem 0 0;
  }

  .vb-hero-nav p {
    margin: 0;
  }

  .vb-hero-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .7rem 1.3rem;
  }
}

@media (max-width: 760px) {
  .vb-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 1.5rem);
  }

  .vb-hero-portrait {
    min-height: min(80vw, 420px);
  }

  .vb-hero-nav {
    display: block;
  }

  .vb-hero-nav nav {
    margin-top: .9rem;
  }
}

/* Quinta iteración: portada estrecha, explorador independiente y lectura oscura. */
.vb-hero {
  max-width: 760px !important;
  width: calc(100% - 2rem) !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, .72fr) !important;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.vb-hero h1 {
  font-size: clamp(3rem, 5vw, 5rem) !important;
}

/* El menú ya no forma parte de la portada: queda como rail lateral fijo. */
.vb-explorer {
  background: rgba(11, 12, 14, .96);
  border-left: 1px solid var(--vb-line);
  box-sizing: border-box;
  max-height: 78vh;
  overflow-y: auto;
  padding: 1rem 0 1rem 1.25rem;
  position: fixed;
  right: clamp(1rem, 3vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: 175px;
  z-index: 8;
}

.vb-explorer-title,
.vb-explorer-group span {
  color: var(--vb-accent);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

.vb-explorer-group {
  border-top: 1px solid var(--vb-line);
  margin-top: 1rem;
  padding-top: .9rem;
}

.vb-explorer-group:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.vb-explorer-group span {
  color: var(--vb-muted);
  font-size: .62rem;
  letter-spacing: .1em;
}

.vb-explorer a {
  color: var(--vb-text) !important;
  display: block;
  font-size: .72rem;
  line-height: 1.35;
  margin: .45rem 0;
  transition: color .2s ease, padding-left .2s ease;
}

.vb-explorer a:hover {
  color: var(--vb-accent) !important;
  padding-left: .3rem;
}

/* Contenido de artículos: fondo, texto y bloques de código legibles. */
body,
.site-main,
.ct-container-full,
.single-post article,
.single-post .entry-content,
.single-post .hero-section {
  background: var(--vb-bg) !important;
  color: var(--vb-text) !important;
}

.single-post article {
  border: 1px solid var(--vb-line);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.single-post .page-title,
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
  color: var(--vb-text) !important;
}

.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content td,
.single-post .entry-content th {
  color: #dedbd4 !important;
  line-height: 1.75;
}

.single-post .entry-content a {
  color: #8fc9a0 !important;
}

.single-post pre,
.single-post pre.wp-block-code,
.single-post .wp-block-code {
  background: #080a0b !important;
  border: 1px solid rgba(120, 181, 139, .35) !important;
  box-shadow: none !important;
  color: #c9f0d2 !important;
  max-width: 100%;
  overflow-x: auto;
  padding: 1.1rem !important;
  white-space: pre;
}

.single-post pre code,
.single-post .wp-block-code code,
.single-post code {
  background: transparent !important;
  color: #c9f0d2 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}

.single-post :not(pre) > code {
  background: #21.4.1 !important;
  border: 1px solid rgba(120, 181, 139, .3);
  color: #bfe8c8 !important;
  padding: .15em .35em;
}

.single-post blockquote {
  background: #141a16 !important;
  border-left: 3px solid var(--vb-accent) !important;
  color: #dedbd4 !important;
  padding: 1rem 1.25rem;
}

@media (max-width: 1199px) {
  .vb-explorer {
    border: 1px solid var(--vb-line);
    margin: 1.5rem auto 0;
    max-height: none;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(760px, calc(100% - 2rem));
  }
}

@media (max-width: 760px) {
  .vb-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .single-post article {
    padding: 1rem;
  }
}

/* Sexta iteración: retrato independiente a la derecha del titular. */
.vb-hero {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: clamp(2rem, 5vw, 4rem);
}

.vb-hero-content {
  flex: 1 1 auto;
  max-width: 430px;
  width: auto;
}

.vb-hero-portrait {
  flex: 0 0 clamp(220px, 31%, 280px);
  margin-left: auto;
  width: auto;
  z-index: 2;
}

.vb-hero-portrait::after {
  display: none;
}

@media (max-width: 760px) {
  .vb-hero {
    flex-direction: column;
  }

  .vb-hero-content {
    max-width: none;
    width: 100%;
  }

  .vb-hero-portrait {
    flex: 0 0 auto;
    min-height: min(80vw, 420px);
    width: 100%;
  }
}

/* Séptima iteración: más espacio para el titular, sin recortes. */
.vb-hero {
  max-width: 960px !important;
  overflow: visible !important;
}

.vb-hero-content {
  max-width: 560px;
  overflow: visible !important;
}

.vb-hero h1 {
  font-size: clamp(3rem, 5vw, 4.8rem) !important;
  overflow: visible !important;
}

.vb-hero-portrait {
  flex-basis: clamp(210px, 27%, 260px);
}

/* Octava iteración: rail Explorar más visible. */
.vb-explorer {
  padding-left: 1.5rem;
  padding-right: .75rem;
  width: 220px;
}

.vb-explorer-title {
  font-size: .75rem;
  margin-bottom: .9rem;
}

.vb-explorer-group span {
  font-size: .68rem;
}

.vb-explorer a {
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  .vb-explorer {
    width: min(760px, calc(100% - 2rem));
  }
}

/* Ajuste fino de legibilidad del rail Explorar. */
.vb-explorer a {
  font-size: .85rem;
}

/* Último ajuste de tamaño del texto del rail Explorar. */
.vb-explorer a {
  font-size: .9rem;
}

/* Décima iteración: metadatos de entrada ligeramente más visibles. */
.single-post .entry-meta {
  font-size: .95rem;
}

.single-post .entry-meta .ct-media-container-static img {
  height: 32px !important;
  width: 32px !important;
}

.single-post .entry-meta a,
.single-post .entry-meta time {
  color: var(--vb-muted) !important;
}

/* Undécima iteración: alineación editorial y margen uniforme del código. */
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.single-post .entry-content blockquote,
.single-post .entry-content ul,
.single-post .entry-content ol {
  text-align: left !important;
}

.single-post .entry-content.is-layout-constrained > *,
.single-post .entry-content .alignwide,
.single-post .entry-content .alignfull,
.single-post .entry-content .wp-block-code {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100%;
}

.single-post .entry-content pre,
.single-post .entry-content pre.wp-block-code,
.single-post .entry-content .wp-block-code {
  margin-bottom: 1.5rem !important;
  margin-top: 1.5rem !important;
  padding: 1rem 1.25rem !important;
  text-align: left !important;
}

.single-post .entry-content pre code,
.single-post .entry-content .wp-block-code code {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left !important;
}

/* Duodécima iteración: margen interior de lectura. */
.single-post .entry-content {
  padding-left: clamp(.75rem, 2vw, 1.25rem) !important;
  padding-right: clamp(.75rem, 2vw, 1.25rem) !important;
}

.single-post .entry-content p,
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .entry-content blockquote {
  margin-bottom: 1rem;
}

.single-post .entry-content pre,
.single-post .entry-content .wp-block-code {
  margin-left: .15rem !important;
  margin-right: .15rem !important;
  width: calc(100% - .3rem) !important;
}

/* Décima tercera iteración: lectura estrecha con rail de entradas relacionadas. */
.single-post .ct-container-full {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1120px !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.single-post article {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 760px !important;
}

.vb-post-rail {
  background: rgba(11, 12, 14, .97);
  border-left: 1px solid var(--vb-line);
  box-sizing: border-box;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem 0 1rem 1.25rem;
  position: fixed;
  right: clamp(1rem, 3vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: 235px;
  z-index: 8;
}

.vb-post-rail-title {
  color: var(--vb-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.vb-post-rail nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vb-post-rail nav a {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--vb-text) !important;
  display: block;
  padding-bottom: .85rem;
}

.vb-post-rail nav a:hover {
  color: var(--vb-accent) !important;
}

.vb-post-rail strong {
  display: block;
  font-size: .82rem;
  line-height: 1.35;
}

.vb-post-rail time {
  color: var(--vb-muted);
  display: block;
  font-size: .7rem;
  margin-top: .3rem;
}

@media (max-width: 1199px) {
  .vb-post-rail {
    display: none;
  }

  .single-post .ct-container-full {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .single-post article {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Décima cuarta iteración: proporciones más cercanas a una revista de dos columnas. */
.single-post .ct-container-full {
  max-width: 1200px !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.single-post article {
  max-width: 840px !important;
  padding: clamp(1.5rem, 2.5vw, 2.25rem) !important;
}

.vb-post-rail {
  right: clamp(.75rem, 2vw, 2rem);
  width: 220px;
}

@media (max-width: 1199px) {
  .single-post .ct-container-full {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Décima quinta iteración: tipografía más cercana y texto más cómodo. */
@font-face {
  font-display: swap;
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/wp-content/themes/vagabundo-dark/fonts/nunito-sans-regular.ttf") format("truetype");
}

body,
button,
input,
textarea,
select {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.vb-hero h1,
.entry-card .entry-title {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.single-post .entry-content {
  font-size: 1.08rem;
  line-height: 1.8;
}

.single-post .entry-content pre,
.single-post .entry-content code {
  font-size: .9em;
}

.entry-card .entry-title {
  font-size: 1.25rem;
}

/* Décima sexta iteración: escala tipográfica global más generosa. */
.site-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
}

.header-menu-1 a {
  font-size: .88rem;
}

.vb-hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.vb-explorer-title {
  font-size: .82rem;
}

.vb-explorer-group span {
  font-size: .74rem;
}

.vb-explorer a {
  font-size: 1rem;
}

.single-post .entry-content {
  font-size: 1.15rem;
}

.single-post .entry-content pre,
.single-post .entry-content code {
  font-size: .94em;
}

.single-post .entry-meta {
  font-size: 1rem;
}

.entry-card .entry-title {
  font-size: 1.38rem;
}

.entry-card .entry-excerpt {
  font-size: 1.05rem;
}

.vb-post-rail-title {
  font-size: .8rem;
}

.vb-post-rail strong {
  font-size: .9rem;
}

.vb-post-rail time {
  font-size: .76rem;
}

/* Submenús más cómodos de leer. */
.header-menu-1 .sub-menu {
  min-width: 230px !important;
}

.header-menu-1 .sub-menu .ct-menu-link,
.header-menu-1 .sub-menu a {
  font-size: 1rem !important;
  line-height: 1.35;
  padding: .75rem 1rem !important;
}

.header-menu-1 .sub-menu .menu-item-has-children > a {
  padding-right: 2rem !important;
}

/* Identidad del sitio en la cabecera. */
.ct-header .site-title a {
  color: var(--vb-accent) !important;
}

/* Código cómodo para leer y copiar sin desplazamiento horizontal. */
.single-post .entry-content pre,
.single-post .entry-content .wp-block-code,
.single-post .entry-content pre code,
.single-post .entry-content .wp-block-code code {
  overflow-x: visible !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.single-post .entry-content pre code,
.single-post .entry-content .wp-block-code code {
  font-size: 1em;
  line-height: 1.65;
}

/* Margen de lectura adicional en el lado derecho de los artículos. */
.single-post .entry-content {
  padding-right: clamp(2rem, 4vw, 3.5rem) !important;
}

@media (max-width: 760px) {
  .single-post .entry-content {
    padding-right: 1rem !important;
  }
}

/* Corrección: ampliar el área de lectura hacia la derecha. */
.single-post article {
  max-width: 920px !important;
}

.single-post .entry-content {
  padding-right: 1.25rem !important;
}

@media (max-width: 760px) {
  .single-post article {
    max-width: 100% !important;
  }
}

/* Corrección final de anchura de lectura. */
.single-post article {
  max-width: 980px !important;
}

.single-post article {
  max-width: 1020px !important;
}

@media (max-width: 1199px) {
  .single-post article {
    max-width: 100% !important;
  }
}

.single-post article {
  max-width: 1080px !important;
}

@media (max-width: 1199px) {
  .single-post article {
    max-width: 100% !important;
  }
}

/* Décima séptima iteración: separar visualmente el artículo del fondo. */
.single-post article {
  background: #151719 !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

/* El fondo del contenido debe coincidir con el marco del artículo. */
.single-post article .hero-section,
.single-post article .entry-header,
.single-post article .entry-content {
  background: #151719 !important;
}

/* Décima octava iteración: hero más amplio y retrato sin recorte. */
.home .vb-hero {
  max-width: 1100px !important;
}

.home .vb-hero-portrait {
  aspect-ratio: 1 / 1;
  flex: 0 0 clamp(270px, 29vw, 350px);
  min-height: 0;
  background-position: center center;
  background-size: cover;
}
