html {
  overflow-y: scroll;
}

/* General */
body {
  background: linear-gradient(135deg, #f0f2f5, #ffffff);
  font-family: 'Quicksand', sans-serif;
}

/* Navbar */
.navbar {
  background-color: #000 !important;
  z-index: 1050;
}

/* Estilo para ítems del menú */
.navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffe66d;
}

#banner-web {
  position: relative;
  z-index: 900;
}

#banner-contenido {
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.separador {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 60px 0;
}

section:nth-child(even) {
  background-color: #f9f9f9;
}

/* Carrusel */
#Carrusel {
  padding-top: 120px;
}

.carousel {
  width: 100%;
  height: 400px;
  margin: 10 auto 50px;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

#carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 0 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#carousel-track::-webkit-scrollbar {
  display: none;
  /* oculta en Chrome/Safari */
}

.carousel-card {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.start {
  left: 10px;
}

.carousel-btn.end {
  right: 10px;
}

.fade-carousel-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px auto;
  overflow: hidden;
  border-radius: 12px;
}

.fade-carousel {
  position: relative;
  height: 300px;
}

.fade-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 12px;
}

.fade-carousel img.active {
  opacity: 1;
  z-index: 1;
}

.fade-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.fade-btn.left {
  left: 10px;
}

.fade-btn.right {
  right: 10px;
}

@media (max-width: 576px) {
  .fade-carousel-container {
    max-width: 90%;
  }

  .fade-carousel {
    height: 220px;
  }
}

#Carrusel img {
  max-height: 450px;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 768px) {
  #Carrusel .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #Carrusel .row.g-0 {
    flex-wrap: nowrap;
    overflow-x: scroll;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Carrusel dinámico 2 imágenes por slide */
#carruselDestacados .carousel-inner {
  width: 100%;
  overflow: hidden;
}

#carruselDestacados .carousel-item {
  padding: 0;
}

#carruselDestacados img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Responsivo: 1 imagen por slide en pantallas chicas */
@media (max-width: 768px) {
  #carruselDestacados .carousel-item .col-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #carruselDestacados .carousel-item .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #carruselDestacados .carousel-item img {
    scroll-snap-align: start;
  }
}


/* Tarjetas de Productos */
.card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tarjeta visible */
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.card img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.card img:hover {
  transform: scale(1.05);
}

.slider-imagen-container {
  height: 400px;
  max-height: 400px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.slider-imagen {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  color: #555;
  border: none;
  font-size: 0.9rem;
  padding: 2px 8px;
  cursor: pointer;
  z-index: 2;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.slider-prev {
  left: 8px;
}

.slider-next {
  right: 8px;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  color: #000;
}


.modal-backdrop {
  z-index: 1090 !important;
}

.modal {
  z-index: 1100 !important;
}


#modal-confirmacion .modal-header {
  background-color: #000;
  color: #fff;
}
#modal-confirmacion .btn-close {
  filter: invert(1);
}

/* Contenido de la tarjeta */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Título */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}


/* Precio */
.precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 1rem;
}

/* Botón de compra */
.btn-whatsapp {
  display: block;
  width: 100%;
  background-color: #000000;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 12px 0;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  position: fixed;
  z-index: 1060;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: scale(1.02);
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Mapa estilizado */
iframe.mapa {
  border-radius: 15px;
  border: 2px solid #333;
  width: 100%;
  height: 400px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.lightbox::after {
  content: '×';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-img-wrapper {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-img-wrapper:hover {
  transform: scale(1.05);
}

.carousel-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}


.carousel-track-container {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 0 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track-container::-webkit-scrollbar {
  display: none;
  /* Oculta en Chrome/Safari */
}

.carousel-img-wrapper {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}


.carousel-img-wrapper:hover {
  transform: scale(1.05);
}

.carousel-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}


.carrito-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  border-left: 2px solid #000;
  transition: right 0.3s ease;
  z-index: 1999;
  display: flex;
  flex-direction: column;
}

.carrito-panel.abierto {
  z-index: 1000;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
}

.carrito-items {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}



.btn-agregar-carrito {
  display: block;
  margin: 0 auto;
  padding: 12px 0;
  width: 90%;
  font-weight: 600;
  background-color: #6a6a6a;
  color: white;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-agregar-carrito:hover {
  background-color: #999696;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 576px) {
  .card img {
    height: 200px;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.3rem;
    min-height: auto;
  }

  .precio {
    font-size: 1.1rem;
  }

  .btn-whatsapp,
  .btn-agregar-carrito {
    font-size: 0.85rem;
    padding: 10px 0;
  }

  .carousel-img-wrapper {
    width: 200px;
  }

  .carousel-img {
    height: 200px;
  }
}

#Carrusel h2 {
  text-align: center;
  font-weight: 600;
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #000;
}

.carousel-img-wrapper {
  border: 2px solid #eee;
  transition: all 0.3s ease;
}

.carousel-img-wrapper:hover {
  border-color: #ccc;
  transform: scale(1.04);
}

section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

#ubicacion iframe {
  border: 2px solid #000;
  border-radius: 10px;
  max-width: 100%;
  height: 380px;
}

#nosotros p {
  max-width: 700px;
  margin: 0 auto 1rem auto;
  font-size: 1.05rem;
}

.marca-frase {
  font-size: 1.3rem;
  font-style: italic;
  color: #000;
  opacity: 0.8;
}

#buscador-productos {
  border-radius: 30px;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
}

#buscador-productos:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

#ordenar-por {
  border-radius: 30px;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
}

#ordenar-por:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.15);
}

#sugerencias li {
  border-radius: 0;
  cursor: pointer;
}


#lightbox {
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#lightbox button {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  padding: 0 15px;
  user-select: none;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#lightbox-close:hover {
  color: #ff5050;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


.producto-agotado {
  position: relative;
  opacity: 0.6;
  filter: grayscale(100%);
  pointer-events: none;
}

.producto-agotado::after {
  content: "AGOTADO";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 12px;
  z-index: 10;
  pointer-events: none;
}

#filtros-collapse {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}


@media (max-width: 576px) {
  #productos .row.g-2.align-items-end>div {
    margin-bottom: 1rem;
  }

  #productos .form-label {
    font-weight: 500;
    font-size: 0.9rem;
  }

  #productos .form-control,
  #productos .form-select {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }

  #filtros-collapse {
    padding: 15px;
    margin-bottom: 20px;
  }

  #filtros-collapse .form-label {
    font-size: 0.9rem;
    font-weight: 500;
  }

  #filtros-collapse .form-control,
  #filtros-collapse .form-select {
    font-size: 0.9rem;
  }
}

#contador-resultados {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.animate-bump {
  animation: bump 0.3s ease;
  color: #ffc107 !important;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  text-decoration: none !important;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#sugerencias {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
}

#productos .form-label {
  font-weight: 600;
  font-size: 1rem;
}

#productos .input-group-text {
  background-color: #fff;
  border-right: 0;
}

#productos .form-control {
  border-left: 0;
}

.imagen-envuelta {

  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f5f5f5;
  aspect-ratio: 3 / 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  /* 👈 espacio superior */
}


.bg-formulario {
  background-color: #f1f1f1;
  border-top: 2px solid #d4d4d4;
  border-bottom: 2px solid #d4d4d4;
}

.bg-formulario input,
.bg-formulario textarea {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
}

.bg-formulario button[type="submit"] {
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 600;
}

.imagen-envuelta img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

/* Estilos mejorados para el carrito */

.carrito-items>div {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.carrito-items .fw-semibold {
  font-size: 0.95rem;
  color: #000;
}

.carrito-items .text-muted {
  font-size: 0.85rem;
}

.carrito-items .btn-group .btn {
  padding: 2px 10px;
  font-size: 0.9rem;
  border-radius: 6px !important;
}

.carrito-items span.px-2 {
  min-width: 32px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Suavizar el panel general */
.carrito-panel {
  background: #fdfdfd;
  border-left: 2px solid #ccc;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.carrito-header {
  background: #000;
  color: #fff;
  padding: 10px 15px;
  font-weight: 600;
}

#carrito-total {
  font-size: 1rem;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
}

#btn-finalizar {
  border-radius: 30px;
  font-weight: 600;
}

.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgb(218, 216, 216);
  padding: 9px;
  border-radius: 70%;
  font-size: 15px;
  z-index: 5;
  pointer-events: none;
  /* ← evita que bloquee clics */
}

#buscador-navbar {
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
}

#buscador-navbar:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.15);
}

#buscador-navbar {
  font-size: 0.95rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}

#buscador-navbar:focus {
  outline: none;
  border-color: white;
  box-shadow: none;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* Menú responsive personalizado */
@media (max-width: 991.98px) {
  @media (max-width: 991.98px) {
    .navbar-collapse {
      position: absolute;
      top: 56px;
      left: 0;
      width: 100%;
      background-color: #000;
      z-index: 1000;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.4s ease-out;
    }

    .navbar-collapse.show {
      max-height: 500px;
      /* lo suficientemente grande para cubrir todos los ítems */
    }

    .navbar-collapse .navbar-nav {
      flex-direction: column;
      align-items: center;
      padding: 1rem 0;
    }

    .navbar-collapse .nav-link {
      padding: 10px 20px;
      font-size: 1.1rem;
      color: white;
      transition: color 0.3s ease;
      width: 100%;
      text-align: center;
    }

    .navbar-collapse .nav-link:hover {
      color: #ffe66d;
    }
  }


  .navbar-collapse.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .navbar-collapse .nav-link {
    padding: 10px 20px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }


}

#contacto h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

#contacto a {
  transition: color 0.3s ease;
}

#contacto a:hover {
  color: #1ebe57;
}

#contacto .form-control {
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

#contacto .form-control:focus {
  border-color: #000;
  box-shadow: none;
}

#nosotros p {
  font-size: 1.05rem;
  color: #333;
}

#nosotros h2,
#nosotros h3 {
  color: #000;
}

#nosotros .bg-white {
  background-color: #fff;
}


#buscador-navbar,
#buscador-navbar-mobile {
  font-size: 0.95rem;
  background-color: transparent;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease;
}

#buscador-navbar:focus,
#buscador-navbar-mobile:focus {
  outline: none;
  border-color: #fff;
  box-shadow: none;
}

.modal-open .whatsapp-float {
  pointer-events: none !important;
  opacity: 0.7;
  /* opcional: para dar un efecto tenue */
}

.carrito-panel.abierto {
  right: 0 !important;
}

#resumen-pedido ul {
  max-height: 200px;
  overflow-y: auto;
}