/* TuContaWeb — Blog estilo limpio, profesional, optimizado para lectura */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --dim: #94a3b8;
  --brand: #14b8a6;
  --brand2: #0ea5e9;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}
* { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body { font-family:'Inter',system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; line-height:1.65 }
.wrap { max-width:780px; margin:0 auto; padding:0 22px }
a { color:var(--brand); text-decoration:none }
a:hover { text-decoration:underline }

/* Header */
.blog-header { background:#fff; border-bottom:1px solid var(--border); padding:14px 0; position:sticky; top:0; z-index:50; backdrop-filter:blur(8px); background:rgba(255,255,255,.92) }
.blog-header .wrap { max-width:1100px; display:flex; align-items:center; justify-content:space-between; gap:14px }
.blog-header .brand { display:flex; align-items:center; gap:10px; font-weight:800; color:var(--text) }
.blog-header .brand img { height:32px }
.blog-header nav { display:flex; gap:18px; align-items:center; flex-wrap:wrap }
.blog-header nav a { font-size:14px; color:var(--muted); font-weight:600 }
.blog-header nav a:hover { color:var(--text); text-decoration:none }
.blog-header nav a.cta { background:var(--brand); color:#fff; padding:8px 16px; border-radius:99px; font-weight:700 }
.blog-header nav a.cta:hover { filter:brightness(1.08); color:#fff }
@media(max-width:520px) { .blog-header nav a:not(.cta) { display:none } .blog-header .brand span { display:none } }

/* Hero */
.blog-main { padding:40px 0 60px; min-height:calc(100vh - 160px) }
.blog-hero { text-align:center; margin-bottom:36px }
.blog-hero h1 { font-size:clamp(28px,5vw,40px); font-weight:900; line-height:1.15; margin-bottom:10px }
.blog-hero p { font-size:16px; color:var(--muted); max-width:600px; margin:0 auto }

/* Cards en hub */
.post-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; margin-bottom:48px }
.post-card { display:block; background:#fff; border:1px solid var(--border); border-radius:14px; padding:22px 22px 18px; transition:.2s; color:var(--text) }
.post-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(20,184,166,.12); border-color:var(--brand); text-decoration:none }
.post-tag { display:inline-block; background:rgba(20,184,166,.12); color:var(--brand); font-size:11px; font-weight:800; padding:3px 10px; border-radius:99px; letter-spacing:.04em; margin-bottom:12px }
.post-card h2 { font-size:18px; font-weight:800; line-height:1.3; margin-bottom:8px }
.post-card p { font-size:14px; color:var(--muted); line-height:1.55; margin-bottom:14px }
.post-card .post-cta { color:var(--brand); font-size:13px; font-weight:700 }

/* Article body */
article.post { background:#fff; border:1px solid var(--border); border-radius:16px; padding:32px; margin-bottom:32px }
@media(max-width:600px) { article.post { padding:22px 20px; border-radius:12px } }
article.post .meta { color:var(--dim); font-size:13px; margin-bottom:8px }
article.post h1 { font-size:clamp(24px,4vw,34px); font-weight:900; line-height:1.2; margin-bottom:14px }
article.post .lead { font-size:17px; color:var(--muted); margin-bottom:24px; line-height:1.6 }
article.post h2 { font-size:22px; font-weight:800; margin:28px 0 12px; line-height:1.3 }
article.post h3 { font-size:17px; font-weight:800; margin:20px 0 8px; color:var(--text) }
article.post p { font-size:15.5px; color:var(--text); margin-bottom:14px; line-height:1.7 }
article.post strong { font-weight:700; color:var(--text) }
article.post ul, article.post ol { margin:0 0 16px 20px; color:var(--text) }
article.post li { font-size:15.5px; line-height:1.65; margin-bottom:6px }
article.post .note { background:rgba(245,158,11,.08); border-left:3px solid var(--warn); padding:14px 16px; border-radius:0 8px 8px 0; margin:18px 0; font-size:14.5px; color:var(--text) }
article.post .note strong { color:#b45309 }
article.post .tip { background:rgba(20,184,166,.08); border-left:3px solid var(--brand); padding:14px 16px; border-radius:0 8px 8px 0; margin:18px 0; font-size:14.5px }
article.post .tip strong { color:var(--brand) }
article.post .danger { background:rgba(239,68,68,.08); border-left:3px solid var(--err); padding:14px 16px; border-radius:0 8px 8px 0; margin:18px 0; font-size:14.5px }
article.post .danger strong { color:var(--err) }
article.post table { width:100%; border-collapse:collapse; margin:14px 0; font-size:14px }
article.post th, article.post td { border:1px solid var(--border); padding:8px 12px; text-align:left }
article.post th { background:#f8fafc; font-weight:700 }

/* CTA inline en artículos */
.inline-cta { background:linear-gradient(135deg,rgba(20,184,166,.08),rgba(14,165,233,.04)); border:1px solid rgba(20,184,166,.4); border-radius:14px; padding:20px 22px; margin:24px 0; text-align:center }
.inline-cta h4 { font-size:18px; font-weight:800; margin-bottom:8px }
.inline-cta p { color:var(--muted); font-size:14px; margin-bottom:14px }
.inline-cta a { display:inline-block; background:var(--brand); color:#fff; padding:11px 22px; border-radius:10px; font-weight:700; text-decoration:none; font-size:14px }
.inline-cta a:hover { filter:brightness(1.08); text-decoration:none }

/* Bloque CTA del hub */
.cta-block { background:linear-gradient(135deg,var(--brand) 0%,var(--brand2) 100%); color:#fff; border-radius:16px; padding:32px 28px; text-align:center; margin-top:24px }
.cta-block h3 { font-size:24px; font-weight:900; margin-bottom:8px }
.cta-block p { font-size:15px; opacity:.92; margin-bottom:18px; max-width:520px; margin-left:auto; margin-right:auto }
.cta-block .btn-primary { display:inline-block; background:#fff; color:var(--brand); padding:13px 28px; border-radius:10px; font-weight:800; font-size:15px; text-decoration:none }
.cta-block .btn-primary:hover { background:#f0fdfa; text-decoration:none }

/* FAQ */
.faq { margin-top:24px }
.faq h2 { margin-bottom:12px }
.faq details { background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin-bottom:8px; cursor:pointer }
.faq summary { font-weight:700; font-size:15px; color:var(--text); list-style:none; outline:none; display:flex; justify-content:space-between; align-items:center; gap:10px }
.faq summary::after { content:'+'; font-size:22px; font-weight:800; color:var(--brand); transition:.15s }
.faq details[open] summary::after { transform:rotate(45deg) }
.faq details[open] { border-color:var(--brand) }
.faq p { font-size:14.5px; color:var(--muted); margin:10px 0 0; line-height:1.65 }

/* Related */
.related { margin-top:32px; padding-top:28px; border-top:1px solid var(--border) }
.related h3 { font-size:18px; font-weight:800; margin-bottom:14px }
.related ul { list-style:none; margin:0; padding:0 }
.related li { padding:10px 0; border-bottom:1px solid var(--border) }
.related li:last-child { border-bottom:none }
.related li a { color:var(--text); font-weight:600 }
.related li a:hover { color:var(--brand); text-decoration:none }

/* Footer */
.blog-footer { border-top:1px solid var(--border); padding:24px 0; text-align:center; color:var(--muted); font-size:13px; background:#fff }
.blog-footer p { margin:4px 0 }
.blog-footer a { color:var(--muted) }
.blog-footer a:hover { color:var(--brand) }

/* Print */
@media print {
  .blog-header, .blog-footer, .inline-cta, .cta-block { display:none }
  body { background:#fff }
  article.post { border:none; padding:0 }
}
