body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.fondo-1 {
    background-image: url('fondo-1.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.fondo-2 {
    background-image: url('fondo-3.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.fondo-3 {
    background-image: url('gris.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Modificación del .hero */
.hero {
    background: transparent; /* Hacemos el fondo transparente */
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative; /* Aseguramos que el z-index funcione */
    z-index: 1; /* Aseguramos que esté por encima del fondo del body */
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
}

nav a:hover {
    text-decoration: underline;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #eee;
}

.services {
    padding: 50px 0;
    text-align: center;
    background-color: #f0f0f0; /* Gris claro */
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service {
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 8px;
    color: #e9e9e9;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service h3,
.service p {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 4px;
}

.service h3 {
    margin-bottom: 10px;
    align-self: flex-start;
    text-align: center;
}

.service p {
    font-size: 1em;
    margin-top: auto;
}

.service-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #2ecc71;
    margin: 10px 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.service::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.service:hover::before {
    transform: rotate(0deg);
}

.contact {
    background: #e9e9e9;
    padding: 4rem 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

label {
    margin-bottom: 0.5rem;
}

input,
textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 40px);
}

textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 40px);
    height: 150px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.quienes-somos {
    padding: 4rem 0;
}

.quienes-somos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.quienes-somos-texto {
    font-size: 1.1rem;
    line-height: 1.8;
}

.quienes-somos-imagen img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quienes-somos-imagen img.expanded {
    transform: scale(1.2);
    z-index: 10;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.gmail-btn {
    display: inline-block;
    background: #b0a4dd;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.gmail-btn:hover {
    background: #9be694;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    nav.nav-active ul {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .quienes-somos-content {
        grid-template-columns: 1fr;
    }

    nav.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000;
    }
}

section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section:not(.show) {
    opacity: 0;
    transform: translateY(50px);
}

section.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos de las Métricas en el Hero */
.metricas-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.metrica-hero {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.metrica-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.valor-hero {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 10px;
}

.descripcion-hero {
    font-size: 1em;
    color: #333;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Responsive adjustments */

@media (max-width: 600px) {
    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .metricas-hero {
        grid-template-columns: 1fr;
    }

    input, textarea {
        width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
    }

    .hero {
        padding: 3rem 0;
    }
}

/* Nuevos estilos agregados */

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.error {
    border: 1px solid red;
}

.quienes-somos-imagen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.quienes-somos-imagen img {
    width: 100%;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.quienes-somos-imagen img.expanded {
    width: 90%;
    transform: scale(1.2);
    z-index: 10;
}

@media (max-width: 768px) {
    .quienes-somos-imagen img {
        width: 80%;
    }
}