/* Separador entre productos brunch */
.separador-producto {
  border: none;
  border-top: 1.5px solid #d1d1d1;
  margin: 0.7em auto;
  width: 60%;
  display: block;
  opacity: 0.7;
}
/* ***************** PÁGINAS DE LAS CARTAS *************** */

/* ******************************************************* */
/* NUEVO CSS */
/* ******************************************************* */
/* ESTILOS DE LA PÁGINA */
.carta {
  display: flex;
  flex-direction: column;
}
.deco {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  backdrop-filter: blur(5px);
  z-index: 5;
  box-shadow: var(--sombra);
}

/* MAIN */
.wrapper {
  max-width: 1200px;
  margin: 0rem auto 3rem;
  padding: 0 1rem;
}
.main {
  width: 100%;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Logo superior */
.main__logo {
  width: 70dvw;
  max-width: 15rem;
  padding: 5rem 0;
  margin: 0 auto;
}
/* FAMILIA */
.platos {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .platos {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
}
.platos__familia {
  width: 100%;
  margin-bottom: 0.8rem;
}
.platos__familia-h2 {
  color: var(--color-secundario);
  font-size: 2rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  @media (max-width: 1024px) {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra);
    font-size: 1.7rem;
  }
}
h4 {
  font-size: 1.1rem;
  padding: 0.2rem;
  @media (min-width: 1024px) {
    font-size: 1.2rem;
  }
}

/* *********************************************** */
/* BRUNCH */
.brunch {
  width: 100%;
}
.brunch h1 {
  color: var(--color-secundario);
  text-align: center;
  margin: 0.2rem;
  font-size: 1.8rem;
  font-weight: bold;
}
.brunch p {
  text-align: center;
  margin: 0.2rem;
  font-size: 1.3rem;
}

.brunch-textos {
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
}
.brunch-textos p {
  font-family: "Roboto", sans-serif;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

/* ====================================================================
   ACORDEÓN CON EFECTO FADE-IN ESCALONADO
   ====================================================================

   ESTRUCTURA HTML REQUERIDA:
   --------------------------
   <div class="hide">
     <div class="accordion-content">
       <div>Producto 1</div>
       <div>Producto 2</div>
       <div>Producto 3</div>
       ...
     </div>
   </div>

   USO:
   ----
   - Añadir clase "active" al contenedor .hide para abrir el acordeón
   - Los hijos directos de .accordion-content aparecerán con fade-in
   - El efecto es escalonado: cada elemento aparece con un pequeño retraso

   PERSONALIZACIÓN:
   ----------------
   - grid-template-rows: Controla la velocidad de apertura (2s)
   - opacity/transform transition: Controla la velocidad del fade (0.4s)
   - transition-delay: Controla el escalonado entre elementos (0.05s entre cada uno)
   - translateY: Controla el desplazamiento inicial (10px hacia abajo)

   ==================================================================== */

@media (max-width: 1023px) {
  /* Contenedor del acordeón - cerrado por defecto */
  .hide {
    display: grid;
    grid-template-rows: 0fr; /* Altura 0 cuando está cerrado */
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    border-radius: var(--border-radius);
    transition:
      grid-template-rows 0.8s ease-out,
      background 0.3s ease-out,
      backdrop-filter 0.3s ease-out;
  }

  /* Contenido interno - overflow hidden para que no se vea al cerrar */
  .hide > .accordion-content {
    min-height: 0; /* Necesario para que grid-template-rows: 0fr funcione */
    overflow: hidden;
    padding: 0 1rem;
    transition: padding 0.3s ease-out;
  }

  /* Estado inicial de los productos (ocultos) */
  .hide > .accordion-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.4s ease-out,
      transform 0.4s ease-out;
  }

  /* Contenedor del acordeón - abierto */
  .hide.active {
    grid-template-rows: 1fr; /* Altura automática cuando está abierto */
    background: rgba(255, 255, 255, 0.754);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition:
      grid-template-rows 2s ease-out,
      background 0.3s ease-out,
      backdrop-filter 0.3s ease-out;
  }

  .hide.active > .accordion-content {
    padding: 1rem;
    transition: padding 0.3s ease-out;
  }

  /* EFECTO FADE-IN: Estado final de los productos (visibles) */
  .hide.active > .accordion-content > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* EFECTO FADE-OUT ESCALONADO: Cuando tiene clase closing */
  .hide.closing > .accordion-content > * {
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease-in,
      transform 0.3s ease-in;
  }
  .hide.closing > .accordion-content > *:nth-child(n + 6) {
    transition-delay: 0s;
  }
  .hide.closing > .accordion-content > *:nth-child(5) {
    transition-delay: 0.05s;
  }
  .hide.closing > .accordion-content > *:nth-child(4) {
    transition-delay: 0.1s;
  }
  .hide.closing > .accordion-content > *:nth-child(3) {
    transition-delay: 0.15s;
  }
  .hide.closing > .accordion-content > *:nth-child(2) {
    transition-delay: 0.2s;
  }
  .hide.closing > .accordion-content > *:nth-child(1) {
    transition-delay: 0.25s;
  }

  /* EFECTO ESCALONADO: Retraso progresivo para cada elemento */
  .hide.active > .accordion-content > *:nth-child(1) {
    transition-delay: 0.1s;
  }
  .hide.active > .accordion-content > *:nth-child(2) {
    transition-delay: 0.15s;
  }
  .hide.active > .accordion-content > *:nth-child(3) {
    transition-delay: 0.2s;
  }
  .hide.active > .accordion-content > *:nth-child(4) {
    transition-delay: 0.25s;
  }
  .hide.active > .accordion-content > *:nth-child(5) {
    transition-delay: 0.3s;
  }
  .hide.active > .accordion-content > *:nth-child(6) {
    transition-delay: 0.35s;
  }
  .hide.active > .accordion-content > *:nth-child(7) {
    transition-delay: 0.4s;
  }
  .hide.active > .accordion-content > *:nth-child(8) {
    transition-delay: 0.45s;
  }
  .hide.active > .accordion-content > *:nth-child(9) {
    transition-delay: 0.5s;
  }
  .hide.active > .accordion-content > *:nth-child(10) {
    transition-delay: 0.55s;
  }
  .hide.active > .accordion-content > *:nth-child(n + 11) {
    transition-delay: 0.6s;
  } /* Del 11 en adelante */
}

/* Imagen de la familia */
.platos__familia-img {
  width: 100%;
  height: 8rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  object-fit: cover;
}
.textos__header-footer-familia {
  color: rgb(107, 107, 107);
  padding-left: 1rem;
  margin-bottom: 1rem;
  @media (min-width: 1024px) {
    font-size: 1.1rem;
  }
}

/* PRODUCTOS */
.nuevo__producto {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
/* Separar la última linea de la cabecera siguiente */
.nuevo__producto:last-of-type {
  margin-bottom: 1rem;
}
.new__header {
  text-align: center;
  color: var(--color-secundario);
  font-size: 1.5rem;
  font-weight: bold;
}
.con-header {
  padding: 1rem;
}
.cabeceras__columnas {
  display: flex;
  justify-content: end;
  align-items: baseline;
  gap: 0.8rem;
}
.cabecera__columnas-imagen {
  height: 1rem;
  width: auto;
  margin: 0 0.5rem 0.2rem;
  object-fit: cover;
}
.cabecera__columnas-imagen:nth-child(1) {
  height: 1.7rem;
}
.cabecera__columnas-imagen:nth-child(2) {
  height: 2rem;
}
.cabecera__columnas-imagen:nth-child(3) {
  height: 2.3rem;
}
.cabecera__columnas-imagen:nth-child(4) {
  height: 2.6rem;
}
.cabecera__columnas-imagen:nth-child(5) {
  height: 2.9rem;
}
.cabecera__columna-texto {
  width: 3.5rem;
  text-align: center;
}

.container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  line-height: 1rem;
  /* border-bottom: 1px solid lightgray; */
}
.product__img {
  width: 3rem;
  padding-right: 0.2rem;
}
.product__description {
  font-size: 0.9rem;
  padding: 0 0.5rem;
  @media (min-width: 1024px) {
    font-size: 1.1rem;
  }
}
.footer-producto {
  padding-left: 1rem;
  @media (min-width: 1024px) {
    font-size: 1.1rem;
  }
}
.cont__prices {
  display: flex;
  justify-content: end;
  gap: 0.5rem;
  padding-left: 1rem;
}
.cont__prices span {
  width: 3.5rem;
  text-align: right;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.cont__prices span:nth-child(2) {
  color: rgb(102, 102, 102);
  font-weight: bold;
}
.cont__prices span:nth-child(4) {
  color: rgb(102, 102, 102);
  font-weight: bold;
}

/* Resaltar columnas pares cuando hay 4 precios para mejorar lectura */
.precios-cuatro-columnas span:nth-child(even) {
  color: rgb(102, 102, 102);
  font-weight: bold;
}

/* Reducir tamaño en móviles cuando hay 4 precios */
@media (max-width: 960px) {
  h4.producto-cuatro-precios {
    font-size: 1.175rem !important;
  }
  .precios-cuatro-columnas span {
    font-size: 0.975rem !important;
    width: 2.8rem !important;
  }
  .precios-cuatro-columnas {
    gap: 0.3rem !important;
  }
  /* Ajustar cabeceras para alinear con precios */
  .cabeceras__columnas {
    gap: 0.3rem;
  }
  .cabecera__columna-texto {
    width: 2.8rem;
  }
  .cabecera__columnas-imagen {
    width: 2.8rem !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }
}

/* Ajuste adicional para móviles muy pequeños */
@media (max-width: 480px) {
  h4.producto-cuatro-precios {
    font-size: 0.85rem !important;
  }
  .precios-cuatro-columnas span {
    font-size: 0.75rem !important;
    width: 2.3rem !important;
  }
  .precios-cuatro-columnas {
    gap: 0.2rem !important;
  }
  /* Ajustar cabeceras de columnas texto */
  .cabeceras__columnas {
    gap: 0.3rem;
  }
  .cabecera__columna-texto {
    width: 2.3rem;
    font-size: 0.75rem;
  }
  /* Ajustar cabeceras de columnas con imágenes */
  .cabecera__columnas-imagen {
    width: 2.3rem !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }
}

.drinks-footer-icons {
  display: flex;
  align-items: center;
  margin: 1rem;

  & img {
    width: 1.3rem;
  }
  & span {
    font-size: 0.7rem;
    padding-right: 0.2rem;
  }
}

/* **************************************************** */
/* DESAYUNOS - Estilos de la opción 1 de pintar carta
                imágenes */
/* **************************************************** */
/*  */
.desayunos-h1 {
  text-align: center;
  margin: 1rem 0 0.5rem;
  color: var(--color-secundario);
  font-size: 2rem;
  font-weight: bold;
}
.desayunos-h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--color-secundario);
  font-style: italic;
}
.desayunos {
  width: 100%;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center; /* centra cuando hay pocos */
  flex-wrap: wrap;
  gap: 1rem;
}

.desayunos-titulos {
  width: 100%;
  margin: 1.5rem auto 1rem;
  padding: 1rem;
  font-size: 1.8rem;
  text-align: center;
  color: var(--color-secundario);
}
.desayuno {
  flex: 0 1 10rem; /* base estable */
  max-width: 15rem; /* evita que se estiren demasiado */
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  position: relative;
  z-index: 6;
}
.desayunos img {
  width: 100%;
  object-fit: cover;
  padding: 0.5rem 1rem;
}
.desayuno p {
  text-align: center;
  font-size: 1.1rem;
  padding: 0.1rem;
}

/* ************************************************************ */
/* BEBIDAS CALIENTES — 3 columnas fijas (Café, Tés, Leche)        */
/* El título principal reutiliza .desayunos-titulos.              */
/* Igual que la imagen impresa: siempre 3 columnas, también móvil */
/* ************************************************************ */
.bebidas-calientes {
  width: 100%;
  margin: 1rem auto 2.5rem;
  padding: 1rem;
  color: var(--color-secundario);
  text-align: center;

  & .bebidas-calientes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  & .bebidas-calientes__columna-titulo {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-secundario);
    padding-bottom: 0.3rem;
  }

  & .bebidas-calientes__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;

    & li {
      font-size: 1.05rem;
      padding: 0.2rem 0;
    }
  }
}

/* Móvil: se mantienen las 3 columnas; ajustamos tipografía y gap */
@media (max-width: 600px) {
  .bebidas-calientes {
    padding: 0.5rem;

    & .bebidas-calientes__grid {
      gap: 0.6rem;
    }

    & .bebidas-calientes__columna-titulo {
      font-size: 1.4rem;
      padding-bottom: 0.2rem;
      margin-bottom: 0.4rem;
    }

    & .bebidas-calientes__lista {
      & li {
        font-size: 1.1rem;
        padding: 0.1rem 0;
        line-height: 1.25;
      }
    }
  }
}

/* IMPUESTO */
.impuesto {
  width: 100%;
  text-align: right;
  font-size: 1.1rem;
}
/* FOOTER */
.footer {
  width: 100%;
  margin: 3rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.restaurant123 {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
}
.restaurant123 a {
  padding: 0 0.2rem;
}

/* ********************************************** */
/* MENÚ HAMBURGUESA */
/* ********************************************** */

/* Botón Hamburguesa */
.hamburger-btn {
  position: fixed;
  top: 1rem;
  left: 2.5dvw;
  width: 50px;
  height: 50px;
  background: var(--color-degradado2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: var(--sombra);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(-55deg, var(--color-primario) 0%, #000000bb 55%);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación del botón cuando el menú está abierto */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Menú lateral */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-degradado2);
  z-index: 23;
  transition: left 0.4s ease-out;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.hamburger-menu.active {
  left: 0;
}

/* Header del menú */
.hamburger-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.hamburger-logo {
  width: 100px;
  height: auto;
}

.hamburger-close {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.hamburger-close:hover {
  transform: rotate(90deg);
  color: var(--color-primario);
}

/* Lista del menú */
.hamburger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-menu-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  & span {
    font-size: 1.3rem;
  }
}

.hamburger-menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--color-primario);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.hamburger-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}

.hamburger-menu-item:hover::before {
  transform: scaleY(1);
}

.hamburger-menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Overlay oscuro */
.hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 22;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  backdrop-filter: blur(3px);
}

.hamburger-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Clase para posicionar el botón a la izquierda (index.html) */
.maps-btn-right {
  left: 2.5dvw;
  right: auto !important;
}

.maps-btn-right:hover {
  transform: scale(1.1) !important;
}

.maps-btn-right:active {
  transform: scale(0.95) !important;
}

/* Media query para pantallas medianas - centrar botón maps */
@media (min-width: 960px) {
  .maps-btn:not(.maps-btn-right) {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .maps-btn:not(.maps-btn-right):hover {
    transform: translateX(-50%) scale(1.1);
  }

  .maps-btn:not(.maps-btn-right):active {
    transform: translateX(-50%) scale(0.95);
  }
}

/* Media query para pantallas grandes */
@media (min-width: 1264px) {
  .hamburger-btn {
    left: calc((100vw - 1200px) / 2);
  }

  .maps-btn-right {
    left: calc((100vw - 1200px) / 2) !important;
    right: auto !important;
  }
}

/* ========================================== */
/* BOTÓN GOOGLE MAPS */
/* ========================================== */
.maps-btn {
  position: fixed;
  top: 1rem;
  right: 2.5dvw;
  width: 50px;
  height: 50px;
  background: var(--color-degradado2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--sombra);
  color: var(--blanco);
  font-size: 1.5rem;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  transform-origin: center center;
}

.maps-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(-55deg, var(--color-primario) 0%, #000000bb 55%);
}

.maps-btn:active {
  transform: scale(0.95);
}

/* ========================================== */
/* MODAL GOOGLE MAPS */
/* ========================================== */
.maps-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
}

.maps-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.maps-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 80vh;
  max-height: 600px;
  background: var(--blanco);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
}

.maps-modal.active .maps-modal-content {
  transform: scale(1);
  opacity: 1;
}

.maps-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--color-degradado2);
  border: none;
  border-radius: 50%;
  color: var(--blanco);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 16;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.maps-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(-55deg, var(--color-primario) 0%, #000000bb 55%);
}

.maps-container {
  width: 100%;
  height: 100%;
}

.maps-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.maps-directions-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--color-degradado2);
  color: var(--blanco);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 400;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 16;
}

.maps-directions-btn:hover {
  transform: translateX(-50%) scale(1.05);
  background: linear-gradient(-55deg, var(--color-primario) 0%, #000000bb 55%);
}

.maps-directions-btn i {
  font-size: 1.2rem;
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}
