/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Evita desbordamiento horizontal */
html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family: sans-serif;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Sección servicios */
.servicios {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

/* Tarjetas */
.servicios .card {
    width: 160px;
    min-height: 180px;   /* ✅ valor válido, no 'auto' */
    background: #e8e8e8;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

/* Imágenes */
.servicios .card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

/* Texto */
.servicios .card h3 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive celular */
@media (max-width: 768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .servicios .card {
        width: 100%;
        min-height: 160px;   /* ✅ altura mínima coherente */
    }

    .servicios .card img {
        height: 80px;
    }

    .servicios .card h3 {
        font-size: 14px;
    }
}

/* Celulares muy pequeños */
@media (max-width: 420px) {
    .servicios {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .servicios .card {
        padding: 10px;
    }

    .servicios .card img {
        height: 70px;
    }
}