/* ===== CARTA (se apoya en styles.css de la home) ===== */

/* ===== CABECERA DE PÁGINA ===== */
.page-hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/banners/carta-cocteleria.jpg') center / cover no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), var(--black));
}

.page-hero__content {
  position: relative;
}

.page-hero__pre {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 22px;
  color: var(--pink-light);
}

.page-hero__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 76px;
  line-height: 1.1;
  color: var(--white);
}

/* ===== INTRO ===== */
.menu-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 90px;
  text-align: center;
}

.menu-intro__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 36px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== SECCIONES ===== */
.menu-section {
  padding: 0 var(--side) 110px;
  text-align: center;
}

.menu-section__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  color: var(--pink);
}

.menu-section__note {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 16px;
  color: #bbb;
  margin-top: 16px;
}

/* Imagen separadora entre apartados */
/* Franja de fotos entre apartados: las fotos se reparten a partes iguales */
.menu-photo {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  grid-template-rows: 100%;
  width: 100%;
  /* 5 fotos cuadradas: cada una mide 20vw de ancho, así que la franja mide
     como mínimo 20vw de alto para que se vean las copas enteras sin recortar */
  height: max(460px, 20vw);
  margin-bottom: 110px;
}

.menu-photo img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 70%;  /* si hay que recortar, se recorta arriba: la copa queda entera */
}

/* ===== LISTA DE PLATOS ===== */
.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 80px;
  margin-top: 54px;
  text-align: left;
}

.dish__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dish__name {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
  color: var(--white);
}

.dish__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(214, 30, 122, .6);
  transform: translateY(-5px);
}

.dish__price {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--pink);
}

.dish__desc {
  font-size: 14px;
  font-weight: 300;
  color: #bdbdbd;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
/* ===== LA BARRA (bebidas) =====
   Los grupos se reparten en columnas y cada uno se mantiene entero */
.drinks {
  columns: 3;
  column-gap: 70px;
  margin-top: 54px;
  text-align: left;
}

.drinks__group {
  break-inside: avoid;
  margin-bottom: 46px;
}

.drinks__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
}

.drinks__note {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 14px;
  color: var(--pink-light);
  margin-top: 2px;
}

.drinks__list {
  list-style: none;
  margin-top: 14px;
}

.drinks__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 300;
}

.drinks__detail {
  color: #9a9a9a;
  font-size: 12px;
}

.drinks__price {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--pink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .drinks {
    columns: 1;
  }

  /* En móvil no se muestran los botones de los apartados: la carta empieza directamente */
  .menu-tabs {
    display: none;
  }

  .menu-intro {
    padding-bottom: 50px;
  }

  .page-hero {
    height: 380px;
  }

  .page-hero__title {
    font-size: 48px;
  }

  .menu-section {
    padding-bottom: 80px;
  }

  .menu-photo {
    height: 280px;
    margin-bottom: 80px;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }

  /* En móvil la franja muestra solo las 3 primeras fotos */
  .menu-photo img:nth-child(n+4) {
    display: none;
  }
}

/* Marca del destilado bajo cada cóctel */
.dish__brand {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 14px;
  color: var(--pink-light);
  margin-top: 2px;
}

/* Apartados con un solo cóctel: centrados */
.menu-list--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

/* Tablet: la barra en 2 columnas */
@media (min-width: 901px) and (max-width: 1200px) {
  .drinks {
    columns: 2;
  }
}
