/* --- Services Section --- */
.services-section {
    padding: 80px 100px 60px;
    position: relative;
}

/* Línea separadora negra */
.services-divider {
    width: 100%;
    height: 4px;
    background: #000;
    margin-bottom: 50px;
}

.services-title {
    font-size: 48px;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
    color: #000;
    letter-spacing: -1px;
}

/* --- Cards Grid --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Card Style --- */
.card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    cursor: pointer;
}

/* Imagen */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Título */
.card-title {
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
    color: #111;
    text-align: center;
}

/* Animaciones elegantes */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card:hover img {
    transform: scale(1.07);
}

/* ----- RESPONSIVIDAD MEJORADA ----- */

/* Tablets grandes */
@media (max-width: 1200px) {
    .services-section {
        padding: 60px 60px 50px;
    }

    .card {
        max-width: 100%;
    }
}

/* Tablets (2 columnas) */
@media (max-width: 900px) {
    .services-section {
        padding: 50px 40px 40px;
    }

    .services-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .services-divider {
        margin-bottom: 40px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 10px;
    }

    .card img {
        height: 200px;
    }
}

/* Móviles (1 columna) */
@media (max-width: 600px) {
    .services-section {
        padding: 40px 30px 30px;
    }

    .services-title {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .services-divider {
        margin-bottom: 35px;
        height: 3px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }

    .card {
        max-width: 100%;
    }

    .card img {
        height: 220px;
    }

    .card-title {
        font-size: 20px;
        padding: 18px;
    }
}

/* Móviles pequeños */
@media (max-width: 400px) {
    .services-section {
        padding: 30px 20px 25px;
    }

    .services-title {
        font-size: 28px;
    }

    .card img {
        height: 200px;
    }
}