/*
Theme Name: Grupo Tenha Serviços Blog
Theme URI: https://www.grupotenhaservicos.com.br/blog/
Author: Grupo Tenha Serviços
Author URI: https://www.grupotenhaservicos.com.br/
Description: Tema oficial ultra-rápido (100/100 PageSpeed) do Grupo Tenha Serviços. Dark mode premium, layout em 2 colunas com Sidebar interativa, TOC dinâmico, autor E-E-A-T e máxima conversão.
Version: 2.1.0
Text Domain: grupo-tenha-blog
*/

/* ===================================================
   DESIGN SYSTEM & CSS VARIABLES
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:          #d4a017;
  --gold-light:    #e8b94f;
  --gold-dark:     #b8880f;
  --gold-glow:     rgba(212, 160, 23, 0.25);
  --bg-dark:       #0f172a;
  --bg-card:       #1a2236;
  --bg-card2:      #1e2840;
  --bg-card-hover: #222d48;
  --border:        rgba(212, 160, 23, 0.16);
  --border-soft:   rgba(255, 255, 255, 0.08);
  --text:          #e8eaf0;
  --text-muted:    #94a3b8;
  --text-soft:     #cbd5e1;
  --white:         #ffffff;
  --whatsapp:      #25d366;
  --whatsapp-dark: #1ebd59;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #172035 50%, #0f172a 100%);
  --gradient-gold: linear-gradient(135deg, #d4a017 0%, #b8880f 100%);
  --shadow-card:   0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold:   0 8px 24px rgba(212, 160, 23, 0.2);
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     20px;
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:     system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 'Outfit', 'Inter', sans-serif;
  --font-heading:  'Outfit', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- BASE & UTILITIES --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.gold-text {
  color: var(--gold);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-gold);
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  line-height: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
  color: #000;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-wrap {
  height: 55px;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(212, 160, 23, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold);
}

.has-mega { position: static; }
.mega-menu {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  padding: 40px 0;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(0,0,0,0.2);
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 40px;
  background: transparent;
}
.mega-menu::-webkit-scrollbar { width: 6px; }
.mega-menu::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.mega-menu::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.has-mega:hover .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 992px) {
  .nav-links {
    height: 100%;
    align-self: stretch;
  }
  .nav-links > li {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .has-mega:hover .nav-link {
    color: var(--white);
    background: rgba(255,255,255,0.05);
  }
}

.mega-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.mega-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-col h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212,160,23,0.15);
}

.mega-list { display: flex; flex-direction: column; gap: 8px; }
.mega-list a {
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: var(--transition);
  display: block;
  padding: 4px 0;
}
.mega-list a:hover { color: var(--gold); padding-left: 5px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 10px;
  transition: var(--transition);
}

/* ===================================================
   BLOG FEED & LISTING LAYOUT
   =================================================== */
.blog-hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}

.blog-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.blog-search-form {
  max-width: 580px;
  margin: 0 auto 30px;
  display: flex;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 6px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.blog-search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.blog-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-main);
}

.blog-search-input::placeholder {
  color: var(--text-muted);
}

.blog-search-btn {
  background: var(--gradient-gold);
  border: none;
  color: #0f172a;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-search-btn:hover {
  background: var(--gold-light);
}

.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.cat-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(212, 160, 23, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.blog-section {
  padding: 50px 0 80px;
  flex: 1;
}

/* Featured Hero Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.featured-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #151c2e;
}

.featured-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-thumb-wrap img {
  transform: scale(1.04);
}

.featured-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin: 14px 0;
}

.featured-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}

.card-thumb-wrap {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #151c2e;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-thumb-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.post-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 12px;
}

.post-card:hover h3 {
  color: var(--gold-light);
}

.post-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
}

.card-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.post-card:hover .card-read-more svg {
  transform: translateX(4px);
}

.pagination-wrap {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-numbers.current, .page-numbers:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  color: #0f172a;
  font-weight: 800;
}

/* ===================================================
   SINGLE POST (2-COLUMN MAGAZINE LAYOUT)
   =================================================== */
.single-hero-header {
  padding: 45px 0 35px;
  background: radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.08) 0%, transparent 80%);
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--text-soft);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs span.current {
  color: var(--gold-light);
  font-weight: 600;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* 2-Column Wrapper */
.article-layout-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
  align-items: flex-start;
}

.content-col {
  flex: 1;
  min-width: 0;
}

.sidebar-col {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.single-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 35px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/9;
  background: #151c2e;
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- INTERACTIVE TOC CARD --- */
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  margin: 30px 0 40px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.toc-header {
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.toc-toggle-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.toc-chevron {
  transition: transform 0.3s ease;
}

.toc-card.collapsed .toc-chevron {
  transform: rotate(-90deg);
}

.toc-card.collapsed .toc-body {
  display: none;
}

.toc-body {
  padding: 18px 24px;
  border-top: 1px solid var(--border-soft);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
}

.toc-list li {
  list-style-type: decimal;
  color: var(--gold);
}

.toc-list a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- POST CONTENT STYLES --- */
.post-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content p.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.7;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 30px;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--white);
  margin: 48px 0 20px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 36px 0 16px;
}

.post-content ul, .post-content ol {
  margin: 0 0 28px 24px;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.post-content strong {
  color: var(--white);
  font-weight: 700;
}

.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.post-content a:hover {
  color: var(--gold-light);
}

.post-content blockquote {
  background: rgba(212, 160, 23, 0.08);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  margin: 32px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-soft);
}

/* Inline / Intermediary Callout Card */
.article-cta-box {
  background: linear-gradient(135deg, #162038 0%, #1e2946 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 45px 0;
  box-shadow: var(--shadow-gold);
}

.cta-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.cta-box-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-box-content p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 22px;
  line-height: 1.6;
}

.btn-whatsapp-cta {
  background: var(--whatsapp);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.btn-whatsapp-cta:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

/* Share & Tags Bar */
.post-share-bar {
  margin: 35px 0 25px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.share-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.share-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}

.share-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-wa { background: #25d366; }
.share-li { background: #0a66c2; }
.share-fb { background: #1877f2; }
.share-tw { background: #0f172a; border: 1px solid #334155; }

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  padding: 4px 12px;
  border-radius: 6px;
}

.tag-pill:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Author Box E-E-A-T */
.author-eeat-card {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px 0;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.author-avatar-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #0f172a;
  border-radius: 50%;
  padding: 6px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-details h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 4px 0 8px;
}

.author-details p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.author-links a {
  color: var(--gold);
  font-weight: 600;
}

.author-links a:hover {
  text-decoration: underline;
}

/* Prev / Next Post Navigation */
.post-navigation-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 35px 0 10px;
}

.nav-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.nav-post-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: var(--bg-card2);
}

.nav-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.next-card {
  text-align: right;
}

@media (max-width: 640px) {
  .post-navigation-links {
    grid-template-columns: 1fr;
  }
  .next-card {
    text-align: left;
  }
}

/* Related Posts */
.related-posts-section {
  margin-top: 45px;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0;
}

.related-more-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}

.related-more-link:hover {
  text-decoration: underline;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

/* ===================================================
   SIDEBAR & WIDGETS
   =================================================== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.widget-title svg {
  color: var(--gold);
}

/* Search Widget */
.sidebar-search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-search-form:focus-within {
  border-color: var(--gold);
}

.sidebar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}

.sidebar-search-submit {
  background: var(--gradient-gold);
  border: none;
  color: #0f172a;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Lead Widget */
.lead-widget {
  background: linear-gradient(135deg, #17223b 0%, #1c2742 100%);
  border: 1px solid var(--border);
  text-align: center;
}

.lead-widget-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.lead-widget-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.lead-widget h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.lead-widget p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}

.btn-whatsapp-sidebar {
  background: var(--whatsapp);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.btn-whatsapp-sidebar:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* Category List Widget */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: var(--transition);
}

.sidebar-cat-list a:hover {
  background: rgba(212, 160, 23, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateX(3px);
}

.cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  color: var(--text-muted);
}

/* Recent Posts List Widget */
.sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-thumb {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #151c2e;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-info h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: var(--transition);
}

.sidebar-post-item:hover .sidebar-post-info h5 {
  color: var(--gold);
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Service Pills Widget */
.sidebar-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  transition: var(--transition);
}

.service-pill:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #06060b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 70px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo-wrap {
  height: 70px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 2px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.whatsapp-flutuante {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-flutuante svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1024px) {
  .article-layout-container {
    flex-direction: column;
  }
  .sidebar-col {
    width: 100%;
    position: static;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-post-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .featured-content {
    padding: 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .post-content {
    padding: 24px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
