/* featured-v2.css
   Solo para #destacados (home). No afecta otras secciones.
*/

/* ===== Scope general ===== */
#destacados {
  padding: 32px 0;
}

#destacados .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

#destacados .section-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

#destacados .section-subtitle {
  margin: 6px 0 0;
  color: #475569;
  font-size: 14px;
}

#destacados .section-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#destacados .section-link:hover {
  text-decoration: underline;
}

/* ===== Grid ===== */
#destacados .featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 2 cols */
@media (min-width: 576px) {
  #destacados .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 cols */
@media (min-width: 992px) {
  #destacados .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* 4 cols */
@media (min-width: 1200px) {
  #destacados .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Card base ===== */
#destacados .featured-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#destacados .featured-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

/* ===== Imagen ===== */
#destacados .featured-media {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  padding: 14px 14px 10px;
}

#destacados .featured-media a {
  display: block;
}

#destacados .featured-img {
  width: 100%;
  height: 210px;        /* altura estable */
  object-fit: contain;  /* no recorta caja */
  display: block;
  border-radius: 12px;
}

/* ===== Body ===== */
#destacados .featured-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

/* TÍTULO (fix definitivo: visible y con clamp) */
#destacados .featured-title {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;

  /* clamp 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2); /* reserva espacio */
}

/* ===== Precios ===== */
#destacados .featured-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

#destacados .featured-price-old {
  color: #64748b;
  text-decoration: line-through;
  font-weight: 700;
  font-size: 13px;
}

#destacados .featured-price-now {
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.2px;
}

/* ===== CTA ===== */
#destacados .featured-cta {
  margin-top: auto;
  padding-top: 6px;
}

#destacados .featured-btn {
  width: 100%;
  border: 2px solid #93c5fd;
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

#destacados .featured-btn:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

/* ===== Variante “Destacado de la semana” (opcional) ===== */
#destacados .featured-card.is-week {
  border-color: #fdba74;
}

#destacados .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

/* CSS-only: la primera card se convierte en hero */
#destacados .featured-grid > .featured-card:first-child {
  grid-column: 1 / -1; /* ocupa toda la fila */
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child {
    grid-column: span 2; /* ocupa 2 columnas en desktop */
  }
}

/* Aumentar imagen y tipografía del primer item */
#destacados .featured-grid > .featured-card:first-child .featured-img {
  height: 280px;
}

#destacados .featured-grid > .featured-card:first-child .featured-title {
  font-size: 20px;
  -webkit-line-clamp: 3;
  min-height: calc(1.25em * 3);
}

#destacados .featured-grid > .featured-card:first-child .featured-price-now {
  font-size: 24px;
}

/* Badge en el primer item (pseudo-elemento) */
#destacados .featured-grid > .featured-card:first-child .featured-body::before {
  content: "DESTACADO DE LA SEMANA";
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  width: fit-content;
  margin-bottom: 6px;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child {
    grid-column: 1 / -1; /* ancho completo */
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-media {
  padding-top: 8px;
  padding-bottom: 12px;
}

#destacados .featured-grid > .featured-card:first-child .featured-img {
  height: 300px;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-img {
    height: 340px;
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  -webkit-line-clamp: 3;
  min-height: calc(1.15em * 3);
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-title {
    font-size: 26px;
  }
}
#destacados .featured-grid > .featured-card:first-child .featured-price-now {
  font-size: 28px;
  font-weight: 900;
}

#destacados .featured-grid > .featured-card:first-child .featured-price-old {
  font-size: 14px;
}

#destacados .featured-grid > .featured-card:first-child .featured-btn {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

#destacados .featured-grid > .featured-card:first-child .featured-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#destacados .featured-grid > .featured-card:first-child {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: #fdba74;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-media {
    background: radial-gradient(
      circle at center,
      #ffffff 0%,
      #f8fafc 60%,
      #f1f5f9 100%
    );
    border-bottom: none;
    border-right: 1px solid #eef2f7;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-img {
  height: 280px;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-img {
    height: 360px;
    max-width: 420px;
  }
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-body {
    padding: 28px 32px;
    gap: 14px;
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-title {
  font-size: 24px;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-title {
    font-size: 30px;
    line-height: 1.1;
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-price-now {
  font-size: 30px;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-price-now {
    font-size: 34px;
  }
}

#destacados .featured-grid > .featured-card:first-child {
  border-width: 2px;
  border-color: #fdba74;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child {
    border-radius: 24px;
  }
}

#destacados .featured-grid > .featured-card:first-child {
  border: 1px solid #e2e8f0;
  border-top: 4px solid #fdba74;
}

@media (min-width: 992px) {
  #destacados .featured-grid > .featured-card:first-child .featured-body {
    justify-content: center;
  }
}

#destacados .featured-grid > .featured-card:first-child .featured-title {
  margin-bottom: 6px;
}

#destacados .featured-grid > .featured-card:first-child .featured-btn {
  padding: 10px 16px;
  font-size: 14px;
}

#destacados .featured-hero-tagline {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

#destacados .featured-grid > .featured-card:first-child {
  border: 1px solid #e2e8f0;
  border-top: 3px solid #fdba74;
}



/* Mostrar el tagline SOLO en el primer destacado (hero) */
#destacados .featured-grid > .featured-card:not(:first-child) .featured-hero-tagline {
  display: none;
}

