*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

header{
    width: 100%;
    height: 90px;
    background: black;
    color: white;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

header div img{
    padding-top: 10px; 
    width: 70%;
    height: 70px;
    margin-left: 5px;
}

.contenedor{
    width: 90%;
}

.button-wrap { text-align: center; } 
.button { background-color: #3B96F7; /* blue */ 
border: none; 
color: white; 
padding: 20px; 
text-align: center; 
text-decoration: none; 
display: inline-block; 
font-size: 16px; 
margin: 4px 2px; 
cursor: pointer; 
}
.button { -webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s; 
}
.button:hover { background-color: #3DB8FE;
color: white; 
} 
.button { border-radius: 60px;} 

#menu-bar{
    display: none;
}

header label{
    float: right;
    font-size: 28px;
    margin: 25px 0 0 0;
    cursor: pointer;

}

.menu{
    position: absolute;
    top: 90px;
    left: 0;
    width: 80%;
    height: 100vh;
    background: black;
    transition: all 0.5s;
    transform: translateX(-100%);
    z-index: 1;
}

.menu a{
    display: block;
    color: white;
    height: 50px;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid yellow;
} 

.menu a:hover{
    background: yellow;
    color: black;
}

#menu-bar:checked ~ .menu{
    transform: translateX(0%);
}

#banner{
    position: absolute;
}

#banner img{
    margin-top: 16px;
    width: 100%;
    height: 40em;
    filter:brightness(0.4);
}

#banner .contenedor {
    position: absolute;            /* Mantiene el contenedor en posición absoluta dentro de #banner */
    top: 50%;                      /* Centra verticalmente el contenedor */
    left: 50%;                     /* Centra horizontalmente el contenedor */
    transform: translate(-50%, -50%); /* Ajuste final para asegurar el centrado perfecto */
    display: flex;                 /* Usamos Flexbox para alinear los elementos */
    flex-direction: column;        /* Apilar los elementos (si hubiera más) en una columna */
    justify-content: center;       /* Centra los elementos de arriba a abajo (vertical) */
    align-items: center;           /* Centra los elementos de izquierda a derecha (horizontal) */
    text-align: center;            /* Alinea el texto dentro de los elementos centrados */
    width: 100%;                   /* Hace que el contenedor ocupe todo el ancho de la pantalla */
    height: 100%;                  /* Hace que el contenedor ocupe toda la altura de la pantalla */
}

button {
    margin-top: 10%;               /* Añade un pequeño margen superior para separar el botón de otros elementos */
    padding: 10px 20px;            /* Da un padding adecuado al botón */
    font-size: 16px;               /* Ajusta el tamaño de la fuente */
    cursor: pointer;              /* Cambia el cursor a "puntero" cuando se pasa sobre el botón */
    border-radius: 5px;            /* Bordes redondeados */
    background-color: #3B96F7;     /* Fondo azul */
    color: white;                  /* Texto blanco */
    border: none;                  /* Elimina el borde predeterminado */
    transition: background-color 0.3s ease; /* Transición para el hover */
}

button:hover {
    background-color: #3DB8FE;     /* Cambio de color cuando el botón se pasa por encima */
}

@media screen and (max-width: 640px) {
    /* Modificar comportamiento del botón en pantallas pequeñas (móviles) */
    button {
        padding: 12px 24px;        /* Aumentar el padding en móviles para hacerlo más accesible */
        font-size: 18px;           /* Ajustar el tamaño de la fuente para hacerlo legible en móviles */
    }
}

#background {
    width: 100%; 
    height: 100%; 
    position: fixed; 
    left: 0px; 
    top: 0px; 
    z-index: -1; /* Ensure div tag stays behind content; -999 might work, too. */
}

.stretch {
    width:100%;
    height:100%;
}

#banner h1{
    font-size: 28px;
    text-align: center;
}

#banner h2{
    text-align: center;
}

#banner a{
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    padding: 10px;
    margin-top: 30px;
    border: 3px solid yellow;
    border-radius: 20px;
    text-align: center;
}

#banner a:hover{
    background: yellow;
    color: black;
}

/*Pie*/
.pie{
    background:black;
    width: 100%;
    color: white;
    text-align: center;
    border-top: 5px solid yellow;
    padding: 5px 0 10px 0;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

button {
    margin-top: 5%;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
  }

.pie small{
    display: block;
    padding: 1px;
    font-size: 80%;
}

@media screen and (min-width: 640px){

    header label{
        display: none;
    }
    header div img{
        width: 30%;
        height: 75px;
        margin-left: 5px;
        position: relative;
        z-index: 1;
    }

    .menu{
        background: black;
        z-index: 0;
        height: 40px;
        width: 30%;
        transform: rotateX(0);
        text-align: right;
        width: 100%;
        top: 55px;
    }

    .menu a{
        display: inline;
        color: white;
        text-decoration: none;
        padding: 15px;
        border-bottom: 1px solid yellow;
    } 

    #banner a{
        display: block;
        width: 20%;
        color: white;
        text-decoration: none;
        padding: 1%;
        border: 3px solid yellow;
        border-radius: 20px;
        margin: auto;
    }

    #banner a:hover{
        background: yellow;
        color: black;
    }

    #banner .contenedor{
        width: 100%;
        position: absolute;
        color: white;
    }

    #banner{
        position: absolute;
        width: 100%;
    }
    #banner h2{
        text-align: center;
        padding-bottom: 15px;
    }
}
