.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.cardProducto {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: visible;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cardProducto:hover {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 60;
}

.cardProducto__media {
  display: block;
  width: 100%;
  height: 240px;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.25s ease;
}

.cardProducto__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

.cardProducto_tallas {
  min-height: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.cardProducto__title {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: left;
  color: #202020;
  min-height: calc(1.25em * 2.6);
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.cardProducto__title::first-letter {
  text-transform: uppercase;
}

.cardProducto__pvp-ref {
  margin-top: 2px;
  width: 100%;
}

.cardProducto__price {
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  color: #111;
  margin-top: 1rem;
}

.cardProducto__delivery {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: left;
}

.cardProducto__delivery-legend {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  opacity: 0.9;
  color: #5f5f5f;
}

.cardProducto__stock--express,
.cardProducto__stock--available {
  color: green;
}

.cardProducto__stock--none {
  color: red;
}

.logo__express_pequeno {
  width: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

.logo_marca {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 42px;
  height: 24px;
  z-index: 2;
}

.cardProducto__marca-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cardProducto__offer-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cardProducto__badges {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.cardProducto__apps-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  flex: 0 0 auto;
  position: relative;
}

.cardProducto__features-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  flex: 0 0 auto;
  position: relative;
}

.cardProducto__apps-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.cardProducto__features-icon {
  font-size: 0.78rem;
  line-height: 1;
}

.cardProducto__apps-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 300px;
  max-width: 680px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.cardProducto__features-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 300px;
  max-width: 680px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.cardProducto__apps-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #1f2937;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cardProducto__features-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #1f2937;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cardProducto__apps-tooltip-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.cardProducto__features-tooltip-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.cardProducto__apps-tooltip-list {
  margin: 0;
  padding: 0 0 0 14px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cardProducto__features-tooltip-list {
  margin: 0;
  padding: 0 0 0 14px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cardProducto__apps-tooltip-item {
  margin-bottom: 4px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: #f3f4f6;
  white-space: nowrap;
}

.cardProducto__features-tooltip-item {
  margin-bottom: 4px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: #f3f4f6;
  white-space: nowrap;
}

.cardProducto__apps-tooltip-item:last-child {
  margin-bottom: 0;
}

.cardProducto__features-tooltip-item:last-child {
  margin-bottom: 0;
}

.cardProducto__features-tooltip-key {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cardProducto__apps-indicator:hover .cardProducto__apps-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 120;
}

.cardProducto__features-indicator:hover .cardProducto__features-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 120;
}

.cardProducto:hover .cardProducto__media {
  transform: scale(1.03);
}

@media (max-width: 1200px) {
  .contenedor-productos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .cardProducto {
    min-height: 400px;
  }

  .cardProducto__media {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .contenedor-productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cardProducto {
    min-height: 355px;
    border-radius: 6px;
  }

  .cardProducto__media {
    height: 185px;
    padding: 0;
  }

  .cardProducto__content {
    padding: 10px;
    gap: 4px;
  }

  .cardProducto__title {
    font-size: 0.78rem;
    line-height: 1.25;
    min-height: calc(1.25em * 2.5);
  }

  .cardProducto__price {
    font-size: 1.3rem;
  }

  .cardProducto__delivery {
    font-size: 0.82rem;
  }

  .cardProducto__delivery-legend {
    font-size: 0.68rem;
  }

  .logo_marca {
    width: 36px;
    height: 20px;
  }

  .cardProducto__offer-image {
    width: 48px;
    height: 48px;
  }

  .cardProducto__apps-indicator,
  .cardProducto__features-indicator {
    display: none;
  }
}

@media (max-width: 420px) {
  .contenedor-productos {
    gap: 8px;
  }

  .cardProducto {
    min-height: 335px;
  }

  .cardProducto__media {
    height: 172px;
    padding: 0;
  }

  .cardProducto__price {
    font-size: 1.2rem;
  }

  .logo__express_pequeno {
    width: 26px;
    margin-left: 6px;
  }
}

@media (max-width: 360px) {
  .contenedor-productos {
    grid-template-columns: 1fr;
  }

  .cardProducto {
    min-height: 320px;
  }
}





