/* Sección servicios */
.servicios .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 5%;
}

/* Professional card look + hover lift */
.servicios {
    --card-bg: #ffffff;
    --card-radius: 1rem;
    --card-shadow: 0 6px 18px rgba(8, 24, 40, 0.06);
    --card-shadow-hover: 0 18px 40px rgba(8, 24, 40, 0.12);
    --accent: #6A1B9A;
}

/* Card base */
.service-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 22px;
    box-shadow: var(--card-shadow);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s, border-color .28s;
    border: 1px solid rgba(13, 110, 253, 0.06);
    overflow: hidden;
    position: relative;
}

/* subtle top accent bar using pseudo-element */
.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), #a028eb);
    border-bottom-right-radius: 8px;
    transform-origin: left center;
    opacity: 0.9;
}

/* Hover / focus lift */
.service-card:hover,
.service-card:focus-within {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(13, 110, 253, 0.18);
    z-index: 2;
    cursor: pointer;
}

/* Icon styling */
.service-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #4d1172, #ae40f1);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
    transition: transform .28s, box-shadow .28s, background .28s;
}

/* Icon reacts on card hover */
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.14);
}

/* Headline and body */
.service-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    color: #0f1724;
    font-weight: 600;
}

.service-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #475567;
    line-height: 1.45;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* CTA area (if any) align bottom */
.services-cta {
    text-align: center;
    margin-top: 1rem;
}

.service-card .card-cta {
    margin-top: auto;
}

/* keyboard focus outline for accessibility */
.service-card:focus-within {
    outline: 3px solid rgba(13, 110, 253, 0.09);
    outline-offset: 4px;
}

/* Responsive: tablets */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: mobile */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 14px;
        min-height: auto;
        border-radius: 10px;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 10px;
    }

    .service-card::before {
        width: 36px;
        height: 5px;
    }
}