:root {
  --bee-primary: #2b6b31;
  --bee-primary-2: #368e3e;
  --bee-accent: #fdbf00;
  --bee-accent-2: #e6a900;
  --bee-ink: #0f172a;
  --bee-muted: #475467;
  --bee-surface: #f7fbfa;
}

/* Hero Section */
.hero-tienda {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(
      130deg,
      var(--bee-primary) 0%,
      var(--bee-primary-2) 52%,
      #245a2a 100%
    );
  color: white;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(11rem, 20vw, 16rem);
  position: relative;
  overflow: hidden;
}

.hero-tienda::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 48px solid rgba(255, 255, 255, 0.08);
  right: -110px;
  top: -130px;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-tienda-content {
  position: relative;
  z-index: 3;
}

.hero-tienda h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 1rem 0 0.75rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-tienda p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  opacity: 0.97;
  margin-bottom: 1.6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-logo-card {
  width: min(280px, 90%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 1rem;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(120deg, var(--bee-accent), var(--bee-accent-2));
  color: #1a2e1a;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  box-shadow: 0 12px 30px rgba(253, 191, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-cta:hover {
  color: #1a2e1a;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(253, 191, 0, 0.45);
  text-decoration: none;
}

.imgWave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* Search Section */
.search-section {
  padding: 2.5rem 0 1rem 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid #80808021;
  border-bottom-style: dashed;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-container .input-group {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-container .input-group-text {
  background: white;
  border: none;
  color: var(--bee-primary);
  font-size: 1.1rem;
  padding: 0 1.5rem;
}

.search-container .form-control {
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  background: white;
}

.search-container .form-control:focus {
  background: white;
  border: none;
  box-shadow: none;
  outline: none;
}

.search-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Business Card */
.bee-business-card {
  height: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bee-business-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bee-business-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bee-business-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0);
  transition: background 0.4s ease;
  z-index: 1;
}

.bee-business-card:hover .bee-business-media::after {
  background: rgba(102, 126, 234, 0.1);
}

.bee-business-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bee-business-card:hover .bee-business-media img {
  transform: scale(1.08);
}

.bee-business-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 1.25rem;
}

.bee-business-name {
  font-size: 1.1rem;
  line-height: 1.4;
  min-height: auto;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.bee-business-phone {
  min-height: auto;
  margin: 0;
  color: #7f8c8d;
  font-size: 0.95rem;
}

.bee-business-phone i {
  color: var(--bee-primary);
  width: 18px;
}

.bee-business-card .btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  border: none;
}

.btn-add-product {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--bee-primary) 0%,
    var(--bee-primary-2) 100%
  ) !important;
  color: #fff !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: auto;
  text-decoration: none;
}

.btn-add-product:hover {
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(43, 107, 49, 0.35);
  transform: translateY(-3px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state h3 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.empty-state p {
  color: #7f8c8d;
  font-size: 1.05rem;
}

/* Pagination Styles */
.pagination-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 2rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--bee-primary);
  background: rgba(43, 107, 49, 0.06);
  color: var(--bee-primary);
  transform: translateY(-2px);
}

.pagination .active span {
  background: linear-gradient(
    135deg,
    var(--bee-primary) 0%,
    var(--bee-primary-2) 100%
  );
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(43, 107, 49, 0.3);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  text-align: center;
  font-size: 0.95rem;
  color: #6c757d;
  margin-top: 1rem;
  font-weight: 500;
}

.footer-page {
  background: #f8fafc;
  color: #334155;
  text-align: center;
  padding: 1.6rem 0;
  border-top: 1px solid #e2e8f0;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
  .hero-tienda {
    text-align: center;
    padding-bottom: clamp(7rem, 16vw, 10rem);
  }

  .hero-tienda h1,
  .hero-tienda p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-tienda {
    padding: 2.5rem 0 clamp(7rem, 22vw, 10rem);
  }

  .hero-tienda h1 {
    margin-bottom: 0.75rem;
  }

  .search-section {
    padding: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .hero-tienda {
    padding: 2rem 0 clamp(6.5rem, 26vw, 9rem);
    min-height: 0;
  }

  .search-section {
    padding: 1.25rem 0;
    margin-bottom: 2rem;
  }

  .search-container .input-group-text,
  .search-container .form-control {
    padding: 0.75rem 1rem;
  }
}
