
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Kaushan+Script&family=Ramabhadra&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Momo+Trust+Display&family=Squada+One&display=swap');

*{
    margin: 0px;
    padding: 0px;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    box-sizing: border-box;
}

.content_banner{
  margin: 20px auto;
  width: 90%;
}

.content_banner img{
  border-radius: 20px;
  width: 100%;
}

.menu{
    background-color: white;
    border-bottom: 1px solid #ebebeb;
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0px;
    z-index: 999;
}
.marging_menu{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0px auto;
    width: 80%;
}

.marging_menu .logo_menu{
    width: 100px;
    display: block;
}

nav{
    margin-left: auto;
}

nav ul{
    display: flex;
    list-style: none;
    justify-content: flex-start;
    gap: 10px;
}

nav ul li a{
    color: red;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 10px;
}
nav ul li a:hover{
    background-color: red;
    color: white;
    font-weight: 600;
}

.container_header{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 90%;
    margin: 0px auto;
}
.text_header{
    width: calc(100% - 600px);
    text-align: center;
    height: 150px;
}
.text_header h2{
    color: white;
    font-size: 48px;
}
.text_header h5{
    color: white;
    font-size: 18px;
    font-weight: 400;
}

.wrap_products_top{
    background-color: white;
    margin-top: -10px;
    padding-block: 40px;
}
.margin_products_top{
    width: 90%;
    margin: 0px auto;
}
.titulo-lineas{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #333; /* azul */
  width: 40%;
  margin: 0px auto;

}

.titulo-lineas::before,
.titulo-lineas::after {
    content: "";
    flex: 1;
    border-bottom: 3px solid #d8804d; /* color de las líneas */
    margin: 0 15px;
}

#content_platillos, #content_vendidos{
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.card_product_top{
   width: auto;
   box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
   border-radius: 12px;
}
.card_product_top img{
    border-radius: 20px;
    width: 240px;
    height: 240px;
    margin-inline: 75px;
    margin-top: 20px;
}
.card_product_top p{
    color: #333;
    text-align: center;
}

.card_product_top .precio_card{
    color: #c21006;
    font-size: 32px;
    font-weight: 600;
    font-family: "Bebas Neue", sans-serif;
    margin: 20px auto;
}


.carousel-wrap{
  
    width:100%;
    max-width:1200px;
    position:relative;
    margin: 0px auto;
  }

  /* viewport */
  .carousel{
    overflow:hidden;
    padding: 12px 0;
  }

  /* track */
  .track{
    display:flex;
    gap:var(--gap);
    transition:transform 520ms cubic-bezier(.22,.9,.28,1);
    will-change:transform;
    align-items:stretch;
    user-select:none;
  }

  /* each card */
  .card{
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow:var(--shadow);
    min-width: 300px; /* default 3 visible */
    display:flex;
    flex-direction:column;
    overflow:hidden;
    text-align:center;
    pad: 10px;
    height: 370px !important;

    box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);
    -webkit-box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);
    -moz-box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);
  }

  .card img{
    width: 240px;
    height:240px;
    margin: 0px auto;
    margin-top: 20px;
    border-radius: 20px;
    object-fit:cover;
    display:block;
    border-bottom:6px solid transparent;
  }

  .card .meta{
    padding:14px 12px 20px;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }

  .card .title{
    font-size: 14px;
    color:#222;
    margin-bottom:12px;
    height: 30px;
  }

  .card .price{
    color: red;
    font-weight:800;
    font-size:22px;
    letter-spacing:0.5px;
  }


  .card_menu{
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow:var(--shadow);
    width: 290px; /* default 3 visible */
    display:flex;
    flex-direction:column;
    overflow:hidden;
    text-align:center;
    padding: 10px;
    height: 390px !important;

    box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);
    -webkit-box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);
    -moz-box-shadow: 0px 0px 7px -1px rgba(140,140,140,0.77);

  }

  .card_menu img{
    border-radius: 6px;
    width: 100%;
    display: block;
    margin: 5px auto;
  }

  .card_menu .nombre_txt{
    color: #222;
    font-weight: 600;
    font-size: 18px;
  }

  .card_menu .detalle_txt{
    color: #5c5c5c;
    font-size: 14px;
    text-align: center;
  }

  .card_menu .price_txt{
    color: #c21006;
    font-size: 22px;
    display: block;
    margin-top: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 600;
    font-style: normal;

  }

  /* controls */
  .controls{
    position:absolute;
    top:50%;
    left:0;
    right:0;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    pointer-events:none;
  }
  .controls button{
    pointer-events:auto;
    background:rgba(255,255,255,0.95);
    border:0;
    width:44px;
    height:44px;
    border-radius:10px;
    margin:0 6px;
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
    cursor:pointer;
  }
  .controls button:active{ transform:scale(.98); }

  .controls svg{ width:18px; height:18px; display:block; margin:auto; fill:#333; }

  /* dots */
  .dots{
    display:flex;
    gap:8px;
    justify-content:center;
    margin-top:18px;
    padding-block: 10px;
  }
  .dot{
    border: 1px solid #939393;
    width:10px; 
    height:10px; 
    border-radius:10px; 
    background:rgba(0,0,0,0.12);
    cursor:pointer;
  }
  .dot.active{ 
    background: red; 
    border: 1px solid red;
    transform:scale(1.15); 
  }






  /* small accessibility focus */
  .controls button:focus, .dot:focus{ outline:2px solid rgba(182,28,18,0.18); outline-offset:3px; }


  footer{
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0px;
    margin: 0px;
    padding-inline: 20px;
  }

  footer div img{
    width: 160px;
  }

  footer div h3{
    color: white;
    font-size: 16px;
    font-weight: 500;
  }

.menu-container {
  display: flex;
  min-height: 100vh;
}

/* CATEGORÍAS */
.categorias {
  width: 220px;
  background: black;
  border-right: 2px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.categoria-btn {
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.categoria-btn:hover {
  font-weight: 600;
}

.categoria-btn:hover > img{
  transform: scale(2);
}

.content_img{
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(0, 96%, 59%, 1);
  background: radial-gradient(circle, hsla(0, 96%, 59%, 1) 0%, hsla(0, 98%, 40%, 1) 100%);
  background: -moz-radial-gradient(circle, hsla(0, 96%, 59%, 1) 0%, hsla(0, 98%, 40%, 1) 100%);
  background: -webkit-radial-gradient(circle, hsla(0, 96%, 59%, 1) 0%, hsla(0, 98%, 40%, 1) 100%);
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#FB3333", endColorstr="#C90202", GradientType=1 );
}

.categoria-btn img{
  width: 30px;
  height: 30px;

}

.categoria-btn.active {
  background: #f1860c;
  color: white;
}

/* PLATILLOS */
.platillos {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  background-image: url("./../img/white_wall.jpg");
  background-position: center;
}

.platillos .card{
  height: 250px;
}
.platillos .card img{
  width: 200px;
  height: 200px;
}
.platillos .card p.price_txt{
  color: red;
  font-size: 22px;
  font-weight: 700;
}

.btn-burger {
  display: none;
  position: fixed;
  top: 15px;
  left: 5px;
  z-index: 1200;
  font-size: 20px;
  background: red;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-close {
  display: none;
  align-self: flex-star;
  border-radius: 6px;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  background-color: red;
  width: 40px;
  height: 40px;
}

.content_ubicacion{
  width: 90%;
  margin: 20px auto;
  min-height: 100vh;
}

.content_ubicacion h3{
  color: #c21006;
  text-align: center;
  font-size: 32px;
  padding: 20px;
}

.mapa_flex{
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
.direccion{
  font-size: 18px;
  border-radius: 10px;
  margin-top: 20px;
}
.direccion a{
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1878f2;
}

.direccion a img{
  width: 20px;
}


.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.whatsapp-float {
  animation: pulse 1.5s infinite;
}


.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup_content {
  position: relative;
  max-width: 380px;
  max-height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.popup_img {
  display: block;
  width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}





  /* responsive rules: 2 per row on tablet, 1 per row on mobile */
  @media (max-width:1000px){
    .card{ min-width: calc((100% - var(--gap)) / 2); } /* 2 visible */
    .card img{ height:200px; }
  }

  @media (max-width: 600px){
    header{
      padding: 0px;
      width: 100%;
    }
    .marging_menu{
      width: 90%;
    }
    .container_header{
      width: 100%;
      margin: 10px auto;
    }
    .content_banner{
      margin: 0px auto;
      width: 100%;
    }

    #content_platillos{
      width: 100%;
      flex-wrap: wrap;
    }
    #content_platillos > .card_product_top{
      width: 280px !important;

    }
    #content_platillos > .card_product_top img{
      width: 250px;
      margin-inline: 15px;
    }

    .card{ min-width:100%; } /* 1 visible */
    .card img{ height:180px; }
    .content_banner{ 
      width: 90% !important;  
    }
    .content_banner img{
      border-radius: 6px !important;
    }
    .carousel-wrap{
      width: 90%;
    }




    .btn-burger {
      display: block;
    }

    .categorias {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 80%;
      max-width: 300px;
      background: black;
      z-index: 1250;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }

    .categorias.activo {
      transform: translateX(0);
    }

    .btn-close {
      display: block;
    }

    /* cards ocupan todo el ancho */
    .menu-container {
      flex-direction: column;
    }

    .platillos{
      grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
      gap: 10px;
    }

    .platillos > .card{
      min-width: 80px;
      height: 250px !important;
    }

    .platillos > .card img{
      width: 150px;
      height: 150px;
      border-radius: 4px;
    }

    .platillos p{
      font-size: 12px;
    }

    .card_menu { 
      width: 100% !important;
      height: 310px !important;
    }



  }



