/* ==========================================================================
   Estilos Base del Carrusel
   ========================================================================== */

.carousel-control-next,
.carousel-control-prev {
    width: 5% !important;
}

.carousel-control-prev {
    left: 2.8% !important;
}

.carousel-control-next {
    right: 2.8% !important;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo translúcido para el círculo */
    border-radius: 50%;
    /* Forma circular */
    padding: 15px;
    /* Ajusta el tamaño del círculo */
    width: 40px;
    /* Ajusta el tamaño del icono */
    height: 40px;
    background-size: 50%;
    /* Ajusta el tamaño del icono */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    /* Agrega una transición suave para el fondo */
}

@media screen and (max-width: 768px) {

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        height: unset;
    }
}

.carousel-control-next-icon:hover,
.carousel-control-prev-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);

    /* Oscurece el fondo al pasar el mouse */
}

.carousel-control-next-icon::after,
.carousel-control-prev-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Estilo para Imagen de Carrusel con Relleno y Foco Central
   ========================================================================== */
.carousel-image-fill-focus {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ==========================================================================
   Definir Altura del Contenedor Principal
   ========================================================================== */

/*
.suaton-carousel-standard {
    height: 400px;

}
*/

/* --- Estilos para Captions (Opcional) --- */
.suaton-carousel-standard .carousel-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 15%;
    right: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.carousel-indicators {
    margin-bottom: 0 !important;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    border-radius: 5px;
    right: 5%;
    /* Margen derecho */
    left: 5%;
    /* Margen izquierdo */
    bottom: 5px;
    /* Margen inferior */
    padding: 10px;
    /* Relleno */
}

/* ==========================================================================
   Tamaños Fijos del Carrusel
   ========================================================================== */

/* Tamaños Fijos del Carrusel */
.carousel-fixed-height-sm {
    height: 300px;
}

.carousel-fixed-height-md {
    height: 500px;
}

.carousel-fixed-height-lg {
    height: 700px;
}

.carousel-fixed-height-sm img,
.carousel-fixed-height-md img,
.carousel-fixed-height-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Carrusel Responsivo por Proporción
   ========================================================================== */

/* Carrusel Responsivo por Proporción */
.carousel-ratio-16-9,
.carousel-ratio-4-3,
.carousel-ratio-1-1 {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-ratio-16-9 {
    padding-bottom: 56.25%;
}

/* 16:9 */
.carousel-ratio-4-3 {
    padding-bottom: 75%;
}

/* 4:3 */
.carousel-ratio-1-1 {
    padding-bottom: 100%;
}

/* 1:1 */

.carousel-ratio-16-9 .carousel-inner,
.carousel-ratio-4-3 .carousel-inner,
.carousel-ratio-1-1 .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Carrusel Responsivo por Tamaño
   ========================================================================== */

/* Carrusel Responsivo por Tamaño */
.carousel-responsive {
    height: 600px;
}

/* Valor predeterminado para pantallas grandes */

@media (max-width: 576px) {
    .carousel-responsive {
        height: 200px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .carousel-responsive {
        height: 400px;
    }
}

/* ==========================================================================
   Puntos Focales de Imagen
   ========================================================================== */

/* Puntos Focales de Imagen */
.carousel-focus-center .carousel-item img {
    object-position: center;
}

.carousel-focus-top .carousel-item img {
    object-position: center top;
}

.carousel-focus-bottom .carousel-item img {
    object-position: center bottom;
}

.carousel-focus-left .carousel-item img {
    object-position: left center;
}

.carousel-focus-right .carousel-item img {
    object-position: right center;
}

.carousel-focus-top-left .carousel-item img {
    object-position: left top;
}

.carousel-focus-top-right .carousel-item img {
    object-position: right top;
}

.carousel-focus-bottom-left .carousel-item img {
    object-position: left bottom;
}

.carousel-focus-bottom-right .carousel-item img {
    object-position: right bottom;
}

/* ==========================================================================
   Carruseles con Número Específico de Items
   ========================================================================== */

/* Carruseles con Número Específico de Items */
.carousel-2-items .carousel-slide-item,
.carousel-3-items .carousel-slide-item,
.carousel-4-items .carousel-slide-item,
.carousel-5-items .carousel-slide-item {
    height: 100%;
}

/* ==========================================================================
   Bordes Redondeados para Imágenes
   ========================================================================== */

/* Bordes Redondeados para Imágenes */
.carousel-rounded-sm img {
    border-radius: 5px;
}

.carousel-rounded-md img {
    border-radius: 10px;
}

.carousel-rounded-lg img {
    border-radius: 15px;
}

.carousel-rounded-xl img {
    border-radius: 20px;
}

.carousel-rounded-full img {
    border-radius: 50%;
}

.carousel-rounded-top img {
    border-radius: 15px 15px 0 0;
}

.carousel-rounded-bottom img {
    border-radius: 0 0 15px 15px;
}

.carousel-rounded-left img {
    border-radius: 15px 0 0 15px;
}

.carousel-rounded-right img {
    border-radius: 0 15px 15px 0;
}

/* ==========================================================================
   Sombra, Hover y Bordes para Imágenes
   ========================================================================== */

/* Sombra, Hover y Bordes para Imágenes */
.carousel-shadow img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-rounded-shadow img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-rounded-hover img {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.carousel-rounded-hover img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-bordered img {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ==========================================================================
   Estilos para Carrusel de Productos
   ========================================================================== */
/* Estilos para Carrusel de Productos */
.product-carousel img {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.product-carousel img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Contenedor de imagen con caption
   ========================================================================== */

/* Contenedor de imagen con caption */
.image-with-caption {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Imagen dentro del contenedor */
.image-with-caption img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Estilo para el caption */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 15px;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 20px;
}

/* Efecto hover opcional */
.image-with-caption:hover .image-caption {
    background: rgba(0, 0, 0, 0.8);
}

/* Asegurar que el caption no se salga en móviles */
@media (max-width: 576px) {
    .image-caption {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}
