section.contacto {
    background: url('../img/plaul13.jpg') no-repeat center center/cover;
    margin: 0;
    min-height: 90vh;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

section.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Ajusta el alpha para la opacidad */
    z-index: 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}   

.contact-header h1 {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 3vw, 3rem);
}

.contact-header p {
    font-size: clamp(1rem, 4vw, 1rem);
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.contact-form {
    font-size: clamp(1rem, 2vw, 1rem); 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border 0.3s;
    background-color: rgba(255, 255, 255, 0.435);
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ddd;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: #003d82;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@media (max-width: 768px) {

    section.contacto {
        padding: 15px;
        background-attachment: scroll; 
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }

    .contact-container {
        padding: 20px;
    }
}   

/* Estilo del botón flotante */
.work-with-us-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #2c3e50;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.work-with-us-float:hover {
    background-color: #1a252f;
    transform: scale(1.1);
}

/* Estilo del tooltip */
.work-tooltip {
    position: absolute;
    right: 70px;
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.work-with-us-float:hover .work-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Estilo del modal */
/* Contenedor del modal (fondo oscuro) */
.work-modal {
    display: none; /* Solo esta línea para display */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

/* Contenido del modal */
.work-modal-content {
    background-color: var(--main-color);
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Ancho máximo */
    position: relative;
    /* Animación opcional */
    animation: modalopen 0.4s;
    /* Centrado adicional para navegadores antiguos */
    margin: auto;
    transform: translateY(0);
}

/* Animación de apertura */
@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.work-close:hover {
    color: #333;
}

.work-modal-content h3 {
    margin-top: 0;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}


.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1a252f;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .work-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .work-with-us-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        left: 20px;
    }
    
    .work-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .work-with-us-float {
        right: auto;
        left: 10px;
        bottom: 20px;
        width: auto;
        height: auto;
        padding: 15px 15px;
        border-radius: 30px;
    }
    .work-with-us-float i {
        margin-right: 5px;
    }
    .work-tooltip {
        display: inline;
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        color: white;
        padding: 0;
        font-size: 14px;
    }
}