/* ***************** PÁGINAS DE LAS CARTAS *************** */
.carta {
  display: grid;
  grid-template-columns: auto 1fr;
}
/* ASIDE */
.aside {
  position: sticky;
  top: 0;
  left: 0;
  height: 100dvh;
  background-color: var(--color-primario);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0.4rem;
}

/* ******************************************************* */

/* MAIN */
.main {
  width: 96%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.main__header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primario);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.main__banderas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main__header .boton-whatsapp {
  box-shadow: none;
}
/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 3rem;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  margin-left: auto;
  background: var(--color-secundario);
  transition: width 50ms linear;
}
.carta__icons {
  width: 2rem;
  cursor: pointer;
  animation: rotation 3s;
}
/* Logo superior */
.main__logo {
  width: 40%;
  max-width: 12rem;
  margin: 3rem auto 1rem;
}
h1 {
  width: 98%;
  max-width: 50rem;
  margin: 0 auto;
  padding: 0.5rem;
  color: var(--color-primario);
  font-size: 1.5rem;
  text-align: center;
  border: 1px solid var(--color-primario);
  border-radius: var(--border-radius);
}

/* PLATOS */
/* Container */
.platos {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  padding: 0.2rem;
  display: flex;
  flex-direction: column;
}
/* Familia */
.platos__familia {
  position: relative;
  width: 100%;
  margin: 0.5rem 0;
  display: flex;
  align-items: end;
  cursor: pointer;
  border-radius: var(--border-radius);
  background: var(--color-degradado2);
  box-shadow: var(--sombra2);
  &:active {
    box-shadow: none;
  }
}
/* Efecto visual al pulsar los botones - Agrego la clase con JS */
.active-buttons {
  background: var(--color-formulario);
}
.platos__familia-img {
  height: 8rem;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
}
.platos__familia-h2 {
  margin: 0.5rem;
  padding: 0.2rem 0;
  font-size: 1.5rem;
  color: var(--negro);
  text-transform: uppercase;
}
/* Bloques de productos */
.bloque-productos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  & p {
    padding-left: 1.5rem;
  }
}

.hide {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease-in,
    opacity 0.5s ease-in;
}
/* Clase .active para abrir y cerrar el Acordeon */
.bloque-productos.active {
  max-height: 135rem;
  overflow: visible;
  opacity: 1;
}
.header {
  color: var(--titulos-precios);
  font-weight: bold;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* Platos individuales */
.plato {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding-bottom: 0.2rem;
}
.plato-precio {
  font-size: 1.1rem;
  padding-left: 0.6rem;
  color: var(--titulos-precios);
}
/* Bebidas individuales */
.bebida {
  font-weight: 100;
  color: var(--negro);
}
/* Impuestos */
.tax {
  margin: 1rem;
  text-align: right;
  color: var(--color-primario);
}

/* CARTA DE COMIDAS CABECERA DE CADA FAMILIA */
.familia__food {
  width: 100%;
  max-width: 50rem;
  height: 13vh;
  margin: 0.5rem auto;
  position: relative;
  cursor: pointer;
}
.familia__food-img {
  width: 100%;
  height: 13vh;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: var(--color-degradado2);
  box-shadow: var(--sombra2);
}
.familia__food-tittles {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  color: var(--color-primario);
  background-color: var(--blanco);
  border-radius: var(--border-radius);
  padding: 0.2rem 0.5rem 0rem;
  text-align: center;
}

.carta__titulos-columnas {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: baseline;
}
.cabeceras {
  color: var(--color-primario);
  text-align: right;
  display: flex;
  justify-content: end;
  gap: 1rem;
}
.glass-bottle {
  width: 0.8rem;
  margin: 0 1.1rem;
}
.bottle-medium {
  width: 1rem;
  margin: 0 1.1rem;
}
.bottle-big {
  width: 0.7rem;
  margin: 0 1.1rem;
}

/* *********************************************************** */
/* OCULTAR CON JAVASCRIPT EL PANEL DE DESAYUNOS A PARTIR DE LAS 14:00 */
/* Añado esta clase a los desayunos con jS */
.ocultar {
  display: none;
}
/* *********************************************************** */

.contenedor__precios {
  display: flex;
  justify-content: end;
  align-items: baseline;
}
.producto__precios {
  padding-left: 0.2rem;
  color: var(--negro);
  min-width: 4rem;
  text-align: right;
}
