body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.hero {
    background-color: #eee;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    width: 50%;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    line-height: 1.5;
}

.hero-image {
    width: 50%;
}

.hero-image img {
    width: 100%;
    max-width: 500px; /* Ajusta según sea necesario */
    height: auto;
    border-radius: 8px;
}

.button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

.button:hover {
    background-color: #555;
}

.servicios {
    padding: 50px 0;
    text-align: center;
}

.servicios h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.servicios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio {
    width: 300px;
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.servicio img {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Cubre el contenedor sin deformar */
    border-radius: 8px;
    margin-bottom: 10px;
}

.servicio h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.graficas {
    padding: 50px 0;
    text-align: center;
    background-color: #eee;
}

.graficas h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.graficas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.graficas-container img {
    width: 400px;
    margin: 20px;
    border-radius: 8px;
}

.nosotros {
    padding: 50px 0;
    text-align: center;
}

.nosotros h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.nosotros img {
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nosotros p {
    font-size: 1.2em;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.testimonios {
    padding: 50px 0;
    text-align: center;
    background-color: #eee;
}

.testimonios h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio {
    width: 400px;
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonio p {
    font-style: italic;
    line-height: 1.5;
}

.testimonio .autor {
    font-weight: bold;
    margin-top: 10px;
}

.contacto {
    padding: 50px 0;
    text-align: center;
}

.contacto h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.contacto form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contacto label {
    margin-top: 10px;
    text-align: left;
}

.contacto input,
.contacto textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contacto button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

.contacto button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Media Queries for Responsive Design */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        width: 90%;
    }

    .servicios-container,
    .graficas-container,
    .testimonios-container {
        flex-direction: column;
        align-items: center;
    }

    .servicio,
    .testimonio {
        width: 90%;
    }

    .graficas-container img {
        width: 90%;
    }
}