/* ============================================
   VonoaWeb Blog — Estilos (Brand Kit v1.0)
   blog.vonoaweb.com
   ============================================ */

:root {
  --vw-deep-space:  #070F21;
  --vw-navy:        #02215D;
  --vw-cyan:        #2EE9B9;
  --vw-blue:        #1CA0F4;
  --vw-white:       #FFFFFF;
  --vw-slate:       #94A3B8;
  --vw-midnight:    #0F2040;
  --vw-gradient:    linear-gradient(135deg, #2EE9B9 0%, #1CA0F4 100%);
  --fg-muted:       #94A3B8;
  --fg-body:        #B6C2D8;
  --border:         rgba(148, 163, 184, 0.12);
  --font-display:   'Sora', system-ui, -apple-system, sans-serif;
  --font-body:      'DM Sans', system-ui, -apple-system, sans-serif;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-full:    999px;
  --shadow-card:    0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 14px 32px -10px rgba(28, 160, 244, 0.55);
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-med:  0.24s var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html, body { background: var(--vw-deep-space); color: #E6EDF9; font-family: var(--font-body); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: clip }
a { color: inherit; text-decoration: none; cursor: pointer }
img { max-width: 100%; display: block }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px }
.container-wide { max-width: 900px; margin: 0 auto; padding: 0 32px }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 32px }
.section { padding: 64px 0; position: relative }

/* ── Typography ── */
.overline { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--vw-cyan) }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; margin: 0 }
h1 { font-size: 48px; line-height: 1.08 }
h2 { font-size: 32px; line-height: 1.15 }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600 }
h4 { font-size: 14px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--vw-cyan) }
p { color: var(--fg-body); font-size: 17px; line-height: 1.65; margin: 0 }
.g { background: var(--vw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent }
.lede { color: var(--fg-muted); font-size: 18px; max-width: 600px; margin: 14px auto 0 }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: var(--radius-full); border: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; line-height: 1; transition: all .22s var(--ease-out) }
.btn.primary { background: var(--vw-gradient); color: #07102a; box-shadow: var(--shadow-glow) }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px) }
.btn.ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--border) }
.btn.ghost:hover { background: rgba(255,255,255,.09) }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap }

/* ── Chip / Tag ── */
.chip-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-full); background: rgba(46, 233, 185, .08); border: 1px solid rgba(46, 233, 185, .25); color: var(--vw-cyan); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: all var(--transition-fast) }
.chip-tag:hover { background: rgba(46, 233, 185, .18) }

/* ============================================
   NAV — idéntico a vonoaweb.com
   ============================================ */
.site-nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; backdrop-filter: blur(16px); background: rgba(7, 15, 33, .72); border-bottom: 1px solid rgba(148, 163, 184, .08) }
.nav { display: flex; align-items: center; gap: 24px }
.brand { display: flex; align-items: center; gap: 10px }
.wm { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em }
.wm em { font-style: normal; color: var(--vw-cyan); font-size: 10px; letter-spacing: .3em; margin-left: 4px }
.blog-badge { font-size: 10px; font-weight: 500; color: var(--vw-blue); background: rgba(28, 160, 244, .12); border: 1px solid rgba(28, 160, 244, .25); padding: 2px 8px; border-radius: var(--radius-full); letter-spacing: .08em; text-transform: uppercase }
.links { display: flex; gap: 26px; flex: 1; justify-content: center }
.links a { color: #B6C2D8; font-size: 14px; font-weight: 500; transition: color var(--transition-fast) }
.links a:hover, .links a.active { color: #fff }
.cta-sm { height: 38px; padding: 0 18px; border-radius: var(--radius-full); background: var(--vw-gradient); color: #07102a; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; white-space: nowrap }
.burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(7, 15, 33, .97); backdrop-filter: blur(20px); z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s }
.mobile-menu.open { opacity: 1; pointer-events: auto }
.mobile-menu a { color: #E6EDF9; font-size: 20px; font-family: var(--font-display); font-weight: 600 }
.mobile-menu a:hover { color: var(--vw-cyan) }
.cta-mobile { background: var(--vw-gradient); color: #07102a !important; padding: 12px 28px; border-radius: var(--radius-full); font-size: 16px }

/* Burger open state */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.burger.open span:nth-child(2) { opacity: 0 }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero { position: relative; padding: 72px 0 80px; text-align: center; background: linear-gradient(180deg, #070F21 0%, #0A1A3F 100%); overflow: hidden }
.blog-hero::before { content: ""; position: absolute; top: -120px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 233, 185, .08) 0%, transparent 70%); pointer-events: none }
.blog-hero::after { content: ""; position: absolute; bottom: -100px; left: -60px; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(28, 160, 244, .06) 0%, transparent 70%); pointer-events: none }
.blog-hero h1 { margin: 12px auto 0; max-width: 18ch }

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px }

.post-card { background: var(--vw-midnight); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-med) }
.post-card:hover { border-color: rgba(46, 233, 185, .25); transform: translateY(-4px); box-shadow: var(--shadow-card) }
.post-card a { display: block; height: 100% }

.post-card-img img { width: 100%; height: 200px; object-fit: cover }

.post-card-body { padding: 20px 24px 24px }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--fg-muted) }
.post-card-body h2 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; color: #fff }
.post-card-body p { font-size: 15px; color: var(--fg-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.read-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; background: var(--vw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent }

/* ============================================
   SINGLE POST
   ============================================ */
.post-single { padding-bottom: 64px }

/* Breadcrumb */
.breadcrumb { padding: 20px 32px; font-size: 13px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px }
.breadcrumb a { color: var(--vw-cyan); transition: opacity var(--transition-fast) }
.breadcrumb a:hover { opacity: .7 }
.breadcrumb .current { color: var(--fg-muted) }

/* Header */
.post-header { padding-top: 32px; padding-bottom: 32px; max-width: 740px }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-muted); margin-bottom: 16px }
.post-meta .sep { opacity: .4 }
.post-header h1 { font-size: 42px; line-height: 1.12; color: #fff; margin-bottom: 16px }
.post-excerpt { font-size: 19px; color: var(--fg-body); line-height: 1.6 }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }

/* Hero image */
.post-hero-img { margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden }
.post-hero-img img { width: 100%; height: auto }
.post-hero-img figcaption { text-align: right; font-size: 12px; color: var(--fg-muted); padding: 8px 0 }

/* Post content */
.post-content { padding-top: 8px }
.post-content h2 { font-size: 28px; color: #fff; margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border) }
.post-content h3 { font-size: 22px; color: #E6EDF9; margin: 36px 0 12px }
.post-content p { margin-bottom: 20px }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; color: var(--fg-body) }
.post-content li { margin-bottom: 8px; font-size: 17px; line-height: 1.65 }

.post-content blockquote { border-left: 3px solid var(--vw-cyan); padding: 16px 24px; margin: 28px 0; background: rgba(46, 233, 185, .04); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--fg-body) }

.post-content code { background: rgba(148, 163, 184, .1); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--vw-cyan) }
.post-content pre { background: var(--vw-midnight); border: 1px solid var(--border); color: #E6EDF9; padding: 20px; border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 24px }
.post-content pre code { background: none; padding: 0; color: inherit }

.post-content a { color: var(--vw-cyan); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition-fast) }
.post-content a:hover { color: var(--vw-blue) }

.post-content img { border-radius: var(--radius-md); margin: 28px 0 }

.post-content strong { color: #fff }

/* Tabla dentro de posts */
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px }
.post-content th { background: var(--vw-midnight); color: var(--vw-cyan); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px solid rgba(46, 233, 185, .2) }
.post-content td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--fg-body) }
.post-content tr:hover td { background: rgba(46, 233, 185, .03) }

/* ============================================
   POST CTA
   ============================================ */
.post-cta { margin: 56px auto 40px }
.cta-card { background: linear-gradient(135deg, rgba(46, 233, 185, .08) 0%, rgba(28, 160, 244, .08) 100%); border: 1px solid rgba(46, 233, 185, .2); border-radius: var(--radius-xl); padding: 40px; text-align: center }
.cta-card h3 { color: #fff; margin-bottom: 8px }
.cta-card p { color: var(--fg-muted); margin-bottom: 20px }
.cta-card .cta-row { justify-content: center }

/* ============================================
   POST NAVIGATION
   ============================================ */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px }
.post-nav-link { padding: 20px; background: var(--vw-midnight); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition-fast) }
.post-nav-link:hover { border-color: rgba(46, 233, 185, .3); transform: translateY(-2px) }
.post-nav-label { font-size: 12px; color: var(--fg-muted); letter-spacing: .06em; text-transform: uppercase }
.post-nav-link strong { display: block; font-size: 15px; margin-top: 6px; color: #fff; font-family: var(--font-display) }
.post-nav-link.next { text-align: right }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { margin-top: 64px; background: linear-gradient(180deg, var(--vw-deep-space) 0%, #050B18 100%); border-top: 1px solid var(--border) }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 56px 32px 40px }
.footer-brand p { color: var(--fg-muted); font-size: 14px; margin-top: 12px; line-height: 1.6; max-width: 280px }
.footer-col { display: flex; flex-direction: column; gap: 10px }
.footer-col h4 { margin-bottom: 4px }
.footer-col a { font-size: 14px; color: var(--fg-body); transition: color var(--transition-fast) }
.footer-col a:hover { color: var(--vw-cyan) }

.footer-social { display: flex; gap: 12px; margin-top: 8px }
.footer-social a { color: var(--fg-muted); transition: color var(--transition-fast) }
.footer-social a:hover { color: var(--vw-cyan) }

.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0 }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between }
.footer-bottom p { font-size: 13px; color: var(--fg-muted) }
.footer-legal { display: flex; gap: 20px }
.footer-legal a { font-size: 13px; color: var(--fg-muted); transition: color var(--transition-fast) }
.footer-legal a:hover { color: var(--vw-cyan) }

/* ============================================
   WHATSAPP FAB
   ============================================ */
.wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37, 211, 102, .4); transition: all var(--transition-fast) }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, .5) }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; list-style: none }
.page-item a, .page-item span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all var(--transition-fast) }
.page-item a { color: var(--fg-body); background: var(--vw-midnight); border: 1px solid var(--border) }
.page-item a:hover { border-color: var(--vw-cyan); color: var(--vw-cyan) }
.page-item.active span { background: var(--vw-gradient); color: #07102a; font-weight: 700 }

/* ============================================
   TAGS GRID
   ============================================ */
.tags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.tag-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--vw-midnight); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition-med) }
.tag-card:hover { border-color: rgba(46, 233, 185, .3); transform: translateY(-3px); box-shadow: var(--shadow-card) }
.tag-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff }
.tag-count { font-size: 13px; color: var(--fg-muted) }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out) }
.reveal.visible { opacity: 1; transform: translateY(0) }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .links { display: none }
  .cta-sm { display: none }
  .burger { display: flex }

  .blog-hero { padding: 48px 0 56px }
  .blog-hero h1 { font-size: 32px }
  .lede { font-size: 16px }

  .posts-grid { grid-template-columns: 1fr }

  .post-header h1 { font-size: 30px }
  .post-excerpt { font-size: 17px }
  .post-content h2 { font-size: 24px }
  .post-content h3 { font-size: 19px }

  .post-nav { grid-template-columns: 1fr }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center }
  .footer-brand p { margin: 12px auto 0 }
  .footer-social { justify-content: center }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center }
  .footer-legal { justify-content: center }

  .container, .container-wide, .container-narrow { padding: 0 20px }
  .breadcrumb { padding: 16px 20px }
}

@media (max-width: 480px) {
  .blog-hero h1 { font-size: 26px }
  .post-header h1 { font-size: 26px }
  .cta-card { padding: 28px 20px }
}
