.lab-catalog-page{font-family:DinPro,sans-serif;color:#000;width:100%;max-width:none}
.lab-catalog-intro{padding:60px 6% 0}
.lab-catalog-intro h1{font:400 48px/1.2 DinPro,sans-serif;color:#000;margin:0 0 28px}
.lab-catalog-intro h1 strong{font-weight:700}
.lab-catalog-intro p{font:400 20px/1.75 DinPro,sans-serif;margin:0}
.lab-catalog-intro hr{height:1px;border:0;background:#dedede;margin:55px 0 40px}
.lab-catalog-list{padding:0 4%}
.lab-catalog-promos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:50px;padding:80px 6%}
.lab-catalog-promo{text-align:center}
.lab-catalog-promo img{display:block;width:100%;aspect-ratio: .87;object-fit:cover;border-radius:12px}
.lab-catalog-promo p{font:400 20px/1.5 DinPro,sans-serif;margin:24px 0}
.lab-catalog-promo h2{font:500 36px/1.3 DinPro,sans-serif;color:#333;margin:0}
.lab-catalog-promo a{color:inherit;text-decoration:none}
.lab-catalog-page .thelab-panel[hidden]{display:none!important}
@media(max-width:1024px){.lab-catalog-intro{padding-top:40px}.lab-catalog-promos{gap:25px}.lab-catalog-promo h2{font-size:28px}}
@media(max-width:767px){.lab-catalog-intro{padding:30px 20px 0}.lab-catalog-intro h1{font-size:34px}.lab-catalog-intro p{font-size:18px}.lab-catalog-intro hr{margin:30px 0}.lab-catalog-list{padding:0 16px}.lab-catalog-promos{grid-template-columns:1fr;padding:45px 20px;gap:40px}.lab-catalog-promo p{font-size:18px}}
.vista-productos .productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* DESKTOP */
  gap: 20px;
  width: 100%;
  padding: 0 32px; /* respiración lateral */
  box-sizing: border-box;
}

/* ===== CARD ===== */
.vista-productos .producto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
}

/* ===== CAJA ===== */
.vista-productos .producto-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  width: 100%;
  transition: box-shadow .25s, transform .15s;
  position: relative;
}

.vista-productos .producto-box:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.08), 0 -1px 6px rgba(0,0,0,.04);
  transform: translateY(-2px);
}

/* ===== IMAGEN ===== */
.vista-productos .producto-img {
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  margin: -6px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: #fff;
}

.vista-productos .producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

/* ===== HOVER IMAGEN ===== */
.vista-productos .producto-img .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.vista-productos .producto-card:hover .producto-img .img-principal {
  opacity: 0;
}

.vista-productos .producto-card:hover .producto-img .img-hover {
  opacity: 1;
}

/* ===== TÍTULO ===== */
.lab-catalog-page .vista-productos .titulo-producto {
  margin-top: 16px;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
  color: #000;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

/* ===============================
   RESPONSIVE
   =============================== */

/* TABLET → 2 */
@media (max-width: 1024px) {
  .vista-productos .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
}

/* MOBILE → 1 */
@media (max-width: 640px) {
  .vista-productos .productos-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}



/* ===== PÍLDORAS THE LAB ===== */

/* Contenedor de las tabs */
.thelab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;                          /* ⬅️ más separación horizontal */
  justify-content: flex-start;
  margin: 24px 0 22px;
}

/* Pastilla base */
.thelab-tabs .thelab-tab {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  padding: 15px 35px !important;
  border-radius: 39px !important;
  border: 1px solid #0201015C !important;
  background: #f1f2f3 !important;
  color: #333 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;         /* ⬅️ tamaño 16px */
  font-family: "DinPro", sans-serif;  /* ⬅️ DinPro */
  font-weight: 500 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

/* Hover */
.thelab-tabs .thelab-tab:hover {
  background: #e1e1e1 !important;
}

/* Activa */
.thelab-tabs .thelab-tab.is-active {
  background: #B9B9B9 !important;
  color: #ffffff !important;
  border-color: #B9B9B9 !important;
  box-shadow: none !important;
}

/* Corrige margen superior entre pastillas */
.thelab-tabs .thelab-tab:not(:first-child) {
  margin-block-start: 0 !important;
}

/* Margen a la izquierda de la primera ("Todos") */
.thelab-tabs .thelab-tab:first-child {
  margin-left: 16px !important;
}

/* Contenido debajo de las tabs */
.thelab-panel {
  margin-top: 50px !important;
}
/* ===== PÍLDORAS SCROLL EN MOBILE ===== */

@media (max-width: 767px) {
  .thelab-tabs {
    flex-wrap: nowrap;                 /* todas en una fila */
    overflow-x: auto;                  /* scroll horizontal */
    overflow-y: hidden;
    gap: 12px;                         /* un pelín de separación */
    padding: 0 16px 0 16px;
    margin: 24px -16px 22px;           /* que lleguen al borde de pantalla */
    -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
  }

  /* primera sin margen extra en mobile */
  .thelab-tabs .thelab-tab:first-child {
    margin-left: 0 !important;
  }

  /* ocultar scrollbar visualmente */
  .thelab-tabs::-webkit-scrollbar {
    display: none;
  }
}
