/* modules/materiales/views/css/carousel.css */
:root {
  --gap: 20px;
}

.carousel {
  width: 100%;
  max-width: 1920px;
  margin: 40px auto;
  overflow: hidden;
  font-family: sans-serif;
}

.slides {
  display: flex;
  gap: var(--gap);
  transition: transform .8s ease-in-out;
}

/* NO width ni flex-basis aquí — lo hará JS */
.slides img {
  display: block;
  height: auto;
  opacity: .3;
  border-radius: 8px;
  object-fit: cover;
  margin: 0;
  max-width: none !important;
}

.slides img.active {
  opacity: 1 !important;
}

.info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.text {
    max-width: 1000px;
    text-align: center;
    margin: 0 40px;
}
.text h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.text p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}
/* Título del slide */
.slide-title {
    font-family: "Grand Hotel", cursive;
    font-size: 55px !important;
    margin: 30px 0px !important;
    font-weight: 500;
}

/* Descripción del slide */
.slide-desc {
font-family: "Poppins", sans-serif;
font-size: 25px !important;
}

/* FLECHAS TRIANGULARES */
.arrow {
    font-size: 0;
    line-height: 0;
    width: 0;
    height: 0;
    cursor: pointer;
    top: 70px;
    position: relative;
}

/* flecha izquierda */
.prev-btn {
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 40px solid #e9e6e1;
    margin-right: 20px;
}

/* flecha derecha */
.next-btn {
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 40px solid #e9e6e1;
  margin-left: 20px;
}

/* al pasar el ratón podemos darle un pequeño feedback */
.prev-btn:hover,
.next-btn:hover {
  opacity: 0.8;
}