/* =====================
   C-CARD
   ===================== */

.c-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--vw) * 20);
}

@media (min-width: 1024px) {
  .c-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1440px) {
  .c-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.c-card {
  background-color: var(--white);
  border-radius: calc(var(--vw) * 16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 10px 15px -3px #0000001a;
}

.c-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ── IMAGEN ── */
.c-card__image-wrapper {
  position: relative;
  background-color: var(--white);
  padding: calc(var(--vw) * 24) calc(var(--vw) * 4) calc(var(--vw) * 4)
    calc(var(--vw) * 4);
  order: -1;
  position: relative;
}

.c-card__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── BOTTOM (tags sobre la imagen: Oferta destacada, Entrega inmediata...) ── */
.c-card__bottom {
  position: absolute;
  bottom: calc(var(--vw) * 12);
  left: calc(var(--vw) * 12);
  right: calc(var(--vw) * 12);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(var(--vw) * 8);
}

.c-card__bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--vw) * 8);
}

/* ── INFO ── */
.c-card__info {
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(var(--vw) * 8);
  padding: calc(var(--vw) * 16);
  flex: 1;
}

.c-card__body {
  display: flex;
  flex-direction: column;
}

/* Título */
.c-card__title {
  font-size: calc(var(--vw) * 24);
  line-height: calc(var(--vw) * 28);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

/* Subtítulo */
.c-card__subtitle {
  font-size: calc(var(--vw) * 16);
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Tags equipamiento */
.c-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--vw) * 8);
  margin-top: calc(var(--vw) * 8);
}

/* Tags colors */
.c-card__colors {
  display: flex;
  flex-direction: row;
  gap: calc(var(--vw) * 8);
  margin-top: calc(var(--vw) * 8);
}

.c-card__colors-item {
  padding: calc(var(--vw) * 4);
}

.c-card__colors-bullet {
  width: calc(var(--vw) * 18);
  height: calc(var(--vw) * 18);
  border-radius: calc(var(--vw) * 18);
  border: 1px solid;
}

/* ── PRECIO ── */
.c-card__price-main {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--vw) * 4);
}
.c-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: calc(var(--vw) * 16);
  border-top: 1px solid var(--gray-100);
}

.c-card__price-label {
  font-size: calc(var(--vw) * 12);
  color: var(--gray-400);
  display: block;
  margin-bottom: calc(var(--vw) * 2);
}

.c-card__price-amount {
  font-size: calc(var(--vw) * 24);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: calc(var(--vw) * 28);
}

.c-card__price-period {
  font-size: calc(var(--vw) * 14);
  font-weight: 700;
  color: var(--gray-600);
}

.c-card__price-meta {
  display: flex;
  flex-direction: column;
}

.c-card__price-meta__item {
  text-align: right;
  font-weight: 600;
  font-size: calc(var(--vw) * 11);
  color: var(--gray-600);
  line-height: calc(var(--vw) * 17);
}

/* ── CTA ── */
.c-card__cta {
  display: block;
  width: 100%;
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  font-size: calc(var(--vw) * 16);
  font-weight: 600;
  padding: calc(var(--vw) * 16);
  border-radius: calc(var(--vw) * 12);
  text-decoration: none;
  transition: background-color 0.2s;
}

.c-card__cta:hover {
  background-color: var(--primary-color);
}
