/* Hero principal */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 8%;
    min-height: 80vh;
    background: linear-gradient(to right, #f8f9fc, #ffffff);
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 1rem;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.4rem;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Sección "Qué hacemos" */
#servicios {
    text-align: center;
    padding: 4rem 8%;
    background: #fff;
}

#servicios h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

/* Bloque clickeable */
.servicio-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    display: block;
}

.servicio-link:hover {
    transform: scale(1.05);
}

.servicio {
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.servicio:hover {
    background: #f9f9f9;
}

.servicio img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.servicio h3 {
    font-size: 1rem;
    font-weight: 500;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive específico del hero */
@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }

    .hero-image img {
        max-width: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image img {
        max-width: 260px;
    }
}