/* Global Pro Automotriz - Blog CSS */
:root {
  --primary: #a80000;
  --primary-dark: #8b0000;
  --dark: #121212;
  --mid: #1a1a2e;
  --accent: #0f3460;
  --light: #f8f9fa;
  --text: #333;
  --muted: #777;
  --border: #e0e0e0;
  --font: 'Segoe UI', Arial, sans-serif;
  --whatsapp: #25D366;
  --yellow: #FFD700;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; }

/* HEADER */
header { background: var(--dark); padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.header-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { color: #fff; font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
nav a { color: #ccc; text-decoration: none; margin-left: 24px; font-size: .9rem; transition: color .2s; }
nav a:hover { color: var(--primary); }
nav a.active { color: var(--primary); font-weight: 600; }

/* HERO ARTICLE */
.article-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%); color: #fff; padding: 60px 24px 50px; }
.article-hero .inner { max-width: 860px; margin: auto; }
.breadcrumb { font-size: .82rem; color: #aaa; margin-bottom: 16px; }
.breadcrumb a { color: #ccc; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--primary); }
.article-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: #bbb; }
.article-meta .category { background: var(--primary); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; text-transform: uppercase; }

/* CONTENT */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
@media(max-width:900px){ .content-wrap { grid-template-columns: 1fr; } }
article.post-body p { margin-bottom: 20px; font-size: 1.05rem; }
article.post-body h2 { font-size: 1.4rem; color: var(--dark); margin: 36px 0 14px; border-left: 4px solid var(--primary); padding-left: 14px; }
article.post-body h3 { font-size: 1.15rem; color: var(--accent); margin: 28px 0 10px; }
article.post-body ul, article.post-body ol { padding-left: 24px; margin-bottom: 20px; }
article.post-body li { margin-bottom: 8px; }
.article-tags { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tags span { display: inline-block; background: var(--light); border: 1px solid var(--border); padding: 4px 14px; border-radius: 20px; font-size: .8rem; margin: 4px 4px 4px 0; color: var(--muted); }
.article-tags span:hover { background: var(--primary); color: #fff; border-color: var(--primary); cursor: pointer; }

/* CTA BOX */
.cta-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 28px; border-radius: 12px; margin: 40px 0; text-align: center; }
.cta-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cta-box p { font-size: .9rem; opacity: .9; margin-bottom: 18px; }
.cta-btn { background: #fff; color: var(--primary); padding: 10px 28px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: .95rem; display: inline-block; transition: transform .2s; }
.cta-btn:hover { transform: scale(1.05); }

/* SIDEBAR */
aside { }
.sidebar-widget { background: var(--light); border-radius: 12px; padding: 24px; margin-bottom: 28px; }
.sidebar-widget h4 { font-size: 1rem; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.sidebar-widget ul li:last-child { border: none; }
.sidebar-widget ul li a { color: var(--text); text-decoration: none; }
.sidebar-widget ul li a:hover { color: var(--primary); }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-cloud a { background: #fff; border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; font-size: .8rem; color: var(--muted); text-decoration: none; transition: all .2s; }
.keyword-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* FOOTER */
footer { background: var(--dark); color: #aaa; padding: 40px 24px 20px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media(max-width:700px){ .footer-inner { grid-template-columns: 1fr; } }
footer h5 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: var(--primary); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; font-size: .88rem; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; text-align: center; }

/* BLOG INDEX */
.blog-hero { background: linear-gradient(135deg, var(--dark), var(--accent)); color: #fff; padding: 70px 24px; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 900; margin-bottom: 12px; }
.blog-hero p { font-size: 1.1rem; color: #ccc; max-width: 600px; margin: auto; }
.blog-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.category-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn { padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; color: var(--muted); font-size: .85rem; cursor: pointer; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.card-body { padding: 22px; }
.card-cat { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.35; }
.card-desc { font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.card-link { font-size: .85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* STICKY BOTTOM BAR - Blog */
.sticky-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark);
  border-top: 3px solid var(--primary);
  z-index: 9999;
  height: 70px;
  display: flex; align-items: center; justify-content: center;
}
.big-buttons-container {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 600px; gap: 8px; height: 100%;
}
.btn-massive-call {
  flex: 1; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1rem;
  border-radius: 12px; text-decoration: none; transition: transform .2s;
}
.btn-massive-call:hover { transform: scale(1.03); color: #fff; }
.btn-small-chat {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #121212; font-size: 1.2rem;
  text-decoration: none; transition: transform .2s; flex-shrink: 0;
}
.btn-small-chat:hover { transform: scale(1.1); }
.btn-massive-wa {
  flex: 1; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--whatsapp); color: #fff; font-weight: 800; font-size: 1rem;
  border-radius: 12px; text-decoration: none; transition: transform .2s;
}
.btn-massive-wa:hover { transform: scale(1.03); color: #fff; }
@media(min-width:992px){
  .sticky-bottom-bar { height: 80px; }
  .btn-massive-call, .btn-massive-wa { height: 56px; font-size: 1.1rem; }
  .btn-small-chat { width: 56px; height: 56px; }
}
body { padding-bottom: 80px; }

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed; bottom: 100px; right: 20px; z-index: 9998;
  width: 60px; height: 60px; background: var(--whatsapp); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37,211,102,.4);
  text-decoration: none; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
