:root {
    --color-primario: #F3EEEA;
    --color-secundario: #EBE3D5;
    --color-background-sombra: #eccb93;
    --color-media: #6D1516;
    --color-background: #d5918c;
    --color-texto: whitesmoke;
    --text-default: 'Franklin Gothic';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: var(--text-default);
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("../IMG/fondoheader.jpg");
    background-size: cover;
    /*background-color: var(--color-background-sombra);*/
}

/*SUPERADMIN*/
.contenedor_listado_rol {
    text-align: center;
    margin: 20px;
}

/*LOGIN*/
main {
    width: 100%;
    padding: 20px;
    margin: auto;
    margin-top: 100px;
}

.contenedor__todo {
    width: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
}

.caja__trasera {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    background-color: var(--color-media);
    border-radius: 20px;
}

.caja__trasera div {
    margin: 100px 40px;
    color: whitesmoke;
    transition: all 500ms;
}

.caja__trasera div p,
.caja__trasera div button {
    margin-top: 30px;
}

.caja__trasera div h3 {
    font-weight: 400;
    font-size: 26px;
}

.caja__trasera button {
    padding: 10px 40px;
    border: 2px solid whitesmoke;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: whitesmoke;
    outline: none;
    transition: all 300ms;
}

.caja__trasera button:hover {
    background: whitesmoke;
    color: var(--color-media);
}

/*FORMULARIOS*/

.contenedor__login-register {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    position: relative;
    top: -185px;
    left: 10px;
    transition: left 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
}

.contenedor__login-register form {
    width: 100%;
    padding: 80px 20px;
    background: whitesmoke;
    position: absolute;
    border-radius: 20px;
}

.contenedor__login-register form h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-media);
}

.contenedor__login-register form input {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: none;
    background: lightgray;
    font-size: 16px;
    outline: none;
}

.contenedor__login-register form button {
    padding: 10px 40px;
    margin-top: 40px;
    border: none;
    font-size: 14px;
    background: var(--color-media);
    color: whitesmoke;
    cursor: pointer;
    outline: none;
}

.formulario__login {
    opacity: 1;
    display: block;
}

.formulario__register {
    display: none;
}


/*HEADER*/

.titulos {
    font-size: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.subtitulos {
    font-size: 25px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-primario);
}

.btn {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    color: black;
    background: var(--color-primario);
    font-weight: 700;
    padding: 15px 30px;
    outline: none;
    border: 2px solid var(--color-primario);
    cursor: pointer;
    position: relative;
    top: 20px;
    transition: all 0.3s;
}

.btn:span {
    padding-left: 10px;
}

.btn:hover {
    padding: 15px 45px;
}

/*MENU*/

.menu-principal {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 30px;
    margin-top: 10px;
    background: var(--color-background);
    z-index: 1;
}

.logo img {
    width: 60px;
    cursor: pointer;
}

.menu-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.menu-bar .enlaces ul li {
    display: inline-block;
    padding: 0 10px;
}

.menu-bar .enlaces ul li a {
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    background: linear-gradient(currentColor, currentColor);
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: all 0.5s;
}

.menu-bar .enlaces ul li a:hover {
    color: var(--color-secundario);
    background-size: 50% 2px;
}

.menu-bar .sociales a {
    font-size: 16px;
    text-transform: uppercase;
    padding: 0 10px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-texto);
    transition: all 0.5s;
}

.menu-bar .sociales a:hover {
    color: var(--color-secundario);
}

.menu-principal i {
    cursor: pointer;
    color: var(--color-texto);
    font-size: 30px;
    float: right;
    display: none;
    transition: all 0.5s;
}

.menu-principal i:hover {
    color: var(--color-secundario);
}

/* PRODUCTOS */

#menu-productos .contenedor-principal {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;
}

.contenedor-principal #btn-izquierda,
.contenedor-principal #btn-derecha {
    position: absolute;
    height: 10%;
    width: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 40px;
    margin: 0 15px;
    color: var(--color-secundario);
    z-index: 500;
    outline: none;
    transition: all 0.3s;
}

.contenedor-principal #btn-izquierda:hover,
.contenedor-principal #btn-derecha:hover {
    background: var(--color-background-sombra);
    transform: translateY(5px);
}

.contenedor-principal #btn-izquierda {
    left: 0;
}

.contenedor-principal #btn-derecha {
    right: 0;
}

.slider {
    display: flex;
    overflow: hidden;
    height: calc(100vh - 80px);
    scroll-behavior: smooth;
}

.container-productos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
    flex-shrink: 0;
}

.descripcion-productos {
    width: 30%;
}

.descripcion-productos h1 {
    font-size: 3vw;
    font-weight: 600;
    text-transform: uppercase;
}

.descripcion-productos h2 {
    text-transform: lowercase;
    font-size: 2.2vw;
    font-weight: 100;
}

.descripcion-productos p {
    color: var(--color-texto);
    font-style: italic;
    text-align: justify;
}

.imagen-productos {
    width: 50%;
    display: flex;
    justify-content: center;
}

.imagen-productos img {
    width: 100%;
    transform: scale(0.7);
    border-radius: 5%;
    transition: all 0.5s;
}

.imagen-productos img:hover {
    transform: scale(0.8);
    filter: brightness(1.2);
}

/* TABLA*/

table {
    margin: auto;
    margin-top: 40px;
    text-align: center;
    font-family: var(--text-default);
    font-size: 16px;
    border-collapse: collapse;
}

table th,
td {
    border: 2px solid var(--color-texto);
    padding: 5px 30px;
}

table th {
    background-color: var(--color-media);
    color: var(--color-background);
    font-weight: 600;
}

table td:first-child {
    background-color: var(--color-media);
    color: var(--color-background);
}

table tr:nth-child(odd) {
    background-color: rgb(0, 0, 0, 0.09);
}

table tr:hover {
    background-color: rgb(228, 228, 228, 0.75);
}

/* SERVICIOS */

#servicios {
    height: 100vh;
    background: var(--color-secundario);
    padding: 40px;
}

.servicios-titulos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.servicios-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 30px;
    grid-template-areas: "tiempo tabla premio"
        "registro tabla aviso";
}

.tiempo {
    grid-row: tiempo;
    grid-column: tiempo;
}

.premio {
    grid-row: premio;
    grid-column: premio;
}

.registro {
    grid-row: registro;
    grid-column: registro;
}

.aviso {
    grid-row: aviso;
    grid-column: aviso;
}

.table-tabla {
    grid-row: tabla;
    grid-column: tabla;
}

.items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.items span {
    width: 95px;
    font-size: 40px;
    color: var(--color-media);
    padding: 21px;
    border: 5px double gray;
    border-radius: 50%;
    transition: all 0.5s;
}

.items span:hover {
    background: var(--color-media);
    color: whitesmoke;
}

.tiempo span,
.registro span {
    color: rgb(190, 52, 2);
}

.tiempo span:hover,
.registro span:hover {
    background: rgb(190, 52, 2);
    color: whitesmoke;
}

.items .titulo-item {
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 10px 0;
}

.items .texto-item {
    font-size: 14px;
    color: var(--color-background-sombra);
    text-align: center;
    font-style: italic;
    padding: 0 20px;
}

/* EQUIPO */
#equipo {
    height: 100vh;
    display: flex;
}

.persona {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    transition: all 0.5s;
}

.persona:hover {
    flex-grow: 3;
}

.persona-imagen {
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    filter: grayscale(80%);
    transition: all 0.5s;
}

.persona:hover .persona-imagen {
    filter: grayscale(0%);
}

.persona-info {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all 0.1s;
}

.persona:hover .persona-info {
    opacity: 1;
    bottom: 60px;
    transition-delay: 0.3s;
}

.persona-info h2 {
    font-size: 30px;
    color: yellowgreen;
    font-weight: 600;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0, 5);
}

.persona-info p {
    color: var(--color-media);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 3px rgba(255, 0, 0, 0, 5);
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    color: azure;
    background: var(--color-secundario);
    line-height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.5s;
}

.social-media a:hover {
    color: var(--color-secundario);
    background: transparent;
    transform: scale(2);
}

/* INGREDIENTES */

#ingredientes {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ingre {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.imagen-ingre {
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translate(-50%);
}

.info-ingre {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.info-ingre p {
    font-size: 28px;
    color: whitesmoke;
    font-weight: 600;
    transition: all 0.3s;
}

.info-ingre:hover {
    background: rgba(0, 0, 0, 0.25)
}

.info-ingre:hover p {
    transform: translateY(10px);
}

/* CONTACTOS*/

#contacto {
    height: 100vh;
    padding: 60px;
    position: relative;
}

#formulario {
    width: 70%;
    margin: 50px auto;
}

.two-fiels {
    display: flex;
    justify-content: space-between;
}

.input-text,
.input-email,
.textarea {
    border: 1px solid azure;
    color: gray;
    background: whitesmoke;
    outline: none;
    padding: 15px 60px;
    height: 45px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.5s;
}

.textarea {
    width: 100%;
    height: 150px;
    resize: none;
}

.input-text,
.input-email {
    width: 100%;
}

.inputConIcon {
    position: relative;
    width: 48%;
}

.inputConIcon i {
    position: absolute;
    left: 0;
    padding: 14px 15px;
    background: grey;
    color: aliceblue;
    transition: all 0.5s;
}

.textareaIcon {
    width: 100%;
}

.textareaIcon i {
    background: transparent;
    color: #A19E9C;
    padding: 0;
    font-size: 25px;
    left: 17px;
    top: 13px;
    transition: all 0.5s;
}

.inputConIcon input:focus,
.inputConIcon textarea:focus {
    border: 1px solid var(--color-media);
}

.inputConIcon input:focus+i {
    background: var(--color-media);
}

.inputConIcon textarea:focus+i {
    color: var(--color-media);
}

.fiels-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

/* ALERTAS */

.alertas {
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert.show {
    transform: translateY(50%);
}

.alert.hide {
    transform: translateY(-100%);
}

.alert {
    width: 60%;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    transition: all 0.5s;
}

.alert .icono-alert {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
}

.alert .msg {
    padding: 0 20px;
    font-size: 18px;
}

#alertError {
    background: rgb(255, 100, 100);
    border-right: 4px solid rgb(172, 0, 0);
}

#alertError .icono-alert {
    color: rgb(172, 0, 0);
}

#alertError .msg {
    color: #6D1516;
}

#alertSuccess {
    background: rgb(105, 255, 100);
    border-right: 4px solid rgb(6, 172, 0);
}

#alertSuccess .icono-alert {
    color: rgb(6, 172, 0);
}

#alertSuccess .msg {
    color: #156d19;
}

/* FOOTER */
footer {
    display: flex;
    margin-top: -100px;
}

.sociales-metodos {
    width: 25%;
    height: 100px;
    background: #A19E9C;
    color: aliceblue;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.sociales-metodos i {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-size: 30px;
    line-height: 100px;
    transition: all 0.5s;
}

.sociales-metodos span {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 10px 0;
    font-size: 12px;
    background: var(--color-media);
    color: whitesmoke;
    letter-spacing: 1px;
    font-weight: 700;
    transform: translateY(60px);
    transition: all 0.5s;
}

.sociales-metodos i:hover+span {
    transform: translateY(0px);
}

.sociales-metodos i:hover {
    transform: translateY(-20px);
}

/* BOTON SUBIR*/
#btn-top {
    width: 50px;
    height: 50px;
    background: var(--color-media);
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s;
}

#btn-top.show {
    transform: translateY(0);
}

#btn-top.scrollFinal {
    transform: translateY(-250%);
}

#btn-top span {
    color: azure;
    font-size: 25px;
    width: 100%;
    text-align: center;
    line-height: 50px;
    transition: all 0.3s;
}

#btn-top:hover {
    background: #8d2527;
}

#btn-top:hover span {
    transform: translateY(-3px);
}

/* MEDIAQUERY */

@media screen and (max-width: 850px) {
    .container-productos {
        flex-direction: column;
    }

    .descripcion-productos {
        width: 70%;
        order: 1;
    }

    .descripcion-productos .btn {
        padding: 10px 20px;
    }

    .descripcion-productos .btn:hover {
        padding: 10px 30px;
    }

    /* SERVICIOS TABLA */

    .servicios-container {
        margin-top: 50px;
    }

    .items {
        display: none;
    }

    /* LOGIN */
    main {
        margin-top: 50px;
    }

    .caja__trasera {
        max-width: 350px;
        height: 300px;
        flex-direction: column;
        margin: auto;
    }

    .caja__trasera div {
        margin: 0px;
        position: absolute;
    }

    /* FORMULARIOS */
    .contenedor__login-register {
        top: -10px;
        left: -5px;
        margin: auto;
    }

    .contenedor__login-register form {
        position: relative;
    }
}


@media screen and (max-width: 650px) {
    .menu-principal {
        position: fixed;
        top: 0;
        margin-top: 0;
    }

    .menu-principal i {
        display: block;
    }

    .menu-bar {
        justify-content: space-around;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1000;
        background: var(--color-media);
        transition: all 1s;
        transform: translateX(100%);
    }

    .menu-bar.active {
        transform: translateX(0%);
    }

    .menu-bar i {
        position: absolute;
        right: 50px;
        top: 50px;
    }

    .menu-bar .enlaces ul li {
        display: block;
        padding: 20px 10px;
        text-align: center;
    }

    .menu-bar .enlaces ul li a,
    .menu-bar .sociales ul li {
        font-size: 20px;
    }

    /* SLIDER PRODUCTO */

    .slider {
        height: calc(100vh - 0px);
    }

    .imagen-productos {
        width: 80%;
    }

    .descripcion-productos h1 {
        font-size: 6vw;
    }

    .descripcion-productos h2 {
        font-size: 3vw;
    }

    /* INGREDIENTES */
    .info-ingre .txt-ingre {
        display: none;
    }

    /* CONTACTOS */
    #formulario {
        width: 100%;
    }

    .two-fiels {
        flex-direction: column;
    }

    .inputConIcon {
        width: 100%;
    }

    /* ALERTAS */

    .alert {
        width: 100%;
    }

    .alert.show {
        transform: translateY(150%);
    }

    /* FOOTER */
    footer {
        flex-wrap: wrap;
        margin-top: 0px;
    }

    .sociales-metodos {
        width: 50%;
    }

    /* BOTON ARRIBA*/
    #btn-top {
        display: none;
    }
}