/* Importar fuente Inter Medium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
}



/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
}

.nav-logo {
    font-size: 20px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.1);
}

.all-top {

        margin-top: 1.5%;
        margin-left: 8%;

}


h1 {
    font-size: 50px;
}

h4 {
    font-size: 18px;
    font-weight: 400;
}

/* BOTÓN */
.boton-revision-gratis {
    display: flex;
    justify-content:center;
    align-items: left;
    margin-top: 20px;
    
}

.boton-revision {
    width: 500px;
    height: 70px;
    background-color: #20770A;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efecto hover */
.boton-revision:hover {
    background-color: #1a5e08;
    transform: scale(1.05);
}

/* Efecto al presionar el botón */
.boton-revision:active {
    transform: scale(0.98);
}

.imagen-centro img {
    width: 100%;
    height: auto;
    max-width: 1265px;
    max-height: 844px;
    object-fit: contain;
    margin-top: 3%;
    /* Si quieres que la imagen se ajuste dentro del contenedor sin perder la proporción */
}

.subtitulo {
    text-align: left;
    margin-top: 2.5%;
    margin-left: 8%;
}

.textos-izquierda-mid h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
    color: #666;
    text-align: left;
    margin-left: 8%;
}

.textos-izquierda-mid h4 {
    font-size: 16px;
    font-weight: 400;
    margin: 10px 0;
    color: #666;
    text-align: left;
    margin-left: 8%;
}

/* New Grid Styles */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 20px;
    /* Space between columns */
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.text-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    max-width: 600px;
    /* Adjusted to fit better with the grid */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* New Services Styles */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Three equal columns */
    gap: 20px;
    /* Space between cards */
    max-width: 1200px;
    margin: 4rem auto;
    /* Responsive top/bottom margin */
    padding: 0 2rem;
    /* Responsive left/right padding */
}

.service-card {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem;
    /* Inner margin for each card, responsive with rem units */
}

.service-card img {
    max-width: 365px;
    max-height: 365px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}



.service-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 15px 0 10px;
    padding: 0 1rem;
    /* Responsive padding for text */
}

.service-card p {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    padding: 0 1rem 20px;
    /* Responsive padding for text, bottom padding kept as is */
    margin: 0;
}

/* Responsive Design for Tablets and Mobile */
@media screen and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns on tablets */
        margin: 3rem auto;
        /* Reduced margin on tablets */
        padding: 0 1.5rem;
        /* Reduced padding on tablets */
    }

    .service-card {
        margin: 0.8rem;
        /* Slightly reduced margin for tablets */
    }

    .service-card img {
    max-width: 300px;
        /* Slightly smaller images on tablets */
        max-height: 300px;
    }
}

@media screen and (max-width: 768px) {

* {
        box-sizing: border-box;
    }
        body,
        html {
            overflow-x: hidden;
        }
    header{
        place-items: center;
    }

    .all-top{
        margin-right: 7.5%;

    }

    .imagen-centro{
        max-width: 90%;
        margin: 5%;
    }
   
    .services-container {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        margin: 2rem auto;
        /* Reduced margin on mobile */
        padding: 0 1rem;
        /* Reduced padding on mobile */
    }

    .contenedor-top-left{
        text-align: center;
    }

    .service-card {
        margin: 0.5rem;
        /* Smaller margin on mobile */
    }

    .service-card img {
        width: 250px;
        /* Smaller images on mobile */
        height: 250px;
    }

        .logo {
            display:none;
    
        }
    
        .image-grid {
            visibility: hidden;
        }
    
        .contact-form {
            max-width: 80%;
            /* Fuller width on mobile */
       
            
        }
    
        .contact-form h2 {
            font-size: 24px;
            /* Smaller heading on mobile */
        }
    
        .contact-form p {
            font-size: 14px;
            /* Smaller text on mobile */
        }
    
        .contact-form label {
            font-size: 16px;
            /* Smaller labels on mobile */
        }
    
        .contact-form input,
        .contact-form textarea {
            font-size: 14px;
    
            padding: 8px;
    
        }
    
        .contact-form button {
            font-size: 16px;
    
            padding: 12px;
    
        }
}

/* New Contact Form Styles */
.contact-form {
    max-width: 600px;
    /* Limit form width for readability */
    margin: 5% auto;
    /* 5% top and bottom margin, centered horizontally */
    padding: 2rem;
    /* Inner padding for spacing */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.contact-form p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    text-align: left;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    margin-top: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 15px;
    color: #666;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #333;
}

