section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/src/oficial/portadas/contactoTrabajaCon/trabajoTrigo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    filter: blur(5px);
    z-index: -1;
}

.container_contacto{
    background-color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 1200px;
    padding: 20px;
    border-radius: 25px;
}

.contendedor_img{
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-self: center;
    padding: 10px;
    overflow: hidden;
}

.contendedor_img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    border-radius: 25px;
}

form{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
    gap: 10px;
    width: 55%;
}

.titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.titulo h1{
    font-size: 50px;
    text-align: center;
}

.titulo p{
    font-size: 20px;
    text-align: center;
    width: 90%;
}

.formulario_contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #c1c1c1;
    padding: 10px 20px;
    width: 80%;
    border-radius: 10px;
    gap: 5px;
}

input, textarea{
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px #c1c1c1 solid;
    box-sizing: border-box;
}
.form_row {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack Turnstile widget and its error message */
    align-items: center; /* Center the Turnstile widget */
    /* gap: 5px; /* Optional: if you want space between widget and its error message */
    margin: 5px 0; /* Add some vertical margin around the Turnstile row */
}
input{
    height: 30px;
}

textarea{
    resize: none;
    height: 100px;
}

.btn_enviar{
    width: 100%;
    display: flex;
    justify-content: center;
    /* height: 100%; Removed to allow natural height */
}

.btn_enviar button{
    padding: 10px 50px;
    background-color: rgb(166, 25, 46);
    color: #fff;
    border: 3px solid rgb(166, 25, 46);
    border-radius: 15px;
    font-size: 20px;
}

.btn_enviar button:hover{
    background-color: #fff;
    border: 3px solid rgb(166, 25, 46);
    color: rgb(166, 25, 46);
    font-weight: 600;
    cursor: pointer;
}

input:focus, textarea:focus {
    border: 1px solid rgb(166, 25, 46); 
    outline: none; 
}


.adjunto{
    display: flex;
    flex-direction: row;
    width: 105%;
    align-items: center;
    justify-content: start;
    gap: 0;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    height: 100%;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    justify-self: center;
    background-color: #d39e6c;
    color: white;
    font-weight: bold;
    border-radius: 5px 0px 0px 5px;
    cursor: pointer;
}

.file-label:hover {
    background-color: #b2864b;
}

#file-name {
    font-size: 14px;
    color: #000;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 0px 10px 10px 0px;
}

@media(max-width:1450px) {
    .container_contacto{
        width: 1000px;
    }

    .informacion{
        width: 100%;
        padding: 30px 100px;
    }

    .informacion h2{
        font-size: 50px;
        margin-bottom: 20px;
    }

    .informacion p{
        font-size: 17px;
    }
    
}


@media(max-width:1200px) {
    .container_contacto{
        width: 800px;
    }
}

@media(max-width:900px) {
    .container_contacto{
        width: 700px;
    }
}

@media(max-width:760px){
    .informacion{
        margin-top: 207px;
    }

    .container_contacto{
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: start;
        height: 800px;
        padding: 20px;
    }

    .contendedor_img{
        width: 100%;
        height: 300px;
    }

    .contacto{
        width: 100%;
        justify-content: start;
    }
    .btn_enviar{
        height: 10%;
    }

    section{
        background-color: #fff;
        padding: 10px;
    }

    section::before{
        background-image: none;
    }

    .contendedor_img{
        width: 90%;
    }

    .container_contacto{
        height: 100%;
        width: 100%;
        padding: 0px;
    }

    .titulo h1{
        font-size: 35px;
    }

    .titulo p{
        font-size: 15px;
    }

    input, textarea{
        width: 100%;
        padding: 5px;
        font-size: 13px;
    }
}

@media(max-width:600px){
    .contendedor_img{
        height: 200px;
    }
}

@media(max-width: 1000px){
    .titulo h1{
        font-size: 30px;
    }
}

@media(max-width:760px){
    .container_contacto{
        height: 900px;        
    }
}