/* =========================================================
   CSS — Carrusel de imágenes (3 desktop / 2 mobile)
   Imágenes de 650 × 930 px
   ========================================================= */
.img-carousel {
  position: relative;
  width: 95%;
  max-width: 1480px;
  margin: 2% auto 0;
  --ic-color: #e4002b;   /* flechas y punto activo */
  --ic-gap: 10px;        /* espacio entre imágenes */
  --ic-per-view: 2;      /* imágenes visibles */
}

.img-carousel .ic-viewport {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ic-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.img-carousel .ic-viewport::-webkit-scrollbar { display: none; }

/* Slide: el ancho depende de --ic-per-view */
.img-carousel .ic-slide {
  display: block;
  flex: 0 0 calc((100% - var(--ic-gap) * (var(--ic-per-view) - 1)) / var(--ic-per-view));
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 1400/ 1100;   /* proporción de la imagen */
  border-radius: 5px;
  overflow: hidden;
}
.img-carousel .ic-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* Flechas */
.img-carousel .ic-arrow {
  position: absolute;
  top: 0;
  bottom: 30px;                 /* alto de la zona de puntos */
  margin: auto 0;
  width: 40px;
  height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ic-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.img-carousel .ic-prev { left: 10px; }
.img-carousel .ic-next { right: 10px; }
.img-carousel .ic-arrow:hover { background: #fff; }

/* Puntos */
.img-carousel .ic-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
}
.img-carousel .ic-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: #b5b5b5;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.img-carousel .ic-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background:#e0b98c;
}




/* -----------------------------------  IMAGEN CARRUSEL-0   -----------------------------------------------  */


.img-carousel-0 {
  position: relative;
  width: 95%;
  max-width: 1480px;
  margin: 2% auto 0;
  --ic-color: #e4002b;   /* flechas y punto activo */
  --ic-gap: 10px;        /* espacio entre imágenes */
  --ic-per-view: 2;      /* imágenes visibles */
}

.img-carousel-0 .ic-viewport {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ic-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.img-carousel-0 .ic-viewport::-webkit-scrollbar { display: none; }

/* Slide: el ancho depende de --ic-per-view */
.img-carousel-0 .ic-slide {
  display: block;
  flex: 0 0 calc((100% - var(--ic-gap) * (var(--ic-per-view) - 1)) / var(--ic-per-view));
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 1400/ 1100;   /* proporción de la imagen */
  border-radius: 5px;
  overflow: hidden;
}
.img-carousel-0 .ic-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* Flechas */
.img-carousel-0 .ic-arrow {
  position: absolute;
  top: 0;
  bottom: 30px;                 /* alto de la zona de puntos */
  margin: auto 0;
  width: 40px;
  height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ic-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.img-carousel-0 .ic-prev { left: 10px; }
.img-carousel-0 .ic-next { right: 10px; }
.img-carousel-0 .ic-arrow:hover { background: #fff; }

/* Puntos */
.img-carousel-0 .ic-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
}
.img-carousel-0 .ic-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: #b5b5b5;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.img-carousel-0 .ic-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background:#e0b98c;
}


/* Sin desbordamiento (imágenes <= visibles): sin flechas ni puntos */
.img-carousel-0.is-static .ic-arrow,
.img-carousel-0.is-static .ic-dots { display: none; }

/* -----------------------------------  IMAGEN CARRUSEL-1   -----------------------------------------------  */

.img-carousel-1 {
  position: relative;
  width: 95%;
  max-width: 1480px;
  margin: 2% auto 0;
  --ic-color: #e4002b;   /* flechas y punto activo */
  --ic-gap: 10px;        /* espacio entre imágenes */
  --ic-per-view: 3;      /* imágenes visibles */
}

.img-carousel-1 .ic-viewport {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ic-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.img-carousel-1 .ic-viewport::-webkit-scrollbar { display: none; }

/* Slide: el ancho depende de --ic-per-view */
.img-carousel-1 .ic-slide {
  display: block;
  flex: 0 0 calc((100% - var(--ic-gap) * (var(--ic-per-view) - 1)) / var(--ic-per-view));
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 1400/ 1100;   /* proporción de la imagen */
  border-radius: 5px;
  overflow: hidden;
}
.img-carousel-1 .ic-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* Flechas */
.img-carousel-1 .ic-arrow {
  position: absolute;
  top: 0;
  bottom: 30px;                 /* alto de la zona de puntos */
  margin: auto 0;
  width: 40px;
  height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ic-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.img-carousel-1 .ic-prev { left: 10px; }
.img-carousel-1 .ic-next { right: 10px; }
.img-carousel-1 .ic-arrow:hover { background: #fff; }

/* Puntos */
.img-carousel-1 .ic-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
}
.img-carousel-1 .ic-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: #b5b5b5;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.img-carousel-1 .ic-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background:#e0b98c;
}


/* Sin desbordamiento (imágenes <= visibles): sin flechas ni puntos */
.img-carousel-1.is-static .ic-arrow,
.img-carousel-1.is-static .ic-dots { display: none; }
/*-------------------------  FINAL IMAGEN CARRUSEL-1  --------------------------------------------------*/




/* -----------------------------------  IMAGEN CARRUSEL-2   -----------------------------------------------  */

.img-carousel-2 {
  position: relative;
  width: 95%;
  max-width: 1480px;
  margin: 2% auto 0;
  --ic-color: #e4002b;   /* flechas y punto activo */
  --ic-gap: 10px;        /* espacio entre imágenes */
  --ic-per-view: 2;      /* imágenes visibles */
}

.img-carousel-2 .ic-viewport {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ic-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.img-carousel-2 .ic-viewport::-webkit-scrollbar { display: none; }

/* Slide: el ancho depende de --ic-per-view */
.img-carousel-2 .ic-slide {
  display: block;
  flex: 0 0 calc((100% - var(--ic-gap) * (var(--ic-per-view) - 1)) / var(--ic-per-view));
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 1400/ 1100;   /* proporción de la imagen */
  border-radius: 5px;
  overflow: hidden;
}
.img-carousel-2 .ic-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* Flechas */
.img-carousel-2 .ic-arrow {
  position: absolute;
  top: 0;
  bottom: 30px;                 /* alto de la zona de puntos */
  margin: auto 0;
  width: 40px;
  height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ic-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.img-carousel-2 .ic-prev { left: 10px; }
.img-carousel-2 .ic-next { right: 10px; }
.img-carousel-2 .ic-arrow:hover { background: #fff; }

/* Puntos */
.img-carousel-2 .ic-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
}
.img-carousel-2 .ic-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: #b5b5b5;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.img-carousel-2 .ic-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background:#e0b98c;
}


/* Sin desbordamiento (imágenes <= visibles): sin flechas ni puntos */
.img-carousel-2.is-static .ic-arrow,
.img-carousel-2.is-static .ic-dots { display: none; }
/*-------------------------  FINAL IMAGEN CARRUSEL-2  --------------------------------------------------*/





/* ===== Breakpoints =====
   0 - 767px     → 2 imágenes (mobile)
   768px en más  → 3 imágenes (desktop)
   Si cambias este valor, cambia también perView() en el JS. */
@media (min-width: 768px) { 
    
.img-carousel { --ic-per-view: 3; --ic-gap: 14px; } 
    
.img-carousel-0 { --ic-per-view: 3; --ic-gap: 14px; }    
.img-carousel-1 { --ic-per-view: 4; --ic-gap: 14px; }     
.img-carousel-2 { --ic-per-view: 6; --ic-gap: 25px; } 
    
}



@media (max-width: 767px) {
  .img-carousel .ic-arrow { width: 32px; height: 32px; }
  .img-carousel .ic-prev { left: 6px; }
  .img-carousel .ic-next { right: 6px; }
}