*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    background-image: url(fondo.png);
    background-size: cover;
       
}
body{
    width: 100%;
    
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #0F172A;
    padding: 15px 15px 120px 15px;
    border-radius:40px 40px 0 0;
    margin-top:200px;
    background-color: white;

    
}
 
.imagen_desktop img {
    display: none;
}
.caja-blanca {
    display: none;
}
.form {
    width: 100%;
    max-width: 600px;
   

}
.contenedor_principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:40px 0px;
    width: 100%;
    border:none;
}
.campo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 15px 0px 15px 0px;
    
    
    
}
.campo input {
    height: 30px;
    margin-top: 5px;
    background-color: white;
    border:none;
    border-bottom: 2px solid #35363a;
   
   
}
h1 {
    text-align: center;
    font-size: 1.4rem;
    margin:30px 0 0 0;
}
.datos_empresa {
    width: 100%;
    background-color: white;
    color:white;
    padding:10px;
    font-size: 1.1rem;
    border-radius: 5px;
}
.contenedor_mensaje {
    display: flex;
    flex-direction: column;
    
}
textarea::placeholder {
    color:#0F172A;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}
select {
     font-size: 16px;
    font-family: 'Inter', sans-serif;

}
/*.mensaje {
    width: 100%;
    background-color: #0F172A;
    color: white;
    padding:10px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    

}*/
.contenedor_mensaje textarea {
    margin-bottom: 40px;
    border:none;
    border-bottom: 2px solid #35363a;
}
.preferencias {
    width: 100%;
    background-color: white;
    color:azure;
    padding:10px;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-bottom: 20px;
    
}
.contenedor_preferencias {
    border:none;
    padding-bottom: 25px;
}
.campo_preferencias select {
    width: 35%; 
    margin-bottom: 25px;
    height: 30px;
}
button {
    width: 50%;
    background-color: #0F172A;
    color:azure;
    padding:10px;
    font-size: 1.1rem;
    border-radius: 25px;
    margin-bottom: 20px;
    margin: 0 auto;
    display: block;
    
}
button:hover {
   background-color: #193f96;
}
@media (min-width:768px) {
    html {
        background-size: 500px;
    }
   
        body {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        height: auto;
        margin: 20px auto 30px;
        border-radius: 25px;
        justify-content: center;
        align-items: center;
        background-color: transparent;
    }
         
    h1 {
        width: 100%;      /* Ocupa el ancho del body */
    max-width: 900px; /* Igual al ancho del formulario para alinearse */
    text-align: center;
    margin-bottom: 20px;
 
    }
  

    .caja-contenedor {
        
        border: 1px solid #0F172A;
        background-color: white;
        border-radius: 10px;
    }
    .caja-blanca {
        display: flex !important;
        justify-content: center;
        align-items: center;
        border: 1px solid #0F172A;
        background-color: white !important;
        border-radius: 10px;
        flex: 0 0 25%;  
      
       
    }
    
    /* 1. Convertimos el contenedor en una rejilla de 2 columnas */
    .contenedor_principal {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
        gap: 30px; /* Espacio entre los campos */
        border: none; /* Quitamos el borde por defecto del fieldset */
        padding: 0px 30px 0px 30px;
    }

    /* 2. Hacemos que Empresa y Persona ocupen todo el ancho (fila completa) */
    .contenedor_principal .campo:nth-child(1),
    .contenedor_principal .campo:nth-child(2) {
        grid-column: span 2; 
    }

    /* 3. Teléfono y Correo ocupan cada uno su columna */
    .contenedor_principal .campo:nth-child(3),
    .contenedor_principal .campo:nth-child(4) {
        grid-column: span 1;
    }

    /* 4. Opcional: Alinear también las preferencias */
    .contenedor_preferencias {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        border: none;
        padding: 30px;
    }
    .contenedor_mensaje {
        padding: 30px;
    }
    .formulario_contacto {
        padding-bottom: 20px;
    }
    .campo {
        margin: 0;
    }
    .logo_form {
        display: flex;   
    }
  
}

    
  

 

  
  

    