.category-container{
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;   /* clave: evita que las tarjetas se estiren distinto */
  padding: 20px;
  margin-top: -10px;
}

.category-container{
  display: flex;
  flex-wrap: nowrap;        /* antes: wrap → ahora todo en una fila */
  overflow-x: auto;         /* aquí aparece el scroll */
  gap: 32px;
  justify-content: flex-start; /* antes: center → si no, con scroll se ve raro al inicio */
  align-items: flex-start;
  padding: 20px;
  margin-top: -10px;

  /* opcional: mejor experiencia de scroll */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 150px;
}

.category-img {
  --ring: 5px;
  width: 107px;
  height: 107px;
  border-radius: 50%;
  padding: var(--ring);
  background: linear-gradient(135deg, #EFE3C8 0%, #C9AE83 45%, #8C6F4E 100%);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.55),
    inset 0 1px 1px rgba(255,255,255,0.45),
    inset 0 -2px 3px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-img:hover {
  transform: translateY(-3px);
}

.category-img__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #12300f;
}

.category-img__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1.25;

  min-height: 2.5em;              /* reserva espacio para 2 líneas siempre */
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* si el nombre es muy largo, corta con "..." */
  -webkit-box-orient: vertical;
  overflow: hidden;

  color: #123010;
}


.company-list .category-name {
  color: #3A2D0E !important;
}

.category-btn-img{
  width: 100%; height: 100%; object-fit: cover;
}

.category-container::-webkit-scrollbar {
  height: 6px;
}
.category-container::-webkit-scrollbar-thumb {
  background: #C9AE83;
  border-radius: 10px;
}


.company-category-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 420px;              /* ajusta la altura que quieras que ocupe arriba */
  overflow: hidden;
  margin-bottom: 24px;
  margin-top: -100px;              /* quita el -88px, ya no es necesario con este método */
}

.company-category-hero__img {
  position: absolute;
  inset: 0;
  left: 388px;
}

.company-category-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}



.company-category-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  /* background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 0.35) 53%,
    rgba(0, 0, 0, 0) 55%
  ); */


  background: radial-gradient(
    circle at right center,
    rgba(0, 0, 0, 0) 43%,
    rgba(0, 0, 0, 1) 70%,
    rgb(0, 0, 0) 10%
  );
}

.company-category-hero__title {
  color: #ffffff;
  font-size: 5rem;
  font-weight: 700;
  margin: 73px 0 8px 0;
  text-transform: capitalize !important;
}

.company-category-hero__phrase {
  color: #f5f5f5;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  max-width: 700px;
}

.company-category-intro {
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.company-subcategory {
  margin: -10px 0;
  font-size: 39px;
  font-weight: 500;
  color: #876B4B;
  line-height: 1.5em;
}

.company-category-cta {
  background: #fdf3e7;   /* ajusta al color de tu paleta */
  border-left: 4px solid #ff6b00;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a3728;
}

@media (max-width: 768px) {
  .company-category-hero {
    height: 220px;
  }
  .company-category-hero__title {
    font-size: 1.4rem;
  }
  .company-category-hero__overlay {
    padding: 20px;
  }

  .company-category-hero__img {
    position: absolute;
    inset: 0;
    left: 108px;
    border: 2px solid red;
    height: 300px;
  }
  .company-category-hero__image {
    margin-top: -15px !important;
  }

  .company-category-hero__title {
    margin: 7px 0 8px 0;
  }
}

.subcategory-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.subcategory-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 11px;
  background: rgb(250, 251, 246);
  color: #3A2D0E;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.subcategory-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  color: #3A2D0E;
  text-decoration: none;
  background: linear-gradient(135deg, #C9AE83 0%, #8C6F4E 45%, #6b5236 100%);
}

.subcategory-btn.active {
  background: #3A2D0E;
  color: #EFE3C8;
}

@media (max-width: 768px) {
  .subcategory-container {
    gap: 8px;
  }
  .subcategory-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

.breadcrumb--custom{
  background: rgba(0, 0, 0, 0)!important;
  color: white !important;
}

.breadcrumb--custom a{
  color: white !important;
  font-weight: bold;
}

.breadcrumb--custom .breadcrumb-item.active {
  color: #f0f6d0;
}

.company-category-hero__image{
  inset: 0;
  left: 0px;
  width: 450px;
  margin-top: -37px;
}
.company-category-hero__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

}


.company-list {
  position: relative;
  z-index: 0;
}

.company-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #f5f5f5; /* tu color/imagen de fondo */
  z-index: -1;
}