/* ============================== */
/* RESET Y ESTILO GENERAL DEL BODY */
/* ============================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.fondo-carta {
 position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
}
.fondo-carta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(img/fondo.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: -1;
}

/* ============================== */
/* TÍTULOS */
/* ============================== */
h2 {
  margin-top: 2rem;
  border-bottom: 2px solid #ccc;
  font-size: 1.5rem;
}

.fondo-carta h2 {
  text-align: center;
  font-size: clamp(2rem, 6vw, 4.2rem);
}

/* ============================== */
/* GRID DE PRODUCTOS (Mobile First) */
/* ============================== */
.productos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 4rem 0;
  justify-items: center;
}

/* ============================== */
/* CARDS DE MENÚ */
/* ============================== */
.menu-card {
  background-color: white;
  border-radius: 1.25rem;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
  width: 90%;
  max-width: 320px;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  scroll-snap-align: start;
}

.menu-card.animate-on-scroll {
  animation: shake 0.5s ease-in-out;
}

/* ============================== */
/* IMAGEN CIRCULAR DE LA CARD */
/* ============================== */
.menu-img {
  width: clamp(120px, 40vw, 180px);
  height: clamp(120px, 40vw, 180px);
  object-fit: cover;
  border-radius: 50%;
  margin-top: -3rem;
  margin-bottom: 1rem;
  border: 3px solid white;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  background-color: #fff;
}

/* ============================== */
/* TEXTO DE LA CARD */
/* ============================== */
.menu-title {
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 2.2rem);
  margin: 0.5rem 0;
  text-transform: capitalize;
}

.menu-desc {
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  color: #444;
  margin: 0;
  line-height: 1.4;
  min-height: 3em;
}

.menu-price {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0.75rem;
  color: #222;
}

/* ============================== */
/* ANIMACIÓN SHAKE EN HOVER (solo escritorio) */
/* ============================== */
@media (hover: hover) and (pointer: fine) {
  .menu-card:hover {
    animation: shake 0.4s ease-in-out;
  }
}

/* ============================== */
/* ANIMACIÓN SHAKE (KEYFRAMES) */
/* ============================== */
@keyframes shake {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2deg); }
  50%  { transform: rotate(-2deg); }
  75%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* ============================== */
/* RESPONSIVE DESKTOPS */
/* ============================== */
@media (min-width: 900px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-card {
    margin-top: 4rem;
  }

  .menu-img {
    width: 130px;
    height: 130px;
  }
}

/* ============================== */
/* MODAL */
/* ============================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: sans-serif;
}

.modal-content img {
  width: clamp(100px, 35vw, 140px);
  height: clamp(100px, 35vw, 140px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
}

.modal-content h3 {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  margin: 0.75rem 0;
}

.modal-content p {
  font-size: clamp(1rem, 4vw, 1.1rem);
  color: #333;
  margin: 0.5rem 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.8rem;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}
/* ///////////////////////// */
p#modal-price {
    font-weight: 900;
    color: #090;
}
.modal-content p {
    font-size: clamp(1rem, 8vw, 1.8rem);
    color: #333;
    margin: 0.5rem 0;
}
.modal-content h3 {
    font-size: clamp(1.2rem, 11vw, 2.2rem);
    margin: 0.75rem 0;
}
.modal-content img {
    width: clamp(100px, 95vw, 240px);
    height: clamp(100px, 95vw, 240px);
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    position: absolute;
    justify-self: anchor-center;
    top: -146px;
}
.modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 6rem 1rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
}

.menu-card {
    background-color: white;
    border-radius: 1.25rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
    width: 70%;
    max-width: 320px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    scroll-snap-align: start;
}

.productos-grid {
    display: grid
;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 0;
    justify-items: end;
}

/* ///////////// sideBar /////////////// */
.sidebar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 80px;
  height: 100vh;
  background-color: #f4f4f4;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  z-index: 999;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar li {
  margin-bottom: 20px;
  text-align: center;
}

.sidebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  color: #4A7C84;
}

.sidebar i {
  font-size: 22px;
  margin-bottom: 5px;
}




.fondo-carta h2 {
    text-align: center;
    padding: 0 0 0 30%;
    font-size: clamp(1.5rem, 8vw, 4.2rem);
}
footer {
    padding: 30px;
    background: #fff;
    color: white;
    text-align: center;
    z-index: 999;
    position: relative;
}
.separadorInfusiones {
    display: flex;
    font-size: 9px;
    width: 220px;
    justify-self: flex-end;
    text-align: center;
    align-items: center;
}
.separadorInfusiones div img {
    width: 41px;
}
.scrollCardNuevo{
      overflow-x: scroll;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#dotsNuevo .dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
#dotsNuevo .dot.active {
  opacity: 1;
}
.scroll-cafe {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scroll-snap-type: x mandatory;
}

.scroll-cafe::-webkit-scrollbar {
  height: 8px;
}
.scroll-cafe::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.menu-card {
  min-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fff;
}
.productos-grid {
    display: grid
;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 1em;
    justify-items: end;
}
.separadorInfusiones {
    display: flex
;
    font-size: 9px;
    width: 74%;
    gap: 7px;
    justify-self: flex-end;
    text-align: center;
    align-items: center;
}
.scroll-cafe {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    width: 75%;
    justify-self: end;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
}





.panaderia-item:last-child {
  border-bottom: none;
}

.pan-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 6px;
}

.pan-text h4 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.pan-text p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.pan-price {
  font-weight: bold;
  margin-top: 0.5rem;
}
.panaderia-item {
    display: flex
;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    width: 105%;
}
.panaderia-card {
    display: flex
;
    flex-direction: column;
    max-width: 70%;
    justify-self: flex-end;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.fondo-carta h2 {
    text-align: center;
    padding: 0 0 0 16%;
    font-size: clamp(1.5rem, 8vw, 4.2rem);
    margin: 0;
}

img.sidebar-icon {
    width: 93%;
}


/* Cuando se hace scroll */


#logo {
  height: 80px;
  transition: all 0.3s ease;
}

header.scrolled #logo {
  height: 50px;
}
header.scrolled {
    position: fixed;
    top: 20px;
    left: -10px;
    width: 100%;
    display: flex
;
    flex-direction: column;
    gap: 20px;
    background: none;
    background-color: transparent;
    box-shadow: 0;
    height: 0px !important;
    z-index: 1000;
}
header.scrolled #logo {
    height: 60px;
    width: 60px;
    margin: 0 0 0px 18px;
}
.sidebar {
    position: fixed;
    top: -10px;
    left: 0;
    width: 80px;
    height: 110vh;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
    display: flex
;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    z-index: 999;
}
.panaderia-card {
    display: flex
;
    flex-direction: column;
    max-width: 70%;
    justify-self: flex-end;
    margin: 20px 20px 30px;
    padding-bottom: 90px !important;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        width: max-content;
    }
}

.sidebar li {
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #373737;
    border-radius: 11px;
    box-shadow: 2px 2px 1px #3335;
}
    .menu-toggle {
        display: block;
        width: max-content;
        margin: 0 0 0 6px;
    }
    header.scrolled #logo {
    height: 50px;
    width: 50px;
    margin: 0 0 0px 26px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 85%;
}


@media screen and (min-width: 1025px) {

  /* Mostrar más columnas en grid */
  .productos-grid {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    padding: 4rem 2rem;
  }

  /* Aumentar tamaño de las tarjetas */
  .menu-card {
    max-width: 360px;
    width: 100%;
    margin-top: 2rem;
  }

  /* Imágenes más grandes */
  .menu-img {
    width: 160px;
    height: 160px;
  }

  /* Títulos más grandes */
  .menu-title {
    font-size: 2rem;
  }

  .menu-desc {
    font-size: 1.2rem;
  }

  /* Ajuste de scroll horizontal a grid normal */
  .scroll-cafe {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
  }

  /* Panadería en modo grid amplio */
  .panaderia-card {
    max-width: 100%;
    width: 90%;
    margin: 2rem auto;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }

  .panaderia-item {
    width: 100%;
  }

  /* Sidebar fijo y bien colocado */
  .sidebar {
    top: 0;
    height: 100vh;
  }

  /* Centrar el título */
  .fondo-carta h2 {
    padding-left: 0;
    font-size: 3rem;
    text-align: center;
  }

  /* Modal centrado */
  .modal-content {
    max-width: 600px;
    padding: 4rem 2rem;
  }

  .modal-content img {
    width: 200px;
    height: 200px;
    top: -100px;
  }

  .modal-content h3 {
    font-size: 2rem;
  }

  .modal-content p {
    font-size: 1.3rem;
  }

  /* Alinear footer al centro */
  footer {
    text-align: center;
    font-size: 1rem;
    color: white;
  }

 

  /* Dot pager más visible */
  #dotsNuevo .dot {
    width: 14px;
    height: 14px;
  }

  /* Header fijo y más grande */
  header.scrolled {
    top: 0;
    height: auto !important;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

      header.scrolled #logo {
        height: 80px;
        width: auto;
        margin: 0 auto;
        top: 20px;
    }
      .separadorInfusiones {
        width: 100%;
        font-size: 1rem;
        justify-content: center;
        gap: 1rem;
    }

        .panaderia-card {
        max-width: 100%;
        width: 86%;
        margin: 2rem;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }
        .productos-grid {
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
        padding: 4rem 2rem;
        width: 95%;
        justify-self: flex-end;
        gap: 20px;
    }
    .menu-card{
        max-width: 360px;
        width: 20%;
        margin-top: 2rem;
    }

    .menu-desc {
        font-size: .8rem;
    }
        .menu-title {
        font-size: 1rem;
    }.scrollCardNuevo {
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
}

.cardScollNuevo {
    width: 80% !important;
}
.novedades-card {
    width: 50% !important;
    justify-self: center !important;
}
}

.scrollCardNuevo {
    overflow-x: scroll;
    display: grid
;
    grid-template-columns: 100% 100%;
    gap: 20px;
}
.separadorInfusiones_tazon img {
    width: 60px !important;
}
.separadorInfusiones_tazon {
    position: relative;
    left: 41%;
    top: 10px;
}