/* ═════════════════════════════════════════════════════════════════════════
   BUFO — Article Prose v4.2.0
   Readability & typography elevation for single/post/expediente content.
   Targets `.bufo-content`, `.prose-content`, `.entry-content`, and the
   default WordPress content classes. Designed to feel like print-quality
   journalism: cinematic rhythm, comfortable measure, drop caps, rich
   blockquotes, legible code, scannable lists.
   ═════════════════════════════════════════════════════════════════════════ */

.bufo-content,
.prose-content,
.entry-content {
  /* Fluid measure: 62ch max-width keeps line length ideal for reading. */
  --bufo-prose-measure: 68ch;
  --bufo-prose-fs: clamp(1.06rem, 1.2vw + 0.6rem, 1.22rem);
  --bufo-prose-lh: 1.78;
  --bufo-prose-rhythm: 1.6rem;

  font-family: var(--bufo-font, 'Outfit', system-ui, sans-serif);
  font-size: var(--bufo-prose-fs);
  line-height: var(--bufo-prose-lh);
  color: rgba(245,247,255,0.92);
  font-feature-settings: "kern", "liga", "onum", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*
   * v4.2.1 readability fix:
   *   - hyphens: manual prevents the browser from inserting visible hyphens
   *     mid-word (e.g. "Extrate-rrestre" inside a URL). Authors can still
   *     opt in via the &shy; soft-hyphen entity.
   *   - overflow-wrap: break-word lets long URLs / tokens wrap without
   *     overflowing the column, but without inventing fake word breaks.
   */
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

/* ── Paragraphs ────────────────────────────────────────────────────────── */

.bufo-content > p,
.prose-content > p,
.entry-content > p {
  max-width: var(--bufo-prose-measure);
  margin: 0 0 var(--bufo-prose-rhythm);
  text-wrap: pretty;
}

/* Drop cap on the first paragraph — only for long-form singles */
.bufo-prose-dropcap > p:first-of-type::first-letter,
.bufo-content.bufo-prose-dropcap > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.14em -0.06em 0;
  padding-right: 0.12em;
  font-family: var(--bufo-display, 'Zen Dots'), serif;
  font-size: clamp(3.8rem, 8vw, 5.6rem);
  line-height: 0.85;
  font-weight: 700;
  color: var(--bufo-green-bright, #4ade80);
  text-shadow: 0 0 22px rgba(34,197,94,0.22);
  background: linear-gradient(135deg, var(--bufo-green-bright, #4ade80), #22c55e 60%, #00ff88);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lead paragraph: opt-in via className "is-lead" */
.bufo-content p.is-lead,
.prose-content p.is-lead,
.entry-content p.is-lead {
  font-size: clamp(1.2rem, 1.6vw + 0.7rem, 1.5rem);
  line-height: 1.55;
  color: rgba(245,247,255,0.97);
  letter-spacing: -0.005em;
  font-weight: 500;
}

/* ── Headings — cinematic rhythm, balanced wrap ───────────────────────── */

.bufo-content :where(h1, h2, h3, h4, h5, h6),
.prose-content :where(h1, h2, h3, h4, h5, h6),
.entry-content :where(h1, h2, h3, h4, h5, h6) {
  max-width: calc(var(--bufo-prose-measure) + 4ch);
  font-family: var(--bufo-font, 'Outfit'), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: rgba(245,247,255,0.98);
  margin-block: 2.6em 0.7em;
  scroll-margin-top: 110px; /* anchor-link breathing room */
}

.bufo-content h2, .prose-content h2, .entry-content h2 {
  font-size: clamp(1.55rem, 3vw + 0.5rem, 2.2rem);
  position: relative;
  padding-top: 0.4em;
}
.bufo-content h2::before,
.prose-content h2::before,
.entry-content h2::before {
  content: "";
  display: block;
  width: 48px; height: 2px;
  margin-bottom: 0.6em;
  background: linear-gradient(90deg, var(--bufo-green-bright, #4ade80), transparent);
}
.bufo-content h3, .prose-content h3, .entry-content h3 {
  font-size: clamp(1.25rem, 2vw + 0.4rem, 1.55rem);
}
.bufo-content h3::before,
.prose-content h3::before,
.entry-content h3::before {
  content: "§ ";
  color: var(--bufo-green-bright, #4ade80);
  font-family: var(--bufo-mono, monospace);
  font-size: 0.85em;
  margin-right: 0.2em;
  opacity: 0.8;
}
.bufo-content h4, .prose-content h4, .entry-content h4 {
  font-size: clamp(1.08rem, 1.5vw + 0.3rem, 1.25rem);
  font-family: var(--bufo-mono, 'JetBrains Mono'), monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: rgba(245,247,255,0.85);
}

.bufo-content :where(h2, h3, h4) + p,
.prose-content :where(h2, h3, h4) + p,
.entry-content :where(h2, h3, h4) + p {
  margin-top: 0.3em;
}

/* ── Links in prose ───────────────────────────────────────────────────── */

.bufo-content a:not([class*="wp-block"]):not([class*="btn"]):not([class*="cta"]):not(.bc-spine__src),
.prose-content a:not([class*="wp-block"]):not([class*="btn"]):not([class*="cta"]),
.entry-content a:not([class*="wp-block"]):not([class*="btn"]):not([class*="cta"]) {
  color: var(--bufo-green-bright, #4ade80);
  text-decoration: underline;
  text-decoration-color: rgba(34,197,94,0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease, background-color .2s ease;
  border-radius: 2px;
  /*
   * Long URLs (especially those with hyphens) should wrap without the
   * browser inserting fake hyphens. overflow-wrap: anywhere lets the
   * line break inside the URL token; hyphens: none disables soft-hyphen
   * insertion entirely.
   */
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bufo-content a:hover,
.prose-content a:hover,
.entry-content a:hover {
  color: #00ff88;
  text-decoration-color: #00ff88;
  background: rgba(34,197,94,0.08);
}

/* ── Blockquotes — full-bleed cinematic pull quote ───────────────────── */

.bufo-content blockquote,
.prose-content blockquote,
.entry-content blockquote,
.bufo-content .wp-block-quote,
.prose-content .wp-block-quote,
.entry-content .wp-block-quote {
  position: relative;
  margin: clamp(2rem, 4vw, 2.8rem) 0;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.8rem) clamp(2.2rem, 4vw, 3rem);
  border: 0;
  border-left: 3px solid var(--bufo-green-bright, #4ade80);
  background:
    linear-gradient(90deg, rgba(34,197,94,0.05), transparent 60%),
    rgba(10,14,20,0.45);
  border-radius: 0 12px 12px 0;
  font-family: var(--bufo-font, 'Outfit'), system-ui, sans-serif;
  font-size: clamp(1.18rem, 2vw + 0.2rem, 1.45rem);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(245,247,255,0.95);
  font-style: italic;
  max-width: calc(var(--bufo-prose-measure) + 4ch);
  letter-spacing: -0.003em;
  quotes: "“" "”" "‘" "’";
}
/*
 * NOTE v4.2.2:
 *   The decorative giant-quote-mark used to live on blockquote::before,
 *   but wp-blocks.css already uses .wp-block-quote::before for the
 *   "◄ TRANSMISIÓN INTERCEPTADA ►" header at specificity (0,3,1),
 *   which beat our (0,1,2) selector and silently hid our quote mark.
 *   The replacement lives further down on .wp-block-quote p:first-of-type
 *   so BOTH the header label AND the quote mark can coexist.
 *
 *   For raw <blockquote> (non-Gutenberg) we still paint the quote mark
 *   here — that path is untouched by wp-blocks.css.
 */
.bufo-content blockquote:not(.wp-block-quote)::before,
.prose-content blockquote:not(.wp-block-quote)::before,
.entry-content blockquote:not(.wp-block-quote)::before {
  content: "“";
  position: absolute;
  left: 0.2em; top: -0.18em;
  font-family: 'Georgia', serif;
  font-size: 5em;
  line-height: 1;
  color: var(--bufo-green-bright, #4ade80);
  opacity: 0.22;
  font-style: normal;
  pointer-events: none;
}
.bufo-content blockquote p,
.prose-content blockquote p,
.entry-content blockquote p { margin: 0; max-width: none; }
.bufo-content blockquote cite,
.prose-content blockquote cite,
.entry-content blockquote cite,
.bufo-content .wp-block-quote cite,
.prose-content .wp-block-quote cite {
  display: block;
  margin-top: 0.8em;
  font-family: var(--bufo-mono, monospace);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,247,255,0.58);
  font-style: normal;
  font-weight: 600;
}
.bufo-content blockquote cite::before,
.prose-content blockquote cite::before,
.entry-content blockquote cite::before { content: "— "; color: rgba(34,197,94,0.7); }

/* Pull-quote style (Gutenberg) */
.bufo-content .wp-block-pullquote,
.prose-content .wp-block-pullquote,
.entry-content .wp-block-pullquote {
  margin: clamp(2.4rem, 5vw, 3.2rem) 0;
  padding: clamp(2rem, 4vw, 2.6rem) 0;
  border-top: 2px solid var(--bufo-green-bright, #4ade80);
  border-bottom: 2px solid var(--bufo-green-bright, #4ade80);
  text-align: center;
  background: transparent;
}
.bufo-content .wp-block-pullquote blockquote,
.prose-content .wp-block-pullquote blockquote {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 auto;
  max-width: 72ch;
}
.bufo-content .wp-block-pullquote blockquote::before { display: none; }
.bufo-content .wp-block-pullquote p,
.prose-content .wp-block-pullquote p {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem);
  font-family: var(--bufo-display, 'Zen Dots'), sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  text-wrap: balance;
}

/* ── Lists ─────────────────────────────────────────────────────────────── */

.bufo-content ul,
.prose-content ul,
.entry-content ul,
.bufo-content ol,
.prose-content ol,
.entry-content ol {
  max-width: var(--bufo-prose-measure);
  margin: 0 0 var(--bufo-prose-rhythm);
  padding-left: 0;
  list-style: none;
}
.bufo-content :where(ul, ol) :where(ul, ol),
.prose-content :where(ul, ol) :where(ul, ol),
.entry-content :where(ul, ol) :where(ul, ol) {
  margin-bottom: 0.6rem;
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

/*
 * SPECTACULAR <ul> — cinematic reading list
 *
 * Design:
 *   - Each li is a pressable row with a green spine border on hover.
 *   - Diamond bullet absolutely positioned on a computed y so it aligns
 *     with the first-line optical center.
 *   - Hover: slight translate-X, bg gradient, spine colours in, bullet
 *     scales + glows, optional connector dash slides in from the left.
 *   - Fully keyboard-friendly when a link is focused inside the row.
 */
.bufo-content ul > li,
.prose-content ul > li,
.entry-content ul > li {
  position: relative;
  margin: 0 0 4px;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  line-height: 1.65;
  border-radius: 10px;
  border-left: 2px solid transparent;
  background: transparent;
  transition:
    background .35s cubic-bezier(.2,.8,.2,1),
    border-left-color .35s ease,
    transform .35s cubic-bezier(.2,.8,.2,1),
    padding-left .35s ease;
}

/* Diamond bullet — vertically centred on the first line via calc(). */
.bufo-content ul > li::before,
.prose-content ul > li::before,
.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: calc(0.7rem + 0.5 * 1.65em - 5.5px); /* padding-top + ½ first-line - ½ bullet */
  width: 11px; height: 11px;
  border: 1.5px solid var(--bufo-green-bright, #4ade80);
  background: rgba(34,197,94,0.18);
  transform: rotate(45deg);
  box-shadow:
    0 0 0 2px var(--bufo-space, #050508),
    0 0 12px rgba(34,197,94,0.25);
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s cubic-bezier(.2,.8,.2,1);
}

/* Little connector dash between spine and bullet on hover. */
.bufo-content ul > li::after,
.prose-content ul > li::after,
.entry-content ul > li::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: calc(0.7rem + 0.5 * 1.65em - 1px);
  width: 0.65rem;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--bufo-green-bright, #4ade80));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.bufo-content ul > li:hover,
.prose-content ul > li:hover,
.entry-content ul > li:hover,
.bufo-content ul > li:focus-within,
.prose-content ul > li:focus-within,
.entry-content ul > li:focus-within {
  background: linear-gradient(90deg, rgba(34,197,94,0.07), rgba(34,197,94,0.02) 55%, transparent 85%);
  border-left-color: var(--bufo-green-bright, #4ade80);
  transform: translateX(2px);
}
.bufo-content ul > li:hover::before,
.prose-content ul > li:hover::before,
.entry-content ul > li:hover::before,
.bufo-content ul > li:focus-within::before,
.prose-content ul > li:focus-within::before,
.entry-content ul > li:focus-within::before {
  background: rgba(34,197,94,0.42);
  border-color: #00ff88;
  box-shadow:
    0 0 0 2px var(--bufo-space, #050508),
    0 0 22px rgba(34,197,94,0.65),
    0 0 40px rgba(34,197,94,0.2);
  transform: rotate(45deg) scale(1.18);
}
.bufo-content ul > li:hover::after,
.prose-content ul > li:hover::after,
.entry-content ul > li:hover::after,
.bufo-content ul > li:focus-within::after,
.prose-content ul > li:focus-within::after,
.entry-content ul > li:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Nested <ul> (child lists) use a smaller, solid dot to stay subtle. */
.bufo-content ul ul > li::before,
.prose-content ul ul > li::before,
.entry-content ul ul > li::before {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bufo-green, #22c55e);
  border: 0;
  transform: none;
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

@media (prefers-reduced-motion: reduce) {
  .bufo-content ul > li,
  .prose-content ul > li,
  .entry-content ul > li { transition: none; transform: none !important; }
  .bufo-content ul > li::before,
  .prose-content ul > li::before,
  .entry-content ul > li::before { transition: none; }
  .bufo-content ul > li::after,
  .prose-content ul > li::after,
  .entry-content ul > li::after { display: none; }
}

/* Ordered lists: monospace counters */
.bufo-content ol,
.prose-content ol,
.entry-content ol {
  counter-reset: bufo-prose;
}
.bufo-content ol > li,
.prose-content ol > li,
.entry-content ol > li {
  position: relative;
  padding: 0.7rem 1rem 0.7rem 3rem;
  counter-increment: bufo-prose;
  margin: 0 0 2px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background .3s ease, border-left-color .3s ease, transform .3s ease;
}
.bufo-content ol > li::before,
.prose-content ol > li::before,
.entry-content ol > li::before {
  content: counter(bufo-prose, decimal-leading-zero);
  position: absolute;
  left: 0.8rem; top: calc(0.7rem + 0.1em);
  font-family: var(--bufo-mono, monospace);
  font-size: 0.82em;
  color: var(--bufo-green-bright, #4ade80);
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.9;
  transition: text-shadow .3s ease, opacity .3s ease;
}
.bufo-content ol > li:hover,
.prose-content ol > li:hover,
.entry-content ol > li:hover {
  background: linear-gradient(90deg, rgba(34,197,94,0.05), transparent 70%);
  border-left-color: var(--bufo-green-bright, #4ade80);
  transform: translateX(2px);
}
.bufo-content ol > li:hover::before,
.prose-content ol > li:hover::before,
.entry-content ol > li:hover::before {
  opacity: 1;
  text-shadow: 0 0 14px rgba(34,197,94,0.6);
}

/* ── Tables ────────────────────────────────────────────────────────────── */

.bufo-content table,
.prose-content table,
.entry-content table,
.bufo-content .wp-block-table table,
.prose-content .wp-block-table table {
  width: 100%;
  margin: var(--bufo-prose-rhythm) 0;
  border-collapse: collapse;
  background: rgba(10,14,20,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.98rem;
}
.bufo-content th,
.prose-content th,
.entry-content th {
  padding: 12px 16px;
  text-align: left;
  background: rgba(34,197,94,0.1);
  color: var(--bufo-green-bright, #4ade80);
  font-family: var(--bufo-mono, monospace);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 1px solid rgba(34,197,94,0.25);
}
.bufo-content td,
.prose-content td,
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(245,247,255,0.86);
  vertical-align: top;
  line-height: 1.6;
}
.bufo-content tbody tr:last-child td,
.prose-content tbody tr:last-child td { border-bottom: 0; }
.bufo-content tbody tr:hover td,
.prose-content tbody tr:hover td { background: rgba(34,197,94,0.04); }

/* ── Inline code & <kbd> ──────────────────────────────────────────────── */

.bufo-content :not(pre) > code,
.prose-content :not(pre) > code,
.entry-content :not(pre) > code {
  font-family: var(--bufo-mono, monospace);
  font-size: 0.92em;
  padding: 0.12em 0.42em;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: -0.002em;
}
.bufo-content kbd,
.prose-content kbd {
  font-family: var(--bufo-mono, monospace);
  font-size: 0.85em;
  padding: 0.12em 0.5em;
  border: 1px solid rgba(255,255,255,0.2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  letter-spacing: 0.02em;
}

/* ── Code blocks ──────────────────────────────────────────────────────── */

.bufo-content pre,
.prose-content pre,
.entry-content pre,
.bufo-content .wp-block-code,
.prose-content .wp-block-code,
.entry-content .wp-block-code {
  margin: var(--bufo-prose-rhythm) 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, #0a0e14 0%, #060810 100%);
  border: 1px solid rgba(34,197,94,0.15);
  border-left: 3px solid var(--bufo-green-bright, #4ade80);
  border-radius: 10px;
  font-family: var(--bufo-mono, monospace);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  tab-size: 2;
  position: relative;
}
.bufo-content pre::before,
.prose-content pre::before,
.entry-content pre::before {
  content: "";
  position: absolute; top: 10px; left: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background:
    radial-gradient(circle at 3px 3px, #ff5f56 3px, transparent 3.5px),
    radial-gradient(circle at 17px 3px, #ffbd2e 3px, transparent 3.5px),
    radial-gradient(circle at 31px 3px, #27c93f 3px, transparent 3.5px);
  width: 40px; background-repeat: no-repeat;
  opacity: 0.7;
}
.bufo-content pre { padding-top: 2.4rem; }

/* ── Figures / captions / images ─────────────────────────────────────── */

.bufo-content figure,
.prose-content figure,
.entry-content figure,
.bufo-content .wp-block-image,
.prose-content .wp-block-image,
.entry-content .wp-block-image {
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}
.bufo-content figure img,
.prose-content figure img,
.entry-content figure img,
.bufo-content .wp-block-image img,
.prose-content .wp-block-image img,
.entry-content .wp-block-image img {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.bufo-content figcaption,
.prose-content figcaption,
.entry-content figcaption {
  margin-top: 0.7em;
  font-family: var(--bufo-mono, monospace);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(245,247,255,0.6);
  text-align: left;
  padding-left: 14px;
  border-left: 2px solid rgba(34,197,94,0.4);
}

/* ── Horizontal rules ────────────────────────────────────────────────── */

.bufo-content hr,
.prose-content hr,
.entry-content hr {
  margin: clamp(2.2rem, 5vw, 3.2rem) auto;
  max-width: 320px;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.4), transparent);
  position: relative;
}
.bufo-content hr::after,
.prose-content hr::after,
.entry-content hr::after {
  content: "◆";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--bufo-green-bright, #4ade80);
  background: var(--bufo-space, #050508);
  padding: 0 8px;
}

/* ── Details / Disclosure (FAQ accordions) ──────────────────────────── */

.bufo-content details,
.prose-content details,
.entry-content details,
.bufo-content .wp-block-details,
.prose-content .wp-block-details,
.entry-content .wp-block-details {
  margin: 0 0 12px;
  padding: 14px 18px;
  background: rgba(10,14,20,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid rgba(34,197,94,0.5);
  border-radius: 10px;
  transition: border-color .25s ease, background .25s ease;
}
.bufo-content details[open],
.prose-content details[open],
.entry-content details[open] {
  background: rgba(10,14,20,0.72);
  border-left-color: var(--bufo-green-bright, #4ade80);
}
.bufo-content summary,
.prose-content summary,
.entry-content summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(245,247,255,0.94);
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  padding: 2px 0;
  transition: color .2s ease;
}
.bufo-content summary::-webkit-details-marker,
.prose-content summary::-webkit-details-marker { display: none; }
.bufo-content summary::before,
.prose-content summary::before {
  content: "+";
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 4px;
  color: var(--bufo-green-bright, #4ade80);
  font-family: var(--bufo-mono, monospace);
  transition: transform .25s ease, background .25s ease;
}
.bufo-content details[open] summary::before,
.prose-content details[open] summary::before {
  content: "−";
  background: rgba(34,197,94,0.15);
  transform: rotate(180deg);
}

/* ── First-element reset (prevent huge top gap after heading) ────────── */

.bufo-content > :first-child,
.prose-content > :first-child,
.entry-content > :first-child { margin-top: 0; }
.bufo-content > :last-child,
.prose-content > :last-child,
.entry-content > :last-child { margin-bottom: 0; }

/* ── Selection colour ────────────────────────────────────────────────── */

.bufo-content ::selection,
.prose-content ::selection,
.entry-content ::selection {
  background: rgba(34,197,94,0.35);
  color: #fff;
}

/* ── Reading-mode: larger base + tighter measure ─────────────────────── */

.bufo-reading-mode .bufo-content,
.bufo-reading-mode .prose-content,
.bufo-reading-mode .entry-content {
  --bufo-prose-measure: 64ch;
  --bufo-prose-fs: clamp(1.14rem, 1.3vw + 0.7rem, 1.3rem);
  --bufo-prose-lh: 1.85;
}

/* ═════════════════════════════════════════════════════════════════════
   v4.2.1 polish patches (April 2026)
   Addresses three regressions visible in the FAQ + Fuentes screenshot:
     1. The "SEC //" registration mark was repeating on every h2 inside
        prose, becoming visual noise instead of a quiet print mark.
     2. The FAQ <details> "+" toggle felt flimsy — bumped its size,
        contrast, and added a subtle hover affordance.
     3. List bullets in <ul> needed crisper diamonds (8 px squares
        rotated 45° looked accidental at low DPI).
   ═════════════════════════════════════════════════════════════════════ */

/* (1) "SEC //" registration mark — repeating it on every section heading
        was visual noise (see screenshot, FAQ rápida + Fuentes both got
        the badge). Hidden inside every prose container; the underlying
        rule in single.css / wp-blocks.css still fires for h2s rendered
        elsewhere (sidebar widgets, archive cards, etc).                 */
.bufo-content h2::after,
.prose-content h2::after,
.entry-content h2::after,
.bufo-content h2.wp-block-heading::after,
.prose-content h2.wp-block-heading::after,
.entry-content h2.wp-block-heading::after { display: none !important; content: none !important; }

/* (2) FAQ <details> toggle — bigger, brighter, animated chevron + hover. */
.bufo-content details > summary,
.prose-content details > summary,
.entry-content details > summary {
  padding: 6px 0;
  font-size: 1.04rem;
  letter-spacing: -0.005em;
}
.bufo-content details > summary::before,
.prose-content details > summary::before,
.entry-content details > summary::before {
  width: 31px !important;
  height: 31px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  border: 1.5px solid rgba(34,197,94,0.55) !important;
  background: rgba(34,197,94,0.08) !important;
  box-shadow: 0 0 0 0 rgba(34,197,94,0); /* baseline for transition */
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.bufo-content details:hover > summary::before,
.prose-content details:hover > summary::before,
.entry-content details:hover > summary::before {
  background: rgba(34,197,94,0.18) !important;
  border-color: var(--bufo-green-bright, #4ade80) !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.bufo-content details[open] > summary::before,
.prose-content details[open] > summary::before,
.entry-content details[open] > summary::before {
  background: rgba(34,197,94,0.22) !important;
  border-color: var(--bufo-green-bright, #4ade80) !important;
}

/* Tighter answer indentation so it visually attaches to the question. */
.bufo-content details > *:not(summary),
.prose-content details > *:not(summary),
.entry-content details > *:not(summary) {
  margin-left: 41px;
  color: rgba(245,247,255,0.82);
}

/* (3) The crisper-diamond override from v4.2.1 is no longer needed —
       the spectacular <ul> block above owns the bullet styling now.  */

/* (4) Sources / link-list pattern: when an <li> contains only a long URL,
        show it monospace + slightly smaller so wrap breaks read like a
        terminal listing. Authors opt in by adding the .is-source-list
        class on the <ul>/<ol> (or it can be added by JS).             */
.bufo-content ul.is-source-list li,
.prose-content ul.is-source-list li,
.bufo-content ol.is-source-list li,
.prose-content ol.is-source-list li {
  font-family: var(--bufo-mono, 'JetBrains Mono', monospace);
  font-size: 0.92rem;
  line-height: 1.55;
}
.bufo-content ul.is-source-list a,
.prose-content ul.is-source-list a,
.bufo-content ol.is-source-list a,
.prose-content ol.is-source-list a {
  color: var(--bufo-green-bright, #4ade80);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* (5) Plain-text URLs (no <a> wrapper) should also break cleanly when
        they would otherwise overflow the column. overflow-wrap: anywhere
        only kicks in for tokens that can't fit on one line, so normal
        prose wrapping at spaces is preserved.                           */
.bufo-content :where(li, p),
.prose-content :where(li, p),
.entry-content :where(li, p) {
  overflow-wrap: anywhere;
}

/* ═════════════════════════════════════════════════════════════════════
   v4.2.2 — Spectacular blockquote (.wp-block-quote)
   -------------------------------------------------------------------
   Co-exists with the existing "◄ TRANSMISIÓN INTERCEPTADA ►" label
   (which lives on .wp-block-quote::before in wp-blocks.css). We paint
   the decorative giant-quote mark on the FIRST paragraph inside the
   block, so both show together.

   Specificity-matched (0,3,1) to beat the wp-blocks.css scanline rule
   on ::after as well, which let us layer a subtle parallax gradient
   without fighting the existing scanline.
   ═════════════════════════════════════════════════════════════════════ */

.bufo-content .wp-block-quote,
.prose-content .wp-block-quote,
.entry-content .wp-block-quote,
.bufo-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow,
.prose-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow,
.entry-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow {
  /* Extra left padding makes room for the decorative quote mark. */
  padding-left: clamp(3rem, 6vw, 4.25rem) !important;
  padding-right: clamp(1.4rem, 3vw, 2rem) !important;
  padding-top: clamp(1.25rem, 2.5vw, 1.6rem) !important;
  padding-bottom: clamp(1.3rem, 3vw, 1.75rem) !important;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.05) inset,
    -4px 0 24px rgba(34,197,94,0.08),
    0 24px 60px rgba(0,0,0,0.45) !important;
}

/* Upgrade the TRANSMISIÓN header — more cinematic, subtle glow sweep. */
.bufo-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow::before,
.prose-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow::before,
.entry-content .wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow::before {
  font-size: 0.65rem !important;
  letter-spacing: 0.28em !important;
  color: var(--bufo-green-bright, #4ade80) !important;
  padding-bottom: 0.85rem !important;
  margin-bottom: 1.1rem !important;
  border-bottom-color: rgba(34,197,94,0.18) !important;
  text-shadow: 0 0 18px rgba(34,197,94,0.55) !important;
}

/* Giant decorative quote mark — painted on the FIRST <p> inside the
   block. Using a pseudo on <p> avoids the ::before / ::after slots that
   are already claimed on the blockquote itself. */
.bufo-content .wp-block-quote > p:first-of-type,
.prose-content .wp-block-quote > p:first-of-type,
.entry-content .wp-block-quote > p:first-of-type {
  position: relative;
}
.bufo-content .wp-block-quote > p:first-of-type::before,
.prose-content .wp-block-quote > p:first-of-type::before,
.entry-content .wp-block-quote > p:first-of-type::before {
  content: "“";
  position: absolute;
  left: clamp(-2.4rem, -4vw, -1.8rem);
  top: -1.15em;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(5rem, 9vw, 7.2rem);
  line-height: 1;
  color: var(--bufo-green-bright, #4ade80);
  opacity: 0.28;
  font-style: normal;
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 0 28px rgba(34,197,94,0.4);
  transform: translateZ(0);
  animation: bufo-quote-drift 9s ease-in-out infinite;
}

/* Closing quote mark on the LAST paragraph, mirrored to the right. */
.bufo-content .wp-block-quote > p:last-of-type,
.prose-content .wp-block-quote > p:last-of-type,
.entry-content .wp-block-quote > p:last-of-type {
  position: relative;
}
.bufo-content .wp-block-quote > p:last-of-type::after,
.prose-content .wp-block-quote > p:last-of-type::after,
.entry-content .wp-block-quote > p:last-of-type::after {
  content: "”";
  position: absolute;
  right: -0.25rem;
  bottom: -0.9em;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--bufo-green-bright, #4ade80);
  opacity: 0.14;
  font-style: normal;
  font-weight: 700;
  pointer-events: none;
}

/* Gentle hover: the whole quote lifts, the glow intensifies. */
.bufo-content .wp-block-quote,
.prose-content .wp-block-quote,
.entry-content .wp-block-quote {
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.bufo-content .wp-block-quote:hover,
.prose-content .wp-block-quote:hover,
.entry-content .wp-block-quote:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.1) inset,
    -4px 0 32px rgba(34,197,94,0.15),
    0 28px 72px rgba(0,0,0,0.55) !important;
}
.bufo-content .wp-block-quote:hover > p:first-of-type::before,
.prose-content .wp-block-quote:hover > p:first-of-type::before,
.entry-content .wp-block-quote:hover > p:first-of-type::before {
  opacity: 0.38;
}

@keyframes bufo-quote-drift {
  0%, 100% { transform: translateZ(0) translateY(0); }
  50%      { transform: translateZ(0) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .bufo-content .wp-block-quote > p:first-of-type::before,
  .prose-content .wp-block-quote > p:first-of-type::before,
  .entry-content .wp-block-quote > p:first-of-type::before {
    animation: none;
  }
  .bufo-content .wp-block-quote,
  .prose-content .wp-block-quote,
  .entry-content .wp-block-quote { transition: none; }
  .bufo-content .wp-block-quote:hover,
  .prose-content .wp-block-quote:hover,
  .entry-content .wp-block-quote:hover { transform: none; }
}

/* Cite line — brighter green bullet + readable meta. */
.bufo-content .wp-block-quote cite,
.prose-content .wp-block-quote cite,
.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--bufo-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,247,255,0.62);
  font-style: normal;
  font-weight: 600;
}
.bufo-content .wp-block-quote cite::before,
.prose-content .wp-block-quote cite::before,
.entry-content .wp-block-quote cite::before {
  content: "— ";
  color: var(--bufo-green-bright, #4ade80);
}
.bufo-content ul > li:first-child::before,
.prose-content ul > li:first-child::before,
.entry-content ul > li:first-child::before {
  top: 9px;
}
