/* ===== Tiska · Blog =====
   Un solo CSS para el índice y todos los artículos.
   Tokens idénticos a las landings (tiska-landing.html y las 12 SEO). */

:root {
  --primary: #2A3D2F; --primary-dark: #1E2E22; --primary-deep: #15271A; --primary-light: #3A5040;
  --green-glow: #4D7055; --sage: #7E9472; --moss: #606C38;
  --accent: #F2EBD9; --cream-dark: #E8DFC9; --sand: #DDD2B5; --oat: #EFE7D4;
  --clay: #B08B6E; --terracotta: #BE6B41;
  --bg: #FBFBF6; --surface: #FFFFFF; --surface-soft: #F8F6F0; --highlight: #EEF4EF;
  --text: #1B2620; --text-muted: #5B6A60; --text-faint: #8C9990;
  --border: #E7E2D5; --border-strong: #CDC6B2;

  --font-display: 'Playfair Display', 'Noto Serif', Georgia, serif;
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(27,38,32,.05), 0 2px 8px rgba(27,38,32,.04);
  --shadow-md: 0 4px 14px rgba(27,38,32,.07), 0 12px 34px rgba(27,38,32,.06);
  --ease: cubic-bezier(.22,1,.36,1);

  --measure: 68ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav (mismo patrón que las landings) ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,246,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.nav .logo {
  font-family: var(--font-display); font-size: 25px; font-weight: 600;
  color: var(--primary); text-decoration: none; letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff !important;
  padding: 10px 17px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== Botones ===== */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); background: var(--surface-soft); }

/* ===== Cabecera del blog / índice ===== */
.blog-head { padding: 68px 0 40px; border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 16px;
}
.blog-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 16px; max-width: 20ch;
}
.blog-head p { font-size: 18.5px; color: var(--text-muted); max-width: 62ch; margin: 0; }

/* Índice de temas */
.topics { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 0; }
.topics a {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px; text-decoration: none;
  transition: all .18s var(--ease);
}
.topics a:hover { border-color: var(--primary); color: var(--primary); background: var(--highlight); }

/* ===== Grilla de artículos ===== */
.posts { padding: 52px 0 20px; }
.posts h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 27px;
  letter-spacing: -.01em; margin: 0 0 6px; scroll-margin-top: 90px;
}
.posts h2 + p { color: var(--text-muted); margin: 0 0 30px; font-size: 15.5px; }
.posts + .posts { padding-top: 8px; }

/* min() evita que la grilla desborde en pantallas de 320px, donde quedan
   ~284px utiles contra un minimo de 310px. */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 22px; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  color: inherit; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-soft); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-topic {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 20.5px;
  line-height: 1.28; letter-spacing: -.01em; margin: 0 0 9px;
}
.card p { font-size: 14.8px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.6; }
.card span.more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary); }

.card--wide { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .card--wide { flex-direction: row; align-items: stretch; }
  .card--wide img { width: 46%; aspect-ratio: auto; }
  .card--wide .card-body { padding: 34px 38px; justify-content: center; }
  .card--wide h3 { font-size: 27px; }
  .card--wide p { font-size: 16px; }
}

/* ===== Artículo ===== */
.crumbs {
  padding: 22px 0 0; font-size: 13.5px; color: var(--text-faint);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--border-strong); }

.article-head { padding: 26px 0 34px; }
.article-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(31px, 4.6vw, 47px); line-height: 1.13; letter-spacing: -.022em;
  margin: 12px 0 18px; max-width: 22ch;
}
.article-head .lede {
  font-size: 19.5px; line-height: 1.62; color: var(--text-muted);
  max-width: var(--measure); margin: 0;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 22px; font-size: 13.5px; color: var(--text-faint);
}
.meta .dot { color: var(--border-strong); }

.hero-img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface-soft); margin-bottom: 44px;
}

/* Cuerpo del artículo */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose > * { margin-left: auto; margin-right: auto; }

.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 31px); line-height: 1.24; letter-spacing: -.015em;
  margin: 54px 0 16px; scroll-margin-top: 90px;
}
.prose h3 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 18.5px; line-height: 1.4; letter-spacing: -.005em;
  margin: 34px 0 10px;
}
.prose p { margin: 0 0 20px; }
.prose strong { font-weight: 650; color: var(--text); }

.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--sage); }

.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--sand);
  font-family: var(--font-serif); font-size: 18.5px; font-style: italic;
  color: var(--text-muted);
}

.prose figure { margin: 36px 0; }
.prose figure img {
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-soft);
}
.prose figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--text-faint); text-align: center;
}

/* Recuadro de nota / dato */
.note {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px 24px; margin: 30px 0;
  font-size: 15.5px; line-height: 1.62;
}
.note strong:first-child { display: block; margin-bottom: 6px; color: var(--primary); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note--warm { background: #FCF6E9; border-color: var(--cream-dark); }

/* Tabla comparativa */
.table-wrap {
  margin: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 560px; }
.prose thead th {
  text-align: left; font-weight: 650; font-size: 13px;
  letter-spacing: .02em; color: var(--primary);
  background: var(--surface-soft); padding: 14px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.prose tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody th {
  text-align: left; font-weight: 600; padding: 13px 16px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.yes { color: var(--moss); font-weight: 650; }
.no { color: var(--text-faint); }

/* CTA de cierre */
.cta-box {
  margin: 52px auto 0; max-width: var(--measure);
  background: var(--primary); color: var(--accent);
  border-radius: var(--r-xl); padding: 40px 40px 42px; text-align: center;
}
.cta-box h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 28px;
  line-height: 1.24; margin: 0 0 12px; color: #fff;
}
.cta-box p { margin: 0 auto 24px; max-width: 46ch; font-size: 16px; color: rgba(242,235,217,.82); }
.cta-box .btn-primary { background: var(--accent); color: var(--primary-deep); }
.cta-box .btn-primary:hover { background: #fff; }
.cta-box small { display: block; margin-top: 16px; font-size: 13px; color: rgba(242,235,217,.6); }

/* FAQ */
.faq { max-width: var(--measure); margin: 56px auto 0; }
.faq h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 28px;
  letter-spacing: -.015em; margin: 0 0 20px;
}
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0;
  font-weight: 600; font-size: 16.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 21px; font-weight: 400; color: var(--sage); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { margin: 0 0 18px; color: var(--text-muted); font-size: 15.8px; }

/* Seguí explorando */
.related-wrap { margin-top: 68px; padding: 46px 0 8px; border-top: 1px solid var(--border); }
.related-wrap h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 25px;
  letter-spacing: -.01em; margin: 0 0 22px;
}
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  font-size: 14.2px; font-weight: 500; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 17px; border-radius: 999px; text-decoration: none;
  transition: all .18s var(--ease);
}
.related a:hover { border-color: var(--primary); color: var(--primary); background: var(--highlight); }

/* ===== Footer (mismo que las landings) ===== */
footer { margin-top: 76px; background: var(--primary-deep); color: rgba(242,235,217,.72); padding: 58px 0 30px; }
footer .logo { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--accent); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; padding-bottom: 38px;
}
.footer-tagline { font-size: 14.5px; margin: 12px 0 0; max-width: 30ch; line-height: 1.62; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--sage);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 14px; color: rgba(242,235,217,.72); text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px; border-top: 1px solid rgba(242,235,217,.13);
  font-size: 13px; color: rgba(242,235,217,.5);
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .container { padding: 0 18px; }
  .nav-links { gap: 14px; }
  /* Igual que las landings: en mobile solo quedan las acciones de cuenta. */
  .nav-links a:not(.nav-mobile-keep) { display: none; }
  .blog-head { padding: 44px 0 30px; }
  .hero-img { aspect-ratio: 16 / 10; margin-bottom: 32px; }
  .prose h2 { margin-top: 42px; }
  .cta-box { padding: 32px 24px 34px; border-radius: var(--r-lg); }
  .cta-box h2 { font-size: 24px; }
  .related-wrap { margin-top: 50px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .nav, .cta-box, .related-wrap, footer, .hero-img { display: none; }
  body { background: #fff; font-size: 12pt; }
}
