
/* Gaceta Virtual CUCosta | Carrusel editorial */

.gaceta-hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 780px);
  overflow: hidden;
  background: #101d30;
  color: #fff;
  isolation: isolate;
}

.gaceta-hero__slides,
.gaceta-hero__slide,
.gaceta-hero__media,
.gaceta-hero__overlay {
  position: absolute;
  inset: 0;
}

.gaceta-hero__slide {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
  pointer-events: none;
}

.gaceta-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.gaceta-hero__media {
  background: linear-gradient(120deg, #152c49, #314f65);
}

.gaceta-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gaceta-hero__overlay {
  background: linear-gradient(
    90deg,
    rgba(6, 18, 35, 0.92) 0%,
    rgba(6, 18, 35, 0.85) 20%,
    rgba(6, 18, 35, 0.72) 35%,
    rgba(6, 18, 35, 0.30) 48%,
    rgba(6, 18, 35, 0.00) 65%,
    rgba(6, 18, 35, 0.00) 100%
  );
}

.gaceta-hero__content {
  position: relative;
  z-index: 2;
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 45px 0 100px;
}

.gaceta-hero__category {
  display: inline-block;
  padding: 7px 14px;
  margin-right: 12px;
  background: #d3a74b;
  color: #14233a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
}

.gaceta-hero__date {
  display: inline-block;
  font-size: 0.85rem;
  color: #e0e5ed;
}

.gaceta-hero__title {
  max-width: 780px;
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gaceta-hero__description {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: #e2e7ef;
}

.gaceta-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 23px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease;
}

.gaceta-hero__link:hover,
.gaceta-hero__link:focus-visible {
  background: #fff;
  color: #15243b;
}

.gaceta-hero__controls {
  position: absolute;
  z-index: 5;
  bottom: 36px;
  right: 5%;
  display: flex;
  gap: 10px;
}

.gaceta-hero__arrow,
.gaceta-hero__pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(12, 25, 43, 0.4);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
}

.gaceta-hero__pause {
  font-size: 1rem;
}

.gaceta-hero__arrow:hover,
.gaceta-hero__pause:hover,
.gaceta-hero__arrow:focus-visible,
.gaceta-hero__pause:focus-visible {
  background: #fff;
  color: #15243b;
}

.gaceta-hero__indicators {
  position: absolute;
  z-index: 5;
  left: 5%;
  bottom: 54px;
  display: flex;
  gap: 8px;
}

.gaceta-hero__indicator {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.gaceta-hero__indicator.is-active {
  width: 46px;
  background: #d3a74b;
}

@media (max-width: 767px) {
  .gaceta-hero {
    height: clamp(570px, 82svh, 740px);
  }

  .gaceta-hero__overlay {
    background: linear-gradient(
      0deg,
      rgba(6, 18, 35, 0.96),
      rgba(6, 18, 35, 0.72) 65%,
      rgba(6, 18, 35, 0.28)
    );
  }

  .gaceta-hero__slide {
    align-items: flex-end;
  }

  .gaceta-hero__content {
    padding-bottom: 110px;
  }

  .gaceta-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .gaceta-hero__description {
    font-size: 0.95rem;
  }

  .gaceta-hero__controls {
    bottom: 22px;
  }

  .gaceta-hero__indicators {
    bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gaceta-hero__slide,
  .gaceta-hero__indicator,
  .gaceta-hero__link {
    transition: none;
  }
}

/* Ajustes de ancho completo y proporciones del carrusel */

.gaceta-hero {
  width: 100vw;
  max-width: none;
  height: clamp(480px, 52vw, 720px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gaceta-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.gaceta-hero__content {
  width: min(90%, 1440px);
}

.gaceta-hero__title {
  max-width: 650px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.16;
}

.gaceta-hero__description {
  max-width: 580px;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

@media (max-width: 767px) {
  .gaceta-hero {
    height: min(78svh, 700px);
    min-height: 500px;
  }

  .gaceta-hero__content {
    width: 90%;
  }

  .gaceta-hero__title {
    max-width: 100%;
    font-size: clamp(1.65rem, 6vw, 2.3rem);
  }
}

/* Formato panorámico del carrusel editorial */

@media (min-width: 768px) {

  .gaceta-hero {
    height: clamp(420px, 29vw, 560px);
  }

  .gaceta-hero__video {
    object-fit: cover;
    object-position: center center;
  }

  .gaceta-hero__content {
    padding: 25px 0 55px;
  }

  .gaceta-hero__title {
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    line-height: 1.15;
    margin: 18px 0 14px;
  }

  .gaceta-hero__description {
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .gaceta-hero__link {
    padding: 11px 20px;
  }

  .gaceta-hero__controls {
    bottom: 22px;
  }

  .gaceta-hero__indicators {
    bottom: 42px;
  }
}


/* Distribución definitiva del contenido editorial */

.gaceta-hero .gaceta-hero__slide {
  padding: 0;
}

.gaceta-hero .gaceta-hero__content {
  position: absolute;
  top: 20px;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: flex-start;
  overflow-y: auto;
}

.gaceta-hero .gaceta-hero__content > * {
  flex-shrink: 0;
}

.gaceta-hero .gaceta-hero__title {
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  margin: 14px 0 12px;
  line-height: 1.12;
}

.gaceta-hero .gaceta-hero__description {
  margin-bottom: 16px;
  line-height: 1.45;
}

.gaceta-hero .gaceta-hero__link {
  padding: 9px 18px;
}

/* Indicadores con mayor grosor */

.gaceta-hero .gaceta-hero__indicators {
  bottom: 30px;
  gap: 10px;
}

.gaceta-hero .gaceta-hero__indicator {
  height: 7px !important;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .gaceta-hero .gaceta-hero__content {
    top: 20px;
    bottom: 95px;
    justify-content: safe flex-end;
  }

  .gaceta-hero .gaceta-hero__title {
    font-size: clamp(1.65rem, 6vw, 2.3rem);
  }
}


/* Ajuste de contenido sin recortar el botón */

.gaceta-hero .gaceta-hero__content {
  display: block;
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -28px;
  max-height: none;
  overflow: visible;
}

.gaceta-hero .gaceta-hero__category,
.gaceta-hero .gaceta-hero__date {
  display: inline-block;
  vertical-align: middle;
}

.gaceta-hero .gaceta-hero__title {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.12;
  margin: 12px 0;
  -webkit-line-clamp: 3;
}

.gaceta-hero .gaceta-hero__description {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 14px;
  -webkit-line-clamp: 2;
}

.gaceta-hero .gaceta-hero__link {
  display: inline-flex;
  padding: 9px 18px;
}

@media (max-width: 767px) {

  .gaceta-hero .gaceta-hero__content {
    top: auto;
    bottom: 95px;
    transform: translateX(-50%);
    margin-top: 0;
  }

  .gaceta-hero .gaceta-hero__title {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem);
    -webkit-line-clamp: 4;
  }
}

