[data-component-id="incmty:noticias"] {
  background-color: var(--bg-color);
  padding: 48px 16px;
  display: grid;
  gap: 24px;

  .noticias-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    margin: 1rem 0;
  }

  .loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }

  .loading-text {
    font-size: 0.9rem;
    font-style: italic;
  }

  & .noticias__heading {
    display: grid;
    gap: 16px;

    & [data-component-id="incmty:headings"] {
      margin: 0;

      .headings__title,
      .headings__subtitle,
      .headings__description p {
        color: var(--heading-color);
      }
    }

    & h2,
    & h3 {
      text-align: center;
    }

    & .headings__title {
      text-align: center;

      /* incMty/CTA-Link */
      font-family: "DM Sans";
      font-size: 12px;
      font-style: normal;
      font-weight: 900;
      line-height: 18px; /* 150% */
    }
  }

  &:has(.noticias__content:not(:empty)) {
    .noticias-loading {
      display: none;
    }
  }

  &:has(.news-empty) {
    .noticias-loading {
      display: none;
    }
  }

  & .news-empty {
    text-align: center;
  }

  & .noticias__content {
    display: grid;
    gap: 24px;
  }

  & .noticias__cta {
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      &:hover {
        opacity: 1;
      }
    }
  }

  &.noticias--bg-white {
    .noticia__cta > a:hover {
      opacity: .75;
    }
  }

  &.noticias--bg-gray {
    --bg-color: #F2F2F2;
  }

  &.noticias--bg-midnight {
    --bg-color: #030219;

    a.btn {
      border-color: var(--white-color);
      background-color: var(--midnight-color);

      &:hover {
        color: var(--midnight-color);
        background-color: var(--white-color);
      }
    }
  }

  &.noticias--bg-blue {
    --bg-color: #122cde;

    a.btn {
      border-color: var(--white-color);
    }
  }

  &.noticias--bg-orange {
    --bg-color: #d24204;
  }

  &.noticias--bg-light-green {
    --bg-color: #cfe253;
  }

  &.noticias--bg-heineken-light-green {
    --bg-color: #a1e005;
  }

  &.noticias--bg-heineken-dark-green {
    --bg-color: #005D11;
  }

  &.noticias--bg-blue,
  &.noticias--bg-orange,
  &.noticias--bg-heineken-dark-green {
    a.btn {
      border-color: var(--white-color);
    }
  }

  &.noticias--bg-midnight,
  &.noticias--bg-blue,
  &.noticias--bg-orange,
  &.noticias--bg-heineken-dark-green {
    [data-component-id="incmty:headings"] {
      * {
        color: var(--white-color) !important;
      }
    }
  }
}

@media screen and (min-width: 1024px) {
  [data-component-id="incmty:noticias"] {
    padding: 96px;
    gap: 48px;

    & .noticias__content {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
