/* Páginas hub públicas (/noticias, /herramientas): mismo patrón de fondo animado que /blog y /mercados */

.aem-hub-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
}

.aem-hub-stage__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aem-hub-stage__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  filter: saturate(0.72) brightness(0.92) contrast(1.05);
}

.aem-hub-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(251, 247, 242, 0.70) 42%, rgba(255, 255, 255, 0.88) 100%),
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(185, 138, 90, 0.10), transparent 70%);
}

.aem-hub-stage__content {
  position: relative;
  z-index: 1;
}

/* .shell solo existe en market.css, que esta página no carga: sin esto el contenido iba pegado a los bordes (muy visible en móvil). */
.aem-hub-stage__content.shell {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.aem-hub-kicker {
  color: rgba(21, 29, 26, 0.55);
}

.aem-hub-title {
  color: #151D1A;
  font-family: Geist, Figtree, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.aem-hub-lead {
  color: rgba(21, 29, 26, 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

.aem-hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(57, 73, 65, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(21, 29, 26, 0.06);
  color: #151D1A;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.aem-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 217, 139, 0.35);
  box-shadow: 0 16px 36px rgba(21, 29, 26, 0.10);
}

.aem-hub-card__meta {
  color: rgba(21, 29, 26, 0.55);
}

.aem-hub-card__title {
  color: #151D1A;
  font-family: Geist, Figtree, sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.aem-hub-card__desc {
  color: rgba(21, 29, 26, 0.68);
  font-size: 0.95rem;
  line-height: 1.55;
}

.aem-hub-card__thumb {
  width: 5.5rem;
  height: 4.1rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.85rem;
  border: 1px solid rgba(57, 73, 65, 0.12);
  box-shadow: 0 4px 12px rgba(21, 29, 26, 0.08);
  background: #F3F5F3;
}

.aem-hub-card--tool {
  align-items: flex-start;
}

.aem-hub-news-lead {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
}

.aem-hub-news-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aem-hub-news-lead__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 12, 0.15) 0%, rgba(7, 16, 12, 0.78) 100%);
}

.aem-hub-news-lead__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.25rem 1.35rem 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aem-hub-news-lead__body .aem-hub-card__title,
.aem-hub-news-lead__body .aem-hub-card__meta {
  color: #fff;
}

.aem-hub-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(25, 217, 139, 0.18);
  color: #19D98B;
  border: 1px solid rgba(25, 217, 139, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .aem-hub-stage__bg video { display: none; }
  .aem-hub-stage--noticias .aem-hub-stage__bg {
    background:
      #FBF7F2
      url('https://images.pexels.com/videos/3129671/free-video-3129671.jpg?auto=compress&cs=tinysrgb&w=1600')
      center / cover no-repeat;
  }
  .aem-hub-stage--herramientas .aem-hub-stage__bg {
    background:
      #FBF7F2
      url('https://images.pexels.com/videos/3045163/free-video-3045163.jpg?auto=compress&cs=tinysrgb&w=1600')
      center / cover no-repeat;
  }
  .aem-hub-card { transition: none; }
  .aem-hub-card:hover { transform: none; }
}
