/* Estilos personalizados para las tarjetas de estadísticas */
.stats-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow .3s ease;
    position: relative;
    overflow: hidden;
    width: calc(100% - 40px); /* Ajusta el ancho para incluir el margen */
    margin: 20px;
    box-sizing: border-box; /* Asegura que el padding y borde se incluyan en el ancho total */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido de la tarjeta */
    text-align: center; /* Centra el texto */
    height: 240px;
}




    .stats-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.original-content {
    transition: opacity .3s ease;
}

.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    color: #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
    text-align: center; /* Centra el texto dentro del contenido de hover */
}

.stats-card:hover .original-content {
    opacity: 0;
}

.stats-card:hover .hover-content {
    opacity: 1;
}

.stats-icon {
    width: 110px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stats-desc {
    font-size: 11px;
    color: #000000;
    font-weight: 900;
    transition: font-size .3s ease;
}

.stats-card:hover .stats-desc {
    font-size: 11px;
    font-weight: 900;
}

.stats-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-image: url('/img/fondotarjetas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

    .stats-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

    .stats-section > .container {
        padding: 0;
        position: relative;
        z-index: 3;
    }

.slick-prev:before, .slick-next:before {
    color: #FFF;
    font-size: 20px;
}

.slick-prev {
    left: -25px;
    z-index: 2;
}

.slick-next {
    right: -25px;
    z-index: 2;
}

.slick-dots {
    bottom: -30px;
}

    .slick-dots li button:before {
        color: #FFF;
        font-size: 12px;
    }

@media (max-width: 768px) {
    .stats-card {
        margin: 10px auto;
        width: 10%; /* Reduce el ancho de las tarjetas en móviles */
        margin-left:10px;
        margin-right:10px;
    }

    .slick-prev, .slick-next {
        display: block;
        z-index: 2;
    }

    .slick-prev {
        left: -10px;
    }

    .slick-next {
        right: -10px;
    }
}
