/* ─── GUÍAS GOFARMER — tema claro estilo blog ───
   Comparte la esencia de la marca (styles.css de la landing): misma tipografía,
   verde de remate, lavanda estructural, navbar oscura idéntica a la landing.
   El fondo es claro (papel con tinte morado) porque son entradas de lectura larga. */

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

:root {
  /* tokens oscuros de la marca (navbar y banda CTA) */
  --bg:           #0D0A16;
  --bg-card:      #171226;
  --text:         #F1EEF7;
  --text-2:       #9A93AB;
  --border:       #201A33;
  --accent:       #A8CE63;
  --accent-hover: #B9DA7C;
  --lavender:     #A78BFA;

  /* tokens claros del papel */
  --paper:        #FDFCFE;
  --paper-2:      #F6F4FA;
  --ink:          #1C1528;
  --ink-2:        #554E68;
  --ink-3:        #8B849C;
  --leaf-ink:     #5F8A1E;  /* verde hoja oscurecido: legible como texto sobre papel */
  --lav-ink:      #6D4FD1;  /* lavanda oscurecida: eyebrows/estructura sobre papel */
  --line:         #E9E5F2;
  --tint-leaf:    rgba(168, 206, 99, 0.10);
  --tint-lav:     rgba(167, 139, 250, 0.09);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Avenir Next', 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVBAR (idéntica a la landing) ─── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 60px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 10, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(13, 10, 22, 0.96); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 38px; width: 38px; object-fit: contain; }
.logo-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.navbar-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--text); }

.btn-cta {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-cta-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; }

/* ─── LAYOUT DE ARTÍCULO ─── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 0;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lav-ink);
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}

.article-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.article-title em, .hub-title em { font-style: normal; color: var(--leaf-ink); }

.article-meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.article-meta .sep { margin: 0 8px; }

.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 26px 0 10px;
  text-wrap: pretty;
}

.article-body { padding-bottom: 32px; }

.article-body h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 52px 0 16px;
  text-wrap: balance;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--lav-ink); text-decoration-color: rgba(109, 79, 209, 0.35); }
.article-body a:hover { text-decoration-color: var(--lav-ink); }

.article-body ul, .article-body ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--leaf-ink); font-weight: 700; }

/* separador de sección, sobrio */
.article-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* ─── COMPONENTES ─── */

/* Callout verde: el dato que importa */
.callout {
  background: var(--tint-leaf);
  border: 1px solid rgba(168, 206, 99, 0.45);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
}
.callout-lav {
  background: var(--tint-lav);
  border-color: rgba(167, 139, 250, 0.4);
}
.callout strong { font-weight: 700; }

/* Lista de checks (✓ verdes, como la landing) */
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li {
  padding-left: 30px;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--leaf-ink);
  font-weight: 700;
}

/* Tabla comparativa */
.table-scroll { overflow-x: auto; margin: 26px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
  min-width: 520px;
}
.compare-table th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lav-ink);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.compare-table td:first-child { color: var(--ink); font-weight: 600; }

/* Pasos numerados (numeración lavanda, como el deck) */
.steps { list-style: none; padding-left: 0 !important; counter-reset: paso; margin: 26px 0; }
.steps li {
  counter-increment: paso;
  position: relative;
  padding: 4px 0 4px 58px;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--lav-ink);
  opacity: 0.55;
  letter-spacing: -0.02em;
}
.steps li strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* FAQ */
.faq { margin: 26px 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--leaf-ink);
  font-weight: 600;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.7; }

/* ─── BANDA CTA OSCURA (un pedacito de la landing dentro del blog) ─── */
.cta-band {
  background: var(--bg);
  border-radius: 18px;
  padding: 44px 40px;
  margin: 56px auto;
  max-width: 720px;
  text-align: center;
}
.cta-band .eyebrow { color: var(--lavender); margin-bottom: 12px; }
.cta-band-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
  text-wrap: balance;
}
.cta-band-title em { font-style: normal; color: var(--accent); }
.cta-band-body {
  font-size: 16px;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 26px;
  line-height: 1.65;
}
.cta-band-wrap { padding: 0 24px; }

/* ─── NAVEGACIÓN ENTRE GUÍAS ─── */
.more-guides {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.more-guides-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lav-ink);
  font-weight: 600;
  margin-bottom: 16px;
}
.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, transform 0.15s;
}
.guide-card:hover { border-color: var(--lav-ink); transform: translateY(-1px); }
.guide-card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.guide-card-desc { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.guide-card-arrow { color: var(--leaf-ink); font-weight: 700; }

/* ─── HUB /guias/ ─── */
.hub-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 150px 24px 40px;
}
.hub-title {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.hub-lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 48px;
  text-wrap: pretty;
}
.hub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.hub-card:hover { border-color: var(--lav-ink); transform: translateY(-2px); }

.hub-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.hub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-card-img .hub-img-top { object-position: top; }

.hub-card-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hub-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lav-ink);
  background: var(--tint-lav);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.hub-tag-leaf {
  color: var(--leaf-ink);
  background: var(--tint-leaf);
  border-color: rgba(168, 206, 99, 0.45);
}

.hub-card-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}
.hub-card-desc {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.hub-card-meta {
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-3);
}
.hub-card-meta .sep { margin: 0 6px; }

/* destacada: ancho completo, foto a la izquierda */
.hub-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 11fr 9fr; }
.hub-card-featured .hub-card-img { aspect-ratio: auto; min-height: 300px; }
.hub-card-featured .hub-card-body { padding: 34px 38px; justify-content: center; }
.hub-card-featured .hub-card-title { font-size: clamp(24px, 2.6vw, 30px); }
.hub-card-featured .hub-card-desc { font-size: 16.5px; }

/* ─── FOOTER SIMPLE ─── */
.guias-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 44px;
  text-align: center;
}
.guias-footer .logo { justify-content: center; margin-bottom: 8px; }
.guias-footer .logo-name { color: var(--ink); font-size: 18px; }
.guias-footer .logo-mark { height: 28px; width: 28px; }
.guias-footer-copy { font-size: 13px; color: var(--ink-3); }
.guias-footer-links { margin-bottom: 10px; font-size: 14px; }
.guias-footer-links a { color: var(--ink-2); text-decoration: none; }
.guias-footer-links a:hover { color: var(--ink); }
.guias-footer-links .sep { margin: 0 10px; color: var(--ink-3); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; height: 52px; }
  .navbar-links { display: none; }
  .article-wrap { padding-top: 104px; }
  .hub-wrap { padding-top: 112px; }
  .hub-list { grid-template-columns: 1fr; gap: 20px; }
  .hub-card-featured { grid-template-columns: 1fr; }
  .hub-card-featured .hub-card-img { aspect-ratio: 16 / 9; min-height: 0; }
  .hub-card-featured .hub-card-body { padding: 22px 26px 24px; }
  .article-body h2 { font-size: 24px; }
  .cta-band { padding: 36px 24px; }
  .steps li { padding-left: 48px; }
  .steps li::before { font-size: 24px; }
}
