:root {

    --primary: #635bff;

    --primary-dark: #5046e5;

    --secondary: #0f172a;

    --text: #475569;

    --light: #f8fafc;

    --border: #e2e8f0;

    --radius: 22px;

}


/* ==========================================
   GENERAL
=========================================== */

body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--secondary);

    background: #ffffff;

}


.navbar {

    border-bottom: 1px solid
        rgba(226, 232, 240, .7);

}


.navbar-brand {

    font-size: 1.35rem;

}


.brand-icon {

    width: 35px;
    height: 35px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: #ffffff;

    border-radius: 10px;

    margin-right: 5px;

}


.btn-primary {

    background: var(--primary);

    border-color: var(--primary);

}


.btn-primary:hover {

    background: var(--primary-dark);

    border-color: var(--primary-dark);

}



/* ==========================================
   HERO
=========================================== */

.hero-section {

    position: relative;

    padding:

        clamp(70px, 10vw, 130px)

        0

        100px;


    overflow: hidden;


    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(99,91,255,.14),
            transparent 40%
        ),

        linear-gradient(
            180deg,
            #fafaff,
            #ffffff
        );

}


.hero-badge {

    display: inline-flex;

    gap: 8px;

    align-items: center;

    padding: 8px 14px;

    border-radius: 50px;

    color: var(--primary);

    background:
        rgba(99,91,255,.08);

    font-size: .85rem;

    font-weight: 600;

    margin-bottom: 25px;

}


.hero-section h1 {

    font-size:
        clamp(2.5rem, 6vw, 5rem);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -.045em;

    max-width: 950px;

    margin: auto;

}


.hero-section h1 span {

    display: block;

    background:
        linear-gradient(
            90deg,
            #635bff,
            #0ea5e9
        );

    background-clip: text;

    -webkit-background-clip: text;

    color: transparent;

}


.hero-description {

    color: #64748b;

    max-width: 650px;

    font-size: 1.15rem;

    margin:

        25px auto

        35px;

}


.search-container {

    max-width: 720px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 12px;

    background: #ffffff;

    padding: 8px 20px;

    border-radius: 18px;

    border: 1px solid var(--border);

    box-shadow:
        0 20px 50px
        rgba(15,23,42,.09);

}


.search-container i {

    color: #94a3b8;

    font-size: 1.2rem;

}


.search-container input {

    width: 100%;

    height: 55px;

    border: 0;

    outline: 0;

    font-size: 1rem;

    background: transparent;

}



/* ==========================================
   CATÁLOGO
=========================================== */

.catalog-section {

    padding: 80px 0 120px;

}


.catalog-header {

    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 30px;

}


.section-label {

    color: var(--primary);

    font-weight: 700;

    font-size: .75rem;

    letter-spacing: .12em;

}


.catalog-header h2 {

    margin-top: 8px;

    font-size: clamp(
        1.8rem,
        4vw,
        2.6rem
    );

    font-weight: 750;

}


.results-counter {

    color: #64748b;

}



/* ==========================================
   FILTROS
=========================================== */

.filters-container {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 40px;

}


.filter-button {

    border: 1px solid var(--border);

    background: #ffffff;

    color: #475569;

    padding: 9px 18px;

    border-radius: 50px;

    transition: .25s ease;

}


.filter-button:hover {

    border-color: var(--primary);

    color: var(--primary);

}


.filter-button.active {

    background: var(--secondary);

    border-color: var(--secondary);

    color: #ffffff;

}



/* ==========================================
   TARJETAS
=========================================== */

.application-card {

    height: 100%;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    overflow: hidden;

    background: #ffffff;

    transition:

        transform .3s ease,

        box-shadow .3s ease,

        border-color .3s ease;

}


.application-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(99,91,255,.3);

    box-shadow:

        0 25px 50px

        rgba(15,23,42,.1);

}


.application-image {

    height: 190px;

    background:

        radial-gradient(
            circle at 70% 20%,
            rgba(14,165,233,.25),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #f1f0ff,
            #eef8ff
        );

    padding: 25px;

    display: flex;

    justify-content:
        space-between;

}


.application-icon {

    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #ffffff;

    font-size: 1.5rem;

    background:

        linear-gradient(
            135deg,
            #635bff,
            #7c3aed
        );

    box-shadow:

        0 15px 30px

        rgba(99,91,255,.25);

}


.featured-badge {

    align-self: flex-start;

    padding: 7px 10px;

    border-radius: 50px;

    background: rgba(
        255,
        255,
        255,
        .85
    );

    backdrop-filter: blur(10px);

    font-size: .72rem;

    font-weight: 600;

}


.featured-badge i {

    color: #f59e0b;

}


.application-content {

    padding: 28px;

}


.category-label {

    color: var(--primary);

    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .08em;

    font-weight: 700;

}


.application-content h3 {

    font-size: 1.4rem;

    margin: 10px 0;

    font-weight: 700;

}


.application-content p {

    color: var(--text);

    min-height: 72px;

    line-height: 1.6;

}


.features-list {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin: 20px 0;

}


.feature-tag {

    background: #f1f5f9;

    padding: 6px 10px;

    border-radius: 7px;

    color: #475569;

    font-size: .72rem;

}


.application-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--secondary);

    font-weight: 650;

    text-decoration: none;

}


.application-link i {

    transition: transform .2s;

}


.application-link:hover i {

    transform:
        translateX(5px);

}



/* ==========================================
   SIN RESULTADOS
=========================================== */

.empty-state {

    padding: 70px 20px;

    text-align: center;

    background: var(--light);

    border-radius: var(--radius);

}


.empty-state i {

    font-size: 2rem;

    color: #94a3b8;

}



/* ==========================================
   RESPONSIVE
=========================================== */

@media (
    max-width: 767px
) {

    .hero-section {

        padding:
            70px 0
            60px;

    }


    .catalog-section {

        padding:
            50px 0
            80px;

    }


    .catalog-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 8px;

    }


    .filters-container {

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 5px;

    }


    .filter-button {

        white-space: nowrap;

    }

}

/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.whatsapp-floating {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;

    font-size: 32px;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(37, 211, 102, .35);

    z-index: 1050;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;
}


/* Icono */

.whatsapp-floating i {
    position: relative;

    z-index: 2;

    line-height: 1;
}


/* Hover */

.whatsapp-floating:hover {
    color: #ffffff;

    background: #20bd5a;

    transform: translateY(-4px) scale(1.05);

    box-shadow:
        0 15px 35px rgba(37, 211, 102, .45);
}


/* =========================================================
   ANIMACIÓN EXTERIOR
========================================================= */

.whatsapp-pulse {
    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background: rgba(37, 211, 102, .35);

    z-index: 1;

    animation:
        whatsappPulse 2s infinite;
}


@keyframes whatsappPulse {

    0% {
        transform: scale(1);
        opacity: .7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 576px) {

    .whatsapp-floating {
        width: 56px;
        height: 56px;

        right: 18px;
        bottom: 18px;

        font-size: 29px;
    }

}

