.ceca-enlaces-interes {
  position: relative;
  width: 540px;
  height: 200px;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-default, 0);
}

/* Background container */
.ceca-enlaces-interes__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Image styling */
.ceca-enlaces-interes__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover zoom effect when box is a link */
a.ceca-enlaces-interes:hover .ceca-enlaces-interes__image {
  transform: scale(1.08);
}

a.ceca-enlaces-interes {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Overlay gradient for readability */
.ceca-enlaces-interes__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    178.17deg,
    rgba(0, 0, 0, 0) 53.41%,
    rgba(3, 78, 103, 0.5) 72.88%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

/* Logo top-left */
.ceca-enlaces-interes__logo {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 4;
}

.ceca-enlaces-interes__logo-img {
  max-height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Content container */
.ceca-enlaces-interes__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 20px 25px;
}

/* Title styling */
.ceca-enlaces-interes__title {
  margin: 0;
  color: var(--ceca-white, #fff);
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 24px;
  line-height: 1.1;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Normal text part */
.ceca-enlaces-interes__title-main {
  font-weight: 500;
}

/* Italic text part */
.ceca-enlaces-interes__title-italic {
  font-weight: 400;
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .ceca-enlaces-interes {
    width: 100%;
    height: 180px;
  }

  .ceca-enlaces-interes__title {
    font-size: 20px;
  }
}
