#top-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 42px;
  background-color: #1c5a1f;
  z-index: 1030;
  color: white;
}

body {
  padding-top: 60px;
}

.offcanvas {
  z-index: 1100;
}

.offcanvas-header .btn-close {
  z-index: 1101;
  position: relative;
  filter: invert(1);
  background-color: #ffffff;
  border-radius: 50%;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.btn-primary {
  border: none;
  background-color: #28a745;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #218838;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary i {
  color: rgb(203, 15, 15);
  pointer-events: none;
}

.btn.position-relative {
  background: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.position-relative:hover {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  transform: translateY(-1px);
}

.btn.position-relative .bi-cart {
  font-size: 1.1rem;
  color: white;
}

.btn.position-relative .badge {
  background: #ef0b0b;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  width: 16px;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid white;
}

/*.container-fluid>div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}*/

.navbar img {
  border-radius: 10%;
  object-fit: cover;
}

.offcanvas {
  background-color: #0e0d0d;
}

.offcanvas-header {
  border-bottom: 1px solid #28a745;
}

.offcanvas-title {
  color: #d35400;
  font-weight: 600;
  font-size: 1.2rem;
}

.offcanvas-header .btn-close {
  z-index: 500;
  position: relative;
  margin-top: 4px;
  font-size: 1.4rem;
}

.offcanvas {
  z-index: 1100 !important;
}

.offcanvas-header .btn-close {
  z-index: 1101 !important;
}

.btn-danger {
  background-color: #dc3545;
  border: none;
  width: 100%;
}

.btn-success {
  background-color: #28a745;
  border: none;
  width: 100%;
  margin-top: 10px;
}

form label {
  font-weight: 600;
  margin-top: 10px;
  color: #1e7e34;
}

form input,
form select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #078b64;
  border-radius: 8px;
}

.mensaje-vacio {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 20px;
  color: #1e7e34;
}

.promo-doble {
  display: flex;
  flex-direction: row;
  height: 550px;
  width: 100%;
  overflow: hidden;
}

.columna-izquierda,
.columna-derecha {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.columna-izquierda img,
.columna-derecha img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.imagen-cambiante {
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* PARA el promocional --- */
.promo-doble {
  display: flex;
  flex-direction: row;
  height: 550px;
  width: 100%;
  overflow: hidden;
}
.columna-izquierda,
.columna-derecha {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

.columna-izquierda img,
.columna-derecha img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
   max-height: 100%; 
}

.imagen-cambiante {
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
    max-height: 100%;
}
.columna-derecha img,
.columna-derecha .imagen-cambiante {
  max-height: 100% !important;
  object-fit: contain !important;
}

@media screen and (max-width: 1024px) {
  .promo-doble {
    height: 325px;
  }
}

@media screen and (max-width: 768px) {
  .promo-doble {
    flex-direction: column;
    height: auto;
    margin-top: 75px;
  }

  .columna-izquierda,
  .columna-derecha {
    width: 100%;
    height: 220px; 
  }

  .columna-izquierda img,
  .columna-derecha img {
    position: relative;
    height: 100%;
    width: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
  }

  .imagen-cambiante {
    position: relative;
    height: 100%;
    width: auto;
    object-fit: contain;
  }
}
@media screen and (max-width: 650px) {
  .columna-izquierda,
  .columna-derecha {
    height: 200px; 
  }
}
@media screen and (max-width: 480px) {
  .columna-izquierda,
  .columna-derecha {
    height: 180px; 
  }
}

@media screen and (max-width: 375px) {
  .columna-izquierda,
  .columna-derecha {
    height: 160px; 
  }
}


@media screen and (max-width: 320px) {
  .columna-izquierda,
  .columna-derecha {
    height: 140px;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .promo-doble {
    flex-direction: row;
    height: 200px; 
  }
  
  .columna-izquierda,
  .columna-derecha {
    height: 100%;
  }
}

@media screen and (min-width: 1600px) {
  .promo-doble {
    height: 600px; 
    max-width: 1600px;
    margin: 0 auto;
  }
}

.marca {
  height: 200px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.marca:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

h2 {
  margin-top: 30px;
  margin-bottom: 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  display: block;
  text-align: center;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

h3 {
  margin-top: 0px;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: #000000;
  display: block;
  text-align: center;
  padding-bottom: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: black;
}

.titulo-destacado {
  margin-top: 20px;
  margin-left: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #000000;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 5px;
}

.btn-carritocompra {
  background-color: #24a52b;
  border-color: #145a13;
  color: white;
  padding: 6px 12px;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-carrito:hover {
  background-color: #145a13;
  color: white;
}

#miCarrusel1 {
  max-width: 100%;
  overflow: hidden;
}

.marca {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .marca:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 576px) {
  .carousel-item .d-flex {
    gap: 1rem !important;
    flex-direction: column;
    align-items: center;
  }

  .marca {
    width: 80%;
    max-width: 200px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .carousel-item .d-flex {
    gap: 1.5rem !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .marca {
    width: 45%;
    max-width: 220px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-item .d-flex {
    gap: 2rem !important;
  }

  .marca {
    width: 30%;
    max-width: 250px;
  }
}

@media (min-width: 1025px) {
  .marca {
    width: 22%;
    max-width: 280px;
  }
}

/*@media (max-width: 991.98px) {
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}*/

.navbar-nav .nav-link {
  color: #000000;
  font-weight: 600;
  transition: color 0.3s;
}

.offcanvas {
  background-color: #000000;
}

.list-group-item {
  border: none;
  padding: 14px 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease-in-out;
}

.list-group-item a {
  text-decoration: none;
  color: #222;
  display: block;
}

.list-group-item:hover {
  background-color: #f5f5f5;
}

.list-group-item a:hover {
  color: #145a13;
}

.navbar-toggler {
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #145a13;
  transition: all 0.3s ease;
}


.navbar-toggler:hover {
  background-color: #218838;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar-toggler:active {
  transform: scale(0.95);
}

/* ícono de hamburguesa */
.navbar-toggler-icon {
  background-image: none;
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggler {
  width: 40px;
  height: 40px;
  padding: 0;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.brand-color {
  font-size: 1.3rem;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-custom {
  background-color: #ffffff;
  top: 42px;
  z-index: 1020;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.navbar-custom.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-custom .nav-link {
  color: #000;
}

.navbar-custom .nav-link.active {
  color: #000;
}

#menuCategorias {
  background-color: #000;
  color: #28a745;
}

#menuCategorias .offcanvas-title {
  color: #d35400;
}

#menuCategorias .categoria-link,
#menuCategorias .list-group-item a {
  color: #28a745;
  text-decoration: none;
}

#menuCategorias .categoria-link:hover,
#menuCategorias .list-group-item a:hover {
  color: #218838;
}

#menuCategorias .list-group-item {
  background-color: #000;
  border-color: #28a745;
}

#menuCategorias h6 {
  color: #d35400 !important;
  font-weight: bold;
}

.navbar-brand,
.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand:hover {
  color: #000 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

#categoriasDropdown {
  color: black;
  background: none;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 42px !important;
}

.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.15);
  margin-top: 8px !important;
  padding: 0 !important;
  min-width: auto !important;
  width: 240px !important;
  max-width: 240px;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  max-height: 450px !important;
  overflow-y: auto !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.1s ease;
  display: block !important;
}

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
}

.navbar .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 6px;
  background: #f5f5f5;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-top: 2px solid var(--verde-principal);
  border-left: 2px solid var(--verde-principal);
  border-right: 2px solid var(--verde-principal);
}

.navbar .dropdown-item {
  color: var(--texto-oscuro) !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: normal !important;
  border-bottom: 1px solid var(--verde-claro) !important;
  margin: 0;
  line-height: 1.3;
}

.navbar .dropdown-item:hover {
  background: var(--verde-principal) !important;
  color: white !important;
  font-weight: 700 !important;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
  background: var(--beige-natural) !important;
  border-radius: 0 12px 12px 0;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--verde-principal) !important;
  border-radius: 3px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #078b64;
}

.navbar .dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--verde-principal) var(--beige-natural);
}

.navbar .nav-item.dropdown:last-child .dropdown-menu {
  left: auto !important;
  right: 0 !important;
}

.navbar .nav-item.dropdown:last-child .dropdown-menu::before {
  left: auto;
  right: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  background: transparent !important;
  border: 2px solid var(--verde-principal) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 0.9 !important;
  transition: all 0.3s ease !important;
  background-color: transparent !important;
  background-image: none !important;
}

.carousel-control-prev {
  left: 20px !important;
}

.carousel-control-next {
  right: 20px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: transparent !important;
  border-color: var(--verde-hover) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  background-color: transparent !important;
  width: 20px !important;
  height: 20px !important;
  position: relative;
}

.carousel-control-prev-icon::before {
  content: "‹";
  font-size: 2rem !important;
  font-weight: bold;
  color: var(--verde-principal) !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-control-next-icon::before {
  content: "›";
  font-size: 2rem !important;
  font-weight: bold;
  color: var(--verde-principal) !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-control-prev:hover .carousel-control-prev-icon::before,
.carousel-control-next:hover .carousel-control-next-icon::before {
  color: var(--verde-hover) !important;
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }

  .carousel-control-prev {
    left: 10px !important;
  }

  .carousel-control-next {
    right: 10px !important;
  }

  .carousel-control-prev-icon::before,
  .carousel-control-next-icon::before {
    font-size: 1.5rem !important;
  }
}

.btn-volver-arriba {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #218838 0%, #9CAF7F 100%);
  color: white !important;
  border: none;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(138, 155, 104, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-volver-arriba:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 155, 104, 0.4);
  background: linear-gradient(135deg, #378035 0%, #8C9F6F 100%);
  color: white !important;
  text-decoration: none;
}

@keyframes pulsoSuave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-volver-arriba {
  animation: pulsoSuave 2s ease-in-out infinite;
}

.btn-volver-arriba::before {
  content: '↑';
  margin-right: 0.5rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .btn-volver-arriba {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .btn-volver-arriba {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    display: block;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
  }
}

.btn-custom.add-to-cart.btn-success {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #218838 0%, #9CAF7F 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(138, 155, 104, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-custom.add-to-cart.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 155, 104, 0.4);
  background: linear-gradient(135deg, #378035 0%, #8C9F6F 100%);
}

.btn-custom.add-to-cart.btn-success::before {
  content: '🛒';
  margin-right: 0.5rem;
  font-size: 0.9rem;
  filter: brightness(0) invert(1);
}

.btn-custom.add-to-cart.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-custom.add-to-cart.btn-secondary::before {
  content: '✓';
  margin-right: 0.5rem;
  font-weight: bold;
  color: #666;
}

.btn-custom.btn-agregar.btn-success {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #218838 0%, #9CAF7F 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(138, 155, 104, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-custom.btn-agregar.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 155, 104, 0.4);
  background: linear-gradient(135deg, #378035 0%, #8C9F6F 100%);
}

.btn-custom.btn-agregar.btn-success::before {
  content: '🛒';
  margin-right: 0.5rem;
  font-size: 0.9rem;
  filter: brightness(0) invert(1);
}

.btn-custom.btn-agregar.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-custom.btn-agregar.btn-secondary::before {
  content: '✓';
  margin-right: 0.4rem;
  font-weight: bold;
  color: #666;
}

.btn.add-to-cart.btn-dark {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #218838 0%, #9CAF7F 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(138, 155, 104, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn.add-to-cart.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 155, 104, 0.4);
  background: linear-gradient(135deg, #378035 0%, #8C9F6F 100%);
}

.btn.add-to-cart.btn-dark .bi-cart-plus::before {
  content: '🛒' !important;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  filter: brightness(0) invert(1);
}

.btn.add-to-cart.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn.add-to-cart.btn-secondary::before {
  content: '✓';
  margin-right: 0.4rem;
  font-weight: bold;
  color: #666;
}

.btn.add-to-cart.btn-secondary .bi-cart-plus {
  display: none;
}

.btn:disabled, .btn-custom:disabled {
  opacity: 0.9;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.btn:disabled:hover, .btn-custom:disabled:hover {
  transform: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

@keyframes agregadoExitoso {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn.agregado, .btn-custom.agregado {
  animation: agregadoExitoso 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .btn-custom.add-to-cart,
  .btn-custom.btn-agregar,
  .btn.add-to-cart {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .btn-custom.add-to-cart.btn-secondary,
  .btn-custom.btn-agregar.btn-secondary,
  .btn.add-to-cart.btn-secondary {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .btn-custom.add-to-cart,
  .btn-custom.btn-agregar,
  .btn.add-to-cart {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }

  .btn-custom.add-to-cart.btn-secondary,
  .btn-custom.btn-agregar.btn-secondary,
  .btn.add-to-cart.btn-secondary {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
  }
}

.btn-custom.add-to-cart.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
}

.btn-custom.add-to-cart.btn-secondary::before {
  content: '✓';
  margin-right: 0.3rem;
  font-weight: bold;
  color: #666;
}

.btn-custom.btn-agregar.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
}

.btn-custom.btn-agregar.btn-secondary::before {
  content: '✓';
  margin-right: 0.3rem;
  font-weight: bold;
  color: #666;
}

.btn.add-to-cart.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  width: 100%;
  white-space: nowrap;
}

.btn.add-to-cart.btn-secondary::before {
  content: '✓';
  margin-right: 0.3rem;
  font-weight: bold;
  color: #666;
}

@media (max-width: 768px) {
  .btn-custom.add-to-cart.btn-secondary,
  .btn-custom.btn-agregar.btn-secondary,
  .btn.add-to-cart.btn-secondary {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
  }

  .btn-custom.add-to-cart.btn-secondary::before,
  .btn-custom.btn-agregar.btn-secondary::before,
  .btn.add-to-cart.btn-secondary::before {
    margin-right: 0.4rem;
  }
}

@media (max-width: 480px) {
  .btn-custom.add-to-cart.btn-secondary,
  .btn-custom.btn-agregar.btn-secondary,
  .btn.add-to-cart.btn-secondary {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }

  .btn-custom.add-to-cart.btn-secondary::before,
  .btn-custom.btn-agregar.btn-secondary::before,
  .btn.add-to-cart.btn-secondary::before {
    margin-right: 0.5rem;
  }
}

form {
  background: linear-gradient(135deg, #1e1e1e 0%, #252a25 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid #2f4032;
  max-width: 500px;
  margin: 1.5rem auto;
  transition: all 0.3s ease;
}

form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.25);
}

form label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #9be09b;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

form input[type="text"],
form input[type="tel"],
form select {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #3b4a3b;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  background: #2a2f2a;
  color: #e6e6e6;
}

form input[type="text"]:focus,
form input[type="tel"]:focus,
form select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a0bfa0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.2em;
  padding-right: 2.5rem;
  appearance: none;
}

form ~ div {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3b4a3b;
  align-items: stretch;
}

.btn-success,
.btn-danger {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 0.9rem 1.5rem;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-success {
  background: linear-gradient(135deg, #218838 0%, #6fbf73 100%);
  box-shadow: 0 2px 8px rgba(46, 139, 87, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.6);
  background: linear-gradient(135deg, #3ea76f 0%, #8ecf7a 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #c9302c 0%, #b71d29 100%);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #d93b39 0%, #a91e23 100%);
}

@media (max-width: 480px) {
  form {
    padding: 1.5rem;
    margin: 1rem;
  }

  form ~ div {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }

  .btn-success,
  .btn-danger {
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
  }
}

.resumen-precios {
  color: white;
  font-family: Arial, sans-serif; 
}

.resumen-precios p {
  font-size: 16px; 
  margin: 0 0 5px 0; 
}

.resumen-precios h5 {
  font-size: 20px;
  margin: 0;
  font-weight: bold; 
}

.resumen-sub p {
  color: white;   
  font-size: 2opx;  
}
.error-form {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 0.0625rem; /* 1px */
  margin-bottom: 0;
  display: block;
  font-weight: 500;
  line-height: 1.1;
  padding-left: 0.25rem;
}
.input-form {
  margin-bottom: 0.125rem;
}
.mi-formulario > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

.search-navbar {
  width: 100%;
  max-width: 500px;
}

.search-navbar .input-group {
  width: 100%;
}

.search-input {
  border-radius: 20px 0 0 20px;
  border: 1px solid #ced4da;
  padding-left: 16px;
  box-shadow: none;
}

.search-input:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.25);
}

.search-btn {
  border-radius: 0 20px 20px 0;
  background-color: #198754;
  color: #fff;
  padding: 0 18px;
  border: none;
}

.search-btn:hover {
  background-color: #157347;
}

@media (max-width: 991px) {
  .search-navbar {
    max-width: 100%;
    margin-top: 8px;
  }
}

.navbar-custom .container-fluid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.search-navbar {
  width: 100%;
}

@media (max-width: 991.98px) {
.search-navbar {
order: 1;
margin-bottom: 6px;
  }

    
    .navbar-brand {
      order: 2;
      margin: 0 auto;
    }

    .navbar-toggler {
      order: 3;
    }
    }

@media (min-width: 992px) {

  .navbar-custom .container-fluid {
    flex-wrap: nowrap;
  }

  .search-navbar {
    max-width: 500px;
    margin: 0 20px;
  }
}

@media (max-width: 991.98px) {
  .brand-text {
    margin-top: 6px; 
    display: inline-block;
  }
}

@media (min-width: 992px) {

  .navbar .container-fluid {
    flex-direction: row !important;
    align-items: center;
  }

  .navbar .container-fluid > .w-100 {
    width: auto !important;
  }


  .search-navbar {
    margin-top: 0 !important;
    max-width: 450px;
  }

  #navbarContent {
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .search-navbar {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;  
    flex-grow: 1;
  }
}

