/* Estilos para el carrusel de redes sociales */
.productos-carousel-section {
    margin-top: -230px;
    position: relative;
    z-index: 10;
    padding-bottom: 30px;
    width: 100vw;
    /* Ocupa todo el ancho de la ventana */
    margin-left: calc(-50vw + 50%);
    /* Centrado forzado para ocupar todo el ancho */
    left: 0;
    right: 0;
}

.productos-carousel-wrapper {
    background: white;
    border-radius: 0;
    /* Elimina bordes redondeados para pantalla completa */
    padding: 25px 15px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);*/
    width: 100%;
    /* Ocupa el 100% del contenedor padre */
}

/* Elimina el padding del contenedor Bootstrap */
.productos-carousel-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* Elimina márgenes de las filas y columnas */
.productos-carousel-section .row {
    margin-left: 0;
    margin-right: 0;
}

.productos-carousel-section .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.productos-item {
    text-align: center;
    padding: 20px 15px;
    transition: all 0.3s ease;
    background: white;
    border-radius: 15px;
    /* Bordes redondeados */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    border: 1px solid #f0f0f0;
    /* Borde sutil */
    margin: 0 8px;
    /* Reducir separación entre items */
    height: calc(100% - 16px);
    /* Ajustar altura para compensar márgenes */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.productos-carousel .owl-stage {
    padding: 8px 0;
    /* Espacio vertical para las tarjetas */
}

.productos-carousel .owl-item {
    padding: 0 5px;
    /* Reducir espacio entre items */
}

.productos-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Sombra más pronunciada al hover */
}

.productos-icon {
    height: 120px;
    /* Altura fija para el contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Estilo para las imágenes - Mismo tamaño para todas */
.productos-icon img {
    width: auto;
    height: 100px;
    /* Altura fija */
    max-width: 100%;
    object-fit: contain;
    /* Mantiene la proporción sin distorsión */
}


.productos-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #051922;
    min-height: 54px;
    /* Altura mínima para mantener consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    /* Mejor espaciado entre líneas */
    overflow: hidden;
    /* Oculta texto que se desborde */
    text-overflow: ellipsis;
    /* Añade puntos suspensivos si es necesario */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Máximo 2 líneas */
    -webkit-box-orient: vertical;
}

.productos-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.productos-btn {
    display: inline-block;
    background-color: #002cb0;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.productos-btn:hover {
    background-color: #001f7a;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}


/* Ajustes responsivos */
@media (max-width: 767px) {
    .productos-carousel-section {
        margin-top: -100px;
    }

    .productos-carousel-wrapper {
        padding: 20px 10px;
    }

    .productos-content h4 {
        min-height: 44px;
        font-size: 16px;
        -webkit-line-clamp: 2;
        /* Mantener 2 líneas en móvil también */
    }

    .productos-item {
        padding: 15px 10px;
    }

    .productos-icon {
        height: 100px;
        font-size: 40px;
    }

    .productos-icon img {
        height: 80px;
    }
}

.productos-carousel-wrapper .owl-nav .owl-prev {
    margin-top: -100px;
    margin-left: 0px;
}

.productos-carousel-wrapper .owl-nav .owl-next {
    margin-top: -100px;
    margin-right: 0px;
}

.titulo-carrusel {
    text-align: center;
    color: #002cb0;
    margin-bottom: 30px;
}

.gradient-text {
    font-size: inherit;
    font-weight: bold;
    background: linear-gradient(90deg, #00a0a8, #7d2ae8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.productos-carousel .single-latest-news {
    border-radius: 10px;
}

.productos-carousel .cart-btn {
    width: 100%;
    text-align: center;
}

/*****/
/* Añadir estas reglas al final del archivo carruselproductos.css */

.productos-carousel .single-latest-news {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.productos-carousel .news-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 15px;
}

.productos-carousel .news-text-box h3 {
    min-height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 1.3;
}

.productos-carousel .news-text-box .excerpt {
    flex: 1;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.productos-carousel .cart-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Ajustes responsivos */
@media (max-width: 991px) {
    .productos-carousel .news-text-box {
        min-height: 200px;
    }

    .productos-carousel .news-text-box h3 {
        min-height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .productos-carousel .news-text-box {
        min-height: 180px;
        padding: 10px;
    }

    .productos-carousel .news-text-box h3 {
        min-height: 44px;
        font-size: 15px;
        -webkit-line-clamp: 2;
    }

    .productos-carousel .news-text-box .excerpt {
        -webkit-line-clamp: 2;
    }

    .productos-carousel-wrapper .owl-nav .owl-prev {
        margin-left: -50px;
    }

    .productos-carousel-wrapper .owl-nav .owl-next {
        margin-right: -50px;
    }
}