* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    background: #222;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* El contenedor principal del contenido */
body {
    flex: 1;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra horizontalmente */
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.5) 100%), url('./img/background-l.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    height: 100%;
    min-height: 350px;
    position: relative;
}

.hero-section img {
    height: 150px;
    width: auto;
}

.cta-buttons button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

/* Servicios, flujo de trabajo, portafolio y testimonios */
.services, .workflow, .portfolio, .testimonials, .footer {
    padding: 40px 20px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.step {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.testimonial {
    margin: 20px auto;
    max-width: 600px;
    font-style: italic;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 400px;
    margin: auto;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        height: auto;
        min-height: 300px;
    }

    .hero-section img {
        height: 120px;
    }

    .cta-buttons button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 10px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 10px;
        height: auto;
    }

    .cta-buttons button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .service-item {
        padding: 15px;
    }
}

