:root {
  /* Paleta de colores - Tono editorial periodístico */
  --primary: #c1121f;
  --primary-dark: #780000;
  --secondary: #003049;
  --accent: #fca311;
  --bg-main: #f3f4f6;
  --bg-secondary: #f8f9fa;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.08);

  /* Contenedor máximo: de 1400px a 1160px para que no llegue al borde */
  --max-w: 1160px;
  
  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* === BARRA SUPERIOR === */
.info-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  font-family: var(--font-ui);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
  overflow: visible;
  max-height: 60px;
  opacity: 1;
}

.info-container {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.datetime {
  display: flex;
  gap: 16px;
  color: #94a3b8;
}

.date, .time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.date i, .time i {
  font-size: 11px;
  color: #475569;
}

.quotes {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 12px;
  color: #94a3b8;
}

.quote-item i {
  font-size: 11px;
  color: #64748b;
}

.quote-item span {
  color: #e2e8f0;
  font-weight: 500;
}

.quote-item--highlight span {
  color: #4ade80;
}

.quote-item--muted {
  opacity: 0.75;
}

@media (max-width: 680px) {
  .quote-item--campo { display: none; }
}

@media (max-width: 520px) {
  .quote-item--muted { display: none; }
}

/* === HEADER === */
.header {
  background: white;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header.header-compact {
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.header.header-compact .header-container--stacked {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  text-align: left;
  justify-items: unset;
}

.header.header-compact .logo--centered {
  justify-content: flex-start;
}

.header.header-compact .logo-subtitle {
  display: none;
}

.header.header-compact .logo-text {
  font-size: 17px;
}

.header.header-compact .logo-icon {
  font-size: 20px;
}

.header.header-compact .nav-dropdown {
  width: auto;
  flex: 1;
  max-width: 300px;
}

.header-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
}

.header.header-compact .header-bottom-row {
  width: auto;
  flex: 1;
  max-width: 320px;
}

.search-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s;
}

.search-toggle-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Info bar hides on scroll */
.info-bar {
  transition: opacity 0.2s ease;
  overflow: hidden;
  max-height: 60px;
  opacity: 1;
}

.info-bar.info-bar-scrolled {
  max-height: 60px;
  padding: inherit;
  opacity: 1;
}

.header-container {
  max-width: var(--max-w);
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  font-size: 28px;
  color: var(--primary);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
}

/* Búsqueda */
.search-box {
  position: relative;
  flex: 0 1 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 2px solid var(--border);
  border-radius: 25px;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Navegación */
.nav-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.nav-links button {
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 20px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links button:hover,
.nav-links button.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 20px auto;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* === DESTACADA === */
.featured-card {
  max-width: var(--max-w);
  margin: 20px auto;
  padding: 0 20px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  cursor: pointer;
  transition: none;
  animation: fadeIn 0.6s ease-out;
}

.featured-card > * {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover > * {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.featured-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-card:hover img {
  transform: scale(1.03);
}

.featured-content {
  padding: 24px 28px 28px;
  background: #fff;
}

.featured-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  margin: 12px 0;
  color: var(--text-primary);
}

.featured-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.featured-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
}

.home-feed-shell {
  max-width: var(--max-w);
  margin: 0 auto 20px;
  padding: 0 20px;
}

.section-heading {
  padding: 0 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-ui);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 700px;
}

.section-stats {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--secondary);
  box-shadow: 0 4px 12px var(--shadow);
}

.ad-banner {
  max-width: var(--max-w);
  margin: 0 auto 24px;
  padding: 20px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #132a3b 0%, #003049 100%);
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 48, 73, 0.18);
}

/* Wrapper para dar padding lateral al banner principal */
#homeLeadAd {
  padding: 0 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
#homeLeadAd .ad-banner {
  margin: 0 0 0;
  padding: 20px;
}

.ad-banner-copy small {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  font-size: 10px;
  font-family: var(--font-ui);
  font-weight: 800;
}

.ad-banner-copy h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: white;
}

.ad-banner-copy p {
  color: rgba(255,255,255,0.86);
  margin-bottom: 14px;
  font-size: 15px;
}

.ad-banner-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 800;
  font-family: var(--font-ui);
  font-size: 13px;
}

.ad-banner img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
}

/* === CARRUSEL DE PUBLICIDAD ROTATIVA === */
.ad-carousel {
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 48, 73, 0.18);
}

.ad-carousel-track {
  position: relative;
  min-height: 130px;
}

.ad-carousel-slide {
  display: none;
  animation: adFadeIn 0.55s ease;
}

.ad-carousel-slide.active {
  display: grid;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

@keyframes adFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.ad-carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  background: rgba(0,30,50,0.94);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ad-carousel-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}

.ad-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.ad-carousel-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.ad-carousel-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 2px;
}

/* === OVERLAY DE BÚSQUEDA === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(4px);
}

.search-overlay.open {
  opacity: 1;
}

.search-overlay-inner {
  width: min(100%, 680px);
  padding: 0 20px;
}

.search-overlay-bar {
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.search-overlay-bar i:first-child {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.search-overlay-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: transparent;
}

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

.search-overlay-bar button {
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.search-overlay-bar button:hover {
  background: var(--primary);
  color: #fff;
}

.search-overlay-hint {
  margin-top: 10px;
  padding: 0 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui);
}

/* === BOTÓN VOLVER ARRIBA === */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(193,18,31,0.38);
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(120,0,0,0.35);
}

/* === GRID DE NOTICIAS === */
.news-grid {
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
  padding: 8px 20px 20px;
}

.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  cursor: pointer;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover img {
  transform: scale(1.04);
}

.card h3 {
  padding: 14px 14px 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.card p {
  padding: 0 14px 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card .meta {
  padding: 0 14px 11px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  display: flex;
  gap: 10px;
  align-items: center;
}

.tag {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  display: inline-block;
  margin: 12px 14px 0;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
}

/* === PUBLICIDAD NATIVA (tarjeta en el grid de noticias) === */
/* Misma estructura visual que .card — imagen arriba, texto abajo */
.ad-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ad-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ad-card-media {
  position: relative;
  overflow: hidden;
}

.ad-card-media img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.ad-card-inner:hover .ad-card-media img {
  transform: scale(1.04);
}

.ad-card-placeholder {
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: var(--text-muted);
  font-size: 2.5rem;
}

.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.ad-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ad-card-sponsor {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.ad-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 9px 14px;
  background: var(--accent);
  color: var(--text-primary);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
  transition: background 0.2s;
}

.ad-card-inner:hover .ad-card-cta {
  background: #e69500;
}

/* === BOTÓN CARGAR MÁS === */
.load-more-container {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
}

.load-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.4);
}

/* === PÁGINA DE ARTÍCULO === */
.article-page {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px;
  animation: fadeIn 0.5s ease-out;
}

.back-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  margin-bottom: 25px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(-5px);
}

.article-page article {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.article-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.article-page h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  margin: 20px 0;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-page p {
  font-size: 18px;
  line-height: 1.8;
  margin: 20px 0;
  color: var(--text-primary);
  text-align: justify;
}

.article-page p:first-letter {
  font-size: 3.5em;
  line-height: 0.9;
  float: left;
  margin: 5px 10px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
}

/* Elementos especiales del artículo */
.article-quote {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--secondary);
  padding: 30px;
  margin: 30px 0;
  border-left: 5px solid var(--primary);
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.article-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.article-gallery img:hover {
  transform: scale(1.05);
}

.caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

.article-audio {
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.article-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Compartir en artículo */
.share-article {
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  text-align: center;
}

.share-article h4 {
  margin-bottom: 15px;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.share-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: var(--font-ui);
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.copy {
  background: var(--text-secondary);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === NOTAS RELACIONADAS === */
.related-news {
  margin: 50px 0;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.related-news h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* === FOOTER === */
/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 60px;
}

.footer-top-bar {
  padding: 52px 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
}

.footer-top-inner {
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo i {
  color: var(--primary);
  font-size: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links-col ul li a::before {
  content: '→';
  font-size: 11px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.footer-links-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links-col ul li a:hover::before {
  opacity: 1;
}

.footer-contact-col p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-col p i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 22px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.footer-cta-btn:hover {
  background: #a8001b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,18,31,0.35);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom a, .footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Footer dentro de nota */
.footer--article {
  margin-top: 0;
}

/* ===== MODALES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--primary);
}

.modal-content h3 {
  font-family: var(--font-display);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content input,
.modal-content textarea {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ad-card--native y ad-card--article ahora usan .ad-card base */

.article-lead {
  font-size: 21px !important;
  line-height: 1.75 !important;
  color: var(--secondary) !important;
  margin: 18px 0 22px !important;
}

.article-lead:first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    order: 3;
    flex: 1 1 100%;
  }
  
  .nav-links {
    order: 2;
    justify-content: center;
  }
  
  .logo-text {
    font-size: 22px;
  }
  
  .featured-content h2 {
    font-size: 28px;
  }
  
  .article-page h1 {
    font-size: 32px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .article-page article {
    padding: 25px 20px;
  }

  .ad-banner {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .ad-banner img {
    height: 180px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .info-container,
  .datetime,
  .quotes {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Animación de carga */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}


#homeModules {
  display: grid;
  gap: 20px;
  margin: 20px auto 28px;
  max-width: var(--max-w);
  padding: 0 20px;
}

.home-module {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.module-head h2 {
  margin: 6px 0 4px;
}

.module-head p {
  margin: 0;
  color: #617085;
}

.module-arrows, .module-link {
  flex-shrink: 0;
}

.module-arrows {
  display: flex;
  gap: 8px;
}

.module-arrows button, .module-link {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #12263a;
  border-radius: 999px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.module-arrows button:hover, .module-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.hero-slider-track {
  display: flex;
  transition: transform .45s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  height: clamp(260px, 36vh, 380px);
  cursor: pointer;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 14, 24, 0.08) 0%, rgba(3, 14, 24, 0.8) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
}

.hero-slide-content h3 {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  margin: 10px 0;
  max-width: 760px;
}

.hero-slide-content p {
  margin: 0 0 14px;
  max-width: 760px;
  color: rgba(255,255,255,0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.hero-slider-dots {
  position: absolute;
  left: 24px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.hero-slider-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}

.hero-slider-dots button.active {
  background: #fff;
}

.youtube-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.youtube-main {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.youtube-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.youtube-main-copy {
  padding: 16px 18px 18px;
}

.youtube-main-copy h3 {
  margin: 8px 0 6px;
}

.youtube-main-copy p {
  margin: 0;
  color: #657285;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.youtube-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.youtube-list-empty {
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  color: #64748b;
}

.youtube-list-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
}

.youtube-list-item img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.youtube-list-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  color: #102033;
}

.youtube-list-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: #6b7786;
}

.youtube-list-item.active, .youtube-list-item:hover {
  border-color: rgba(214, 40, 57, 0.35);
  box-shadow: 0 10px 24px rgba(214, 40, 57, 0.08);
}


.youtube-fallback-strip {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px;
}

.youtube-fallback-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.youtube-fallback-strip-head strong {
  color: #102033;
  font-size: 1rem;
}

.youtube-fallback-strip-head span {
  color: #6b7786;
  font-size: 0.88rem;
}

.youtube-fallback-strip-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.youtube-fallback-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.youtube-fallback-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.youtube-fallback-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #102033;
  line-height: 1.28;
}

.youtube-fallback-card span {
  display: block;
  margin-top: 6px;
  color: #6b7786;
  font-size: 0.82rem;
}

.youtube-fallback-card:hover {
  border-color: rgba(214, 40, 57, 0.35);
  box-shadow: 0 10px 24px rgba(214, 40, 57, 0.08);
}

.category-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-highlight {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.category-highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.category-highlight-head h3 {
  margin: 0;
}

.category-highlight-head button {
  border: 0;
  background: transparent;
  color: #d62839;
  font-weight: 700;
  cursor: pointer;
}

.category-main-card, .category-mini-card {
  cursor: pointer;
}

.category-main-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.category-main-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

.category-main-content {
  min-width: 0;
}

.category-main-content h4 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-main-content p, .category-mini-card p {
  margin: 0;
  color: #5f6f81;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-mini-grid {
  display: grid;
  gap: 10px;
}

.category-mini-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f7f9fc;
}

.category-mini-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.category-mini-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  color: #102033;
}

.category-native-ad {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f7f9fc;
}

.category-native-ad .ad-card-inner {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 124px;
}

.category-native-ad .ad-card-media,
.category-native-ad .ad-card-placeholder {
  height: 100%;
}

.category-native-ad .ad-card-media img,
.category-native-ad .ad-card-placeholder {
  height: 100%;
  min-height: 124px;
}

.category-native-ad .ad-card-body {
  padding: 12px;
  gap: 4px;
}

.category-native-ad .ad-card-sponsor {
  font-size: 16px;
}

.category-native-ad .ad-card-desc {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.category-native-ad .ad-card-cta {
  padding: 7px 12px;
  font-size: 11px;
}



@media (max-width: 920px) {
  .youtube-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .youtube-main,
  .youtube-list {
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .youtube-shell, 
.youtube-fallback-strip {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px;
}

.youtube-fallback-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.youtube-fallback-strip-head strong {
  color: #102033;
  font-size: 1rem;
}

.youtube-fallback-strip-head span {
  color: #6b7786;
  font-size: 0.88rem;
}

.youtube-fallback-strip-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.youtube-fallback-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.youtube-fallback-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.youtube-fallback-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #102033;
  line-height: 1.28;
}

.youtube-fallback-card span {
  display: block;
  margin-top: 6px;
  color: #6b7786;
  font-size: 0.82rem;
}

.youtube-fallback-card:hover {
  border-color: rgba(214, 40, 57, 0.35);
  box-shadow: 0 10px 24px rgba(214, 40, 57, 0.08);
}

.category-highlights-grid {
    grid-template-columns: 1fr;
  }

  .agenda-stage {
    border-radius: 14px;
  }
}

@media (max-width: 720px) {
  .home-module {
    padding: 18px;
  }

  .module-head {
    flex-direction: column;
    align-items: stretch;
  }

  .module-arrows {
    justify-content: flex-start;
  }

  .hero-slide, .hero-slide img {
    height: clamp(220px, 50vw, 320px);
    min-height: unset;
  }

  .hero-slide-content {
    padding: 18px;
  }

  .hero-slide-content h3 {
    font-size: 1.45rem;
  }

  .youtube-shell {
    gap: 12px;
  }

  .youtube-main {
    overflow: hidden;
  }

  .youtube-frame {
    min-height: 220px;
  }

  .youtube-list-item, .category-main-card, .category-mini-card {
    grid-template-columns: 1fr;
  }

  .youtube-list-item img {
    height: 160px;
  }

  .category-main-card img {
    height: 220px;
  }

  .category-mini-card img {
    height: 150px;
  }
}


.article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  color: var(--text-secondary);
  text-align: center;
}

.article-loading i {
  font-size: 32px;
  color: var(--primary);
}

.article-error i {
  color: var(--primary-dark);
}


/* === HEADER ESTILO EDITORIAL (STACKED) === */
.header-container--stacked {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.logo--centered {
  justify-content: center;
}

.header-container--stacked .header-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  justify-content: center;
}

.header-container--stacked .nav-dropdown {
  flex: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.nav-menu-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.nav-menu-toggle-copy strong {
  font-size: 1rem;
  color: #102033;
}

.nav-menu-toggle-copy small {
  color: #6b7786;
  font-family: var(--font-ui);
}

.nav-menu-toggle.has-live {
  border-color: rgba(220, 38, 38, 0.2);
}

.nav-live-indicator,
.menu-inline-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-weight: 800;
  font-family: var(--font-ui);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav-live-dot,
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 120;
}

.nav-menu.open .nav-menu-panel {
  display: grid;
  gap: 6px;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: #fff;
  color: #102033;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.nav-menu-item:hover,
.nav-menu-item.active {
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.nav-menu-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--category-color, var(--primary));
  flex: 0 0 auto;
}

.nav-menu-item--youtube { --category-color: #dc2626; }
.nav-menu-item--radio { --category-color: #d97706; }

/* old button nav hidden in new layout context */
.header-container--stacked .nav-links { display: none; }

/* === CATEGORY COLORS === */
.card {
  border-top: 4px solid var(--category-color, transparent);
}

.tag {
  background: var(--category-color, var(--primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 30px);
}

.card h3,
.card p {
  overflow-wrap: anywhere;
}

.card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-module-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.youtube-badge--live {
  background: #fee2e2;
  color: #b91c1c;
}

/* === RADIO SECTION === */
.radio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 18px;
  align-items: start;
}

.radio-main-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.radio-main-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  background: linear-gradient(135deg, #102033, #d97706);
}

.radio-main-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-pill,
.radio-track-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.radio-meta,
.radio-track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #5f6f81;
  font-family: var(--font-ui);
}

.radio-track-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  font-size: 0.84rem;
}

.radio-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #102033;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 700;
  font-family: var(--font-ui);
}

.radio-cta--secondary {
  background: #e8eef6;
  color: #102033;
}

.radio-player-panel {
  display: grid;
  gap: 14px;
}

.radio-featured-card,
.radio-playlist-card,
.radio-placeholder-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}

.radio-featured-card {
  display: grid;
  gap: 14px;
}

.radio-featured-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.radio-featured-card h3 {
  margin: 0;
}

.radio-featured-card p,
.radio-playlist-head p,
.radio-placeholder-card p {
  margin: 0;
  color: #617085;
}

.radio-featured-card audio {
  width: 100%;
}

.radio-playlist-card {
  display: grid;
  gap: 14px;
}

.radio-playlist-head {
  display: grid;
  gap: 6px;
}

.radio-playlist-items {
  display: grid;
  gap: 10px;
}

.radio-playlist-item {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.radio-playlist-item:hover,
.radio-playlist-item.active {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.radio-playlist-index {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-weight: 800;
}

.radio-playlist-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.radio-playlist-copy strong,
.radio-playlist-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-playlist-copy small {
  color: #617085;
}

.radio-playlist-icon {
  color: #b45309;
}

.radio-placeholder-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 100%;
}

.radio-placeholder-card i {
  font-size: 1.7rem;
  color: #d97706;
}

/* === PANORAMA POR SECCIONES === */
.category-highlight {
  border-top: 4px solid var(--category-color, #d62839);
}

.category-highlight-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--category-color, #d62839);
  margin-right: 8px;
}

.category-highlight-head h3 {
  display: flex;
  align-items: center;
}

.category-main-content p,
.category-mini-card p {
  -webkit-line-clamp: 2;
}

.category-mini-card {
  align-items: start;
}

/* === BANNER PUBLICITARIO FINAL === */
.advertise-banner-wrap {
  max-width: var(--max-w);
  margin: 8px auto 42px;
  padding: 0 20px;
}

.advertise-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fff2df 0%, #fff7ed 55%, #fff 100%);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 22px;
  padding: 22px 24px;
  text-decoration: none;
  color: #102033;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.advertise-banner-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-weight: 800;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
}

.advertise-banner h3 {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.advertise-banner p {
  margin: 0;
  color: #5f6f81;
}

.advertise-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .radio-shell,
  .radio-main-card,
  .advertise-banner {
    grid-template-columns: 1fr;
  }

  .youtube-module-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
  }

  .header-container--stacked {
    padding: 14px 16px;
    gap: 12px;
  }

  .logo {
    gap: 10px;
  }

  .logo-icon {
    font-size: 28px;
  }

  .logo-text {
    font-size: 22px;
  }

  .logo-subtitle {
    font-size: 11px;
  }

  .header-container--stacked .header-bottom-row,
  .nav-dropdown {
    width: 100%;
  }

  .search-box input {
    padding: 12px 40px 12px 15px;
  }

  .info-container {
    justify-content: center;
    text-align: center;
  }

  .card h3 {
    font-size: 1.08rem;
  }

  .section-heading {
    padding: 0 20px;
  }

  .load-more-container {
    margin: 28px 0 22px;
  }
}

@media (max-width: 720px) {
  .module-head h2 {
    font-size: 1.5rem;
  }

  .youtube-fallback-strip {
    padding: 14px;
  }

  .youtube-fallback-strip-rail {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .youtube-fallback-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .hero-slide-content h3 {
    font-size: 1.3rem;
  }

  .youtube-list-item img {
    height: 140px;
  }

  .radio-main-card img {
    min-height: 220px;
  }

  .radio-playlist-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .radio-playlist-icon {
    display: none;
  }

  .radio-main-copy {
    padding: 16px;
  }

  .category-highlight {
    padding: 14px;
  }

  .category-native-ad .ad-card-inner {
    grid-template-columns: 1fr;
  }

  .category-native-ad .ad-card-media img,
  .category-native-ad .ad-card-placeholder {
    min-height: 170px;
  }

  .category-native-ad .ad-card-body {
    padding: 12px 12px 14px;
  }

  .category-main-card img {
    height: 200px;
  }

  .advertise-banner {
    padding: 18px;
  }
}


.home-module:empty {
  display: none;
}

#homeLeadAd:empty,
#featured-section:empty {
  display: none;
}


a.hero-slide,
a.featured-card,
a.category-main-card,
a.category-mini-card,
a.card-link-wrap { color: inherit; text-decoration: none; display: block; }
.card.card--linked { position: relative; }
.card.card--linked .card-link-wrap { display:block; height:100%; }
.card.card--linked h3, .card.card--linked p, .card.card--linked .meta, .card.card--linked .tag { pointer-events:none; }
.standalone-header { border-bottom:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.96); position:sticky; top:0; z-index:30; backdrop-filter: blur(10px); }
.standalone-header .header-inner { width:min(1120px, calc(100% - 32px)); margin:0 auto; min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.standalone-header .brand-link, .standalone-footer .brand-link { display:inline-flex; align-items:center; gap:14px; color:inherit; text-decoration:none; }
.standalone-header .brand-logo, .standalone-footer .brand-logo { width:46px; height:46px; border-radius:14px; display:block; }
.standalone-header .brand-copy strong, .standalone-footer .brand-copy strong { display:block; font-size:1rem; }
.standalone-header .brand-copy span, .standalone-footer .brand-copy span { display:block; font-size:.86rem; color:#6b7280; }
.standalone-header .header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.standalone-header .header-actions a { color:#111827; text-decoration:none; font-weight:600; }
.standalone-page { padding:24px 0 64px; }
.standalone-page .article-shell { width:min(860px, calc(100% - 32px)); margin:0 auto; }
.standalone-breadcrumbs { display:flex; gap:8px; flex-wrap:wrap; font-size:.95rem; color:#6b7280; margin-bottom:18px; }
.standalone-breadcrumbs a { color:#374151; text-decoration:none; }
.standalone-cover { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:18px; margin:18px 0 16px; background:#eef2f7; }
.article-page-standalone .tag { display:inline-flex; }
.article-page-standalone h1 { font-size:clamp(2rem, 3.3vw, 3.2rem); line-height:1.08; margin:12px 0 10px; }
.article-page-standalone .article-lead { font-size:1.14rem; color:#374151; margin-bottom:18px; }
.standalone-footer { border-top:1px solid rgba(17,24,39,.08); background:#fff; padding:26px 0 34px; }
.standalone-footer .footer-inner { width:min(1120px, calc(100% - 32px)); margin:0 auto; display:flex; justify-content:space-between; gap:20px; align-items:center; flex-wrap:wrap; }
.standalone-footer .footer-links { display:flex; gap:12px; flex-wrap:wrap; }
.standalone-footer .footer-links a { color:#374151; text-decoration:none; }
@media (max-width:720px){ .standalone-header .header-inner, .standalone-footer .footer-inner { width:min(100% - 24px, 1120px); } .standalone-header .header-inner { align-items:flex-start; padding:14px 0; } .standalone-header .header-actions { width:100%; } .standalone-page .article-shell { width:min(100% - 24px, 860px); } }

/* ============================================================
   PUBLICIDADES INTER-MÓDULO
   ============================================================ */

.inter-module-ad-wrap {
  /* El wrapper se muestra/oculta por JS según si hay ad */
}

.inter-module-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff8ed 0%, #fffbf5 100%);
  border: 1px solid rgba(252, 163, 17, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(252, 163, 17, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inter-module-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(252, 163, 17, 0.18);
}

.inter-module-ad__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inter-module-ad__copy small {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b45309;
}

.inter-module-ad__copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inter-module-ad__copy span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inter-module-ad__media {
  flex-shrink: 0;
  width: 90px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
}

.inter-module-ad__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inter-module-ad__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .inter-module-ad {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }
  .inter-module-ad__media { display: none; }
  .inter-module-ad__copy strong { font-size: 15px; }
  .inter-module-ad__cta { grid-column: 2; grid-row: 1 / 3; }
}

/* ============================================================
   AJUSTES RESPONSIVOS FINALES
   ============================================================ */

/* Asegurar que la section-heading tenga padding correcto */
.section-heading {
  padding: 0 0 10px;
}

/* Breadcrumbs con padding */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 16px auto;
  padding: 0 20px;
}

/* Sección de noticias heading */
.home-feed-shell .section-heading {
  padding: 0 0 10px;
}

/* Article page más contenida */
.article-page {
  max-width: 820px;
  margin: auto;
  padding: 24px 20px;
}

/* Advertise banner wrap ya tiene padding, evitar doble */
.advertise-banner-wrap {
  max-width: var(--max-w);
  margin: 8px auto 36px;
  padding: 0 20px;
}

/* Section heading responsive */
@media (max-width: 768px) {
  #homeModules {
    padding: 0 14px;
    gap: 14px;
    margin: 14px auto 20px;
  }

  .home-module {
    padding: 16px;
    border-radius: 14px;
  }

  .news-grid {
    padding: 6px 14px 14px;
    gap: 14px;
  }

  .featured-card {
    padding: 0 14px;
    margin: 14px auto;
  }

  .inter-module-ad {
    padding: 13px 14px;
  }

  #homeLeadAd {
    padding: 0 14px;
  }
}

/* ============================================================
   REFINAMIENTOS ESTÉTICOS GENERALES
   ============================================================ */

/* Separación más elegante entre secciones */
.home-feed-shell {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 4px;
}

/* Section heading más compacto */
.section-heading h2 {
  font-size: 28px;
}

/* Botón cargar más más sobrio */
.load-more-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 48, 73, 0.2);
}

.load-more-btn:hover {
  background: #004060;
  transform: translateY(-2px);
}

/* Module head más compacto */
.module-head {
  margin-bottom: 14px;
}

.module-head h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin: 4px 0 3px;
}

/* Sección destacada también con ancho controlado cuando está dentro de un iframe */
#featured-section {
  max-width: var(--max-w);
  margin: 0 auto;
}


/* ============================================================
   AD BANNER INTER-MÓDULO (mismo estilo que el banner principal)
   ============================================================ */

/* La variante --intermodule usa exactamente el mismo .ad-banner
   pero con un tono más claro para diferenciarse del lead */
.ad-banner--intermodule {
  background: linear-gradient(135deg, #0a2233 0%, var(--secondary) 100%);
  margin: 0;
}

/* Wrapper del inter-module: hereda el padding de #homeModules */
.inter-module-ad-wrap {
  /* sin padding extra, el homeModules ya lo tiene */
}

/* ============================================================
   AD INLINE EN ARTÍCULO
   ============================================================ */

.ad-article-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #132a3b 0%, #003049 100%);
  box-shadow: 0 6px 20px rgba(0,48,73,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-article-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,48,73,0.24);
}

.ad-article-inline__copy {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.ad-article-inline__copy .ad-badge {
  position: static;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  width: fit-content;
  backdrop-filter: none;
}

.ad-article-inline__copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ad-article-inline__copy p {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0;
}

.ad-article-inline__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 4px;
}

.ad-article-inline__media {
  overflow: hidden;
  flex-shrink: 0;
}

.ad-article-inline__media img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.ad-article-inline:hover .ad-article-inline__media img {
  transform: scale(1.04);
}

@media (max-width: 560px) {
  .ad-article-inline {
    grid-template-columns: 1fr;
    margin: 24px 0;
  }
  .ad-article-inline__copy {
    padding: 16px 16px 14px;
    gap: 6px;
  }
  .ad-article-inline__copy strong {
    font-size: 18px;
    line-height: 1.15;
  }
  .ad-article-inline__copy p {
    font-size: 13px;
    line-height: 1.45;
  }
  .ad-article-inline__media {
    order: -1;
    height: 120px;
  }
  .ad-article-inline__media img {
    min-height: 120px;
  }
  .ad-article-inline__cta {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ============================================================
   RESPONSIVE DEL AD-BANNER (principal + inter-módulo)
   ============================================================ */

@media (max-width: 600px) {
  .ad-banner,
  .ad-banner--intermodule {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ad-banner img {
    height: 160px;
  }
}


/* ============================================================
   AGENDA AGROPECUARIA — FLYERS COMPLETOS, LOOP Y SWIPE
   ============================================================ */

.agenda-module-head {
  align-items: center;
}

.agenda-desktop-arrows {
  display: flex;
}

.agenda-stage,
.agenda-stage-final {
  position: relative;
  overflow: hidden;
  padding: 14px 0 22px;
  border-radius: 20px;
  background: transparent;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.agenda-stage.is-dragging,
.agenda-stage-final.is-dragging {
  cursor: grabbing;
}

.agenda-track,
.agenda-track-final {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.agenda-flyer-slide,
.agenda-flyer-slide-final {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  height: clamp(310px, 52vw, 535px);
  width: auto;
  max-width: 86vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 14px;
  overflow: visible;
  cursor: pointer;
  opacity: 0.58;
  transform: scale(0.93);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  position: relative;
  line-height: 0;
}

.agenda-flyer-slide.active,
.agenda-flyer-slide-final.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  filter: saturate(1.05);
}

.agenda-flyer-slide img,
.agenda-flyer-slide-final img {
  height: 100%;
  width: auto;
  max-width: min(86vw, 680px);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.agenda-flyer-slide.active img,
.agenda-flyer-slide-final.active img {
  box-shadow: 0 20px 52px rgba(15, 23, 42, .30);
}

.agenda-flyer-slide::before,
.agenda-flyer-slide::after,
.agenda-flyer-slide-final::before,
.agenda-flyer-slide-final::after {
  display: none !important;
  content: none !important;
}

.agenda-flyer-slide:focus-visible,
.agenda-flyer-slide-final:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 6px;
}

@media (max-width: 760px) {
  .agenda-desktop-arrows {
    display: none;
  }
  .agenda-stage,
  .agenda-stage-final {
    padding: 10px 0 18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }
  .agenda-flyer-slide,
  .agenda-flyer-slide-final {
    height: clamp(285px, 76vw, 430px);
    max-width: 88vw;
  }
  .agenda-flyer-slide img,
  .agenda-flyer-slide-final img {
    max-width: 88vw;
  }
}

@media (min-width: 1100px) {
  .agenda-flyer-slide,
  .agenda-flyer-slide-final {
    height: 520px;
  }
}

/* ============================================================
   LIGHTBOX FLYERS AGENDA — CLICK SEGURO + SWIPE
   ============================================================ */

body.agenda-modal-open {
  overflow: hidden;
}

.agenda-lightbox,
.agenda-lightbox-final {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s ease;
  backdrop-filter: blur(8px);
  padding: 24px;
}

.agenda-lightbox.open,
.agenda-lightbox-final.open {
  opacity: 1;
}

.agenda-lb-img-wrap {
  max-width: 92vw;
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agenda-lb-img-wrap img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
  transition: opacity .12s ease;
}

.agenda-lb-caption {
  max-width: min(760px, 88vw);
  color: rgba(255,255,255,.86);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agenda-lb-caption strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.agenda-lb-caption span {
  color: rgba(255,255,255,.74);
}

.agenda-lb-close,
.agenda-lb-arrow {
  position: fixed;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s ease, transform .18s ease;
}

.agenda-lb-close {
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 18px;
}

.agenda-lb-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px;
  font-size: 18px;
}

.agenda-lb-prev { left: 18px; }
.agenda-lb-next { right: 18px; }

.agenda-lb-close:hover,
.agenda-lb-arrow:hover {
  background: var(--primary);
}

.agenda-lb-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.agenda-lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-family: var(--font-ui);
  background: rgba(0,0,0,.42);
  padding: 5px 14px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .agenda-lightbox,
  .agenda-lightbox-final {
    padding: 14px;
  }
  .agenda-lb-img-wrap img {
    max-width: 94vw;
    max-height: 78vh;
  }
  .agenda-lb-arrow {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .agenda-lb-arrow:hover {
    transform: none;
  }
  .agenda-lb-prev { left: 16px; }
  .agenda-lb-next { right: 16px; }
  .agenda-lb-counter {
    bottom: 26px;
  }
}


/* ============================================================
   BANNER DE SECCIÓN / CATEGORÍA
   ============================================================ */

.category-section-banner {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.cat-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px var(--shadow);
}

.cat-banner-inner:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.cat-banner-inner img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cat-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-banner-copy strong {
  font-size: 15px;
  color: var(--text-primary);
}

.cat-banner-copy p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   NATIVE AD — ROTACIÓN
   ============================================================ */

.ad-native-carousel {
  position: relative;
}

.ad-native-slide-wrap {
  display: none;
}

.ad-native-slide-wrap.active {
  display: block;
  animation: fadeInNative 0.45s ease;
}

@keyframes fadeInNative {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ad-native-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.ad-native-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}

.ad-native-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ============================================================
   ARTICLE HEADER BAR (dentro de nota)
   ============================================================ */

.article-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.article-header-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 20px;
  justify-content: space-between;
}

.article-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.article-back-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.article-header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex: 1;
  justify-content: center;
}

.article-header-logo i {
  color: var(--primary);
  font-size: 18px;
}

.article-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-ui);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .article-header-info { display: none; }
  .article-header-logo span { display: none; }
}

/* Publicidad post-share */
.ad-article-inline--post {
  margin-top: 24px;
}

/* ============================================================
   SEGUIR LEYENDO
   ============================================================ */

.keep-reading-section {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 48px 20px;
  margin-top: 0;
}

.keep-reading-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.keep-reading-head {
  margin-bottom: 28px;
}

.keep-reading-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--text-primary);
  margin: 4px 0 0;
}

.keep-reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ============================================================
   HEADER CON FONDO — INDEX Y NOTA
   ============================================================ */

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

/* El fondo del header en scroll compacto */
.header.header-compact {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Franja decorativa roja encima del header */
.header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #ff4d6d 60%, var(--primary) 100%);
}

/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ============================================================
/* ============================================================
   PANEL DE CLIMA EXTENDIDO (7 DÍAS)
   ============================================================ */

.weather-panel {
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(480px, 96vw);
  background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
  color: #e5eefb;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.weather-panel.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.weather-panel-inner {
  padding: 20px;
}

.weather-panel-current {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.wpc-icon {
  font-size: 42px;
  line-height: 1;
}

.wpc-temp {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
}

.wpc-label {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 4px;
}

.wpc-desc {
  font-size: 13px;
  color: #e2e8f0;
  margin-top: 2px;
}

.weather-panel-forecast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.wf-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s;
}

.wf-day:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.14);
}

.wf-day-label {
  font-size: 10px;
  color: #dbeafe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wf-day-icon {
  font-size: 20px;
  line-height: 1;
}

.wf-day-temps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.wf-max {
  font-size: 13px;
  color: #f8fafc;
  font-weight: 600;
}

.wf-min {
  font-size: 11px;
  color: #cbd5e1;
}

.wf-rain {
  font-size: 10px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wf-rain i { font-size: 9px; }

.wf-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #cbd5e1;
  padding: 20px;
}

.weather-panel-footer {
  margin-top: 14px;
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
}

@media (max-width: 480px) {
  .weather-panel-forecast {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   TICKER DE ÚLTIMAS NOTICIAS
   ============================================================ */

.news-ticker {
  background: var(--primary, #c1121f);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 36px;
  position: relative;
  z-index: 50;
}

.ticker-label {
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  font-family: var(--font-ui, system-ui);
}

.ticker-label i {
  color: #facc15;
  font-size: 12px;
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
  height: 100%;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-ui, system-ui);
}

.ticker-item:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ticker-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.15);
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff !important;
}

.ticker-sep {
  color: rgba(255,255,255,0.25);
  font-size: 9px;
  padding: 0 18px;
}

.ticker-placeholder {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 0 20px;
}

/* Ajuste: el ticker sticky debajo del header */
.header + .weather-panel,
.header ~ .weather-panel {
  position: fixed;
  top: auto;
}





/* ============================================================
   WIDGET QUINIELA / JUEGOS DE AZAR
   ============================================================ */
.quiniela-head .module-link {
  white-space: nowrap;
}

.quiniela-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #7f1d1d 100%);
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.quiniela-card::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.quiniela-card-main, .quiniela-card-side {
  position: relative;
  z-index: 1;
}

.quiniela-draw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.quiniela-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-weight: 800;
}

.quiniela-results-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 10px;
}

.quiniela-results-grid--compact {
  margin-top: 10px;
}

.quiniela-number-card {
  background: rgba(255,255,255,0.92);
  color: #111827;
  border-radius: 15px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.quiniela-number-card span {
  display: block;
  color: #64748b;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quiniela-number-card strong {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.quiniela-card-side {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 16px;
  font-family: var(--font-ui);
}

.quiniela-card-side small {
  color: rgba(255,255,255,0.58);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
}

.quiniela-card-side strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1rem;
}

.quiniela-card-side p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  line-height: 1.45;
}

.quiniela-warning {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 10px;
  color: rgba(255,255,255,0.7) !important;
}

.quiniela-more {
  margin-top: 12px;
  font-family: var(--font-ui);
}

.quiniela-more summary {
  cursor: pointer;
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .quiniela-card {
    grid-template-columns: 1fr;
  }
  .quiniela-results-grid {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
  }
  .quiniela-card-side {
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .quiniela-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quiniela-number-card strong {
    font-size: 1.45rem;
  }
}


/* ============================================================
   WIDGET AVISOS NECROLÓGICOS
   ============================================================ */
.necrologicos-head .module-link {
  white-space: nowrap;
}

.necrologicos-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 48%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.necrologicos-intro {
  margin: 0 0 16px;
  color: #475569;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.55;
}

.necrologicos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.necrologico-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.necrologico-photo,
.necrologico-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 1.6rem;
}

.necrologico-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.necrologico-topline {
  color: #64748b;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.necrologico-content h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-family: var(--font-heading, var(--font-ui));
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.2;
}

.necrologico-details,
.necrologico-message,
.necrologico-family {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.necrologico-message {
  color: #334155;
}

.necrologico-family {
  color: #64748b;
  font-style: italic;
}

.necrologico-service {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
  color: #334155;
  font-family: var(--font-ui);
  font-size: 0.84rem;
}

.necrologico-service span {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
}

.necrologico-service i {
  color: #94a3b8;
  margin-top: 2px;
  width: 14px;
}

.necrologicos-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 16px;
  padding-top: 12px;
  color: #64748b;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.necrologicos-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  color: #64748b;
  text-align: center;
}

.necrologicos-empty i {
  font-size: 2rem;
  color: #94a3b8;
}

@media (max-width: 560px) {
  .necrologico-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .necrologico-photo,
  .necrologico-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }
  .necrologicos-footer {
    flex-direction: column;
  }
}

/* === FIX PORTADA EN MOVIMIENTO COMPACTA - RN === */
/*
  Objetivo: que el slider "Portada en movimiento" priorice la imagen.
  - Texto en panel compacto.
  - Titulo y bajada con limite de lineas.
  - Etiquetas y metadata sin desbordes.
  - Puntos de navegacion separados del texto.
*/
.hero-slider {
  overflow: hidden !important;
  border-radius: 22px;
  isolation: isolate;
}

.hero-slider-track {
  align-items: stretch;
}

.hero-slide {
  overflow: hidden !important;
  border-radius: inherit;
  min-height: 0;
}

.hero-slide img {
  transform: scale(1.001);
}

.hero-slide-overlay {
  background:
    linear-gradient(90deg, rgba(3, 14, 24, 0.62) 0%, rgba(3, 14, 24, 0.20) 46%, rgba(3, 14, 24, 0.06) 100%),
    linear-gradient(180deg, rgba(3, 14, 24, 0.02) 0%, rgba(3, 14, 24, 0.36) 100%) !important;
  pointer-events: none;
}

.hero-slide-content {
  left: clamp(14px, 3vw, 28px) !important;
  right: auto !important;
  bottom: clamp(14px, 3vw, 28px) !important;
  width: min(640px, calc(100% - 56px)) !important;
  max-height: calc(100% - 56px) !important;
  box-sizing: border-box;
  padding: clamp(13px, 2vw, 20px) !important;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(3, 14, 24, 0.78), rgba(3, 14, 24, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden !important;
  z-index: 4;
}

.hero-slide-content .tag,
.hero-slide-content span.tag {
  max-width: 100%;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  line-height: 1;
  font-size: 0.72rem;
  padding: 7px 10px;
  margin: 0;
}

.hero-slide-content h3 {
  width: 100%;
  max-width: 100% !important;
  margin: 9px 0 7px !important;
  font-size: clamp(1.22rem, 2.1vw, 2rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-wrap: balance;
}

.hero-slide-content p {
  width: 100%;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.88) !important;
  display: -webkit-box;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.hero-slide-meta {
  width: 100%;
  max-width: 100%;
  gap: 8px 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.2;
  overflow: hidden;
}

.hero-slide-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-slider-dots {
  left: auto !important;
  right: clamp(14px, 3vw, 28px) !important;
  bottom: clamp(14px, 3vw, 28px) !important;
  z-index: 6;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(3, 14, 24, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 720px) {
  .hero-slider {
    border-radius: 16px;
  }

  .hero-slide,
  .hero-slide img {
    height: clamp(230px, 64vw, 310px) !important;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(3, 14, 24, 0.04) 0%, rgba(3, 14, 24, 0.60) 100%) !important;
  }

  .hero-slide-content {
    left: 10px !important;
    right: 10px !important;
    bottom: 42px !important;
    width: auto !important;
    max-height: calc(100% - 58px) !important;
    padding: 12px !important;
    border-radius: 16px;
  }

  .hero-slide-content .tag,
  .hero-slide-content span.tag {
    font-size: 0.66rem;
    padding: 6px 8px;
  }

  .hero-slide-content h3 {
    font-size: clamp(1rem, 5.2vw, 1.28rem) !important;
    line-height: 1.08 !important;
    margin: 7px 0 5px !important;
    -webkit-line-clamp: 2;
  }

  .hero-slide-content p {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 7px !important;
    -webkit-line-clamp: 1 !important;
  }

  .hero-slide-meta {
    font-size: 0.72rem !important;
    gap: 6px 9px !important;
  }

  .hero-slider-dots {
    right: 10px !important;
    bottom: 10px !important;
    padding: 6px 8px;
  }

  .hero-slider-dots button {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 430px) {
  .hero-slide-content p {
    display: none !important;
  }

  .hero-slide-content h3 {
    -webkit-line-clamp: 3;
  }
}
/* === FIN FIX PORTADA EN MOVIMIENTO COMPACTA - RN === */

/* === RN_PATCH_AGENDA_INFINITA_CSS_START === */
/* Agenda Agropecuaria: flyers completos, altura uniforme y cinta infinita */
.agenda-stage.agenda-stage--infinite {
  position: relative;
  overflow: hidden !important;
  padding: 18px 0 20px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top left, rgba(42, 96, 68, 0.13), transparent 34%),
    linear-gradient(135deg, #edf7ef 0%, #f8fafc 52%, #eef6ea 100%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%) !important;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%) !important;
}

.agenda-track.agenda-track--infinite {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: max-content !important;
  min-width: max-content !important;
  transform: none !important;
  transition: none !important;
  will-change: transform;
  animation: agendaAgroInfiniteScroll var(--agenda-speed, 48s) linear infinite !important;
}

.agenda-stage--infinite:hover .agenda-track--infinite,
.agenda-stage--infinite:active .agenda-track--infinite,
.agenda-stage--infinite:focus-within .agenda-track--infinite {
  animation-play-state: running !important;
}

.agenda-loop {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding-right: 18px !important;
}

.agenda-track--infinite .agenda-flyer-slide {
  flex: 0 0 clamp(205px, 22vw, 310px) !important;
  width: clamp(205px, 22vw, 310px) !important;
  height: clamp(320px, 43vw, 470px) !important;
  padding: 10px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  cursor: zoom-in !important;
  opacity: 1 !important;
  transform: none !important;
  scale: 1 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.agenda-track--infinite .agenda-flyer-slide::after,
.agenda-track--infinite .agenda-flyer-slide::before {
  display: none !important;
  content: none !important;
}

.agenda-track--infinite .agenda-flyer-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 12px !important;
  background: #fff !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.agenda-track--infinite .agenda-flyer-slide:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22) !important;
}

@keyframes agendaAgroInfiniteScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .agenda-stage.agenda-stage--infinite {
    padding: 14px 0 16px !important;
    border-radius: 18px !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%) !important;
  }

  .agenda-loop {
    gap: 14px !important;
    padding-right: 14px !important;
  }

  .agenda-track--infinite .agenda-flyer-slide {
    flex-basis: clamp(190px, 68vw, 260px) !important;
    width: clamp(190px, 68vw, 260px) !important;
    height: clamp(300px, 102vw, 390px) !important;
    padding: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agenda-track.agenda-track--infinite {
    animation-duration: 160s !important;
  }
}
/* === RN_PATCH_AGENDA_INFINITA_CSS_END === */

/* ============================================================
   WIDGET CLIMA + GRANOS (reemplaza Quiniela)
   ============================================================ */
.markets-widget-section { overflow: hidden; }
.markets-widget-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}
.markets-widget-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}
.markets-widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(193, 18, 31, .10);
  color: var(--primary);
  font-size: 20px;
}
.markets-widget-kicker {
  display: block;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
}
.markets-widget-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: #0f172a;
}
.markets-widget-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}
.markets-widget-link {
  margin-top: 12px;
  border: 0;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.grain-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.grain-list div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}
.grain-list span {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.grain-list strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: #0f172a;
}
.markets-widget-source {
  font-size: 12px !important;
  color: #94a3b8 !important;
}
#quinielaWidgetSection, .quiniela-card, .quiniela-head { display:none !important; }
@media (max-width: 760px) {
  .markets-widget-grid { grid-template-columns: 1fr; }
  .grain-list { grid-template-columns: 1fr; }
}


/* === Mercados agropecuarios / widget extendido === */
.livestock-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.markets-widget-livestock .grain-list div:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .markets-widget-grid { grid-template-columns: 1fr; }
}
#quinielaWidgetSection, .quiniela-card, .quiniela-head { display:none !important; }
@media (max-width: 760px) {
  .markets-widget-grid { grid-template-columns: 1fr; }
  .grain-list, .livestock-list { grid-template-columns: 1fr; }
}


/* === PÁGINA INTERNA DE MERCADOS === */
.markets-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.markets-widget-link--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.markets-page-body {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 280px);
}

.markets-page-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.markets-page-hero {
  padding-top: 28px;
}

.markets-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin: 8px 0 10px;
}

.markets-page-hero p {
  max-width: 760px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.markets-page-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.markets-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #102033;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.markets-page-nav a:hover {
  transform: translateY(-1px);
}

.markets-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.markets-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.09);
  color: #8d0d17;
  font-weight: 800;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.markets-status-pill--soft {
  background: #fff;
  color: #102033;
  border: 1px solid rgba(15, 23, 42, 0.09);
}

.markets-status-pill--link {
  text-decoration: none;
  background: #0f172a;
  color: #fff;
}

.market-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-quote-card,
.market-panel,
.markets-sources-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.market-quote-card {
  padding: 18px;
}

.market-quote-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
}

.market-quote-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  color: #102033;
  font-family: var(--font-display);
}

.market-quote-card small {
  display: block;
  margin-top: 8px;
  color: #6b7786;
  font-size: 0.82rem;
}

.markets-overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 18px;
}

.market-panel {
  padding: 20px;
}

.market-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.market-panel-head h3 {
  font-size: 1.5rem;
  margin: 2px 0 0;
  color: #0f172a;
}

.weather-mini-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.weather-mini-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4f8 100%);
  border: 1px solid #e2e8f0;
}

.weather-mini-item span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #64748b;
}

.weather-mini-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: #0f172a;
}

.grain-list--markets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.markets-sources-panel {
  padding: 20px;
}

.markets-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-link-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  color: inherit;
}

.market-link-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--primary);
}

.market-link-card strong {
  display: block;
  font-size: 1rem;
  color: #102033;
}

.market-link-card span {
  display: block;
  margin-top: 6px;
  color: #617085;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .market-quote-grid,
  .markets-overview-grid,
  .markets-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .markets-page-shell {
    padding: 0 14px 36px;
  }

  .markets-page-nav {
    justify-content: stretch;
  }

  .markets-page-nav a {
    flex: 1 1 calc(50% - 10px);
  }

  .markets-widget-actions {
    flex-direction: column;
  }

  .grain-list--markets,
  .livestock-list {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FLYERS PUBLICITARIOS — SOLO IMAGEN / GIF
   ============================================================ */
.ad-card--flyer {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ad-card-inner--flyer,
.cat-banner-inner--flyer,
.ad-article-inline--flyer,
.ad-flyer-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ad-flyer-visual {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.ad-flyer-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #780000;
}

.ad-flyer-visual--horizontal {
  aspect-ratio: 7 / 3;
}

.ad-flyer-visual--cuadrado {
  aspect-ratio: 1 / 1;
  width: min(100%, 520px);
  margin-inline: auto;
}

.ad-flyer-visual--vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, 340px);
  margin-inline: auto;
}

.ad-flyer-visual--auto {
  min-height: 220px;
  max-height: min(78vh, 640px);
}

.ad-flyer-visual--auto img {
  max-height: min(78vh, 640px);
}

.ad-card-placeholder--flyer {
  min-height: 180px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.ad-badge--flyer {
  z-index: 2;
}

.ad-flyer-slider {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ad-flyer-stage {
  position: relative;
  min-height: 140px;
}

.ad-flyer-slide {
  display: none;
  animation: adFadeIn 0.55s ease;
}

.ad-flyer-slide.is-active {
  display: block;
}

.ad-flyer-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.ad-flyer-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.18);
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.ad-flyer-dot.is-active {
  background: var(--primary);
  transform: scale(1.22);
}

.category-section-banner--flyer {
  margin-bottom: 10px;
}

.category-section-banner--flyer .cat-banner-inner--flyer {
  display: block;
}

.ad-article-inline--flyer {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.ad-article-inline--flyer .ad-flyer-visual {
  border-radius: 20px;
}

@media (max-width: 600px) {
  /* En móvil los flyers horizontales deben usar la altura real de la imagen
     para evitar franjas blancas arriba y abajo. */
  .ad-flyer-visual--horizontal {
    aspect-ratio: auto;
    width: 100%;
    max-width: 100%;
  }

  .ad-flyer-visual--horizontal img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .ad-flyer-visual--cuadrado {
    width: min(100%, 320px);
  }

  .ad-flyer-visual--vertical {
    width: min(100%, 280px);
  }

  .ad-flyer-slider {
    width: 100%;
  }
}


/* === RN_PATCH_AGENDA_CONTINUA_JS_CSS === */
.agenda-stage.agenda-stage--continuous {
  --agenda-card-height-desktop: 470px;
  --agenda-card-height-mobile: 300px;
  position: relative;
  overflow: hidden !important;
  padding: 16px 0 18px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top left, rgba(42, 96, 68, 0.12), transparent 34%),
    linear-gradient(135deg, #edf7ef 0%, #f8fafc 52%, #eef6ea 100%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%) !important;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%) !important;
}

.agenda-track.agenda-track--continuous {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: max-content !important;
  min-width: max-content !important;
  will-change: transform;
  transform: translate3d(0, 0, 0) !important;
  transition: none !important;
  animation: none !important;
}

.agenda-stage--continuous .agenda-loop {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding-right: 18px !important;
  flex: 0 0 auto !important;
}

.agenda-track--continuous .agenda-flyer-slide {
  --agenda-card-width: clamp(210px, 20vw, 320px);
  --agenda-card-height: var(--agenda-card-height-desktop);
  flex: 0 0 var(--agenda-card-width) !important;
  width: var(--agenda-card-width) !important;
  height: var(--agenda-card-height) !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  cursor: zoom-in !important;
  opacity: 1 !important;
  transform: none !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  line-height: 0 !important;
}

.agenda-track--continuous .agenda-flyer-slide.is-panorama {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96)) !important;
}

.agenda-track--continuous .agenda-flyer-slide::after,
.agenda-track--continuous .agenda-flyer-slide::before {
  display: none !important;
  content: none !important;
}

.agenda-track--continuous .agenda-flyer-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 12px !important;
  background: #fff !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.agenda-track--continuous .agenda-flyer-slide:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22) !important;
}

@media (max-width: 800px) {
  .agenda-stage--continuous .agenda-loop {
    gap: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 760px) {
  .agenda-module-head {
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .agenda-module-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .agenda-stage.agenda-stage--continuous {
    padding: 10px 0 12px !important;
    border-radius: 18px !important;
  }

  .agenda-track--continuous .agenda-flyer-slide {
    --agenda-card-height: var(--agenda-card-height-mobile);
    padding: 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
  }

  .agenda-track--continuous .agenda-flyer-slide img {
    border-radius: 10px !important;
  }
}

@media (max-width: 500px) {
  .agenda-stage.agenda-stage--continuous {
    padding: 8px 0 10px !important;
    border-radius: 16px !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
  }

  .agenda-stage--continuous .agenda-loop {
    gap: 10px !important;
    padding-right: 10px !important;
  }

  .agenda-track--continuous .agenda-flyer-slide {
    padding: 7px !important;
    border-radius: 14px !important;
  }
}
/* === RN_PATCH_AGENDA_CONTINUA_JS_CSS_END === */


/* === RN 2026: portada rápida + flyers dobles + separadores comerciales === */
.home-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}
.home-latest-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  text-decoration: none;
  color: inherit;
}
.home-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.home-latest-card:hover img { transform: scale(1.04); }
.home-latest-card--lead {
  min-height: clamp(340px, 42vw, 520px);
  display: block;
}
.home-latest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.82) 100%);
}
.home-latest-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 3vw, 30px);
  color: #fff;
}
.home-latest-content .tag {
  margin: 0 0 12px;
  background: var(--category-color, var(--primary));
}
.home-latest-content h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
  line-height: 1.05;
  max-width: 820px;
}
.home-latest-content p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-latest-meta,
.home-latest-mini-content small {
  color: rgba(255,255,255,.82);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}
.home-latest-side {
  display: grid;
  gap: 12px;
}
.home-latest-card--mini {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 108px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.home-latest-card--mini img {
  height: 100%;
  min-height: 108px;
}
.home-latest-mini-content {
  padding: 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.home-latest-mini-content span {
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.home-latest-mini-content strong {
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-latest-mini-content small { color: #64748b; }
.ad-flyer-slider--duo .ad-flyer-stage { min-height: 0; }
.ad-flyer-duo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ad-flyer-duo-item { display: block; }
.category-separator-ad {
  grid-column: 1 / -1;
  margin: 2px 0 4px;
}
.category-separator-ad .cat-banner-inner {
  min-height: 150px;
}
.livestock-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.markets-widget-livestock .grain-list div:last-child,
.markets-widget-livestock .grain-list div:nth-last-child(2) {
  grid-column: auto;
}
@media (max-width: 980px) {
  .home-latest-grid { grid-template-columns: 1fr; }
  .home-latest-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .livestock-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-latest-card--lead { min-height: 420px; }
  .home-latest-side { grid-template-columns: 1fr; }
  .home-latest-card--mini { grid-template-columns: 116px minmax(0, 1fr); }
  .ad-flyer-duo-row { grid-template-columns: 1fr; gap: 12px; }
  .category-separator-ad .cat-banner-inner { min-height: 0; }
  .livestock-list { grid-template-columns: 1fr; }
}
