/*Barra busqueda*/

.barra {
    display: flex;
    align-items: center;
}

.barra input {
    padding: 8px;
    width: 250px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.barra button {
    padding: 8px 12px;
    margin-left: 5px;
    border: none;
    background-color: black;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.barra button:hover {
    background-color: gray;
}

/*Pagina*/
#fondo{
    background-color: black;
    margin-left: 8%;
    margin-right: 8%;
    margin-top: 2.5%;
    opacity: 95%;
    color: gray;
    border-radius: 1em;
    box-shadow: 11px 10px 5px gray, 10px -6px 5px gray, -10px -7px 5px gray, -10px 10px 5px gray;
}

h3{
    font-size: 0.81em;
}

.padding{
    padding: 2%;
}

body{
    background-image: url(telon.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    background-position: center;
}
header{
    display: grid;
    grid-template-columns: auto 0.95fr auto; /* Mantiene la imagen a la izquierda y centra la barra */
    align-items: center; /* Alinea verticalmente */
    padding: 15px;
}
header img{
    height: 4em;
    width: 6em;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
}

img{
    height: 260px;
    width: 200px;
}

ul {
    display: flex;
    flex-wrap: wrap;
}

li{
    list-style: none;
    margin-right: 3em;
    text-align: center;
}
li:nth-child(odd) {
    color: red;
  }
a{
    text-decoration: none;
    color: gray;
}

.listas{
    justify-content: space-evenly;
}

a:hover img{
    width: 240px;
    height: 300px;
    transition: 1s;
}

.texto{
    text-align: justify;
}

h2{
    font-size: 20px;
}

.ubicacion{
    margin-top: 5%;
}

iframe{
    width: 100%;
}



footer{
    margin-top: 100px;
    text-align: center;
}

/*Formulario CSS*/
.grid{
    display: grid;
    border-top: 1px solid grey;
    padding-top: 20px;
    padding-bottom: 30px;
    grid-template-columns: 10% 40% 10%;
    grid-gap: 20px;
}
.direccion-grid{
    display: grid;
    grid-template-columns: 10% 20% 10%;
    grid-gap: 10px;
}
.grid1{
    grid-column: 1/2;
    text-align: end;
    padding-left: 20%;
    
}
.grid2{
    grid-column: 2/3;
    font-size: 11px;
    color: grey;
}
.grid:hover{
    background-color: rgb(31, 15, 15);
}
.flex{
    display: flex;
    flex-direction: column;
}
.nombre_apellidos label{
    margin-bottom: 10px;
}
.size1{
    width: 200px;
    height: 20px;
}
.mandatory{
    color: red;
}
.size2{
    width: 300px;
    height: 20px;
}
.grid3{
    visibility: hidden;
}
.grid:hover .grid3{
    visibility: visible;
}
.direccion1{
    grid-column: 1/4;
}
.direccion2{
    grid-column: 1/2;
    grid-row: 3/4;
}
.direccion3{
    grid-column: 3/4;
    grid-row: 3/4;
}
.direccion4{
    grid-column: 1/2;
    grid-row: 4/5;
}
.direccion5{
    grid-column: 3/4;
    grid-row: 4/5;
}
.size3{
    width: 100px;
}
label{
    padding-bottom: 10px;
}
.size4{
    width: 60%;
    margin-right: 100px;
}
.grid2 .flex{
    flex-direction: row;
    justify-content: flex-start;
}
.end{
    grid-column: 3/4;
}