:root{
    --claro: #FFFFE9;
    --verde: #114E38;
    --verdeClaro: #DADFB9;
    --amarilloVerde: #76A636;
    --blanco:white;
    --texto: 'Montserrat', sans-serif;
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
}
body{
    font-size: 1.6 rem;
}

*,*::before, *::after{
    box-sizing: inherit;
}
p{
    font-size: 1rem;
}

/*Estilos golbales*/

h1, h2, h3{
    font-family: var(--texto);
}

p,a{
    font-family: var(--texto);
}
.contenedor{
    margin: 0 auto;
    max-width: 120rem;
    width: 95%;
}

/*Encabezado*/

.encabezado{
    background-image: url(../img/fondo\ con\ logo.jpg);
    height: 100vh;
    min-height: 70rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
}

.encabezado::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: -1;
}
.contenido-navegacion{
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--verde);
    box-shadow: 10px 10px 16px -6px var(--verdeClaro);
}
.logo{
    display: flex;
    align-items: center;
}
.logo img{
    height: 60px;
    margin-right: 12px;
    margin-right: 10px;
}
.logo h2{
    font-size: 1.8rem;
    color: var(--verdeClaro);
    text-align: center;
    margin-right: 10px;
}
.logo h2 span{
    font-size: 1.3rem;
}
.logo input{
    color: var(--verdeClaro); 
    font-size: 1.1rem;
    border-radius: 5px;
    color: var(--verde);
    padding: 6.5px 80px;
    margin-left: 5rem;
    outline: 2px solid var(--verde);
}

input[type="submit"]{
    background-color: var(--amarilloVerde);
    border: none;
    padding: 7px 20px;
    margin: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    
}
input[type="submit"]:hover{
    background-color:var(--verdeClaro);}

    .navegacion a{
        font-size: 1.3rem;
        padding: 0.5rem;
        color: var(--verdeClaro);
        text-decoration: none;
        transition: background-color all .3s ease-in-out;
    }
    
    .navegacion a:hover{
        background-color: var(--amarilloVerde);
        color: var(--verdeClaro);
    
    }
    
    .contenido-encabezado{
        text-align: center;
    }
    .contenido-encabezado{
        background-size: cover;
        background-position: center;
        height: 320px;
        display: flex;
        justify-content: center;
        align-items: center; 
    }

/*Container ayuda*/

.formulario{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30rem;
    height: 42rem;
    background: white;
    border-radius: 1rem;
    margin-top: -8rem;
    background-color: rgba(182, 182, 182, 0.7);
}

.formulario h1{
    text-align: center;
    padding: 0 0 20;
    border-bottom: 1px solid silver;
    margin-top: 1rem;
    color: var(--verde);
}

.formulario p{
    font-size: 1.5rem;
    text-align: center;
    margin: 1rem;
}

.formulario form{
    padding: 0 4rem;
    box-sizing: border-box;
}
form .ayuda{
    position: relative;
    border-bottom: 2px solid #adadad;
    font-weight: 600;
}

.ayuda input{
    width: 100%;
    padding: 0 5px;
    height: 4rem;
    font-size: 1.5rem;
    border: none;
    background: none;
    outline: none;
}
.ayuda label{
    position: absolute;
    top: 50%;
    left: 5px;
    color: var(--verde);
    font-size: 1.2rem;
    pointer-events: none;
}
.ayuda span::before{
    content: '';
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--verde);
}

.ayuda input:focus ~ label{
    top: -5px;
    color: var(--verde);
}
.ayuda input:focus ~ span::before{
    width: 100%;
}
/* Estilo para el menú */

.menu {
    text-align: center;
    position: relative;
    font-size: 1.5rem;
    font-weight: 500;
    width: 100%;
    margin-right: 6rem;
    margin-top: 3rem;
}

.menu a {
    text-decoration: none;
    display: block;
    padding: 1rem;
    background-color: var(--amarilloVerde);
    color: black;
}

/* Ocultar los submenús por defecto */
.submenu {
    display: none;
    list-style: none; 
    padding: 0;
    margin: 0;
    width: 100%; 
    background-color: var(--amarilloVerde); 
}

/* Mostrar submenús al pasar el ratón por encima */
.menu:hover .submenu {
    display: block;
}

/* Estilo adicional para los submenús */
.submenu li {
    position: relative;
    text-align: left;
}

.submenu a {
    text-decoration: none;
    display: block;
    padding: 10px;
    background-color: var(--claro);
    color: black;
    transition: background-color 0.3s; /* Transición de color al pasar el ratón */
}

/* Cambiar color al pasar el ratón por encima */
.submenu a:hover {
    background-color: var(--verdeClaro);
}


