/* ==========================================
   CAESRA DIARIO — IDENTIDAD EDITORIAL
   ========================================== */

.diario-page {
  background: #f5f8fb;
  color: #183247;
  min-height: 60vh;
  padding-bottom: 70px;
}

.diario-page .container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.diario-masthead {
  background: #0c3c60;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.diario-masthead::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  right: -130px;
  top: -240px;
  box-shadow: 0 0 0 35px rgba(255,255,255,.025),
              0 0 0 75px rgba(255,255,255,.02);
  pointer-events: none;
}

.diario-masthead__top,
.diario-masthead__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: .69rem;
  letter-spacing: .13em;
}

.diario-masthead__top {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.17);
  color: #c5e4f5;
}

.diario-masthead__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 42px 0 38px;
  position: relative;
  z-index: 1;
}

.diario-masthead__overline,
.diario-eyebrow {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: #58b9ed;
  margin: 0 0 12px;
}

.diario-masthead__brand h2 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.055em;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.diario-masthead__brand h2 span {
  color: #75c9f4;
}

.diario-masthead__subtitle {
  margin: 17px 0 0;
  color: #d6e8f3;
  font-size: 1rem;
  letter-spacing: .015em;
}

.diario-masthead__mark {
  width: 105px;
  height: 105px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  color: #9edafa;
  flex: 0 0 auto;
  transform: rotate(-8deg);
}

.diario-masthead__bottom {
  border-top: 1px solid rgba(255,255,255,.17);
  padding: 13px 0;
  color: #c5e4f5;
  font-size: .62rem;
}

.diario-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.diario-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63d69a;
  box-shadow: 0 0 0 4px rgba(99,214,154,.15);
}

/* BARRA DE CATEGORÍAS */

.diario-container {
  padding-top: 36px;
}

.diario-toolbar {
  margin-bottom: 26px;
}

.diario-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.diario-section-heading__line {
  width: 4px;
  height: 24px;
  background: #1b99e8;
  border-radius: 3px;
}

.diario-section-heading h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  margin: 0;
  color: #0c3c60;
}

.diario-toolbar__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.diario-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diario-filter {
  border: 1px solid #d8e3eb;
  border-radius: 30px;
  padding: 9px 16px;
  background: #fff;
  color: #426076;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  transition: .2s ease;
}

.diario-filter:hover,
.diario-filter.is-active {
  background: #0c3c60;
  border-color: #0c3c60;
  color: #fff;
}

.diario-search {
  width: min(100%, 260px);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e3eb;
  border-radius: 30px;
  background: #fff;
  padding: 0 14px;
  color: #648096;
}

.diario-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #183247;
  font: inherit;
  font-size: .84rem;
}

.diario-search span:last-child {
  font-size: 1.5rem;
}

/* ==========================================================================
   PORTAL EDITORIAL — Layout estilo diario (Clarín / La Nación)
   ========================================================================== */

.portal-editorial {
  margin-top: 8px;
}

/* GRID PRINCIPAL: Hero (65%) + Sidebar (35%) */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: 65% 35%;
  }
}

/* ---------- HERO (Noticia Principal) ---------- */
.portal-hero {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(17, 53, 78, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.portal-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(17, 53, 78, 0.13);
}

.portal-hero__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.portal-hero__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #d9eaf4, #a9c8db);
  flex-shrink: 0;
}

.portal-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.portal-hero:hover .portal-hero__image img {
  transform: scale(1.03);
}

.portal-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  flex: 1;
}

.portal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.portal-hero__category {
  display: inline-block;
  background: #e8f5fc;
  color: #11699f;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-hero__date {
  color: #8295a3;
  font-size: .72rem;
  font-weight: 500;
}

.portal-hero__title {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #0c3c60;
  margin: 8px 0 14px;
}

.portal-hero__excerpt {
  color: #617789;
  line-height: 1.7;
  font-size: clamp(.9rem, 1.2vw, 1rem);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-hero__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf1f4;
}

.portal-hero__author-name {
  color: #6c8190;
  font-size: .78rem;
  font-weight: 500;
}

.portal-hero__read-more {
  color: #147bb8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s ease;
}

.portal-hero:hover .portal-hero__read-more {
  gap: 10px;
}

/* ---------- SIDEBAR: Noticias Secundarias ---------- */
.portal-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-secondary__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-secondary-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 22px rgba(17, 53, 78, 0.055);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  min-height: 110px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.portal-secondary-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(17, 53, 78, 0.1);
}

.portal-secondary-item__image {
  width: 110px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dcebf3, #b6d0df);
}

.portal-secondary-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.portal-secondary-item:hover .portal-secondary-item__image img {
  transform: scale(1.05);
}

.portal-secondary-item__content {
  flex: 1;
  padding: 12px 14px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.portal-secondary-item__category {
  color: #1682bf;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portal-secondary-item__title {
  font-family: "Lora", Georgia, serif;
  font-size: .96rem;
  line-height: 1.35;
  color: #123e5c;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-secondary-item__excerpt {
  color: #6c8190;
  font-size: .75rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- GRILLA PRINCIPAL (3 columnas) ---------- */
.portal-main {
  margin-top: 8px;
}

.portal-main__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce6ed;
}

.portal-main__heading .diario-eyebrow {
  margin-bottom: 4px;
}

.portal-main__heading h2 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  color: #0c3c60;
  margin: 0;
}

.portal-grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .portal-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .portal-grid-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjetas de la grilla inferior */
.portal-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 22px rgba(17, 53, 78, 0.055);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 53, 78, 0.12);
}

.portal-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dcebf3, #b6d0df);
}

.portal-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.portal-card:hover .portal-card__image img {
  transform: scale(1.045);
}

.portal-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-card__category {
  color: #1682bf;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portal-card__title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #123e5c;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card__excerpt {
  color: #6c8190;
  font-size: .8rem;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf1f4;
  color: #91a0aa;
  font-size: .68rem;
}

/* ---------- LOADING / EMPTY STATES ---------- */
.diario-loading {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #7890a0;
  font-size: .86rem;
}

.diario-spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #dceaf2;
  border-top-color: #1682bf;
  border-radius: 50%;
  animation: diario-spin .8s linear infinite;
}

@keyframes diario-spin {
  to { transform: rotate(360deg); }
}

.diario-empty {
  padding: 55px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbdce7;
  border-radius: 7px;
}

.diario-empty__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eaf5fb;
  color: #0c5c8c;
  font-family: "Lora", Georgia, serif;
  font-size: 1.2rem;
}

.diario-empty h3 {
  color: #0c3c60;
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.diario-empty p {
  max-width: 520px;
  margin: 0 auto;
  color: #718695;
  line-height: 1.7;
  font-size: .9rem;
}

/* ---------- CIERRE ---------- */
.diario-bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 32px 38px;
  background: #e8f3f9;
  border-left: 4px solid #1b99e8;
  border-radius: 4px;
}

.diario-bottom-banner .diario-eyebrow {
  margin-bottom: 8px;
}

.diario-bottom-banner h2 {
  font-family: "Lora", Georgia, serif;
  color: #0c3c60;
  font-size: 1.65rem;
  margin: 0 0 7px;
}

.diario-bottom-banner p {
  color: #5f788a;
  margin: 0;
  font-size: .88rem;
}

.diario-bottom-banner__link {
  flex: 0 0 auto;
  color: #0c5f91;
  font-weight: 800;
  font-size: .83rem;
  text-decoration: none;
}

.diario-bottom-banner__link span {
  margin-left: 7px;
}

/* =========================================
   TICKERS DE COTIZACIONES
   ========================================= */
.ticker-dolar,
.ticker-agro {
  font-family: var(--font-body, sans-serif);
  font-size: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

/* Barra de Dólar */
.ticker-dolar {
  background-color: #f8f9fa;
}

/* Barra de Agro */
.ticker-agro {
  background-color: #f0fdf4;
  border-top: 1px solid #dcfce7;
  border-bottom: 2px solid #bbf7d0;
}

.ticker-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  justify-content: flex-start;
}

.ticker-container::-webkit-scrollbar {
  display: none;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-label {
  color: #4a5568;
  font-weight: 500;
}

/* Valores del Dólar (Azul institucional) */
.ticker-dolar .ticker-value {
  font-weight: 700;
  color: var(--color-primary, #0c3c60);
  font-family: monospace;
}

/* Valores del Agro (Verde oscuro) */
.ticker-agro .ticker-value {
  font-weight: 700;
  color: #166534;
  font-family: monospace;
}

/* Badge "Mercados Agro" */
.ticker-badge {
  background-color: #166534;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

/* Divider */
.ticker-divider {
  width: 1px;
  height: 14px;
  background-color: #cbd5e0;
  margin: 0 0.5rem;
}

/* Widget de Clima */
.ticker-clima .ticker-value {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #0369a1;
}

/* Riesgo País color naranja */
.ticker-riesgo {
  color: #b45309;
}

/* Responsive */
@media (max-width: 768px) {
  .ticker-dolar, .ticker-agro { font-size: 0.75rem; }
  .ticker-container { gap: 1rem; }
  .ticker-group {
    padding-right: 1rem;
    border-right: 1px solid #cbd5e0;
  }
  .ticker-group:last-child { border-right: none; }
  .ticker-badge { display: none; }
  .ticker-divider { display: none; }
}

/* ==========================================================================
   RESPONSIVE — Portal Editorial
   ========================================================================== */

@media (max-width: 899px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: auto;
  }

  .portal-hero__content {
    padding: 20px 20px 24px;
  }

  .portal-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .portal-secondary {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .portal-secondary__list {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .portal-secondary-item {
    flex: 1 1 calc(50% - 8px);
    min-width: 160px;
    flex-direction: column;
    min-height: auto;
  }

  .portal-secondary-item__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .portal-secondary-item__content {
    padding: 12px;
  }
}

@media (max-width: 639px) {
  .portal-secondary {
    flex-direction: column;
  }

  .portal-secondary__list {
    flex-direction: column;
  }

  .portal-secondary-item {
    flex: 1 1 100%;
    flex-direction: row;
    min-height: 100px;
  }

  .portal-secondary-item__image {
    width: 90px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .portal-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .portal-hero__author {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .portal-main__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Separación entre la grilla de noticias y los banners inferiores en móvil */
@media (max-width: 768px) {
  .portal-main,
  .portal-editorial {
    margin-bottom: 1.75rem;
  }

  .diario-bottom-banner {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }

  #newsletter-section {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Apilar tarjetas secundarias una debajo de la otra en móvil */
@media (max-width: 768px) {
  .portal-secondary,
  .portal-secondary-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: visible !important;
    gap: 0.85rem;
  }

  .portal-secondary-item {
    display: grid !important;
    grid-template-columns: 96px 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
  }

  .portal-secondary-item__image {
    width: 96px !important;
    height: auto !important;
    min-height: 96px;
    background-color: #cde0ed;
  }

  .portal-secondary-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .portal-secondary-item__content {
    padding: 0.75rem 0.9rem !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .portal-secondary-item__category {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0284c7;
    text-transform: uppercase;
  }

  .portal-secondary-item__title {
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    color: #0c3c60;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portal-secondary-item__excerpt {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =========================================================
   FORMULARIO DE NEWSLETTER (ESCRITORIO Y CELULAR)
   ========================================================= */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(12, 60, 96, 0.08);
  width: 100%;
  max-width: 440px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-form:focus-within {
  border-color: #1b99e8;
  box-shadow: 0 0 0 3px rgba(27, 153, 232, 0.18);
}

.newsletter-form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0.65rem 1.15rem !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #0f172a;
}

.newsletter-form__input::placeholder {
  color: #94a3b8;
}

.newsletter-form__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: #0c3c60;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.newsletter-form__btn:hover {
  background: #0077b6;
  transform: translateY(-1px);
}

/* En celular la cápsula se apila centrada, manteniendo el fondo blanco */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.5rem;
    margin: 0 auto;
  }

  .newsletter-form__input {
    width: 100% !important;
    text-align: center;
    padding: 0.8rem 1.2rem !important;
  }

  .newsletter-form__input:focus {
    box-shadow: inset 0 0 0 2px rgba(12, 60, 96, 0.15);
  }

  .newsletter-form__btn {
    width: 100% !important;
    padding: 0.85rem 1.5rem;
  }
}

/* =========================================================
   ACOMODAR COTIZACIONES (DÓLAR + AGRO) EN CELULAR (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  .ticker-dolar,
  .ticker-agro {
    padding: 0.5rem 0 !important;
    overflow-x: hidden;
  }

  .ticker-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.4rem 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .ticker-divider {
    display: none !important;
  }

  .ticker-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem 0.3rem !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0.35rem 0.5rem !important;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .ticker-label {
    font-size: 0.68rem !important;
    white-space: nowrap;
  }

  .ticker-value {
    font-size: 0.72rem !important;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Porcentaje de variación de granos (▲ 0.93%): pasa abajo a la derecha sin desbordar */
  .ticker-agro .ticker-change,
  .ticker-agro [class*="change"],
  .ticker-agro [class*="var"],
  .ticker-agro span:last-child:not(.ticker-value) {
    flex-basis: 100%;
    text-align: right;
    font-size: 0.64rem !important;
    line-height: 1.1;
  }

  /* Riesgo País y Clima ocupan todo el ancho abajo centrados */
  .ticker-dolar .ticker-group:last-child,
  .ticker-clima {
    grid-column: 1 / -1;
    justify-content: center !important;
    gap: 0.45rem !important;
  }

  .ticker-dolar .ticker-group:last-child .ticker-value,
  .ticker-clima .ticker-value {
    margin-left: 0;
  }
}

/* En teléfonos muy angostos (≤ 360px), reducir un punto más la tipografía */
@media (max-width: 360px) {
  .ticker-label {
    font-size: 0.63rem !important;
  }
  .ticker-value {
    font-size: 0.67rem !important;
  }
}
/* Cápsula ovalada del Boletín Semanal */
.newsletter-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 4px 12px rgba(12, 60, 96, 0.06);
  gap: 0.35rem;
}

.newsletter-form__input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
  color: #0f172a;
}

.newsletter-form__input:focus {
  box-shadow: inset 0 0 0 2px rgba(12, 60, 96, 0.15);
}

.newsletter-form__btn {
  background: #0c3c60;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.newsletter-form__btn:hover {
  background: #145382;
}

.newsletter-form__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* =========================================
   FALLBACK INSTITUCIONAL (Sin imagen)
   ========================================= */

/* Fallback para Hero (tamaño 16:9) */
.portal-hero__image.fallback-cover {
  background: linear-gradient(135deg, #0b2e59, #144a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portal-hero__image.fallback-cover .fallback-cover__svg {
  width: 60px;
  height: 60px;
}

/* Fallback para tarjetas secundarias (4:3) */
.portal-secondary-item__image.fallback-secondary {
  background: linear-gradient(135deg, #0b2e59, #144a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.portal-secondary-item__image.fallback-secondary .fallback-secondary__svg {
  width: 50px;
  height: 50px;
}

/* Fallback para tarjetas de grilla (16:9) */
.portal-card__image.fallback-card {
  background: linear-gradient(135deg, #0b2e59, #144a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portal-card__image.fallback-card .fallback-card__svg {
  width: 50px;
  height: 50px;
}