/* ============================================
   Features Section Module
   ============================================ */

.features__grid {
    margin-top: var(--space-16);
}

.features__card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.features__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: var(--space-5);
    transition: all var(--transition-base);
}

.features__card:hover .features__icon {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: var(--shadow-glow);
}

.features__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.features__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* "See all" link */
.features__more {
    text-align: center;
    margin-top: var(--space-12);
}

/* Carrusel táctil nativo CSS Scroll-Snap para pantallas móviles (< 768px) */
@media (max-width: 767.98px) {
    .features__grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 16px;
        gap: 14px;
        padding: 10px 16px 20px !important;
        margin-left: -16px;
        margin-right: -16px;
        margin-top: var(--space-8);
        scrollbar-width: none;
    }

    .features__grid::-webkit-scrollbar {
        display: none;
    }

    .features__grid > .card {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        scroll-snap-align: center;
        margin: 0;
        box-sizing: border-box;
    }

    .features__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }

    .features__dot {
        width: 8px;
        height: 8px;
        border-radius: 99px;
        background: rgba(99, 102, 241, 0.25);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.25s ease;
        touch-action: manipulation;
    }

    .features__dot.active {
        width: 24px;
        background: #6366f1;
        box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    }
}

@media (min-width: 768px) {
    .features__dots {
        display: none !important;
    }
}


