.deg-white {
    position: relative;
}

.deg-white::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
    background: linear-gradient(to right, rgb(197 197 197) 0%, rgb(174 174 174 / 73%) 33.33%, rgba(255, 255, 255, 0) 66.66%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none; /* Permite la interacción con el contenido debajo del gradiente */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 669px;
    background-color: transparent;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
  }

  .slider-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .slider-layer {
    position: absolute;
    z-index: 2;
  }

  /* === Imagen principal del libro === */
  .image-layer {
    right: 187px;
    bottom: -211px;
    z-index: 5;
  }

  .image-layer img {
    height: auto;
    width: 100%;
    max-width: 458px;
  }

  /* === Texto principal === */
  .text-layer {
    left: 134px;
    top: 40%;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 800;
    color: #24272b;
    z-index: 6;
  }

  .text-white {
    color: #ffffff;
  }

  .themecolor {
    color: #2447ee;
  }

  /* === Botón === */
  .button-layer {
    left: 136px;
    top: 60%;
    z-index: 7;
  }

  .slider-button {
    background-color: #eceef2 ;
    color: #24272b;
    padding: 10px 44px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .slider-button:hover {
    background-color: #4dd583;
    filter: brightness(1.2);
  }

  /* === Icono decorativo === */
  .icon-layer {
    left: 326px;
    top: 512px;
    z-index: 8;
  }

  /* === Subtítulo === */
  .subtitle-layer {
    left: 146px;
    top: 742px;
    font-size: 17px;
    color: #4f4f51;
    z-index: 9;
  }

  /* === Icono de scroll === */
  .scroll-layer {
    right: 124px;
    bottom: 40px;
    z-index: 10;
  }

  /* === RESPONSIVE: Media Queries === */

  /* 📱 Móviles (hasta 767px) */
  @media screen and (max-width: 767px) {
    .image-layer {
      right: 1px;
      bottom: 11px;
      top: 288px;
    }
    .image-layer img {
      max-width: 500px;
    }

    .text-layer {
      font-size: 29px;
        left: 66px;
        top: 52px;
    }

    .button-layer {
      left: 75px;
      top: 235px;
    }

    .icon-layer {
      left: 235px;
      top: 246px;
    }

    .subtitle-layer {
      left: 65px;
        top: 592px;
        font-size: 15px;
        width: 263px;
    }

    .scroll-layer {
      right: -71px;
        bottom: 25px;
    }
  }

  /* 📲 Tablets (768px a 1023px) */
  @media screen and (min-width: 768px) and (max-width: 1023px) {
    .image-layer {
      left: 302px;
      bottom: 7px;
    }
    .image-layer img {
      max-width: 600px;
    }

    .text-layer {
      font-size: 42px;
        left: 74px;
        top: 160px;
    }

    .button-layer {
      left: 75px;
    }

    .icon-layer {
      left: 235px;
       top: 409px;
    }

    .subtitle-layer {
      left: 90px;
      top: 615px;
      font-size: 16px;
    }

    .scroll-layer {
      right: 77px;
      bottom: 25px;
    }
  }

  /* 💻 Escritorio (1024px en adelante) */
  @media screen and (min-width: 1024px) {
    .image-layer {
      right: 73px;
      bottom: -50px;
    }
    .image-layer img {
      max-width: 600px;
    }

    .text-layer {
     font-size: 50px;
     left: 134px;
     top: 146px;
    }

    .button-layer {
      left: 136px;
    }

    .icon-layer {
      left: 294px;
       top: 408px;
    }

    .subtitle-layer {
      left: 132px;
        top: 611px;
        font-size: 17px;
        width: 48%;
    }

    .scroll-layer {
      right: 59px;
      bottom: 40px;
    }
  }
/* ===== Banner carousel (añadido desde index.html) ===== */
.banner-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50vh;      /* altura: mitad de la pantalla */
  max-height: 600px; /* opcional: limitar en pantallas grandes */
}

.banner-carousel .slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.banner-carousel .slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* recorta la imagen centrada */
  object-position: center;
  flex-shrink: 0;
  display: block;
}

/* Botones de navegación */
.banner-carousel .prev,
.banner-carousel .next {
  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(17 17 17 / 4%);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 52px;
    line-height: 1;
    border-radius: 4px;
    z-index: 5;
}

.banner-carousel .prev { left: 10px; }
.banner-carousel .next { right: 10px; }

/* Dots (puntos) */
.banner-carousel .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.banner-carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #fff;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
}

/* Estado activo del punto */
.banner-carousel .dot.active {
  opacity: 1;
}

/* Accesibilidad: enfoque visible */
.banner-carousel .prev:focus,
.banner-carousel .next:focus,
.banner-carousel .dot:focus {
  /* outline: 2px solid rgba(36,71,238,0.6); */
  outline-offset: 2px;
}

/* Ajustes responsive: altura menor en móviles */
@media screen and (max-width: 767px) {
  .banner-carousel {
    height: 35vh;
    max-height: 380px;
  }
}

/* ===== Caption y CTA para el carousel (overlay sobre cada imagen) ===== */
.banner-carousel .slide {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.banner-carousel .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Capa de texto sobre la imagen */
.banner-carousel .caption {
  position: absolute;
    left: 14%;
    bottom: 25%;
    z-index: 6;
    color: #ffffff;
    max-width: 45%;
    /* background: rgb(6 6 6 / 35%); */
    padding: 16px 20px;
    border-radius: 6px;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); */
    /* backdrop-filter: blur(4px); */
}

/* Títulos dentro de la caption */
.banner-carousel .caption h3 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.banner-carousel .caption h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
}

/* Botón CTA */
.banner-carousel .caption .cta {
  display: inline-block;
  background: #2447ee;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.12s ease;
}

.banner-carousel .caption .cta:hover,
.banner-carousel .caption .cta:focus {
  background: #1a36cc;
  transform: translateY(-2px);
  outline: none;
}

/* Si necesitas el enlace como botón accesible */
.banner-carousel .caption .cta:focus {
  box-shadow: 0 0 0 4px rgba(36,71,238,0.18);
}

/* Ajustes responsive: caption más pequeña y centrada en móviles */
@media screen and (max-width: 767px) {
  .banner-carousel .caption {
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: none;
    padding: 12px 14px;
    text-align: center;
  }

  .banner-carousel .caption h3 {
    font-size: 20px;
  }
  .banner-carousel .caption h4 {
    font-size: 14px;
  }
  .banner-carousel .caption .cta {
    display: inline-block;
    margin-top: 8px;
  }
}

/* Si quieres que la caption ocupe el centro verticalmente opcional:
.banner-carousel.center-caption .caption { top:50%; transform:translateY(-50%); bottom:auto; }
*/
