/*
Theme Name: DeltaER Noticias
Theme URI: https://canletecwp.uno/deltaer
Author: DeltaER
Description: Portal de noticias para Delta Entre Rios con carrusel, grilla, clima, hora y enlaces multimedia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: deltaer
*/

:root {
  --ink: #1c2633;
  --muted: #667383;
  --line: #dde3ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --brand: #0b7a75;
  --brand-dark: #075652;
  --accent: #e23d28;
  --gold: #f1b43f;
  --shadow: 0 14px 35px rgba(23, 36, 52, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef2f5;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.top-strip {
  background: var(--brand-dark);
  color: #fff;
  font-size: 13px;
}
.top-strip__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.weather-ticker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}
.weather-ticker::-webkit-scrollbar { display: none; }
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  background: rgba(255,255,255,.08);
}
.brand-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-head__inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-logo__mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 7px;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0;
}
.site-logo__title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: 0;
}
.site-logo__title span { color: var(--accent); }
.site-logo__tagline {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}
.date-block {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
.main-nav {
  background: #111820;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.main-menu a {
  display: block;
  padding: 15px 14px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}
.main-menu a:hover,
.main-menu .current-menu-item > a {
  background: var(--accent);
}
.breaking {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.breaking__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.breaking strong {
  background: var(--accent);
  color: #fff;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 12px;
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 24px 0 42px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  border-bottom: 3px solid var(--line);
}
.section-title span {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
}
.carousel {
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 7px;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform .35s ease;
}
.hero-card {
  min-width: 100%;
  position: relative;
  min-height: 420px;
  background: #263545;
}
.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-card__body {
  position: absolute;
  inset: auto 0 0;
  color: #fff;
  padding: 54px 28px 26px;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,0));
}
.kicker {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-card h2 {
  margin: 11px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}
.meta {
  color: #d6dde5;
  font-size: 13px;
  font-weight: 700;
}
.carousel-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
}
.carousel-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,.55);
  cursor: pointer;
  font-size: 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  min-width: 0;
}
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card__body { padding: 12px; }
.news-card h3 {
  margin: 8px 0 7px;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sidebar { display: grid; gap: 18px; align-content: start; }
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.widget h2 {
  margin: 0;
  padding: 11px 13px;
  background: #111820;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}
.widget__body { padding: 13px; }
.media-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  background: #111820;
}
.signal-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.signal-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  background: var(--soft);
  border-radius: 4px;
  font-weight: 800;
}
.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.latest-list a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
}
.latest-list img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}
.site-footer {
  background: #111820;
  color: #dce4ec;
  padding: 28px 0;
}
.floating-social {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: grid;
  gap: 8px;
}
.floating-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
}
.floating-social .fb { background: #1877f2; }
.floating-social .ig { background: #d62976; }
.floating-social .x { background: #111; }
.floating-social .wa { background: #25d366; }
.post-shell {
  background: var(--paper);
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: min(5vw, 34px);
}
.post-shell h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 10px 0 12px;
}
.post-content {
  font-size: 18px;
}
.post-content p { margin: 0 0 1.1em; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-head__inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .date-block { text-align: left; }
}

@media (max-width: 680px) {
  .top-strip__inner { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .menu-toggle { display: block; padding: 13px 0; }
  .main-menu { display: none; width: 100%; }
  .main-menu.is-open { display: block; }
  .main-menu a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .news-grid { grid-template-columns: 1fr; }
  .hero-card,
  .hero-card img { min-height: 360px; height: 360px; }
  .hero-card__body { padding: 54px 18px 20px; }
  .floating-social { right: 10px; top: auto; bottom: 12px; transform: none; grid-auto-flow: column; }
  .floating-social a { width: 38px; height: 38px; }
}
