/* ==============================================
   MUNDO COLORIDO – Blog sobre Autismo
   Design: Acolhedor, Inclusivo, Acessível
   Fonte: Fraunces (display) + Nunito (corpo)
   ============================================== */

/* ── Variáveis ── */
:root {
  --primary:       #f3957b;
  --primary-dark:  #2563A8;
  --primary-light: #f5f8fa;
  --accent:        #7EC8C8;
  --accent-warm:   #efb400;
  --success:       #22C55E;
  --danger:        #EF4444;
  --warning:       #F59E0B;

  --text-main:     #1E293B;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --bg-main:       #F8FAFD;
  --bg-card:       #FFFFFF;
  --bg-subtle:     #ffffff;
  --border:        white;

  --footer-bg:     #fffcf7;

  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Nunito', 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --transition: .2s ease;
  --reading-progress: 0%;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
} */

body {
    font-family: 'Lexend', 'Segoe UI', Roboto, sans-serif; /* Lexend é excelente para legibilidade */
    color: var(--text-dark);
    background-color: #f8f4eb;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip link acessibilidade ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Barra de progresso de leitura ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: var(--reading-progress);
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9998;
  transition: width .1s linear;
}

/* ========================================
   NAVBAR
   ======================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-puzzle {
  font-size: 1.8rem;
  animation: puzzle-spin 2s linear infinite;
}
@keyframes puzzle-spin {
  0%, 90%, 100% { transform: rotate(0deg); }
  95% { transform: rotate(15deg); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  /* color: var(--primary); */
  color: #1E293B;
}
.logo-sub {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-menu-categorias {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-main);
}
.dropdown-item:hover { background: var(--bg-subtle); color: var(--primary); }
.cat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-count {
  margin-left: auto;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 1px 7px;
  border-radius: 99px;
}

.search-form { max-width: 260px; }
.search-input {
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
  border: 1.5px solid var(--border);
  font-size: .9rem;
}
.search-input:focus { border-color: var(--primary); box-shadow: none; }

.btn-search {
    border-radius: 0 25px 25px 0;
    background: #f3957b;
    color: white;
    border: none;
}
.btn-search:hover { background: var(--primary-dark); color: #fff; }

/* ========================================
   AD BANNER TOPO
   ======================================== */
.ad-banner-top {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  text-align: center;
}
.ad-leaderboard { min-height: 90px; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    /* background: linear-gradient(135deg, #f8f4eb 0%, #f8f4eb 100%); */
    background: #f8f4eb;
    padding: 80px 0;
    padding-left: 3%;
    padding-right: 3%;
    border-radius: 0 0 50px 50px;    
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  /* color: var(--text-main); */
  color: #7ca8a6;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero { padding: 12px 28px; border-radius: var(--radius-xl); font-weight: 700; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(2, 80px);
  gap: 12px;
}
.puzzle-tile {
  background: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
  animation: float-tile 3s ease-in-out infinite;
}
.puzzle-tile:nth-child(2) { animation-delay: .4s; }
.puzzle-tile:nth-child(3) { animation-delay: .8s; }
.puzzle-tile:nth-child(4) { animation-delay: .2s; }
.puzzle-tile:nth-child(5) { animation-delay: .6s; }
.puzzle-tile:nth-child(6) { animation-delay: 1s; }
@keyframes float-tile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-wave { margin-top: -2px; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* ========================================
   CATEGORIAS STRIP
   ======================================== */
.categorias-strip {
  padding: 20px 0;
  padding-left: 2%;
  padding-right: 2%;
  /* background: var(--bg-main); */
  background: #f8f4eb;
}
.categorias-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
  color: var(--cat-color, var(--primary));
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.cat-chip:hover {
  background: var(--cat-color, var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.chip-count {
  /* background: rgba(0,0,0,.1); */
  background: white;
  border-radius: 99px;  
  padding: 0 6px;
  font-size: .75rem;
}

/* ========================================
   FEATURED POST
   ======================================== */
.featured-section { padding: 48px 0; }
.section-header { margin-bottom: 24px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 12px;
}

.featured-post {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
}

.featured-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.featured-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.featured-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.featured-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  align-self: flex-start;
}
.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.featured-title a { color: var(--text-main); }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt { color: var(--text-muted); font-size: 1rem; flex: 1; }
.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: .85rem;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ========================================
   POSTS GRID & CARDS
   ======================================== */
.posts-section { 
  padding: 48px 0 64px;
  padding-left: 2%;
  padding-right: 2%; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px; 
}
.posts-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.post-card:hover .post-card-title a { color: var(--primary); }

.post-card-link { display: block; }
.post-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.post-card-badge-destaque {
  position: absolute;
  top: 12px; right: 12px;
  background: #F59E0B;
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.meta-sep { color: var(--border); }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-card-title a { color: var(--text-main); }

.post-card-excerpt {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
  margin-bottom: 16px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.post-card-autor {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-ler-mais {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.btn-ler-mais:hover { gap: 8px; }

/* ========================================
   AD INLINE
   ======================================== */
.ad-inline {
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  min-height: 100px;
}
.ad-label {
  display: block;
  font-size: .68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

/* Categorias sidebar */
.categories-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
  transition: background var(--transition);
}
.category-item:hover { background: var(--bg-subtle); color: var(--primary); }
.cat-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.cat-name { flex: 1; font-size: .9rem; }
.cat-count {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 1px 8px;
  border-radius: 99px;
  font-weight: 600;
}

/* Popular */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: popular; }
.popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  counter-increment: popular;
  position: relative;
}
.popular-item::before {
  content: counter(popular);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 24px;
  text-align: center;
}
.popular-thumb, .popular-thumb-placeholder {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.popular-thumb-placeholder {
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.popular-info { display: flex; flex-direction: column; gap: 3px; }
.popular-title { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.popular-views { font-size: .75rem; color: var(--text-light); }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.tag-pill:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Recent */
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; flex-direction: column; gap: 2px; color: var(--text-main); }
.recent-date { font-size: .75rem; color: var(--text-light); }
.recent-title { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.recent-item:hover .recent-title { color: var(--primary); }

/* ========================================
   POST DETAIL
   ======================================== */
.post-detail-container { padding-top: 32px; padding-bottom: 64px; }

.breadcrumb-nav { margin-bottom: 24px; }
.breadcrumb {
  background: none;
  padding: 0;
  font-size: .85rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-light); }

.post-header { margin-bottom: 32px; }
.post-detail-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.post-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.meta-date, .meta-read, .meta-views { display: flex; align-items: center; gap: 5px; }
.meta-comments { color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.share-fb { background: #1877F2; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-copy { background: var(--bg-subtle); color: var(--text-muted); }
.share-btn:hover { transform: translateY(-2px) scale(1.1); opacity: .9; }

/* Post figure */
.post-detail-figure { margin: 24px 0; }
.post-detail-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Post content */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 2em 0 .8em;
  color: var(--text-main);
}
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content p { margin-bottom: 1.25em; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 1em 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .95rem;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.post-content th { background: var(--bg-subtle); font-weight: 700; }
.post-content tr:hover { background: var(--bg-subtle); }
.post-content code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
}
.post-content pre {
  background: var(--text-main);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5em 0;
}

/* Post tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  /* background: linear-gradient(135deg, var(--primary-light), #fff); */
  background: linear-gradient(135deg, #f8f4eb, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}
.author-avatar {
  font-size: 3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 4px; }
.author-label { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.author-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.author-contact { font-size: .85rem; color: black; }

/* Related posts */
.related-posts { margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--border); }

/* Comments */
.comments-section { margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--border); }
.comments-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.comment-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}
.comment-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-name { font-weight: 700; color: var(--text-main); }
.comment-date { font-size: .8rem; color: var(--text-light); margin-left: auto; }
.comment-text { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.no-comments { color: var(--text-muted); font-style: italic; }

.comment-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
}
.comment-form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.comment-form-notice {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   PAGE HEROES
   ======================================== */
.page-container { padding-top: 48px; padding-bottom: 64px; }
.page-hero { text-align: center; margin-bottom: 48px; }
.page-hero-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.tag-icon { background: var(--primary-light); color: var(--primary); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.page-hero-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-hero-count { color: var(--text-light); font-size: .9rem; margin-top: 8px; }

/* Search hero */
.search-hero { text-align: center; margin-bottom: 40px; }
.search-hero-form { max-width: 600px; margin: 20px auto 0; }
.search-results-header { margin-bottom: 28px; }
.search-count { color: var(--text-muted); font-size: 1rem; padding-left: 2%; }
.search-count strong { color: var(--primary); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); color: var(--text-main); margin-bottom: 8px; }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-section { margin-bottom: 40px; }
.about-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.about-card:hover { transform: translateY(-3px); }
.about-card span { font-size: 2rem; display: block; margin-bottom: 10px; }
.about-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: .85rem; color: var(--text-muted); }
.about-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.contact-list i { color: var(--primary); font-size: 1.1rem; }

/* Legal content */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text-main);
}
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: .8em; }
.legal-content ul { padding-left: 1.5em; }

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section { padding: 64px 0; padding-left: 2%; padding-right: 2%;}
.newsletter-card {
  background: linear-gradient(135deg, #7ca8a6 0%, #d2d2d2 100%);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.newsletter-deco {
  display: flex;
  gap: 8px;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.newsletter-text { opacity: .85; font-size: .95rem; }
.newsletter-inputs { display: flex; flex-direction: column; gap: 10px; }
.newsletter-inputs .form-control {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .95rem;
}
.btn-newsletter {
  background: #f3957b;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-newsletter:hover { background: #f3957b; transform: translateY(-2px); }
.newsletter-privacy {
  font-size: .78rem;
  opacity: .75;
  margin-top: 8px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.newsletter-privacy a { color: rgba(255,255,255,.9); text-decoration: underline; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrap { margin-top: 40px; }
.pagination .page-link {
  border: 1.5px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  font-weight: 600;
  transition: all var(--transition);
}
.pagination .page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ========================================
   MESSAGES / ALERTS
   ======================================== */
.messages-container { padding: 12px 0; }
.alert { border-radius: var(--radius-md); border: none; }
.alert-success { background: #DCFCE7; color: #166534; }
.alert-info    { background: #DBEAFE; color: #1E40AF; }
.alert-warning { background: #FEF9C3; color: #854D0E; }
.alert-error, .alert-danger { background: #FEE2E2; color: #991B1B; }

/* ========================================
   BOOTSTRAP OVERRIDES
   ======================================== */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,196,.35);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-md);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-lg { padding: 12px 28px; }

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,196,.15);
  outline: none;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer { background: var(--footer-bg); color: #0f60c3; }
.footer-wave { line-height: 0; margin-bottom: -1px; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-body { padding: 48px 0 40px; padding-left: 2%; padding-right: 2%;}
.footer-brand { }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #6e6d6b;
  display: block;
  margin-bottom: 12px;
}
.footer-desc { font-size: .9rem; opacity: .75; line-height: 1.7; margin-bottom: 20px; color: #6e6d6b;}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #7faaa8;
  color: #fffffe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-heading {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: #6e6d6b;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: #94A3B8;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #6e6d6b; }
.footer-resources { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-resources li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.footer-resources strong { display: block; color: #6e6d6b; font-size: .85rem; }
.footer-resources span { color: #64748B; font-size: .78rem; }
.footer-bottom {
  border-top: 1px solid hsla(173, 14%, 64%, 0.2);
  padding: 16px 0;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; color: #64748B; }
.footer-disclaimer { display: flex; align-items: center; gap: 6px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 0 auto 32px; }
  .featured-image, .featured-placeholder { height: 260px; }
  .featured-body { padding: 28px 24px; }
  .search-form { max-width: 100%; margin-top: 12px; }
}

@media (max-width: 767px) {
  .hero-section { padding: 56px 0 32px; }
  .hero-title { font-size: 1.8rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-card { padding: 32px 24px; }
  .contact-card { padding: 24px; }
  .comment-form-wrap { padding: 20px; }
  .post-detail-meta { font-size: .82rem; gap: 8px; }
  .footer-body { padding: 32px 0 24px; padding-left: 2%; padding-right: 2%;}
}

@media (max-width: 575px) {
  .hero-badge { font-size: .72rem; }
  .btn-hero { width: 100%; justify-content: center; }
  .categorias-scroll { padding-bottom: 8px; }
  .post-card-body { padding: 16px; }
  .newsletter-inputs .btn-newsletter { width: 100%; }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .site-header, .sidebar, .newsletter-section, .site-footer,
  .share-bar, .ad-inline, .ad-banner-top, .related-posts { display: none !important; }
  .col-lg-8 { width: 100% !important; }
  .post-content { font-size: 12pt; line-height: 1.6; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}