.services {
    padding: 4rem 2rem;
    font-family: 'Ubuntu', sans-serif;
}

.services__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.9rem;
    color: var(--color-terciario);
}

.services__subtitle {
    max-width: 760px;
    margin: 0 auto 2.1rem;
    text-align: center;
    line-height: 1.6;
    color: #c8dcf7;
}

.services__grid {
    width: min(1140px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
}

.services__card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(18, 34, 67, 0.72), rgba(8, 18, 41, 0.78));
    border: 1px solid rgba(162, 220, 255, 0.28);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    min-height: 198px;
    backdrop-filter: blur(2px);
    box-shadow: 0 12px 24px rgba(5, 14, 31, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.services__card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 140, 186, 0.6);
    box-shadow: 0 14px 26px var(--shadow-color);
}

.services__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    background: rgba(0, 140, 186, 0.2);
    border: 1px solid rgba(0, 140, 186, 0.45);
    color: #9adfff;
    font-size: 1.15rem;
}

.services__card h4 {
    color: #eaf4ff;
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
    line-height: 1.35;
    min-height: 2.75rem;
    text-wrap: balance;
}

.services__card p {
    margin: 0;
    color: #bfd5ee;
    font-size: 0.95rem;
    line-height: 1.5;
    text-wrap: pretty;
}

@media only screen and (min-width: 768px) and (max-width: 1100px) {
    .services {
        padding: 3.4rem 1.5rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .services {
        padding: 3rem 1rem;
    }

    .services__title {
        font-size: 1.6rem;
    }

    .services__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .services__card {
        min-height: 0;
        padding: 0.95rem 1rem;
    }

    .services__card h4 {
        min-height: 0;
    }
}
