/* ===========================================================
   OBSERVATORIO 365 — estilos específicos (hermana del Home)
   =========================================================== */

.obs-hero h1 { max-width: 22ch; }
.obs-hero .hero-sub { max-width: 60ch; }
.hero-micro {
  margin-top: 24px; max-width: 640px;
  font-size: 14px; color: rgba(255,255,255,.85);
  line-height: 1.55; text-wrap: pretty;
}
.hero-micro strong { color: #fff; font-weight: 700; }

/* ---------- FILTERS ---------- */
.filters-wrap {
  position: sticky; top: 72px; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  backdrop-filter: saturate(1.1) blur(8px);
  background: rgba(255,255,255,.92);
}
.filters-desktop {
  display: flex; flex-direction: column; gap: 10px;
}
.filter-group {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.filter-label {
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  min-width: 72px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  appearance: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  color: var(--c-navy); background: var(--soft);
  border: 1px solid transparent;
  padding: 7px 14px; border-radius: 999px;
  transition: all .15s ease;
  white-space: nowrap;
}
.chip:hover { background: rgba(39,97,159,.1); }
.chip.on {
  background: var(--c-blue); color: var(--white);
  border-color: var(--c-blue);
}

.filters-mobile { display: none; }
.filter-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--c-navy);
  cursor: pointer;
}
.filter-count {
  margin-left: auto;
  min-width: 22px; height: 22px;
  background: var(--c-blue); color: var(--white);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 7px;
}
.filter-count:empty,
.filter-count[data-zero="1"] { display: none; }

/* ---------- DRAWER ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.drawer.open { visibility: visible; opacity: 1; }
.drawer-back {
  position: absolute; inset: 0;
  background: rgba(40,62,86,.5);
}
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(380px, 88vw);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; color: var(--c-navy); margin: 0;
}
.drawer-close {
  appearance: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  color: var(--c-navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--soft); }
.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.drawer-body .filter-group {
  flex-direction: column; align-items: stretch; gap: 10px;
}
.drawer-body .filter-label { min-width: 0; }
.drawer-foot {
  display: flex; gap: 10px; padding: 16px 24px;
  border-top: 1px solid var(--line);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.drawer-foot .btn { flex: 1; justify-content: center; }

/* ---------- TAG / CATEGORY COLORS ---------- */
.tag {
  display: inline-block;
  font-family: var(--sans); font-weight: 700;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  line-height: 1.4;
}
.tag-turismo    { background: rgba(143,190,149,.18); color: #3f7a4a; }
.tag-gobierno   { background: rgba(40,62,86,.1);     color: #283E56; }
.tag-corporativo{ background: rgba(39,97,159,.12);   color: #27619F; }

/* ---------- FEATURE POST ---------- */
.section-tight { padding: 56px 0; }
.feature-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-media { order: 2; align-self: stretch; min-height: 380px; }
.feature-thumb {
  position: relative;
  width: 100%; height: 100%; min-height: 380px;
  overflow: hidden;
}
.feature-thumb .ph-svg,
.feature-thumb .ph-svg svg { width: 100%; height: 100%; display: block; }
.feature-badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(40,62,86,.9); color: var(--white);
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.feature-body { order: 1; padding: 48px 8px 48px 48px; }
.feature-body h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  color: var(--c-navy);
  line-height: 1.2; margin: 14px 0 16px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.feature-hook {
  font-size: 16.5px; color: var(--muted);
  line-height: 1.6; margin: 0 0 24px;
}
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.post-meta time { font-weight: 500; }
.dot-sep { color: var(--line); }

.author-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.author-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.author-avatar svg { width: 100%; height: 100%; }
.author-info { display: flex; flex-direction: column; line-height: 1.35; }
.author-info strong {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: var(--c-navy);
}
.author-info span { font-size: 12.5px; color: var(--muted); }

/* ---------- POST GRID ---------- */
.grid-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; flex-wrap: wrap;
  text-align: left !important;
  margin-bottom: 28px !important;
}
.grid-head h2 { margin: 0; }
.result-count {
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  font-weight: 500;
}

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  align-items: stretch;
}
.post-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(39,97,159,.25);
}
.post-card.hidden { display: none; }
.post-thumb {
  display: block; position: relative;
  aspect-ratio: 16/9; overflow: hidden;
}
.post-thumb .ph-svg,
.post-thumb .ph-svg svg { width: 100%; height: 100%; display: block; }
.post-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
}
.post-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.post-body h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; color: var(--c-navy);
  line-height: 1.28; margin: 0 0 10px;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.post-body h3 a {
  color: inherit; text-decoration: none;
  transition: color .15s ease;
}
.post-body h3 a:hover { color: var(--c-blue); }
.post-body p {
  font-size: 14.5px; color: var(--muted);
  line-height: 1.55; margin: 0 0 18px;
  flex: 1;
}
.post-foot {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line);
}

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
  max-width: 440px; margin: 0 auto;
}
.empty-state svg { color: var(--c-blue); opacity: .5; margin-bottom: 18px; }
.empty-state h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; color: var(--c-navy); margin: 0 0 8px;
}
.empty-state p { font-size: 15px; margin: 0 0 20px; }

.grid-more {
  text-align: center; margin-top: 40px;
}

/* ---------- SUBSCRIBE BAND ---------- */
.subscribe-band {
  background: var(--c-navy); color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.subscribe-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(244,196,73,.1), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(143,190,149,.08), transparent 40%);
  pointer-events: none;
}
.subscribe-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.subscribe-copy h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  color: var(--white);
  line-height: 1.2; margin: 0 0 14px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.subscribe-copy p {
  font-size: 16px; color: rgba(255,255,255,.78);
  line-height: 1.6; margin: 0;
}
.subscribe-form {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
}
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  font-family: var(--sans); font-size: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-blue);
  background: rgba(255,255,255,.12);
}
.subscribe-form .btn { padding: 14px 22px; }
.subscribe-micro {
  width: 100%;
  font-size: 12.5px; color: rgba(255,255,255,.6);
  margin: 4px 0 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .feature-post { grid-template-columns: 1fr; }
  .feature-media { order: 1; min-height: 240px; }
  .feature-thumb { min-height: 240px; aspect-ratio: 16/9; }
  .feature-body { order: 2; padding: 32px 28px 36px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .subscribe-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .filters-wrap {
    top: 64px; padding: 12px 0;
  }
  .filters-desktop { display: none; }
  .filters-mobile { display: block; }

  .post-grid { grid-template-columns: 1fr; gap: 20px; }

  .feature-body { padding: 26px 22px 30px; }
  .feature-body h2 { font-size: 22px; }
  .feature-hook { font-size: 15px; }

  .subscribe-band { padding: 56px 0; }
  .subscribe-form input[type="email"] {
    min-width: 0; width: 100%;
    font-size: 16px; /* prevents iOS zoom */
  }
  .subscribe-form .btn {
    width: 100%; justify-content: center;
    min-height: 48px;
  }

  .hero-micro { font-size: 13.5px; }

  .floating-cta {
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
}
