/* MENU CATEGORIAS */
.menu-categorias{
    width: 100%;
    margin: 0;
    background-image: url('../images/wood-backround.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    padding: 40px;
}

.menu-tabs{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 0 0 40px 0;
}
.menu-tab{
    flex: 1;
    border: 3px solid var(--verde);
    background-color: var(--verde);
    color: white;
    font-family: 'Road Rage', cursive;
    font-size: 50px;
    font-weight: 100;
    padding: 16px 0;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.menu-tab.activo{
    color: var(--rojo);
}

.menu-productos{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.menu-productos[hidden]{
    display: none;
}

.menu-card{
    display: flex;
    flex-direction: column;
    background-color: rgb(24, 23, 23);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.menu-card-imagen{
    margin: 0 auto;
    width: 80%;
    aspect-ratio: 4 / 5;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}
.menu-card-imagen img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.menu-card-imagen.img-placeholder{
    border-color: white;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}
.menu-card-info{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.menu-card-nombre{
    font-family: 'Dekiru', sans-serif;
    font-size: 60px;
    text-transform: uppercase;
    color: #2f5f08;
    margin-bottom: 4px;
    font-weight: 1000;
}
.menu-card-descripcion{
    font-family: 'Moderustic', sans-serif;
    font-size: 25px;
    color: white;
    line-height: 1.4;
}
.menu-card-footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.menu-card-precio{
    font-size: 30px;
    font-weight: 700;
    color: var(--rojo);
}

@media (max-width: 768px){
    .menu-categorias{
        padding: 20px;
    }
    .menu-tabs{
        gap: 12px;
        margin-bottom: 25px;
    }
    .menu-tab{
        font-size: 26px;
        padding: 12px 0;
    }
    .menu-productos{
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .menu-card{
        padding: 14px;
    }
    .menu-card-nombre{
        font-size: 32px;
    }
    .menu-card-descripcion{
        font-size: 13px;
    }
}


/*
  MENU COMPLETO (solo telefono)
  Fotos 2:3 a todo lo ancho con el nombre encima, la barra de arriba se
  esconde al bajar y la barra de categorias de abajo marca sola en que
  seccion vas. Arriba de 768px se sigue viendo el menu en cuadricula.
*/
.fm-page,
.fm-bar{
    display: none;
}

@media (max-width: 768px){
    .menu-categorias{
        display: none;
    }
    /*La primera foto arranca hasta arriba, sin aviso ni espacio*/
    .info_menuPrincipal{
        display: none;
    }
    /*104px de la barra + los 14px que ahora va levantada*/
    .backroundFooter{
        padding-bottom: 118px;
    }

    .fm-page{
        display: block;
        background-color: #0d0d0c;
        min-height: 100vh;
        padding: 0 0 118px;
        overflow-x: hidden;
    }

    .fm-item{
        position: relative;
        width: 100%;
        aspect-ratio: 2 / 3;
        overflow: hidden;
        background-color: #141312;
        margin: 0;
    }
    .fm-item img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .fm-caption{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 64px 22px 26px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
    }
    .fm-nombre{
        margin: 0;
        font-family: 'Dekiru', sans-serif;
        font-size: clamp(38px, 11.5vw, 56px);
        font-weight: 1000;
        line-height: 0.9;
        letter-spacing: 0.005em;
        text-transform: uppercase;
        color: white;
        text-shadow: 0px 2px 18px rgba(0, 0, 0, 0.55);
    }

    .fm-sep{
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        margin: 0;
        width: 100%;
    }
    /*Anclas de cada categoria*/
    .fm-ancla{
        height: 1px;
    }
    .fm-espacio{
        height: 60px;
    }

    /*
      Va despegada del borde de abajo a proposito: se alcanzan a ver las
      fotos pasando por debajo, asi se nota que va flotando encima del
      contenido y no pegada a la pantalla.
    */
    .fm-bar{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 14px;
        z-index: 1200;
        display: flex;
        background-color: white;
        border-top: 1px solid var(--verde);
        border-bottom: 1px solid var(--verde);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.45), 0px -8px 22px rgba(0, 0, 0, 0.35);
    }
    .fm-tab{
        min-width: 0;
        border: none;
        border-bottom: 3px solid transparent;
        background-color: rgba(59, 107, 19, 0.06);
        color: rgba(17, 17, 16, 0.38);
        cursor: pointer;
        padding: 19px 8px 16px;
        font-family: 'Aldrich', sans-serif;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    }
    .fm-tab-sushi{
        flex: 65 0 0%;
    }
    .fm-tab-bebidas{
        flex: 35 0 0%;
        border-left: 1px solid rgba(59, 107, 19, 0.35);
    }
    .fm-bar[data-active="sushi"] .fm-tab-sushi,
    .fm-bar[data-active="bebidas"] .fm-tab-bebidas{
        color: var(--rojo);
        background-color: white;
        border-bottom-color: var(--rojo);
        text-shadow: 0px 0px 18px rgba(156, 24, 26, 0.35);
    }
}
