*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    
}


header {
    box-sizing: border-box;
    border: solid;
    border-width: 10px;
    border-color: transparent;
    color: #000;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed; /* Fija la cabecera */
    top: 0; /* Se coloca en la parte superior de la página */
    left: 0; /* Alineación de izquierda */
    right: 0; /* Alineación de derecha */
    z-index: 1000; /* Asegura que la cabecera esté por encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Agrega una sombra sutil */
    height: 120px;
    background-color:white;
}


.logo-nombre {
    display: flex;
    align-items: center;
}

.logo {
    width: 120px;
    height: auto;
    margin-right: 10px;
    
}

h1 {
    font-size: 30px;
    color: rgb(85, 94, 105);
    margin: 0;
}

.menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    margin-right: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: rgb(7, 33, 105);
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}
.menu ul li a.activo {
    background: rgba(255, 255, 255, 0.3);
    color: #98a2ac;
    border-radius: 3px;
    font-weight: bold;
}

.menu ul li a:hover {
    background: rgba(6,109,171,0.8);
}

.buscador {
    display: flex;
    align-items: center;
    font-family: "Zen Dots", serif;
}

.buscador input[type="search"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 5px;
    font-family: "Zen Dots", serif;
}

.buscador input[type="submit"] {
    padding: 5px 10px;
    border: none;
    background-color: #0056b3;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Zen Dots", serif;
}

.buscador input[type="submit"]:hover {
    background-color: #003d80;
}

/******IMAGEN PRINCIPAL****/


/********NAV**********/

nav{
    
    text-align: center;
    display: flex;
    justify-content: space-between;   
}
nav ul{
	text-shadow: 0px 1px rgba(0, 0, 0, 0.2);
	text-align:left;
	text-decoration: none;
	font-family: "Zen Dots", serif;
	color:white;
    list-style: none;       
}

nav ul a{
    padding: 5px 20px; 
    line-height: 20px;  
}

form{
    padding: 30px 30px; 
    display: flex;   
}




/*Pantalla tablet*/
@media(max-width:1100px){
    header, nav, main, footer{
        width: 100%;   
    }
    header{
        align-items: center;
    }
    main section article{
        width: 45%;
    }
    
}
/*Pantalla Movil*/
@media(max-width:580px){
    nav{
        flex-direction: column;
    }
    main{
        flex-direction: column;
    }
    main section{
        width: 100%;
    }
    main aside{
        width: 100%;
    }
    main section article{
        width: 95%;
    }
    main aside .foto{
        width: 10%;
        /*Para que desaparezcan las fotos en tamaño movil*/
        display: none;
    }
}
/************MAIN************/
.tit{
    font-size: 30px;
    font-family: "Zen Dots", serif;
    margin-top: 10px;
    
}
.tit2{
    font-size: 30px;
    font-family: "Zen Dots", serif;
}
/* Ajustes para el Main */
main {
    display: flex;
    width: 100%;
    max-width: 80%;
    margin: 120px auto 0; /* Se ajusta el margen superior para no solaparse con el header */
    padding: 20px;
    box-sizing: border-box;
}

/* Sección de Texto */
.imgpre{
    width: 60%;
    height: 30%;
    text-align: center;
    padding: 1%;
    margin-top: 1%;
    margin-left: 1%;
    border-radius: 30%;
}
.izquierda {
    flex:1;
    text-align: center;
    margin-bottom: 20px;
}
.formulario{
    flex: 1;
}

/* Sección del Formulario */
.formulario form {
   display: flex;
   flex-direction: column;

}

.formulario h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0056b3;
}

.formulario label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    font-family: "Zen Dots", serif;
}

.formulario input[type="text"],
.formulario input[type="email"],
.formulario input[type="tel"],
.formulario textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Zen Dots", serif;
}

.formulario textarea {
    resize: vertical;
}

.formulario button {
    background: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
    font-size: 16px;
    font-family: "Zen Dots", serif;
}

.formulario button:hover {
    background: #003d80;
}

.formulario button[type="reset"] {
    background: #777;
}

.formulario button[type="reset"]:hover {
    background: #555;
}

.texform{
    font-family: "Zen Dots", serif;
    margin-top: 30px;
    font-size: 20px;
}
.file{
    font-family: "Zen Dots", serif;
}

.mapa{
    margin-top: 50px;
}
/**********FOOTER**************/

footer{
    box-sizing: border-box;
    border: solid;
    border-width: 10px;
    border-color: transparent;
    color: #000;
    /* background: linear-gradient( rgba(197,222,234,1) 0%, rgba(138,187,215,1) 31%, rgba(6,109,171,1) 100%); */
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Agrega una sombra sutil */
    height: 120px;
    background-color:white;
    
    }
    
    footer label{
        padding: 80px;
    }
    img{
        width: 20px;
        height:20px;
        margin: 10px;
        
    }
    .copy{
        width: 10px;
    }
    
    .direccion{
        font-family:"Zen Dots", serif;
        font-size: 10px;
        margin-left: 20px;

    }
    .legal{
        font-family:"Zen Dots", serif;
        font-size: 10px;
        margin-left: 10px;

    }

/* Responsivo */
@media (max-width: 600px) {
    main {
        padding: 10px;
    }
    
    .formulario button {
        width: 100%;
        margin-bottom: 10px;
    }
}