/*======================================
    TARJETAS
======================================*/

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}


/*======================================
    CARD
======================================*/

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    text-decoration: none;
    color: #222;
    border: 1px solid #e6e6e6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: all .3s ease;
    min-height: 300px;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #2563eb;
    box-shadow: 0 18px 35px rgba(37, 99, 235, .18);
}


/*======================================
    ICONO
======================================*/

.icon {
    font-size: 55px;
    margin-bottom: 20px;
}


/*======================================
    TÍTULO
======================================*/

.card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}


/*======================================
    DESCRIPCIÓN
======================================*/

.card p {
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 25px;
}


/*======================================
    BOTÓN
======================================*/

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 25px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    transition: .3s;
}

.card:hover .btn {
    background: #1d4ed8;
}


/*======================================
    RESPONSIVE
======================================*/

@media(max-width:768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .card {
        min-height: auto;
    }
}