/*
Theme Name: Vales y Monederos Pro
Description: Tema custom a medida para valesymonederos.com — fintech editorial mexicana, móvil-first, AdSense-ready. Sin frameworks, sin page builders.
Version: 1.0.0
Author: Roilab
Text Domain: vym
*/

/* ============ FUENTES (self-hosted) ============ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/BricolageGrotesque-600-800-normal.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: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-400-italic.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-400-normal.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-500-normal.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-600-normal.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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SplineSansMono-500-normal.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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/SplineSansMono-600-normal.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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/SplineSansMono-700-normal.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;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* color */
  --ink: #0a2e23;
  --ink-2: #28473c;
  --ink-3: #5a7268;
  --paper: #faf6ed;
  --paper-2: #f2ecdd;
  --card: #ffffff;
  --hair: rgba(10, 46, 35, .1);
  --hair-2: rgba(10, 46, 35, .16);
  --gold: #ffb020;
  --gold-2: #e68a00;
  --gold-soft: #fff3d6;
  --chili: #e4572e;
  --chili-soft: #fdebe4;
  --mint: #0fa97e;
  --mint-soft: #e2f6ef;
  --blue: #2d6ff7;

  /* elevación */
  --sh-1: 0 1px 2px rgba(10,46,35,.05), 0 2px 8px rgba(10,46,35,.05);
  --sh-2: 0 2px 4px rgba(10,46,35,.05), 0 10px 28px -6px rgba(10,46,35,.12);
  --sh-3: 0 4px 10px rgba(10,46,35,.06), 0 24px 56px -12px rgba(10,46,35,.2);

  /* tipo */
  --f-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --f-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", monospace;

  /* medidas */
  --w-page: 1140px;
  --w-text: 700px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --gut: clamp(18px, 4vw, 32px);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
p { margin: 0 0 1.2em; }
strong { color: var(--ink); }
::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gut); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* etiqueta mono reutilizable */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--hair-2);
}
.chip--mint { background: var(--mint-soft); color: #0b7d5d; border-color: rgba(15,169,126,.3); }
.chip--gold { background: var(--gold-soft); color: #9a6200; border-color: rgba(230,138,0,.3); }
.chip--chili { background: var(--chili-soft); color: #b33d1c; border-color: rgba(228,87,46,.3); }

/* botones */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  background: var(--gold); color: var(--ink);
  border: none; border-radius: 999px;
  padding: 13px 26px; cursor: pointer; text-decoration: none;
  box-shadow: var(--sh-1), inset 0 -2px 0 rgba(10,46,35,.18);
  transition: transform .18s cubic-bezier(.2,.7,.3,1.4), box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: #ffba3d; }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--hair-2); }
.btn--ghost:hover { background: var(--card); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow .25s;
}
.site-head.is-scrolled { box-shadow: var(--sh-2); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }

/* marca */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__tile {
  position: relative; width: 42px; height: 32px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-radius: 9px;
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.4);
  display: grid; place-items: center;
}
.brand__tile::before, .brand__tile::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  background: var(--paper); border-radius: 50%; transform: translateY(-50%);
  box-shadow: inset 0 1px 2px rgba(10,46,35,.25);
}
.brand__tile::before { left: -4px; }
.brand__tile::after { right: -4px; }
.brand__tile svg { width: 17px; height: 17px; color: var(--ink); position: relative; z-index: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.16rem; letter-spacing: -.025em; color: var(--ink); }
.brand__name em { font-style: normal; color: var(--chili); }
@media (max-width: 420px) { .brand__name { font-size: 1.04rem; } }

/* nav escritorio */
.nav-desk { display: none; }
@media (min-width: 880px) {
  .nav-desk { display: block; }
  .nav-desk ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-desk li { position: relative; }
  .nav-desk a {
    display: block; padding: 9px 15px; border-radius: 999px;
    font-family: var(--f-display); font-weight: 600; font-size: .96rem;
    color: var(--ink); text-decoration: none; transition: background .15s;
  }
  .nav-desk a:hover { background: var(--paper-2); }
  .nav-desk .current-menu-item > a, .nav-desk .current_page_item > a { box-shadow: inset 0 -2.5px 0 var(--gold); }
  /* submenú */
  .nav-desk li ul {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
    flex-direction: column; gap: 2px;
    background: var(--card); border: 1px solid var(--hair);
    border-radius: var(--r-m); box-shadow: var(--sh-3);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav-desk li:hover > ul, .nav-desk li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
  .nav-desk li ul a { border-radius: 10px; font-weight: 500; font-size: .92rem; }
  .nav-desk > ul > li:nth-last-child(-n+2) > ul { left: auto; right: 0; } /* últimos dropdowns: a la derecha, sin overflow */
}

/* toggle móvil */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 0 11px;
  background: var(--card); border: 1px solid var(--hair-2); border-radius: 12px;
  cursor: pointer; box-shadow: var(--sh-1);
}
.nav-toggle span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 880px) { .nav-toggle { display: none; } }

/* panel móvil */
.nav-sheet {
  position: fixed; inset: 0; top: 68px; z-index: 55;
  background: var(--paper);
  padding: 26px var(--gut) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.nav-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-sheet ul { list-style: none; margin: 0 0 26px; padding: 0; }
.nav-sheet > ul > li > a {
  display: block; padding: 15px 4px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.45rem;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px dashed var(--hair-2);
}
.nav-sheet ul ul { margin: 4px 0 8px; padding-left: 14px; }
.nav-sheet ul ul a { display: block; padding: 9px 0; font-size: 1.02rem; color: var(--ink-2); text-decoration: none; }
.nav-sheet__label { margin: 18px 0 10px; }

/* ============================================================
   HERO PORTADA
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(44px, 8vw, 84px) 0 clamp(34px, 6vw, 60px);
}
.hero::before { /* glow */
  content: ""; position: absolute; top: -220px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,176,32,.22), transparent 70%);
  pointer-events: none;
}
.hero::after { /* moneda gigante de fondo */
  content: "$"; position: absolute; right: -30px; bottom: -90px;
  font-family: var(--f-mono); font-weight: 700; font-size: 330px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(10,46,35,.07);
  pointer-events: none; user-select: none;
}
.hero h1 { max-width: 19ch; margin-bottom: .45em; }
.hero h1 mark {
  background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%);
  color: inherit; padding: 0 .06em;
}
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 1.6em; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* tarjeta directorio */
.dir-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  box-shadow: var(--sh-3);
  padding: clamp(20px, 3.4vw, 34px);
  margin-top: 34px;
}
.dir-card::before, .dir-card::after { /* muescas ticket */
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: 50%; transform: translateY(-50%);
}
.dir-card::before { left: -12px; }
.dir-card::after { right: -12px; }
.dir-card__head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 20px;
}
.dir-card__head::after { content: ""; flex: 1; border-top: 2px dashed var(--hair-2); }

.dir-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .dir-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 960px) { .dir-grid { grid-template-columns: repeat(4, 1fr); } }
.dir-item {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--r-m);
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.dir-item__txt { min-width: 0; }
.dir-item__txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .dir-item { gap: 9px; padding: 11px 10px; }
  .dir-item__logo { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
  .dir-item__arrow { display: none; }
  .dir-item__txt b { font-size: .88rem; white-space: normal; }
  .dir-item__txt small { display: none; }
}
.dir-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--hair-2); background: var(--card); }
.dir-item__logo {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), var(--sh-1);
}
.dir-item__txt b { display: block; font-family: var(--f-display); font-weight: 700; font-size: .98rem; color: var(--ink); line-height: 1.2; }
.dir-item__txt small { font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.dir-item__arrow { margin-left: auto; color: var(--gold-2); flex: none; transition: transform .16s; }
.dir-item:hover .dir-item__arrow { transform: translateX(3px); }
.dir-card__foot { margin-top: 18px; text-align: center; }
.dir-card__foot a { font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================
   SECCIONES PORTADA
   ============================================================ */
.front-body { padding: clamp(30px, 5vw, 56px) 0 20px; }
.front-body .entry { max-width: none; }

/* listas de la portada como tarjetas-enlace */
.front-body .entry > ul { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .front-body .entry > ul { grid-template-columns: repeat(2, 1fr); } }
.front-body .entry > ul > li { margin: 0; }
.front-body .entry > ul > li > a {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  padding: 15px 18px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform .15s, box-shadow .15s;
}
.front-body .entry > ul > li > a::before {
  content: "→"; order: 2; margin-left: auto; color: var(--gold-2); font-weight: 700;
  transition: transform .15s;
}
.front-body .entry > ul > li > a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.front-body .entry > ul > li > a:hover::before { transform: translateX(3px); }

.front-body .entry > h2 { margin-top: 1.8em; }

/* ============================================================
   CONTENIDO / PROSE
   ============================================================ */
.prose > * { max-width: var(--w-text); }
.prose > h2 {
  margin-top: 2em; padding-top: 1.1em;
  border-top: 2px dashed var(--hair-2);
}
.prose a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--chili); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-2); font-weight: 700; }

.prose img { border-radius: var(--r-m); box-shadow: var(--sh-2); margin-block: 8px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }

/* tablas */
.prose .wp-block-table, .prose table { max-width: var(--w-text); }
.prose figure.wp-block-table { overflow-x: auto; }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .94rem; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--sh-1); }
.prose th { background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 700; text-align: left; padding: 11px 15px; }
.prose td { padding: 11px 15px; border-top: 1px solid var(--hair); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--paper); }

/* blockquote = dato clave */
.prose blockquote {
  margin: 1.8em 0; padding: 18px 22px 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(230,138,0,.35); border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  font-style: normal;
}
.prose blockquote::before {
  content: "★ Dato clave";
  display: block; margin-bottom: 6px;
  font-family: var(--f-mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* FAQ details */
.prose details, .front-body details {
  max-width: var(--w-text);
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--sh-1); margin-bottom: 10px;
  transition: box-shadow .2s;
}
.prose details[open], .front-body details[open] { box-shadow: var(--sh-2); }
.prose summary, .front-body summary {
  cursor: pointer; list-style: none;
  padding: 15px 52px 15px 18px; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
.prose summary::after, .front-body summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; display: grid; place-items: center;
  background: var(--paper-2); border-radius: 9px;
  font-family: var(--f-mono); font-weight: 700; color: var(--ink);
  transition: transform .2s, background .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); }
.prose details > *:not(summary), .front-body details > *:not(summary) { padding-inline: 18px; }
.prose details > p:last-child, .front-body details > p:last-child { padding-bottom: 16px; }

/* botones de bloque WP */
.prose .wp-block-button__link { all: unset; }
.prose .wp-block-button__link, .prose .wp-block-button a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 12px 24px; cursor: pointer;
  box-shadow: var(--sh-1), inset 0 -2px 0 rgba(10,46,35,.18);
}

/* ============================================================
   PLANTILLA ARTÍCULO
   ============================================================ */
.crumbs, .post-hero { max-width: calc(900px + 2 * var(--gut)); }
.crumbs { padding-top: 18px; margin-inline: auto; }
.post-hero { margin-inline: auto; }
.post-layout > .prose { width: 100%; max-width: 860px; margin-inline: auto; }
.rank-math-breadcrumb { font-family: var(--f-mono); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.rank-math-breadcrumb a { color: var(--ink-3); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--chili); }
.rank-math-breadcrumb .separator { margin-inline: 7px; color: var(--gold-2); }

.post-hero { padding: 22px 0 8px; }
.post-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.post-hero h1 { max-width: 24ch; }
.post-hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; }
.post-hero__by {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: .9rem; color: var(--ink-3);
}
.post-hero__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--chili)); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: .9rem; }
.post-hero__by b { color: var(--ink); font-weight: 600; }

/* layout con TOC */
.post-layout { display: grid; gap: 40px; padding: 26px 0 50px; }
@media (min-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}
.toc {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--sh-1); padding: 6px 18px 14px;
  margin-bottom: 26px;
}
@media (min-width: 1080px) {
  .toc { position: sticky; top: 92px; margin-bottom: 0; order: 2; }
}
.toc__title { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 8px; }
.toc__title::after { content: ""; flex: 1; border-top: 2px dashed var(--hair-2); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 8px; border-left: 3px solid transparent;
  font-size: .88rem; line-height: 1.4; color: var(--ink-2); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.toc a:hover { background: var(--paper); }
.toc a.is-active { border-left-color: var(--gold); background: var(--paper); color: var(--ink); font-weight: 600; }
@media (max-width: 1079px) {
  .toc { padding: 0; }
  .toc__inner { padding: 6px 18px 14px; }
  .toc summary { padding: 14px 18px; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
}

/* relacionadas */
.related { padding: 10px 0 60px; }
.related__grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 680px) { .related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .related__grid { grid-template-columns: repeat(4, 1fr); } }

/* tarjeta de post (grids) */
.pcard {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--sh-1); padding: 20px 20px 16px;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pcard__cat { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.pcard__title { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.pcard__more { margin-top: auto; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }

/* caja autor */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: var(--w-text);
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--sh-1); padding: 20px; margin-top: 40px;
}
.author-box__avatar { width: 56px; height: 56px; flex: none; border-radius: 16px; background: linear-gradient(135deg, var(--gold), var(--chili)); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.author-box b { font-family: var(--f-display); color: var(--ink); }
.author-box p { margin: 4px 0 0; font-size: .92rem; color: var(--ink-3); }

/* ============================================================
   COMPONENTES (shortcodes)
   ============================================================ */
/* tarjeta consulta saldo */
.saldo {
  position: relative; overflow: hidden;
  max-width: var(--w-text);
  background: linear-gradient(150deg, #0d3a2c, var(--ink) 55%);
  color: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--sh-3);
  padding: 26px 24px 22px;
  margin: 30px 0;
}
.saldo::before, .saldo::after { /* muescas */
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px;
  background: var(--paper); border-radius: 50%; transform: translateY(-50%);
}
.saldo::before { left: -11px; }
.saldo::after { right: -11px; }
.saldo__label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.saldo__label::after { content: ""; flex: 1; border-top: 2px dashed rgba(250,246,237,.25); }
.saldo__title { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: #fff; margin: 0 0 18px; letter-spacing: -.015em; }
.saldo__grid { display: grid; gap: 10px; }
@media (min-width: 600px) { .saldo__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.saldo__btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(250,246,237,.06);
  border: 1px solid rgba(250,246,237,.22);
  border-radius: 14px; padding: 13px 15px;
  color: var(--paper); text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.saldo__btn:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(255,176,32,.12); }
.saldo__btn--main { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.saldo__btn--main:hover { background: #ffba3d; }
.saldo__btn svg { width: 21px; height: 21px; flex: none; }
.saldo__btn span { line-height: 1.3; font-weight: 600; font-size: .97rem; }
.saldo__btn small { display: block; font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }

/* pasos */
.pasos { counter-reset: n; list-style: none; margin: 26px 0; padding: 0; max-width: var(--w-text); }
.pasos > li {
  counter-increment: n; position: relative;
  margin: 0 0 12px; padding: 16px 18px 16px 62px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--sh-1);
}
.pasos > li::before {
  content: counter(n); position: absolute; left: 15px; top: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--gold); border-radius: 10px;
  font-family: var(--f-display); font-weight: 800; color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(10,46,35,.2);
}
.pasos > li:not(:last-child)::after {
  content: ""; position: absolute; left: 30px; top: calc(100% - 2px); height: 14px;
  border-left: 2px dashed var(--hair-2);
}

/* slot anuncio */
.adbox { max-width: var(--w-text); margin: 30px 0; border: 1px dashed var(--hair-2); border-radius: var(--r-m); background: var(--paper-2); padding: 10px; text-align: center; }
.adbox__label { display: block; font-family: var(--f-mono); font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.adbox ins.adsbygoogle { display: block; min-height: 250px; }

/* ============================================================
   LISTADOS (blog / categoría / búsqueda)
   ============================================================ */
.archive-head { padding: clamp(34px, 6vw, 60px) 0 8px; }
.archive-head h1 { max-width: 22ch; }
.archive-head p { color: var(--ink-3); max-width: 56ch; }
.post-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 26px 0 60px; }
@media (min-width: 680px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 60px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 12px;
  font-family: var(--f-mono); font-weight: 700; font-size: .9rem;
  color: var(--ink); text-decoration: none; box-shadow: var(--sh-1);
}
.pagination .current { background: var(--gold); }

/* ============================================================
   CTA PRE-FOOTER + FOOTER
   ============================================================ */
.prefoot { padding: 20px 0 70px; }
.prefoot__card {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #0d3a2c, var(--ink) 60%);
  border-radius: var(--r-l);
  box-shadow: var(--sh-3);
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between;
}
.prefoot__card::after {
  content: "$"; position: absolute; right: 10px; bottom: -60px;
  font-family: var(--f-mono); font-weight: 700; font-size: 220px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(250,246,237,.1);
  pointer-events: none;
}
.prefoot__card h2 { color: #fff; margin: 0 0 6px; }
.prefoot__card p { color: rgba(250,246,237,.78); margin: 0; max-width: 46ch; }

.site-foot {
  position: relative;
  background: var(--ink); color: rgba(250,246,237,.78);
  padding: 54px 0 34px;
}
.site-foot::before { /* perforación */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 10px 0, var(--paper) 6px, transparent 6.6px) repeat-x;
  background-size: 20px 12px;
}
.site-foot a { color: var(--gold); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand .brand__name { color: #fff; }
.foot-brand p { font-size: .9rem; color: rgba(250,246,237,.6); max-width: 38ch; margin-top: 14px; }
.foot-col h3 { color: #fff; font-size: .8rem; font-family: var(--f-mono); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 9px; font-size: .94rem; }
.foot-col a { color: rgba(250,246,237,.82); }
.foot-legal {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px dashed rgba(250,246,237,.2);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: rgba(250,246,237,.5);
}

/* ============================================================
   404 / BÚSQUEDA
   ============================================================ */
.page-404 { padding: 80px 0 100px; text-align: center; }
.page-404 .big { font-family: var(--f-mono); font-weight: 700; font-size: clamp(4rem, 16vw, 8rem); color: transparent; -webkit-text-stroke: 3px var(--gold-2); line-height: 1; }
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 22px auto 0; }
.search-form input[type="search"] {
  flex: 1; padding: 13px 18px; font: inherit;
  background: var(--card); border: 1px solid var(--hair-2); border-radius: 999px;
  color: var(--ink);
}

/* ============================================================
   COOKIES (Machete) + LEGACY
   ============================================================ */
#machete_cookie_container, .machete_cookie_container {
  background: var(--ink) !important; color: var(--paper) !important;
  border-top: 2px solid var(--gold) !important;
  font-family: var(--f-body) !important; font-size: .85rem !important; line-height: 1.5 !important;
  padding: 14px 18px !important;
  left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important;
  box-sizing: border-box !important;
}
/* tira de compartir de Machete: fuera (ya hay share nativo del SO) */
.mct-social-share, .mct-share-buttons, [class*="mct-share"] { display: none !important; }
.machete_cookie_container a { color: var(--gold) !important; }
.machete_cookie_container button, #machete_cookie_container input[type="button"] {
  font-family: var(--f-display) !important; font-weight: 700 !important;
  background: var(--gold) !important; color: var(--ink) !important;
  border: none !important; border-radius: 999px !important; padding: 9px 20px !important; cursor: pointer;
}

/* neutralizar fondos inline legacy del contenido 2020 */
.prose [style*="background-color"] { background: var(--paper-2) !important; border-radius: var(--r-m); }

/* compartir de Machete y otros restos flotantes: fuera */
.machete-share, .mct-share { display: none !important; }

/* ============================================================
   BLOQUES EDITORIALES (enlazado + fiscal)
   ============================================================ */
.rel-inline {
  max-width: var(--w-text);
  background: var(--mint-soft);
  border: 1px solid rgba(15,169,126,.25);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  padding: 16px 20px 8px;
  margin: 30px 0;
}
.rel-inline > p { margin-bottom: 6px; }
.rel-inline strong { color: #0b7d5d; font-family: var(--f-display); }
.rel-inline ul { list-style: none; margin: 0; padding: 0; }
.rel-inline li { margin: 0; padding: 7px 0; border-top: 1px dashed rgba(15,169,126,.3); }
.rel-inline li:first-child { border-top: 0; }
.rel-inline a { font-weight: 600; text-decoration-color: var(--mint); }
.rel-inline a::after { content: " →"; color: var(--mint); }

.fiscal-2026 h2 { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.fiscal-2026 { margin-bottom: 2em; }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero h1, .hero__lead, .hero .kicker { animation: rise .55s cubic-bezier(.2,.7,.3,1) both; }
.hero__lead { animation-delay: .07s; }
.dir-card { animation: rise .6s .14s cubic-bezier(.2,.7,.3,1) both; }
.dir-item { animation: rise .5s both; }
.dir-item:nth-child(1) { animation-delay: .18s; } .dir-item:nth-child(2) { animation-delay: .22s; }
.dir-item:nth-child(3) { animation-delay: .26s; } .dir-item:nth-child(4) { animation-delay: .3s; }
.dir-item:nth-child(5) { animation-delay: .34s; } .dir-item:nth-child(6) { animation-delay: .38s; }
.dir-item:nth-child(7) { animation-delay: .42s; } .dir-item:nth-child(8) { animation-delay: .46s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
