/* ==========================================================================
   BLOG CORPORATIVO DESTREZA MARKETING — COSTA RICA (SEO / GEO / B2B)
   ========================================================================== */

:root {
  --bg-dark: #050505;
  --bg-card: #0f0f12;
  --bg-soft: #15151a;
  --neon-cyan: #0bf1f4;
  --gold: #d4af37;
  --text-white: #ffffff;
  --text-light: #e4e4e7;
  --text-muted: #a1a1aa;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-cyan: rgba(11, 241, 244, 0.35);
  --border-gold: rgba(212, 175, 55, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.75;
  padding-top: 96px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-white);
  line-height: 1.2;
}

a { color: inherit; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.agency-bar {
  background: var(--neon-cyan);
  color: #000;
  padding: 7px 0;
  font-weight: 800;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1001;
}

header.blog-header {
  padding: 13px 0;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid rgba(11, 241, 244, 0.16);
  position: fixed;
  top: 29px; left: 0; width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.logo img { height: 46px; width: auto; display: block; }

.blog-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.blog-nav a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ddd;
  transition: 0.2s;
}

.blog-nav a:hover { color: var(--neon-cyan); }

.nav-cta-gold {
  background: var(--gold);
  color: #111 !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  .blog-nav a:not(.nav-cta-gold) { display: none; }
}

@media (max-width: 768px) {
  body { padding-top: 70px; }
  .agency-bar { display: none; }
  header.blog-header { top: 0; }
}

/* Index Hero & Grid */
.blog-hero {
  padding: 64px 0 52px;
  background:
    radial-gradient(ellipse 70% 55% at 20% 20%, rgba(11, 241, 244, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(212, 175, 55, 0.1), transparent 65%),
    #050505;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 920px;
  margin: 0 auto 16px;
  text-transform: uppercase;
}

.blog-hero p {
  max-width: 780px;
  margin: 0 auto 26px;
  color: #ccc;
  font-size: 1.08rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0 72px;
}

@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--neon-cyan);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.post-geo {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--neon-cyan);
  font-family: 'Montserrat', sans-serif;
}

.post-card h2 { font-size: 1.12rem; line-height: 1.3; }
.post-card p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

.post-link {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
}

/* Article Layout */
.article-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 44px;
  align-items: start;
}

@media (max-width: 960px) {
  .article-wrap { grid-template-columns: 1fr; }
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--neon-cyan); text-decoration: none; }

.article-header h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin: 34px 0 12px;
}

.article-body h3 {
  font-size: 1.18rem;
  color: var(--gold);
  margin: 22px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 1.03rem;
  color: #dedee3;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 22px;
  color: #dedee3;
}

.article-body li { margin-bottom: 8px; }

.cta-banner {
  background: linear-gradient(135deg, #111115 0%, #19160d 100%);
  border: 1px solid var(--border-gold);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 32px 0;
}

.cta-banner h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.cta-banner p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: #e4e4e7;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #111;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.25s;
}

.btn-gold:hover { transform: translateY(-2px); background: #e6c24c; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 13px 22px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
}

.sidebar-sticky {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
}

.sidebar-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-links a {
  font-size: 0.88rem;
  color: #d4d4d8;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar-links a:hover { color: var(--neon-cyan); }

.author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-mini img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

footer.blog-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #222;
  background: #000;
  color: #777;
  font-size: 0.84rem;
}

