#features{
  z-index: 1;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 90%;
/*   max-width: 900px; */
  margin: 40px auto;
  /* overflow: hidden; */
/*   background-color: brown; */
  height: 80vh;
  overflow: hidden;
}

.carousel {
/*   background-color: aqua; */
  display: flex;

  transition: transform 0.6s ease;
  width: 85%;

   will-change: transform;
  backface-visibility: hidden; 
}

.slide {
  flex: 0 0 33.333%; /* 3 en escritorio */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
/*   filter: blur(2px); */
  transition: opacity 0.6s ease, transform 0.2s ease;
}

.slide img {
  width: 95%;
  border-radius: 12px;
}

.slide.active {
  opacity: 1;
  transform: scale(1.05);
  transform: scale(1.5);
  z-index: 3;
  filter: blur(0px);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.carousel-text {
  position: absolute;
  text-align: center;
  top: 0%;
  margin-top: 20px;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700 !important;
}








#carousel-caption {
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.2s;
  margin-bottom: 2em;
}

#carousel-caption.animate {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    filter: blur(3px);
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}




@media (max-width: 600px) {
  .slide {
    flex: 0 0 100%;
  }
}










/* new styles carousel 2 ------------ */


.carousel-container {

    position: relative;
    max-width: 100%;
    margin: 1em auto;
    overflow: hidden; /* Oculta lo que se sale del wrapper */
}

/* El contenedor que limita lo que se ve */
.carousel-wrapper {
    overflow: hidden; 
    padding: 20px 0; /* Padding para que la imagen escalada no se corte */
}

/* La pista de movimiento: debe ser más ancha para contener todos los slides */
.carousel-track {
    display: flex;
    /* La transición clave para el movimiento suave */
    transition: transform 0.2s ease-in-out; 
}

.slide {
    min-width: 25em; /* Ancho fijo para cada slide */
    margin: 0 1px; /* Espaciado entre tarjetas (el toque "gapped") */
    /* Posición y escala por defecto */
    transform: scale(0.9);
    opacity: 0.7;
    transition: transform 01s ease-in-out, opacity 0.3s ease-in-out;
    cursor: pointer;
      filter: blur(1px);
      filter: grayscale(100%);
}

.slide img {
    width: 100%;
    /* Altura ajustada para que sea más cuadrada/rectangular */
    height: 20em; 
    object-fit: cover;
    border-radius: 7px; 
}

/* ------------------------------------------------ */
/* CLASE DINÁMICA (Aplicada por JS) */
/* ------------------------------------------------ */

/* El slide activo se agranda y se enfoca */
.slide.is-active {
    transform: scale(1); /* O scale(1.1) si quieres que sea más notable */
    opacity: 1;
      filter: blur(0px);
      filter: grayscale(0%);
}


.arrow2 { 
  margin: 10px;
 width: 2.5em !important;
 height: 2.5em !important;
 background-color: 
 #222 !important;
 border-radius: 5px;
 color:#fff;
   transition: transform 0.1s ease-in-out;
}

.arrow2:hover { 

  transform: scale(1.1);
 opacity: 0.9;
}

.carousel-controls2{
  position: absolute;
  bottom: 0px;
  width: 100%;
/*   background-color: #18e9f8; */
  display:flex !important;
  justify-content:center !important;
}

