body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.oferts {
  position: relative;
  width: 100%;
  height: 120px;      /* más presencia */
  overflow: hidden;
  border-radius: 10px;
  margin-top: 20px;
}

.img-ofertas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay dividido: izquierda texto, derecha botón */
.overlay-split{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;

  /* capa para que el texto sea legible sobre naranja */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.20) 55%,
    rgba(0,0,0,0.10) 100%
  );
}

.content-left{
  flex: 3;                 /* 3/4 */
  min-width: 0;
  margin-left: 100px;
}

.content-right{
  flex: 1;                 /* 1/4 */
  display: flex;
  justify-content: flex-end;
  align-items: left;
}

/* texto */
.overlay-split h1{
  margin: 0;
  color: #0f0f0f;
  font-size: 32px;
  font-weight: 900;
}

#oferta-titulo {
    text-shadow:
        0 0 2px rgba(50, 50, 50, 0.9),
        0 0 2px rgba(104, 104, 104, 0.6);
}

.overlay-split p{
  margin: 8px 0 0 0;
  color: #2d2d2d;
  font-size: 15px;
  font-weight: 700;
  max-width: 560px;
  line-height: 1.35;
}

.content-left h1,
.content-left p {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.fade {
    opacity: 0;
}



/* BOTÓN CTA llamativo */
.overlay .btn-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .4px;

  background: linear-gradient(135deg, #0b3d91, #2f80ff);
  color: #fff;

  border: 0;
  box-shadow:
    0 14px 28px rgba(0,0,0,.22),
    0 6px 12px rgba(0,0,0,.18);

  position: relative;
  overflow: hidden;

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.overlay .btn-cta::before{
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  transform: rotate(25deg);
  background: rgba(255, 255, 255, 0.938);
  filter: blur(1px);
  opacity: 0;
  transition: left .45s ease, opacity .45s ease;
}

.overlay .btn-cta:hover{
color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 18px 38px rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(248, 245, 245, 0.22);
}

.overlay .btn-cta:hover::before{
  left: 120%;
  opacity: 1;
}

.overlay .btn-cta:active{
  transform: translateY(0px) scale(.98);
}

.overlay .btn-cta i{
  transition: transform .2s ease;
}
.overlay .btn-cta:hover i{
  transform: translateX(2px);
}

/* Responsive: en móvil apilar y centrar */
@media (max-width: 750px){
    .overlay-split h1{
    font-size: 25px;
    }
}

@media (max-width: 650px){
    .overlay-split h1{
    font-size: 22px;
    }
    .overlay-split p{
    font-size: 13px;
    }
}

@media (max-width: 590px){
  .oferts{ height: 155px; } /* 125px suele quedar muy justo; ajuste si desea */

  .overlay-split{
    flex-direction: column;
    align-items: center;     /* centra horizontalmente */
    justify-content: center; /* centra verticalmente */
    text-align: center;      /* centra texto */
    padding: 14px;
    gap: 10px;
  }

  /* ambos ocupan todo el ancho y se centran */
  .content-left,
  .content-right{
    flex: none;              /* quita 3/4 - 1/4 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;     /* centra contenido */
    justify-content: center;
  }

  .overlay-split h1{
    font-size: 20px;
    margin: 0;
    text-align: center;
  }

  .overlay-split p{
    font-size: 12px;
    margin: 4px 0 0 0;
    text-align: center;
  }

  .content-right{
    margin-top: 6px;
  }

  .overlay .btn-cta{
    font-size: 12px;
    padding: 10px 14px;
  }
}



@media (max-width: 1050px){
  .content-left{
     margin-left: 10px;
    }
}
