*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  padding-top: 60px;
}


.nav-link {
  color: #f5f5f5 !important;
}

.nav-link:hover {
  color: #d7ccc8 !important;
}

.badge-cart {
  background-color: #ffca28;
  color: #3e2723;
}


.lb-footer {
  background-color: #1a0f0d;
  color: #efebe9;
}

.lb-footer h5,
.lb-footer h6 {
  color: #ffca28;
}

.lb-footer hr {
  border-color: #4e342e;
}


.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  text-align: center;
}

.precio {
  font-weight: bold;
  color: #6f4e37;
  font-size: 1.2rem;
}

.btn-comprar {
  background-color: #6f4e37;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.lb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: lb-slidein 0.3s ease;
}

.lb-toast.success {
  background: #2e7d32;
  color: #fff;
}

.lb-toast.error {
  background: #c62828;
  color: #fff;
}

.lb-toast.warning {
  background: #e65100;
  color: #fff;
}

.lb-toast.info {
  background: #1565c0;
  color: #fff;
}

@keyframes lb-slidein {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.productos-hero {
  width: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #2c1a0e 0%, #4a2c14 50%, #1a0f06 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.productos-hero-overlay {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.productos-hero-sub {
  letter-spacing: 4px;
  font-size: 0.75rem;
  color: #b8860b;
  font-weight: 600;
  margin-bottom: 10px;
}

.productos-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 10px;
}

.productos-hero-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-pill {
  padding: 7px 20px;
  border: 1.5px solid #b8860b;
  border-radius: 50px;
  color: #b8860b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: #b8860b;
  color: #fff;
}

.productos-container {
  padding-top: 60px;
  padding-bottom: 80px;
}

.cat-seccion {
  margin-bottom: 70px;
  scroll-margin-top: 85px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.cat-header-linea-izq {
  width: 60px;
  height: 1px;
  background: linear-gradient(to left, #b8860b55, transparent);
}

.cat-header-linea-der {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #b8860b55, transparent);
}

.cat-header-texto {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.cat-numero {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 2px;
}

.cat-titulo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c1a0e;
  margin: 0;
}

.card-producto {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: white;
  transition: transform 0.3s;
}

.card-producto:hover {
  transform: translateY(-4px);
}

.card-producto-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.card-producto:hover .card-producto-img img {
  transform: scale(1.05);
}

.card-producto-sin-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5ede3;
  color: #b8860b;
  font-size: 2.5rem;
}

.card-producto-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.card-producto-nombre {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.card-producto-desc {
  font-size: 0.83rem;
  color: #888;
  flex: 1;
  margin-bottom: 14px;
}

.card-producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-producto-precio {
  font-weight: 700;
  font-size: 1.05rem;
  color: #2c1a0e;
}

.card-producto-precio small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
}

.btn-agregar {
  background: #2c1a0e;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto !important;
}

.btn-agregar:hover {
  background: #b8860b;
}

.sin-productos {
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
}

.sin-productos-cat {
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
}


#btn-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2c1a0e;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

#btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#btn-top:hover {
  background: #b8860b;
}


.contacto-section {
  background: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contacto-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c1a0e;
}

.contacto-info p {
  color: #666;
  font-size: 1rem;
}

.contacto-dato {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ddd4;
  color: #2c1a0e;
  font-size: 0.95rem;
}

.contacto-dato i {
  font-size: 1.2rem;
  color: #b8860b;
  width: 24px;
}

.contacto-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(44, 26, 14, 0.12);
  border-top: 4px solid #b8860b;
}

.contacto-card label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #b8860b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contacto-card .form-control {
  background: #fdf8f3 !important;
  border: 1.5px solid #e0d5c8 !important;
  border-radius: 8px !important;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #2c1a0e;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contacto-card .form-control:focus {
  border-color: #b8860b !important;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15) !important;
  outline: none;
}

.contacto-card .form-control::placeholder {
  color: #bbb;
}

.btn-contacto {
  background: #2c1a0e;
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-contacto:hover {
  background: #b8860b;
  transform: translateY(-1px);
}

.btn-contacto:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


.home-banner {
  width: 100%;
  height: clamp(200px, 40vw, 500px);
  overflow: hidden;
}

.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: clamp(280px, 45vw, 500px);
}

.galeria-grande {
  overflow: hidden;
  border-radius: 8px;
}

.galeria-grande img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.galeria-grande:hover img {
  transform: scale(1.05);
}

.galeria-pequeñas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.galeria-pequeñas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s;
}

.galeria-pequeñas img:hover {
  transform: scale(1.05);
}

.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-icon-btn:hover {
  color: #b8860b;
}

#adminTabs .nav-link {
  color: #2c1a0e !important;
  font-weight: 600;
  border-color: #dee2e6;
}

#adminTabs .nav-link.active {
  color: #2c1a0e !important;
  background-color: #fff;
  border-bottom-color: #fff;
  font-weight: 700;
}

#adminTabs .nav-link:hover {
  color: #b8860b !important;
}

#tituloFormProducto,
#tituloFormCat {
  color: #2c1a0e;
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  .sticky-lg-top {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
  }
}

@media (max-width: 991px) {
  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 768px) {
  .hero-galeria {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    height: auto;
  }

  .galeria-grande {
    height: 260px;
  }

  .galeria-pequeñas {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 80px;
  }
}

@media (max-width: 576px) {
  .galeria-pequeñas {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 80px);
  }

  .cat-titulo {
    font-size: 1.3rem;
  }

  .card-producto-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-agregar {
    justify-content: center;
  }

  .contacto-card {
    padding: 24px 16px;
  }

  .contacto-info h2 {
    font-size: 1.8rem;
  }
}

.lb-navbar {
  background-color: #3e2723 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
}

.lb-toggler {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px;
}

.lb-toggler span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.lb-brand-dot {
  width: 8px;
  height: 8px;
  background: #c5a059;
  border-radius: 50%;
  flex-shrink: 0;
}

.lb-navlink {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  transition: color 0.2s, background 0.2s !important;
}

.lb-navlink:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.lb-nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
  .nav-icon-btn {
    flex: 1;
    justify-content: center;
  }

  .d-flex.align-items-center.gap-2 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    width: 100%;
  }
}