* {
    margin: 0;
    padding: 0;
    
}

body {
    font-family: 'Karla', sans-serif;
}

#header {
    background-color: black;
    border-bottom: none 1px;
    padding-top: 0.5rem;
    font-size: .8rem;
    position: relative;
}

#menu-icon{
    display: none;
}

.close-icon{
    display: none;
}

#header a {
    color: #ffc106;
    margin-left: 30px;
    text-decoration: none;
}

#header .enlaces {
    display: flex;
    margin-left: 270px;
}

#footer {
    background-color: black;
    position: relative;
    margin-top: 10.5%;
    width: 100%;
    height: auto;
}

#info-footer{
    display: flex;
    justify-content: center;
}

#footer p{
    color: #ffc106;
}

#footer a{
    text-decoration: none;
    color: #ffc106;
    font-size: .88rem;
}

#info{
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.nosotros{
    color: #ffc106;
    margin-right: 100px;
    line-height: 25px;
}

.categorias{
    color: #ffc106;
}

.contacto{
    color: #ffc106;
    margin-left: 100px;
    font-size: .88rem;
}

.titulo {
    border-bottom: 1px solid #ffc106;
    line-height: 50px;
    width: 300px;
    font-size: .9rem;
    font-weight: bold;
}

.nombre{
    line-height: 25px;
}

.ubicacion{
    display: flex;
}

#info-ubicacion{
    line-height: 20px;
    margin-left: 5px;
}

.telefono{
    display: flex;
    border-top: 1px solid #ffc106;
    border-bottom: 1px solid #ffc106;
    line-height: 30px;
    margin-top: 5px;
}

.castelldefels{
    margin-left: 10px;
}

.begues{
    margin-left: 5px;
}

.correo{
    line-height: 30px;
    display: flex;
}

.correo a{
    margin-left: 10px;
}

.footer-empresa{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.empresa{
    display: flex;
    flex-direction: column;
}

.redes{
    display: flex;
    justify-content: center;
    margin: 5px;
}

#facebook{
    margin-right: 10px;
}

#instagram{
    margin-left: 10px;
}

.imglogo{
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

.imglogo img{
    width: 300px;
}

.container{
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.wrapper{
    position: relative;
    width: 500px;
    height: 580px;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper .form-box{
    width: 100%;
    padding: 40px;
}

.form-box h2{
    font-size: 1.7em;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.name-surname{
    display: flex;
}

#name input{
    width: 150px;
}

.input-box{
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.input-box input{
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    border-radius: 3px;
    margin-top: 10px;
}

.input-box .btnpassword{
    position: absolute;
    font-size: 1.3em;
    right: 8px;
    bottom: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.btn{
    width: 100%;
    height: 45px;
    background-color: black;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.login-register{
    font-size: .9em;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p a{
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover{
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {

    #header {
        padding-top: 0.3rem;
    }

    #header a {
        margin-left: 10px;
    }

    #header .enlaces {
        margin-left: 10px;
    }

    #sama {
        margin-top: 20px;
    }

    #buscador img {
        width: 20px;
    }

    .img-info {
        flex-direction: column;
    }

    .nosotros,
    .categorias,
    .contacto {
        margin: 0;
        text-align: center;
    }

    .desplegable {
        width: 100%;
        cursor: pointer;
        color: #ffc106;
        text-decoration: underline;
        font-size: .88rem;
    }

    .nav-submenu {
        display: none;
    }

    #info {
        display: none;
    }

    .categorias {
        display: block;
    }

    .nav-submenu {
        display: block;
    }

    .desplegable::after {
        content: '▼';
        margin-left: 5px;
        transition: transform 0.2s;
        transform: rotate(180deg);
    }

    body.nav-active {
        overflow: hidden;
    }

    #nav {
        display: none;
        position: fixed;
        background-color: black;
        height: 100%;
        width: 40%;
        top: 0;
        left: 0;
        padding: 20px;
        z-index: 999;
    }

    #nav.active {
        display: block;
    }

    #menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .nav>li {
        display: block;
        margin-bottom: 10px;
    }

    #nav a {
        color: #fff;
    }

    #nav a:hover {
        color: #ffc106;
    }

    .close-icon {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
        color: #fff;
    }
    
    #footer {
        position: absolute;
    }

    .wrapper{
        width: 350px;
    }

    .input-box .btnpassword{
        position: relative;
        font-size: 1.3em;
        left: 245px;
        bottom: 20px;
    } 
    
    #name{
        margin-left: -10px;
    }
    #name input{
        width: 120px;
    }

    #surname{
        margin-left: 5px;
    }

    #email{
        margin-left: -10px;
    }

    #password{
        margin-left: -20px;
    }

    .btn{
        justify-content: center;
    }

}

@media (min-width: 769px) {
    #header {
        padding-top: 0.3rem;
    }

    #header a {
        margin-left: 10px;
    }

    #header .enlaces {
        margin-left: 10px;
    }

    #sama {
        margin-top: 20px;
    }

    .nosotros,
    .categorias {
        margin-left: 10px;
    }

    .desplegable {
        width: 100%;
        font-size: .88rem;
    }

    #footer {
        position: absolute;
    }
}