/* ==========================================================
PÁGINA PRINCIPAL DE HERRAMIENTAS
========================================================== */

.tools-home {
    min-height: 100vh;
    background: #f5f7fa;
    color: #1f2937;
}

/* ----------------------------------------------------------
BARRA SUPERIOR
---------------------------------------------------------- */

.tools-home-bar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;

    padding: 0 32px;

}

.tools-home-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-home-brand-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1380ce;
    color: #ffffff;

    border-radius: 10px;

}

.tools-home-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
}

.tools-home-brand span {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    color: #6b7280;
}

/* ----------------------------------------------------------
CONTENEDOR
---------------------------------------------------------- */

.tools-home-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 30px;
}

/* ----------------------------------------------------------
HERO
---------------------------------------------------------- */

.tools-home-hero {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 36px;

}

.tools-home-hero-icon {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #e8f4fc;
    color: #1380ce;

    font-size: 27px;

}

.tools-home-eyebrow {
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    color: #1380ce;

}

.tools-home-hero h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    color: #17202a;

}

.tools-home-hero p {
    margin: 8px 0 0;

    max-width: 650px;

    color: #6b7280;

    font-size: 15px;
    line-height: 1.6;

}

/* ----------------------------------------------------------
FILTROS
---------------------------------------------------------- */

.tools-home-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 22px;

}

.tools-filter {
    border: 1px solid #dbe1e7;
    background: #ffffff;

    color: #4b5563;

    border-radius: 20px;

    padding: 7px 16px;

    font-size: 13px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.tools-filter:hover {
    border-color: #1380ce;
    color: #1380ce;
}

.tools-filter.active {
    background: #1380ce;
    border-color: #1380ce;
    color: #ffffff;
}

/* ----------------------------------------------------------
GRID
---------------------------------------------------------- */

.tools-grid-home {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

}

/* ----------------------------------------------------------
TARJETA
---------------------------------------------------------- */

.tool-item {
    display: flex;
    gap: 17px;

    min-height: 210px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 22px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, .04);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}

.tool-item:hover {
    transform: translateY(-2px);

    border-color: #cddfeb;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, .08);

}

/* ----------------------------------------------------------
ICONO
---------------------------------------------------------- */

.tool-item-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 18px;

}

.tool-item-icon.blue {
    background: #e8f4fc;
    color: #1380ce;
}

.tool-item-icon.green {
    background: #edf8e8;
    color: #5d9e32;
}

.tool-item-icon.orange {
    background: #fff4e6;
    color: #d97706;
}

.tool-item-icon.purple {
    background: #f2edff;
    color: #7555b8;
}

.tool-item-icon.red {
    background: #f2edff;
    color: #b83935;
}

.tool-item-icon.white {
    background: #4b4165;
    color: #fcfcfd;
}


/* ----------------------------------------------------------
CONTENIDO
---------------------------------------------------------- */

.tool-item-content {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

}

.tool-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

}

.tool-item-category {
    font-size: 11px;
    font-weight: 600;

    color: #7b8490;

    text-transform: uppercase;
    letter-spacing: .04em;

}

.tool-item-status {
    white-space: nowrap;

    padding: 3px 8px;

    border-radius: 10px;

    font-size: 10px;
    font-weight: 600;

}

.tool-item-status.available {
    background: #edf8e8;
    color: #4f8d2b;
}

.tool-item-status.soon {
    background: #f1f3f5;
    color: #7b8490;
}

.tool-item h2 {
    margin: 13px 0 7px;

    font-size: 18px;
    line-height: 1.3;

    color: #17202a;

}

.tool-item p {
    margin: 0;

    color: #68717c;

    font-size: 13px;
    line-height: 1.55;

}

.tool-item-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 17px;

    color: #1380ce;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

}

.tool-item-link:hover {
    color: #0d6ead;
}

.tool-item-link i {
    font-size: 11px;

    transition: transform .2s ease;

}

.tool-item:hover .tool-item-link i {
    transform: translateX(3px);
}

.tool-item-link.disabled {
    color: #9aa1a9;
    cursor: default;
}

/* ----------------------------------------------------------
FOOTER
---------------------------------------------------------- */

.tools-home-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 42px;
    padding-top: 20px;

    border-top: 1px solid #e1e5e9;

    color: #8a929c;

    font-size: 12px;

}

.tools-home-footer span:first-child {
    font-weight: 600;
    color: #65707b;
}

/* ----------------------------------------------------------
RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 1000px) {

    .tools-grid-home {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


}

@media (max-width: 650px) {

    .tools-home-bar {
        padding: 0 18px;
    }

    .tools-home-container {
        width: min(100% - 28px, 1180px);
        padding-top: 32px;
    }

    .tools-home-hero {
        align-items: flex-start;
        gap: 15px;
    }

    .tools-home-hero-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;

        font-size: 20px;
    }

    .tools-home-hero h1 {
        font-size: 25px;
    }

    .tools-home-hero p {
        font-size: 14px;
    }

    .tools-grid-home {
        grid-template-columns: 1fr;
    }

    .tool-item {
        min-height: 0;
    }

    .tools-home-footer {
        flex-direction: column;
        gap: 5px;
    }

}

.link_smart {
    text-decoration: none;
}

.link_smart:hover {
    font-weight: 700;
}