@import "variables.scss";
body {
    background-color: color("gris");
}

.rrss {
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
    color: #fff;
    &:hover {
        i {
            color: darken(#fff, 10%);
        }
    }
}

.animate {
    display: inline-block;
}

header {
    margin: 0 0 5% 0;
    z-index: 2;
    .logo-menu {
        padding: 8% 0 0 0;
        align-items: center;
        flex-wrap: no-wrap;
        .logo {
            flex: 1 1 30%;
            display: none;
        }
        .menu {
            width: 100%;
            flex: 1;
            .nav {
                justify-content: center;
                width: 100%;
                padding: 0;
                margin: 0;
                list-style: none;
                .cerrar-movil {
                    display: none;
                }
                >li {
                    overflow: hidden;
                    position: relative;
                    padding: 0 3% 5px 3%;
                    &:last-child {
                        padding: 0 0 5px 3%;
                    }
                    &:hover {
                        overflow: visible;
                    }
                    a {
                        color: #fff;
                        font-weight: 400;
                        text-decoration: none;
                        font-size: 1.2em;
                        transition: all 0.1s ease;
                        background: none;
                        position: relative;
                        letter-spacing: 4px;
                        transition: all 0.1s ease;
                        &.active,
                        &:hover {
                            color: #fff;
                        }
                        &:before {
                            content: "";
                            opacity: 0;
                            bottom: -5px;
                            left: 100%;
                            width: 100%;
                            height: 2px;
                            position: absolute;
                            background: #FFF;
                        }
                    }
                    &.active,
                    &:hover {
                        a {
                            &:before {
                                animation: animarMenu 0.5s forwards;
                            }
                        }
                    }
                }
            }
        }
    }
    #menu-cabecera-movil {
        display: none;
        position: absolute;
        right: 0;
        top: 50px;
        transform: translateY(-50%);
        color: #fff;
        font-size: 50px;
        z-index: 10;
    }
    &.flotante {
        background: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        z-index: 5;
        .nav {
            position: relative;
            &:after {
                content: "";
                height: 1px;
                position: absolute;
                bottom: -30px;
                right: 0;
                left: 45%;
                background: color("azul");
            }
        }
    }
}

#home {
    background: url($url_images+"bg-home.jpg") no-repeat center bottom;
    background-size: cover;
    min-height: 100vh;
    padding: 0 0 120px 0;
    position: relative;
    .logo {
        margin: 0 0 20px 0;
        img {
            max-width: 280px;
            width: 100%;
        }
    }
    .capitan {
        img {
            max-width: 280px;
            width: 100%;
        }
    }
    .mouse {
        position: absolute;
        bottom: 40px;
        left: 0;
        right: 0;
        img {
            width: 40px;
            animation: animacionnavegar infinite 3s ease-in-out;
        }
    }
    .redes {
        position: absolute;
        right: 0;
        top: 50%;
        list-style: none;
        text-align: center;
        li {
            margin: 0 0 20px 0;
        }
        a {
            font-size: 1.8em;
        }
    }
}

#trattoria {
    padding: 40px 0;
    .galeria {
        margin: 40px 0 8% 0;
        display: flex;
        flex-wrap: nowrap;
        a {
            display: block;
            padding: 0 5px;
        }
    }
}

#fabrica-de-cecinas {
    padding: 40px 0;
    .sello {
        margin: 4% 0 6% 0;
    }
    h4 {
        display: inline-block;
        margin: 0 0 10px 0;
    }
    .como {
        max-width: 1000px;
        margin: 40px auto;
        justify-content: space-between;
        .col {
            width: 26%;
            padding: 0 10px;
            text-align: center;
            .img-paso {
                margin: 0 0 10px 0;
            }
        }
    }
    .mensaje-ayuda {
        margin: 0 0 40px 0;
    }
    .productos {
        .col {
            width: 33.3%;
            padding: 0 20px;
        }
        .producto {
            margin: 0 0 5% 0;
            .imagen {
                height: 20vw;
                overflow: hidden;
                position: relative;
                background-size: cover;
                background-position: center center;
                .over {
                    background-size: cover;
                    background-position: center center;
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    opacity: 0;
                    transition: all .2s ease-in;
                    transform: translateY(5%);
                }
                &:hover {
                    .over {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
            }
            .nombre {
                color: #FFF;
                margin: 20px 0 5px 0;
                letter-spacing: 1px;
                font-size: 1.2em;
                small {
                    margin: 0 0 0 5px;
                    font-size: .6em;
                }
            }
            .valor-cantidad {
                .col {
                    color: color("dorado");
                    width: 100%;
                    padding: 0;
                }
                .valor {
                    flex: 1;
                    font-weight: 600;
                    font-size: 1.3em;
                    small {
                        font-size: .7em;
                    }
                }
                .opcion {
                    width: 200px;
                    border: 1px solid color("dorado");
                    padding: 5px 0 5px 10px;
                    position: relative;
                    font-size: .9em;
                    display: flex;
                    flex-wrap: nowrap;
                    align-items: center;
                    span {
                        width: 100px;
                    }
                }
                select {
                    width: 100%;
                    margin: 0 0 0 10px;
                    background: none;
                    border: none;
                    appearance: none;
                    text-align-last: right;
                    outline: 0;
                    font-weight: bold;
                    font-size: 1.1em;
                    background: url(../img/flechas.png) no-repeat 95% center;
                    background-size: 9px;
                    padding: 0 30px;
                    position: relative;
                    option {
                        text-align: center;
                        background: color("gris");
                        &:disabled {
                            background: color("gris");
                            opacity: 0.6;
                        }
                        &:checked {
                            background: color("gris");
                        }
                    }
                }
                select::-ms-expand {
                    display: none;
                }
            }
        }
    }
}

#ubicacion {
    margin: 0 0 0 0;
    iframe {
        width: 100%;
        height: 20vw;
    }
}

#footer {
    background: url($url_images+"bg-footer.jpg") no-repeat center top;
    background-size: cover;
    padding: 0 0 60px 0;
    .contenido-footer {
        margin: 20% 0 0 0;
        justify-content: space-between;
        align-items: flex-end;
        .col {
            flex: 1;
            &.centro {
                padding: 0 0 60px 0;
            }
        }
        h5 {
            color: color("dorado");
        }
        .contacto {
            list-style: none;
            margin: 0;
            padding: 0;
            li {
                padding: 0 0 0 40px;
                margin: 0 0 20px 0;
                background-size: contain;
                background-position: 3px center;
                background-repeat: no-repeat;
                &.direccion {
                    background-image: url($url_images+"ubicacion.png");
                }
                &.telefono {
                    background-image: url($url_images+"telefono.png");
                }
                &.email {
                    background-image: url($url_images+"email.png");
                }
                a {
                    color: #FFF;
                    text-decoration: none;
                    &:hover {
                        color: darken(#FFF, 10%);
                    }
                }
            }
        }
        .redes {
            padding: 0;
            margin: 40px 0 0 0;
            display: flex;
            justify-content: center;
            list-style: none;
            li {
                padding: 0 20px;
                font-size: 1.8em;
            }
        }
    }
    .derechos {
        margin: 20px 0 0 0;
        text-align: center;
        color: darken(#FFF, 20%);
    }
}

#formulario {
    display: none;
    background: color("gris");
    max-width: 450px;
    width: 100%;
    padding: 20px;
    border: 2px solid color("dorado");
    .texto {
        text-align: center;
    }
    .form-group {
        margin: 0 0 10px 0;
    }
    .form-control {
        width: 100%;
        padding: 5px 10px;
        border: 2px solid color("dorado");
        background: darken(#FFF, 20%);
        outline: 0;
    }
    .btn {
        border: none;
    }
}

.btn {
    background: color("dorado");
    color: color("gris");
    padding: 10px 40px;
    text-decoration: none;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.2em;
    outline: 0;
}