@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.vantagens-section {
    padding: 60px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.container-fluid-vantagens {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.vantagens-top-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    color: #333;
    font-weight: 800;
}

.section-title span {
    color: #e60000;
}

.section-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
}

.vantagens-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px 0;
    width: 100%;
}

.vantagem-card {
    position: relative;
    aspect-ratio: 680 / 920;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    animation: floatCard 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.vantagem-card:nth-child(2n) { animation-delay: 1s; }
.vantagem-card:nth-child(3n) { animation-delay: 2s; }
.vantagem-card:nth-child(4n) { animation-delay: 1.5s; }
.vantagem-card:nth-child(5n) { animation-delay: 2.5s; }

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.vantagem-card:hover .card-bg {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 20px 15px;
    color: #ffffff;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-desc {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mini-app-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.mini-app-icons img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.more-apps {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.vantagem-btn-novo {
    background: linear-gradient(135deg, #e60000 0%, #990000 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    text-align: center;
}

.vantagem-card:hover .vantagem-btn-novo {
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(230, 0, 0, 0.4));
}

.vantagens-modals-container {
    position: relative;
    z-index: 2000;
}

.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-box-content {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.25));
    color: #333;
    text-align: center;
}

.info-modal.active .custom-box-content {
    transform: translateY(0);
}

.close-info-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-info-modal:hover {
    color: #e60000;
}

.custom-box-content h2 {
    color: #e60000;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.custom-box-content p {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.app-grid::-webkit-scrollbar {
    width: 6px;
}

.app-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    transition: transform 0.2s ease;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-item img {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 5px;
    border: 1px solid #eaeaea;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}

.app-item p {
    font-size: 0.85rem;
    color: #333;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.content-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 30px;
}

.content-text {
    flex: 1;
}

.content-text h2 {
    text-align: left;
}

.content-text p {
    text-align: left;
    margin-bottom: 0;
}

.content-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #eaeaea;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}

@media (max-width: 992px) {
    .vantagens-cards-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        margin: 0 -20px;
        gap: 20px;
        scrollbar-width: none; 
    }
    
    .vantagens-cards-grid::-webkit-scrollbar {
        display: none; 
    }
    
    .vantagem-card {
        flex: 0 0 80%;
        max-width: 320px;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .content-simple {
        flex-direction: column;
        text-align: center;
    }
    
    .content-text h2, .content-text p {
        text-align: center;
    }
    
    .mini-app-icons img {
        width: 40px;
        height: 40px;
    }
    
    .more-apps {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
}