﻿/* =========================================
   SAPMXO - CARRUSEL PRINCIPAL
========================================= */

.sapm-carousel {
    width: 100%;
    overflow: hidden;
}

.sapm-slide {
    position: relative;
    min-height: 560px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.sapm-slide-anual {
    background-image: url('../img/carusel/campania_anual.jpg');
}

.sapm-slide-reporte {
    background-image: url('../img/carusel/reporta_pago2.png');
}


/* Overlay */

.sapm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .15) 100% );
}

.sapm-slide-reporte .sapm-overlay {
    background: linear-gradient( 270deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .15) 100% );
}


/* Contenido */

.sapm-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 35px 0;
    color: #fff;
}

.sapm-content-right {
    margin-left: auto;
}


/* Badge */

.sapm-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .8px;
    backdrop-filter: blur(8px);
}


/* Títulos */

.sapm-content h4 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

.sapm-content h1 {
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    font-weight: 700;
    color: #fff;
}

    .sapm-content h1 strong {
        font-weight: 800;
        color: #fff;
    }

.sapm-content p {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .92);
}


/* Botones */

.sapm-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sapm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border: 0;
    border-radius: 50px;
    background: #fff;
    color: #157347;
    font-weight: 700;
    transition: all .25s ease;
}

    .sapm-btn-primary:hover {
        transform: translateY(-2px);
        background: #f1f1f1;
        color: #0f5132;
        box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
    }


.sapm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}

    .sapm-btn-secondary:hover {
        background: rgba(255, 255, 255, .20);
        color: #fff;
    }


.sapm-info {
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}


/* =========================================
   OWL CAROUSEL
========================================= */

.sapm-carousel .owl-item.active .sapm-content {
    animation: sapmFadeUp .8s ease both;
}

@keyframes sapmFadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Flechas */

.sapm-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}

    .sapm-carousel .owl-nav button:hover {
        background: rgba(255, 255, 255, .30) !important;
    }

.sapm-carousel .owl-prev {
    left: 20px;
}

.sapm-carousel .owl-next {
    right: 20px;
}


/* Indicadores */

.sapm-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.sapm-carousel .owl-dot span {
    width: 9px !important;
    height: 9px !important;
    background: rgba(255, 255, 255, .45) !important;
}

.sapm-carousel .owl-dot.active span {
    width: 25px !important;
    border-radius: 10px;
    background: #fff !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .sapm-slide {
        min-height: 500px;
    }

    .sapm-content {
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
    }

    .sapm-content-right {
        margin: 0 auto;
    }

    .sapm-actions {
        justify-content: center;
    }

    .sapm-overlay {
        background: linear-gradient( 180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .80) );
    }

    .sapm-slide-reporte .sapm-overlay {
        background: linear-gradient( 180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .80) );
    }
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 575.98px) {

    .sapm-slide {
        min-height: 570px;
    }

    .sapm-content {
        padding: 25px 18px 45px;
    }

    .sapm-badge {
        padding: 7px 14px;
        margin-bottom: 14px;
        font-size: .72rem;
    }

    .sapm-content h4 {
        font-size: 1rem;
        margin-bottom: 7px;
    }

    .sapm-content h1 {
        font-size: 2.45rem;
        line-height: 1.05;
        margin-bottom: 16px;
    }

    .sapm-content p {
        margin-bottom: 24px;
        font-size: .98rem;
        line-height: 1.55;
    }

    .sapm-actions {
        flex-direction: column;
        width: 100%;
    }

    .sapm-btn-primary,
    .sapm-btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 12px 18px;
        font-size: .92rem;
    }

    .sapm-info {
        display: none;
    }

    .sapm-carousel .owl-nav {
        display: none;
    }

    .sapm-carousel .owl-dots {
        bottom: 14px;
    }
}
