.filtros-categoria {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}
.filtro-cat {
  padding: 10px 25px;
  border: 2px solid #3e2723;
  background: transparent;
  color: #3e2723;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}
.filtro-cat:hover {
  background: #f5deb3;
}
.filtro-cat.active {
  background: #3e2723;
  color: #f5deb3;
}
.redes-sociales {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.red-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5deb3;
  transition: 0.3s;
  text-decoration: none;
}
.red-social:hover {
  background: #f5deb3;
  color: #3e2723;
  transform: translateY(-3px);
}
.whatsapp-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: 0.3s;
  animation: pulse 2s infinite;
}
.whatsapp-flotante:hover {
  transform: scale(1.1);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
  }
}
@media (max-width: 768px) {
  .filtros-categoria {
    gap: 8px;
  }
  .filtro-cat {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}
/* ===== FILTROS DE PRODUCTOS ELEGANTES ===== */
.filtros-categoria { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  margin: 20px 0 40px; 
  flex-wrap: wrap; 
  padding: 0 10px;
}

.filtro-cat { 
  padding: 10px 24px; 
  border: 1px solid #d7ccc8; 
  background: #ffffff; 
  color: #5d4037; 
  font-weight: 600; 
  border-radius: 50px; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  font-size: 0.95rem; 
  font-family: 'Karla', sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filtro-cat:hover { 
  background: #efebe9; 
  border-color: #3e2723; 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filtro-cat.active { 
  background: #3e2723; 
  color: #f5deb3; 
  border-color: #3e2723;
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.3);
}

/* ===== CARRUSEL DE PRODUCTOS (ARREGLADO PARA QUE NO SE CORTE) ===== */
.carousel {
  width: 100%;
  overflow-x: auto; /* Permite scroll horizontal sin cortar */
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Oculta barra de scroll en Firefox */
  padding: 10px 0 30px 0; /* Espacio abajo para sombras y hover */
  margin: 0 -10px; /* Compensa el padding del container */
}

.carousel::-webkit-scrollbar {
  display: none; /* Oculta barra de scroll en Chrome/Safari */
}

.track {
  display: flex;
  gap: 24px;
  padding: 10px 20px; /* Espacio interno para que no se corte el hover/sombra */
  width: max-content; /* Asegura que las tarjetas no se aplasten */
  margin: 0 auto; /* Centra el contenido si hay pocas tarjetas */
}

/* ===== TARJETA DE PRODUCTO CENTRADA Y ELEGANTE ===== */

.card{
  border: solid 2px bisque;
}

.card-producto {
  flex: 0 0 280px; /* Ancho fijo, no se encoge ni crece */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.card-producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(62, 39, 35, 0.15);
}

.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: bisque;
  border: solid rgb(88, 54, 11) 1px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-producto:hover .card-img img {
  transform: scale(1.1);
}

.card .img-slot::after {
  content: none !important;
}

.card-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card .img-slot {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: bisque;
}

.categoria-tag {
  display: inline-block;
  background: #efebe9;
  color: #5d4037;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.card-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: #3e2723;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.card-info .precio {
  font-family: 'Karla', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3e2723;
  margin: 0 0 15px 0;
}

.card-info .btn-ver-mas {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* ===== CONTROLES DEL CARRUSEL ===== */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.carousel-controls .btn {
  min-width: 140px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card-producto {
    flex: 0 0 260px; /* Un poco más pequeño en móvil */
  }
  .filtros-categoria {
    gap: 8px;
  }
  .filtro-cat {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ========== BADGES DE STOCK ========== */
.badge-agotado, .badge-bajo {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 5px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.badge-agotado { background: #d32f2f; color: #fff; }
.badge-bajo { background: #f57c00; color: #fff; animation: pulseBadge 1.5s infinite; }
@keyframes pulseBadge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

/* ========== BOTÓN AGREGAR AL CARRITO ========== */
.btn-agregar-carrito {
  background: #2e7d32 !important; color: #fff !important; border: none !important;
  transition: all .3s ease !important;
}
.btn-agregar-carrito:hover:not(:disabled) {
  background: #1b5e20 !important; transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 15px rgba(46,125,50,.4);
}
.btn-agregar-carrito:disabled { background: #999 !important; cursor: not-allowed; opacity: .6; }

/* ========== BOTÓN FLOTANTE CARRITO ========== */
.btn-carrito-flotante {
  position: fixed; bottom: 100px; right: 25px; z-index: 998;
  background: #3e2723; color: #f5deb3; border: none;
  width: 60px; height: 60px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
  transition: all .3s;
}
.btn-carrito-flotante:hover { transform: scale(1.1); background: #5d4037; }
.btn-carrito-flotante span {
  position: absolute; top: -5px; right: -5px;
  background: #d32f2f; color: #fff; font-size: .75rem;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
}

/* ========== PANEL CARRITO ========== */
.panel-carrito {
  position: fixed; top: 0; right: -400px; width: 380px; max-width: 90vw; height: 100vh;
  background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15);
  z-index: 1000; transition: right .3s ease;
  display: flex; flex-direction: column;
}
.panel-carrito.abierto { right: 0; }
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; background: #3e2723; color: #f5deb3;
}
.panel-header h3 { margin: 0; }
.btn-cerrar-panel { background: none; border: none; color: #f5deb3; font-size: 1.5rem; cursor: pointer; }
.panel-items { flex: 1; overflow-y: auto; padding: 15px; }
.item-carrito {
  display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid #eee;
}
.item-carrito img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.item-info strong { font-size: .95rem; color: #3e2723; }
.item-precio { color: #8b5a3c; font-weight: 700; font-size: .9rem; }
.item-controles { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.item-controles button {
  width: 26px; height: 26px; border: 1px solid #ddd; background: #f9f5f0;
  border-radius: 4px; cursor: pointer; font-weight: bold;
}
.item-controles button:hover { background: #efebe9; }
.btn-quitar { color: #d32f2f; margin-left: auto; }
.panel-footer { padding: 20px; border-top: 2px solid #eee; background: #fafafa; }
.total-linea { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 15px; color: #3e2723; }
.btn-confirmar {
  width: 100%; padding: 14px; background: #2e7d32; color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer;
  transition: all .3s;
}
.btn-confirmar:hover { background: #1b5e20; transform: translateY(-2px); }

/* ========== MODAL CONFIRMAR ========== */
.modal-confirmar {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-confirmar[hidden] { display: none; }
.modal-confirmar-box {
  background: #fff; border-radius: 16px; padding: 30px; max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.modal-confirmar-box h3 { color: #3e2723; margin-top: 0; }
.modal-confirmar-box label { display: block; margin: 15px 0 5px; font-weight: 600; color: #3e2723; }
.modal-confirmar-box input {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem;
}
.resumen-items { background: #f9f5f0; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.resumen-linea { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #ddd; }
.resumen-linea:last-child { border-bottom: none; }
.resumen-total { display: flex; justify-content: space-between; font-size: 1.3rem; padding: 10px 0; border-top: 2px solid #3e2723; margin-bottom: 15px; color: #3e2723; }
.modal-btns { display: flex; gap: 10px; }
.btn-volver, .btn-enviar {
  flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
  transition: all .3s;
}
.btn-volver { background: #eee; color: #333; }
.btn-volver:hover { background: #ddd; }
.btn-enviar { background: #2e7d32; color: #fff; }
.btn-enviar:hover { background: #1b5e20; transform: translateY(-2px); }

/* ========== FORMULARIO CONTACTO TIPO GALLETA DE CAFÉ ========== */
.galleta-contacto {
  max-width: 600px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, #8b5a3c 0%, #6d4528 100%);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  padding: 50px 40px;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(74, 44, 26, 0.3),
    inset 0 -5px 15px rgba(0, 0, 0, 0.2),
    inset 0 5px 15px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.galleta-textura {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1.5px, transparent 1.5px),
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 100px 100px, 120px 120px, 80px 80px, 90px 90px;
  opacity: 0.6;
  pointer-events: none;
}

.galleta-contenido {
  position: relative;
  z-index: 1;
}

.galleta-header {
  text-align: center;
  margin-bottom: 30px;
}

.galleta-icono {
  font-size: 3rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.galleta-header h3 {
  color: #f5deb3;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.galleta-header p {
  color: #fff8e7;
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo-grupo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo-grupo label {
  color: #f5deb3;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.campo-grupo input,
.campo-grupo textarea {
  padding: 12px 16px;
  border: 2px solid rgba(245, 222, 179, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  color: #3e2723;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.campo-grupo input:focus,
.campo-grupo textarea:focus {
  outline: none;
  border-color: #f5deb3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 222, 179, 0.3), inset 0 2px 4px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.campo-grupo textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-enviar-contacto {
  background: #f5deb3;
  color: #3e2723;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-top: 10px;
}

.btn-enviar-contacto:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-enviar-contacto:active {
  transform: translateY(-1px);
}

.menu a.active {
  border-bottom: 2px solid #8b5a3c !important;
  color: #4a2c1a !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .galleta-contacto {
    border-radius: 30px;
    padding: 40px 25px;
  }
  .galleta-header h3 {
    font-size: 1.5rem;
  }
}

.btn-cancelar-carrito {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  background: #fff;
  color: #d32f2f;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all .3s;
  font-size: 0.95rem;
}
.btn-cancelar-carrito:hover {
  background: #d32f2f;
  color: #fff;
  transform: translateY(-2px);
}

