/* === ESTILOS BASE DEL DIARIO CLICK VALLE CHICO === */
* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #f6f7fb;
  color: #0f172a;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* === TOP BAR === */
.top-bar {
  background: #0f172a;
  color: #fff;
  font-size: 14px;
}
.top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.top-content .socials img {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  filter: invert(1);
}
.chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #1e293b;
  margin-left: 8px;
}

/* === HERO === */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25)),
              url('https://clickvallechico.com/diario/assets/images/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 0 80px;
  border-bottom: 2px solid #e5e7eb;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo { font-size: 48px; margin: 0; }
.logo span { font-weight: 800; }
.tagline { opacity: .9; margin: .25rem 0 0; }

/* === NAV PRINCIPAL === */
.nav-cats {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}
.nav-inner a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}
.nav-inner a:hover {
  background: #198754;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* === BANNER DE NOTICIAS DESTACADAS === */
.breaking-news {
  display: flex;
  align-items: center;
  background: #152238;
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 2px solid #198754;
}
.bn-title {
  flex: 0 0 auto;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  padding: 0 12px;
  border-right: 2px solid #198754;
  color: #00ffb3;
}
.bn-content {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}
.bn-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 55s linear infinite;
  animation-delay: 0s;
  will-change: transform;
}
.bn-item {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-right: 48px;
  font-size: 15px;
  transition: color 0.3s;
}
.bn-item:hover { color: #00ffb3; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === LAYOUT PRINCIPAL === */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
  margin: 20px 0;
}
.block-title { font-weight: 800; margin: 8px 0; }
.banner-news img { width: 100%; border-radius: 10px; }

.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; border: 2px dashed #94a3b8;
  border-radius: 12px; height: 250px;
}
.ad-slot.tall { height: 600px; }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .cover img { width: 100%; height: auto; display: block; }
.meta {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 12px;
  font-size: 14px; color: #475569;
}
.meta .cat { font-weight: 700; text-decoration: none; color: #2563eb; }
.title { padding: 0 12px; margin: .25rem 0; }
.excerpt { padding: 0 12px 12px; color: #334155; }
.ad-inline {
  grid-column: 1/-1; display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; border: 2px dashed #94a3b8;
  border-radius: 12px; height: 90px;
}

/* === FOOTER === */
.site-footer { border-top: 1px solid #e5e7eb; background: #fff; }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; padding: 20px 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .ad-slot.tall { height: 250px; }
}
@media (max-width: 640px) {
  .logo { font-size: 36px; }
  .news-grid { grid-template-columns: 1fr; }
  .bn-marquee { animation-duration: 40s; }
}