/*
 * Estilos para el Hover-Carousel
 * MODIFICADO para tener márgenes (al estar dentro de .container)
*/

.carousel {
  display: block;
  font-size: 0;
  border-radius: 8px; /* Bordes redondeados restaurados */
  padding: 8px; /* Padding interno restaurado */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra restaurada */
  background: #ffffff;
  transform: translateZ(0);
  height: 300px; /* Altura base */
  -webkit-overflow-scrolling: touch;
  
  /* Ocupa el 100% del .container que lo envuelve */
  width: 100%; 
}

.carousel.touch {
  overflow: auto;
}

/* Indicadores de "más contenido" (fade) */
.carousel[data-at*='left'] > .wrap::before {
  opacity: 1;
  text-indent: -50px;
}

.carousel[data-at*='right'] > .wrap::after {
  opacity: 1;
  text-indent: -50px;
}

/* Scrollbar (del JS) */
.carousel::after {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 4;
  bottom: -4px;
  left: 0;
  background: #46b664; /* Color primario de tu web */
  height: 4px;
  border-radius: 4px;
  opacity: 0;
  width: var(--scrollWidth, 0);
  left: var(--scrollLleft, 0);
  transition: opacity .2s, bottom .2s;
}

.carousel:hover::after {
  opacity: 1;
  bottom: -10px;
}

/* Contenedor .wrap */
.carousel > .wrap {
  overflow: hidden;
  border-radius: 6px; /* Radius interno restaurado */
  height: 100%;
}

/* Fades laterales (Ajustar line-height) */
.carousel > .wrap::before,
.carousel > .wrap::after {
  content: '\2039';
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 50px;
  font-size: 80px;
  text-indent: -30px;
  line-height: 300px; /* Coincide con altura base */
  font-family: monospace;
  color: #555;
  font-weight: bold;
  border-radius: 8px; /* Restaurado */
  pointer-events: none;
  transition: .2s ease-out;
  background: linear-gradient(to right, white 20%, transparent);
}

.carousel > .wrap::after {
  transform: rotate(180deg);
  left: auto;
  right: 0;
}

/* Lista UL */
.carousel > .wrap > ul {
  list-style: none;
  white-space: nowrap;
  height: 100%; /* Rellena el .wrap */
  padding: 0;
  margin: 0;
}

/* Items LI */
.carousel > .wrap > ul > li {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin: 0 0 0 5px;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease-out;
}

.carousel > .wrap > ul > li:first-child {
  margin: 0;
}

/* Imágenes IMG */
.carousel > .wrap > ul > li > img {
  display: block;
  height: 100%;
  width: auto; 
  margin: auto;
  vertical-align: bottom;
  position: relative;
  z-index: 1;
  transition: 1s ease;
  /* object-fit: cover; no es necesario con el padding */
}

/* Media Queries de altura */
@media (min-width: 1400px) {
  .carousel {
    height: 450px;
  }
  .carousel > .wrap::before,
  .carousel > .wrap::after {
    line-height: 450px;
  }
}

@media (min-width: 1800px) {
  .carousel {
    height: 550px;
  }
  .carousel > .wrap::before,
  .carousel > .wrap::after {
    line-height: 550px;
  }
}