/* ============================================================
   BLOG con el lenguaje "Apple" del inicio (inicio-apple.css).
   SOLO piel: mismo contenido, mismos textos, mismo orden.
   - Lista  /blog         = blog.html  (header#navHeader, .blog-hero, .blog-grid)
   - Articulo /blog/<slug> = blog/<slug>.html (header sencillo, .article-hero,
     .article-content, "You May Also Like", .article-cta, footer)
   Se enlaza DESPUES del <style> propio de cada pagina para que gane.
   "html:root body ..." = gana a styles.css (lista) y a los <style> de los articulos;
   !important donde hay estilos en linea o donde styles.css ya usa !important.
   Sin tonos azules de fondo: el azul solo queda en botones y enlaces (como el inicio).
   ============================================================ */

/* ---------- colores y letras (los mismos del inicio) ---------- */
html {
  --ia-bg: #ffffff;
  --ia-bg2: #f5f5f7;
  --ia-card: #ffffff;
  --ia-tile: #f5f5f7;
  --ia-tile-h: #ebebef;
  --ia-ink: #1d1d1f;
  --ia-muted: #6e6e73;
  --ia-faint: #86868b;
  --ia-hair: rgba(0, 0, 0, .08);
  --ia-line: rgba(0, 0, 0, .12);
  --ia-fill: rgba(0, 0, 0, .05);
  --ia-fill2: rgba(0, 0, 0, .08);
  --ia-accent: #0071e3;
  --ia-accent-h: #0077ed;
  --ia-link: #0066cc;
  --ia-green: #1d8a3b;
  --ia-orange: #b64400;
  --ia-red: #d70015;
  --ia-nav: rgba(255, 255, 255, .8);
  --ia-seg-on: #ffffff;
  --ia-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --ia-shadow-h: 0 2px 4px rgba(0, 0, 0, .04), 0 14px 34px rgba(0, 0, 0, .09);
  --ib-page: #f5f5f7;   /* fondo de la lista (tarjetas blancas encima, como las rentas del inicio) */
  --ia-f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, sans-serif;
  --ia-fd: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, sans-serif;
}
html[data-theme="dark"] {
  --ia-bg: #000000;
  --ia-bg2: #101011;
  --ia-card: #1c1c1e;
  --ia-tile: #1c1c1e;
  --ia-tile-h: #252527;
  --ia-ink: #f5f5f7;
  --ia-muted: #a1a1a6;
  --ia-faint: #8e8e93;
  --ia-hair: rgba(255, 255, 255, .1);
  --ia-line: rgba(255, 255, 255, .16);
  --ia-fill: rgba(255, 255, 255, .08);
  --ia-fill2: rgba(255, 255, 255, .12);
  --ia-accent: #0a84ff;
  --ia-accent-h: #409cff;
  --ia-link: #2997ff;
  --ia-green: #30d158;
  --ia-orange: #ff9f0a;
  --ia-red: #ff453a;
  --ia-nav: rgba(22, 22, 23, .8);
  --ia-seg-on: #636366;
  --ia-shadow: none;
  --ia-shadow-h: none;
  --ib-page: #000000;
  color-scheme: dark;
}

/* ---------- pagina ---------- */
html:root body {
  background: var(--ia-bg) !important;
  color: var(--ia-ink) !important;
  font-family: var(--ia-f) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html:root body:has(> .blog-hero) {
  background: var(--ib-page) !important;
}

/* ============================================================
   LISTA (/blog)
   ============================================================ */

/* barra de arriba: siempre vidrio claro (u oscuro), como la del inicio al bajar */
html:root body header#navHeader.nav-header,
html:root body header#navHeader.nav-header.scrolled {
  background: var(--ia-nav) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid var(--ia-hair) !important;
  box-shadow: none !important;
}
html:root body header#navHeader .logo {
  font-family: var(--ia-fd) !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
  color: var(--ia-ink) !important;
}
html:root body header#navHeader .logo span {
  color: inherit !important;
  font-weight: 400 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html:root[data-theme="dark"] body header#navHeader .logo img {
  filter: brightness(1.9) saturate(.85) !important;
}
html:root body header#navHeader .nav-links > a {
  font-family: var(--ia-f) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: -.005em !important;
  color: var(--ia-ink) !important;
  opacity: .8;
  background: transparent !important;
  box-shadow: none !important;
  transition: opacity .2s ease !important;
}
html:root body header#navHeader .nav-links > a:hover {
  opacity: 1;
  background: transparent !important;
  color: var(--ia-ink) !important;
}
/* "Blog" = pagina actual (ya venia en negrita en linea) */
html:root body header#navHeader .nav-links > a[href="/blog"] {
  font-weight: 600 !important;
  opacity: 1;
}

/* encabezado: titulo grande y apretado sobre gris Apple (antes bloque verde) */
html:root body .blog-hero {
  background: transparent !important;
  color: var(--ia-ink) !important;
  padding: 156px 24px 4px !important;
  text-align: center !important;
}
html:root body .blog-hero h1 {
  font-family: var(--ia-fd) !important;
  font-size: 56px !important;
  font-weight: 700 !important;
  line-height: 1.07 !important;
  letter-spacing: -.03em !important;
  color: var(--ia-ink) !important;
  -webkit-text-fill-color: var(--ia-ink) !important;
  background: none !important;
  text-shadow: none !important;
  max-width: 900px;
  margin: 0 auto !important;
}
html:root body .blog-hero p {
  font-family: var(--ia-f) !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: -.005em !important;
  color: var(--ia-muted) !important;
  opacity: 1 !important;
  max-width: 640px !important;
  margin: 14px auto 0 !important;
}

/* mismo ancho que la cuadricula para que "Back to Home" quede alineado */
html:root body > .container {
  max-width: 1248px !important;
  padding: 0 24px !important;
}
html:root body .blog-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 40px 0 0 !important;
  color: var(--ia-link) !important;
  font-family: var(--ia-f) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: -.01em !important;
  text-decoration: none !important;
}
html:root body .blog-back:hover {
  text-decoration: underline !important;
}

/* cuadricula */
html:root body .blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 24px !important;
  padding: 20px 0 104px !important;
  max-width: none !important;
}

/* tarjeta: la misma familia que las del inicio */
html:root body .blog-grid .blog-card {
  background: var(--ia-card) !important;
  border: 1px solid var(--ia-hair) !important;
  border-radius: 20px !important;
  box-shadow: var(--ia-shadow) !important;
  overflow: hidden !important;
  color: var(--ia-ink) !important;
  font-family: var(--ia-f) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
html:root body .blog-grid .blog-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--ia-shadow-h) !important;
}
html:root[data-theme="dark"] body .blog-grid .blog-card:hover {
  border-color: rgba(255, 255, 255, .18) !important;
}
html:root body .blog-grid .blog-card:focus-visible {
  outline: 2px solid var(--ia-accent) !important;
  outline-offset: 3px !important;
}
/* las ilustraciones son 2:1: se ven completas, sin recorte */
html:root body .blog-grid .blog-card-img {
  height: auto !important;
  aspect-ratio: 2 / 1;
  background: var(--ia-tile) !important;
}
html:root body .blog-grid .blog-card-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html:root body .blog-grid .blog-card-body {
  padding: 20px 22px 22px !important;
}
/* categoria: discreta, gris, sin color */
html:root body .blog-grid .blog-card-cat {
  font-family: var(--ia-f) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--ia-muted) !important;
  margin: 0 0 8px !important;
}
html:root body .blog-grid .blog-card-body h3 {
  font-family: var(--ia-f) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.012em !important;
  color: var(--ia-ink) !important;
  -webkit-text-fill-color: var(--ia-ink) !important;
  margin: 0 0 8px !important;
}
html:root body .blog-grid .blog-card-body p {
  font-family: var(--ia-f) !important;
  font-size: 15px !important;
  line-height: 1.47 !important;
  letter-spacing: -.005em !important;
  color: var(--ia-muted) !important;
  margin: 0 0 16px !important;
}
html:root body .blog-grid .blog-card-meta {
  font-family: var(--ia-f) !important;
  font-size: 13px !important;
  color: var(--ia-faint) !important;
}

/* ============================================================
   ARTICULO (/blog/<slug>)
   ============================================================ */

/* barra de arriba: vidrio fino pegado arriba */
html:root body > header:not(#navHeader) {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: var(--ia-nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ia-hair);
  box-shadow: none;
}
html:root body > header:not(#navHeader) > .container {
  max-width: 1028px;
  height: 52px;
  padding: 0 24px;
  gap: 16px;
}
html:root body > header:not(#navHeader) .logo {
  font-family: var(--ia-fd);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ia-ink);
  white-space: nowrap;
}
html:root body > header:not(#navHeader) .back-link {
  gap: 5px;
  font-family: var(--ia-f);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--ia-muted);
  white-space: nowrap;
}
html:root body > header:not(#navHeader) .back-link:hover {
  color: var(--ia-ink);
}
html:root body > header:not(#navHeader) .back-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
html:root body > header:not(#navHeader) .header-controls {
  gap: 14px;
}
/* EN / ES: control segmentado */
html:root body > header:not(#navHeader) .lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 980px;
  background: var(--ia-fill);
}
html:root body > header:not(#navHeader) .lang-btn {
  height: 26px;
  min-width: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--ia-muted);
  font-family: var(--ia-f);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .2s ease, color .2s ease;
}
html:root body > header:not(#navHeader) .lang-btn:hover {
  color: var(--ia-ink);
}
html:root body > header:not(#navHeader) .lang-btn.active {
  background: var(--ia-seg-on);
  color: var(--ia-ink);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04);
}

/* portada del articulo: estilo Newsroom (antes bloque de color) */
html:root body .article-hero {
  background: none !important;
  color: var(--ia-ink);
  padding: 64px 0 0;
  margin: 0 0 44px;
}
html:root body .article-hero > .container {
  max-width: 740px;
  padding: 0 24px;
}
html:root body .article-hero > .container::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 36px;
  background: var(--ia-hair);
}
html:root body .article-hero .article-tag {
  display: block;
  width: fit-content;
  padding: 0;
  margin: 0 0 14px;
  border-radius: 0;
  background: none !important;
  color: var(--ia-muted);
  font-family: var(--ia-f);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html:root body .article-hero h1 {
  font-family: var(--ia-fd);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.028em;
  color: var(--ia-ink);
  margin: 0 0 16px;
}
html:root body .article-hero .article-meta {
  gap: 18px;
  color: var(--ia-muted);
  font-family: var(--ia-f);
  font-size: 15px;
  letter-spacing: -.005em;
}
html:root body .article-hero .article-meta span {
  gap: 6px;
}
html:root body .article-hero .article-meta svg {
  width: 15px;
  height: 15px;
  stroke: var(--ia-faint);
}

/* columna de lectura */
html:root body > main > .container {
  max-width: 1028px;
  padding: 0 24px;
}
html:root body .article-content {
  max-width: 692px;
  margin: 0 auto 72px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ia-ink);
  font-family: var(--ia-f);
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -.008em;
}
html:root body .article-content p {
  margin: 0 0 22px;
  color: inherit;
}
html:root body .article-content h2 {
  font-family: var(--ia-fd);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--ia-ink);
  margin: 56px 0 16px;
}
html:root body .article-content h2:first-child {
  margin-top: 0;
}
html:root body .article-content h3 {
  font-family: var(--ia-f);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.016em;
  color: var(--ia-ink);
  margin: 36px 0 10px;
}
html:root body .article-content h2 + h3 {
  margin-top: 20px;
}
html:root body .article-content h4 {
  font-family: var(--ia-f);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ia-ink);
}
html:root body .article-content ul,
html:root body .article-content ol {
  margin: 0 0 26px;
  padding-left: 1.3em;
}
html:root body .article-content li {
  margin: 0 0 10px;
  padding-left: .25em;
}
html:root body .article-content li::marker {
  color: var(--ia-faint);
}
html:root body .article-content ol > li::marker {
  color: var(--ia-muted);
  font-weight: 600;
}
html:root body .article-content strong,
html:root body .article-content b {
  font-weight: 600;
  color: var(--ia-ink);
}
html:root body .article-content a {
  color: var(--ia-link);
  text-decoration: none;
}
html:root body .article-content a:hover {
  text-decoration: underline;
}
html:root body .article-content blockquote {
  margin: 36px 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--ia-line);
  font-family: var(--ia-fd);
  font-size: 23px;
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--ia-ink);
}
html:root body .article-content blockquote p:last-child {
  margin-bottom: 0;
}
html:root body .article-content hr {
  height: 1px;
  border: 0;
  margin: 48px 0;
  background: var(--ia-hair);
}
html:root body .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

/* cajas (consejo, aviso, info, error, pasos...): mosaico gris Apple, sin raya de color;
   el color queda solo en el titulito para saber que tipo es */
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) {
  background: var(--ia-tile);
  border: 0;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 1.55;
  box-shadow: none;
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) p {
  font-size: inherit;
  margin: 0 0 12px;
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) > :last-child {
  margin-bottom: 0;
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip) :is(ul, ol) {
  margin: 10px 0 0;
  padding-left: 1.2em;
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip) li {
  margin-bottom: 6px;
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) > :is(h3, h4) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--ia-f);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ia-ink);
}
html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) > :is(h3, h4) svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
html:root body .article-content .tip-box > :is(h3, h4) { color: var(--ia-green); }
html:root body .article-content :is(.warning-box, .pro-tip) > :is(h3, h4) { color: var(--ia-orange); }
html:root body .article-content .mistake-box > :is(h3, h4) { color: var(--ia-red); }
/* "Error #n" + "La solucion" justo debajo: una sola tarjeta partida por una linea fina */
html:root body .article-content .mistake-box:has(+ .tip-box) {
  margin-bottom: 0;
  border-radius: 18px 18px 0 0;
}
html:root body .article-content .mistake-box + .tip-box {
  margin-top: 0;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid var(--ia-hair);
}
/* pasos numerados: circulo negro (blanco en oscuro), como los pasos del inicio */
html:root body .article-content .step-box h3 {
  gap: 10px;
}
html:root body .article-content .step-number {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ia-ink);
  color: var(--ia-bg);
  font-family: var(--ia-fd);
  font-size: 14px;
  font-weight: 600;
}
/* lista de chequeo */
html:root body .article-content .checklist > h3 {
  margin-bottom: 6px;
}
html:root body .article-content .checklist > h3 svg,
html:root body .article-content .checklist-item svg {
  stroke: var(--ia-green);
}
html:root body .article-content .checklist-item {
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ia-hair);
}
html:root body .article-content .checklist-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* comparacion de precios: tres mosaicos */
html:root body .article-content .price-comparison {
  gap: 12px;
  margin: 32px 0;
}
html:root body .article-content .price-card,
html:root body .article-content .price-card.bad,
html:root body .article-content .price-card.good,
html:root body .article-content .price-card.neutral {
  background: var(--ia-tile);
  border: 0;
  border-radius: 18px;
  padding: 22px 16px 20px;
}
html:root body .article-content .price-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ia-muted);
}
html:root body .article-content .price-card .price {
  font-family: var(--ia-fd);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--ia-ink);
}
html:root body .article-content .price-card.bad .price { color: var(--ia-red); }
html:root body .article-content .price-card.good .price { color: var(--ia-green); }
html:root body .article-content .price-card .price-unit {
  margin-left: 2px;
  font-family: var(--ia-f);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ia-muted);
}
html:root body .article-content .price-card .result {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ia-muted);
}

/* formula */
html:root body .article-content .formula-box {
  background: var(--ia-tile);
  color: var(--ia-ink);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 32px 0;
}
html:root body .article-content .formula-box h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ia-muted);
  opacity: 1;
}
html:root body .article-content .formula-box .formula {
  font-family: var(--ia-fd);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ia-ink);
}

/* tablas: lineas finas, encabezado gris chico */
html:root body .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 32px;
  font-size: 17px;
  line-height: 1.4;
}
html:root body .article-content th,
html:root body .article-content td {
  padding: 12px 16px 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--ia-hair);
  background: none;
  color: var(--ia-ink);
}
html:root body .article-content th {
  padding-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ia-muted);
  border-bottom-color: var(--ia-line);
}
html:root body .article-content th:last-child,
html:root body .article-content td:last-child {
  padding-right: 0;
}
html:root body .article-content tr:hover {
  background: none;
}
html:root body .article-content tbody tr:last-child td {
  border-bottom: 0;
}
html:root body .article-content .data-box table {
  margin: 8px 0 0;
  font-size: 16px;
}
html:root body .article-content .data-box :is(th, td) {
  border-bottom-color: var(--ia-hair);
}

/* "You May Also Like": mosaicos mas anchos que el texto (como "More from Newsroom") */
html:root body > main > .container > div[style*="margin-bottom"] {
  margin: 0 0 56px !important;
  padding-top: 48px;
  border-top: 1px solid var(--ia-hair);
}
html:root body > main > .container > div[style*="margin-bottom"] > h2 {
  font-family: var(--ia-fd) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  text-align: left !important;
  color: var(--ia-ink) !important;
  margin: 0 0 20px !important;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 20px !important;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a {
  background: var(--ia-tile) !important;
  border: 0 !important;
  border-radius: 20px !important;
  padding: 26px 24px 28px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .2s ease !important;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a:hover {
  background: var(--ia-tile-h) !important;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a:focus-visible {
  outline: 2px solid var(--ia-accent);
  outline-offset: 3px;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a h3 {
  font-family: var(--ia-f) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.012em !important;
  color: var(--ia-ink) !important;
  margin: 0 0 8px !important;
}
html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a p {
  font-family: var(--ia-f) !important;
  font-size: 15px !important;
  line-height: 1.47 !important;
  color: var(--ia-muted) !important;
}

/* llamada a la accion: mosaico gris (antes bloque de color) con boton pildora */
html:root body .article-cta {
  background: var(--ia-tile) !important;
  color: var(--ia-ink);
  border: 0;
  border-radius: 28px;
  padding: 64px 48px;
  margin: 0 0 88px;
  text-align: center;
  box-shadow: none;
}
html:root body .article-cta h2 {
  font-family: var(--ia-fd);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ia-ink);
  margin: 0 0 12px;
}
html:root body .article-cta p {
  font-family: var(--ia-f);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.008em;
  color: var(--ia-muted);
  opacity: 1;
  max-width: 560px;
  margin: 0 auto 28px;
}
html:root body .article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--ia-accent) !important;
  color: #fff !important;
  box-shadow: none;
  transform: none;
  font-family: var(--ia-f);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .2s ease;
}
html:root body .article-cta .cta-btn:hover {
  background: var(--ia-accent-h) !important;
  transform: none;
  box-shadow: none;
}
html:root body .article-cta .cta-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* pie: gris neutro con linea fina, como el del inicio */
html:root body > footer {
  background: var(--ia-bg2);
  border-top: 1px solid var(--ia-hair);
  color: var(--ia-muted);
  padding: 28px 0 36px;
  text-align: center;
}
html:root body > footer > .container {
  max-width: 1028px;
  padding: 0 24px;
}
html:root body > footer p {
  font-family: var(--ia-f);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ia-muted);
  opacity: 1;
}
html:root body > footer a {
  color: var(--ia-muted);
  text-decoration: none;
}
html:root body > footer a:hover {
  color: var(--ia-ink);
  text-decoration: none;
}

/* ============================================================
   TABLETA
   ============================================================ */
@media (max-width: 1024px) {
  html:root body .blog-hero h1 {
    font-size: 48px !important;
  }
}

/* ============================================================
   CELULAR
   ============================================================ */
@media (max-width: 900px) {
  /* lista: styles.css esconde los enlaces y la pagina no trae menu: se muestran pequenos */
  html:root body header#navHeader .nav-links {
    display: flex !important;
    gap: 0 !important;
  }
  html:root body header#navHeader .nav-links > a {
    padding: 8px 9px !important;
  }
  html:root body .blog-hero {
    padding-top: 124px !important;
  }
}
@media (max-width: 734px) {
  /* ---- lista ---- */
  html:root body .blog-hero {
    padding: 112px 20px 0 !important;
  }
  html:root body .blog-hero h1 {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }
  html:root body .blog-hero p {
    font-size: 17px !important;
    margin-top: 10px !important;
  }
  html:root body > .container {
    padding: 0 20px !important;
  }
  html:root body .blog-back {
    padding-top: 28px !important;
    font-size: 16px !important;
  }
  html:root body .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px 0 64px !important;
  }
  html:root body .blog-grid .blog-card {
    border-radius: 18px !important;
  }
  html:root body .blog-grid .blog-card-body {
    padding: 18px 18px 20px !important;
  }
  html:root body .blog-grid .blog-card-body h3 {
    font-size: 18px !important;
  }

  /* ---- articulo ---- */
  html:root body > header:not(#navHeader) > .container {
    height: 48px;
    padding: 0 16px;
    gap: 10px;
  }
  html:root body > header:not(#navHeader) .logo {
    font-size: 16px;
  }
  html:root body > header:not(#navHeader) .header-controls {
    gap: 10px;
  }
  html:root body .article-hero {
    padding-top: 40px;
    margin-bottom: 32px;
  }
  html:root body .article-hero > .container,
  html:root body > main > .container {
    padding: 0 20px;
  }
  html:root body .article-hero > .container::after {
    margin-top: 28px;
  }
  html:root body .article-hero h1 {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 12px;
  }
  html:root body .article-hero .article-meta {
    font-size: 14px;
    gap: 14px;
  }
  html:root body .article-content {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 56px;
  }
  html:root body .article-content p {
    margin-bottom: 20px;
  }
  html:root body .article-content h2 {
    font-size: 25px;
    margin: 44px 0 12px;
  }
  html:root body .article-content h3 {
    font-size: 20px;
    margin: 30px 0 8px;
  }
  html:root body .article-content :is(.tip-box, .warning-box, .info-box, .mistake-box, .strategy-box, .data-box, .step-box, .pro-tip, .checklist) {
    padding: 20px;
    border-radius: 16px;
    font-size: 16px;
    margin: 26px 0;
  }
  html:root body .article-content :is(.formula-box, .price-card) {
    border-radius: 16px;
  }
  html:root body .article-content .mistake-box:has(+ .tip-box) {
    border-radius: 16px 16px 0 0;
  }
  html:root body .article-content .mistake-box + .tip-box {
    border-radius: 0 0 16px 16px;
  }
  html:root body .article-content .formula-box .formula {
    font-size: 19px;
  }
  html:root body .article-content table {
    font-size: 15px;
  }
  html:root body .article-content .data-box table {
    font-size: 14px;
  }
  html:root body .article-content th,
  html:root body .article-content td {
    padding-right: 10px;
  }
  html:root body > main > .container > div[style*="margin-bottom"] {
    padding-top: 40px;
    margin-bottom: 40px !important;
  }
  html:root body > main > .container > div[style*="margin-bottom"] > h2 {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }
  html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] {
    gap: 12px !important;
  }
  html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a {
    padding: 20px 20px 22px !important;
    border-radius: 18px !important;
  }
  html:root body > main > .container > div[style*="margin-bottom"] > div[style*="grid"] > a h3 {
    font-size: 17px !important;
  }
  html:root body .article-cta {
    padding: 44px 22px;
    border-radius: 22px;
    margin-bottom: 56px;
  }
  html:root body .article-cta h2 {
    font-size: 28px;
  }
  html:root body .article-cta p {
    font-size: 17px;
    margin-bottom: 24px;
  }
}
@media (max-width: 480px) {
  /* lista: en la barra cabe el logo + "D&Y" + los 3 enlaces */
  html:root body header#navHeader .logo span {
    display: none !important;
  }
  html:root body header#navHeader .nav-links > a {
    font-size: 14px !important;
    padding: 8px 7px !important;
  }
}
@media (max-width: 360px) {
  html:root body > header:not(#navHeader) .logo {
    font-size: 15px;
  }
  html:root body .article-hero h1 {
    font-size: 29px;
  }
}
