/* ==============================================
   eMarket — Cards: Service, Product, Plan, Testimonial
   ============================================== */

/* ========== SERVICE CARD ========== */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .servicios__grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-top-color .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-500);
}
.service-card:hover .service-card__icon {
  background: color-mix(in srgb, var(--primary-500) 22%, transparent);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p  { font-size: .9rem; }

/* ========== PRODUCT CARD ========== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-top-color .3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-500);
}
.product-card__tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--secondary-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  z-index: 1;
}
.product-card__tag--hot { background: #ef4444; }
.product-card__tag--rec { background: var(--primary-500); }
.product-card__tag--new { background: #22c55e; }

/* Emoji fallback (sin imagen) */
.product-card__img {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary-500) 8%, var(--bg-card-alt)),
    var(--bg-card-alt)
  );
  flex-shrink: 0;
  transition: background .3s;
}
.product-card:hover .product-card__img {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary-500) 15%, var(--bg-card-alt)),
    var(--bg-card-alt)
  );
}

/* Galería de imágenes */
.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card-alt);
  min-height: 180px;
}
.product-card__photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}
.product-card__img-dots {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .35rem;
}
.img-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.img-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.img-dot:hover { background: rgba(255,255,255,.85); }
.product-card__body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__body h4     { font-size: 1rem; margin-bottom: .35rem; }
.product-card__body p      { font-size: .82rem; color: var(--text-muted); flex: 1; margin-bottom: .75rem; }
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.product-card .price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-500);
  line-height: 1.2;
}
.product-card .price--consult {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.product-card .price small {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

/* ========== PLAN CARD ========== */
.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card--recommended {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 1px var(--primary-500), var(--shadow-md);
}
.plan-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary-500);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-card__price {
  margin: 1rem 0 1.5rem;
}
.plan-card__price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-500);
  line-height: 1;
}
.plan-card__price .currency { font-size: 1.2rem; vertical-align: super; }
.plan-card__price .period   { font-size: .85rem; color: var(--text-muted); }
.plan-card__benefits {
  flex: 1;
  margin-bottom: 1.5rem;
}
.plan-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.plan-card__benefits li::before {
  content: '✓';
  color: var(--primary-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== TESTIMONIOS CAROUSEL ========== */
.testimonios__carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3rem;
  max-width: 760px;
  margin: 0 auto;
}
.carousel__track-wrapper {
  width: 100%;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  z-index: 2;
}
.carousel__btn:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__dots {
  display: flex;
  gap: .5rem;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.carousel__dot.active {
  background: var(--primary-500);
  transform: scale(1.3);
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.testimonial-card__quote {
  font-size: 5rem;
  line-height: .6;
  color: var(--primary-500);
  opacity: .25;
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  user-select: none;
}
.testimonial-card__stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: .1rem; }
.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.75rem;
  line-height: 1.75;
  max-width: 640px;
  color: var(--text-main);
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: .95rem; color: var(--text-main); }
.testimonial-card__author span   { font-size: .8rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .testimonios__carousel { padding: 0 2.2rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  .testimonial-card p { font-size: .92rem; }
}
