/* ═══════════════════════════════════════════════════════════
   MS IMPULSO — ESTILOS DEL BLOG
   Un solo archivo para todo el blog. Si cambiás algo acá,
   cambia en todos los artículos a la vez.
   ═══════════════════════════════════════════════════════════ */

:root {
  --night:  #04080f;
  --navy:   #080f1e;
  --blue:   #0a1628;
  --mid:    #0f2040;
  --cyan:   #22d3ee;
  --cyan2:  #7dd3fc;
  --ice:    #e0f2fe;
  --white:  #f0f6ff;
  --muted:  rgba(224,242,254,0.55);
  --dim:    rgba(224,242,254,0.32);
  --border: rgba(34,211,238,0.14);
  --borderh:rgba(34,211,238,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--night);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Fondo ambiental ── */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(34,211,238,0.10), transparent 70%),
    radial-gradient(50% 40% at 90% 20%, rgba(13,32,80,0.55), transparent 70%);
}

/* ── Navegación ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,8,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 900;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.logo em { color: var(--cyan); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-pill {
  background: var(--cyan); color: var(--night) !important;
  padding: 10px 22px; border-radius: 100px;
  font-weight: 800; font-size: 13px;
  transition: box-shadow 0.3s;
}
.nav-pill:hover { box-shadow: 0 0 28px rgba(34,211,238,0.45); }

/* ── Contenedores ── */
.wrap { position: relative; z-index: 10; max-width: 1200px; margin: auto; padding: 0 40px; }
.reading { position: relative; z-index: 10; max-width: 720px; margin: auto; padding: 0 24px; }

/* ── Migas de pan ── */
.crumbs {
  font-size: 12.5px; color: var(--dim);
  padding: 26px 0 0; letter-spacing: 0.02em;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { margin: 0 7px; opacity: 0.45; }

/* ── Etiqueta de sección ── */
.lbl {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.lbl::before { content: ''; width: 20px; height: 1px; background: var(--cyan); }

/* ═══ ÍNDICE DEL BLOG ═══ */
.blog-hero { padding: 60px 0 50px; }
.blog-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 6vw, 60px); font-weight: 900;
  line-height: 1.03; letter-spacing: -1.6px; margin-bottom: 18px;
}
.blog-hero h1 em { color: var(--cyan); font-style: italic; }
.blog-hero p { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.8; }

.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px; padding-bottom: 90px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 28px;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  border-color: var(--borderh); transform: translateY(-4px);
  box-shadow: 0 18px 44px -22px rgba(0,0,0,0.9), 0 0 32px -14px rgba(34,211,238,0.35);
}
.post-card.featured { grid-column: 1 / -1; border-color: rgba(34,211,238,0.3); }
.post-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.post-card h2 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 23px; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px;
}
.post-card.featured h2 { font-size: clamp(26px, 3.4vw, 34px); }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.post-meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--dim);
}
.post-meta .arrow { margin-left: auto; color: var(--cyan); font-weight: 700; }

/* ═══ ARTÍCULO ═══ */
.article-head { padding: 34px 0 42px; }
.article-head h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 5.2vw, 46px); font-weight: 900;
  line-height: 1.08; letter-spacing: -1.2px; margin: 16px 0 20px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--dim);
}
.article-meta .author { color: var(--muted); font-weight: 500; }
.article-meta .sep { opacity: 0.4; }

/* Resumen destacado — lo primero que lee Google y la IA */
.answer-box {
  background: rgba(34,211,238,0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  padding: 24px 26px; margin-bottom: 40px;
}
.answer-box p { font-size: 16.5px; line-height: 1.75; color: var(--ice); margin: 0; }
.answer-box p + p { margin-top: 12px; }

/* Cuerpo del artículo */
.article-body { padding-bottom: 60px; }
.article-body h2 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(23px, 3.4vw, 30px); line-height: 1.2;
  letter-spacing: -0.7px; margin: 52px 0 18px;
}
.article-body h3 {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
  font-size: 18.5px; line-height: 1.35; margin: 36px 0 12px; color: var(--ice);
}
.article-body p { font-size: 16.5px; line-height: 1.85; color: rgba(224,242,254,0.82); margin-bottom: 20px; }
.article-body strong { color: var(--white); font-weight: 700; }
.article-body em { color: var(--cyan2); font-style: italic; }
.article-body a:not(.btn):not(.btn-ghost) { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(34,211,238,0.35); }
.article-body a:not(.btn):not(.btn-ghost):hover { border-bottom-color: var(--cyan); }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { font-size: 16.5px; line-height: 1.8; color: rgba(224,242,254,0.82); margin-bottom: 11px; }
.article-body li::marker { color: var(--cyan); }
.article-body blockquote {
  border-left: 3px solid var(--cyan); padding: 4px 0 4px 22px;
  margin: 28px 0; font-family: 'Fraunces', serif; font-size: 20px;
  line-height: 1.5; color: var(--ice); font-style: italic;
}
.article-body hr { border: 0; height: 1px; background: var(--border); margin: 48px 0; }

/* Tabla de precios / datos */
.tbl-scroll { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15px; }
.article-body th {
  text-align: left; padding: 14px 16px;
  background: var(--navy); color: var(--cyan);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.article-body td {
  padding: 15px 16px; border-bottom: 1px solid rgba(34,211,238,0.08);
  color: rgba(224,242,254,0.82); vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body td strong { color: var(--white); }

/* Bloque de precio destacado */
.price-block {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 28px; margin: 26px 0 28px;
}
.price-block .amount {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(26px, 4vw, 34px); line-height: 1.1;
  color: var(--cyan); white-space: nowrap;
}
.price-block .amount small {
  display: block; margin-top: 6px;
  font-family: 'Cabinet Grotesk', sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.price-block .who { flex: 1 1 260px; }
.price-block .who p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* Caja de aviso */
.note {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin: 30px 0;
}
.note p { margin: 0; font-size: 15.5px; line-height: 1.75; }
.note p + p { margin-top: 12px; }
.note-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}

/* Llamado a la acción dentro del artículo */
.cta-inline {
  background: linear-gradient(135deg, rgba(13,32,80,0.85), rgba(8,15,30,0.95));
  border: 1px solid rgba(34,211,238,0.28); border-radius: 20px;
  padding: 34px 30px; margin: 46px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-inline::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan2), var(--cyan));
}
.cta-inline h3 {
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 25px;
  line-height: 1.25; margin: 0 0 12px; color: var(--white);
}
.cta-inline p { font-size: 15px; color: var(--muted); margin: 0 auto 24px; max-width: 440px; }
.btn, .article-body .btn, a.btn {
  display: inline-block; background: var(--cyan); color: var(--night);
  padding: 15px 34px; border-radius: 100px;
  font-weight: 800; font-size: 14px; text-decoration: none;
  border: none; border-bottom: none; transition: box-shadow 0.3s;
}
.btn:hover { box-shadow: 0 0 40px rgba(34,211,238,0.5); }
.btn-ghost, .article-body .btn-ghost, a.btn-ghost {
  display: inline-block; border: 1px solid var(--border); color: var(--muted);
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Preguntas frecuentes */
.faq { margin: 46px 0 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 17px; font-weight: 800; color: var(--white); margin: 0 0 10px; }
.faq-item p { font-size: 15.5px; color: var(--muted); line-height: 1.75; margin: 0; }

/* Artículos relacionados */
.related { border-top: 1px solid var(--border); padding: 44px 0 20px; }
.related-title {
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; margin-bottom: 22px;
}
.related-list { display: grid; gap: 14px; }
.related-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; background: var(--navy);
  border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--ice);
  font-size: 15.5px; font-weight: 500; line-height: 1.45;
  transition: border-color 0.3s, transform 0.3s;
}
.related-list a:hover { border-color: var(--borderh); transform: translateX(4px); }
.related-list .arrow { margin-left: auto; color: var(--cyan); flex-shrink: 0; }

/* Firma del autor */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; margin: 40px 0 0;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), #0f2040);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 20px; color: var(--night);
}
.author-name { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; color: var(--white); }
.author-box p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── Pie de página ── */
footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  padding: 34px 40px; margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  font-size: 13px; color: var(--dim);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--cyan); }

/* ── Botón flotante de WhatsApp ── */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform 0.3s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-inner { padding: 16px 20px; gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-pill) { display: none; }
  .nav-links a.keep { display: inline-block; }
  .wrap { padding: 0 20px; }
  .reading { padding: 0 20px; }
  .blog-hero { padding: 44px 0 36px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { padding: 26px 22px; }
  .article-body p, .article-body li { font-size: 16px; }
  .cta-inline { padding: 28px 22px; }
  footer { padding: 28px 20px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .post-card:hover, .related-list a:hover, .wa:hover { transform: none; }
}
