/* Chrome de la página pública: hero, vitrina, destacados */
body.sf-body {
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--sf-primary) 22%, transparent), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--sf-primary) 12%, transparent), transparent 55%),
    var(--sf-paper);
}


.sf-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.sf-show-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 160px; padding: 1.1rem; border-radius: 1.4rem; overflow: hidden;
  text-decoration: none; color: #fff;
  box-shadow: 0 16px 40px rgb(15 23 42 / .12);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sf-show-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgb(15 23 42 / .18); }
.sf-show-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .62));
}
.sf-show-card > * { position: relative; z-index: 1; }
.sf-show-emoji { font-size: 2.4rem; margin-bottom: .35rem; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .25)); }
.sf-show-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.sf-show-card p { margin: .2rem 0 0; opacity: .9; font-size: .9rem; }
.sf-show-a { background: linear-gradient(145deg, #ea580c, #f59e0b); }
.sf-show-b { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.sf-show-c { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.sf-show-d { background: linear-gradient(145deg, #be123c, #fb7185); }
.sf-show-e { background: linear-gradient(145deg, #1d4ed8, #38bdf8); }

.sf-featured {
  margin: 0 0 2rem;
}
.sf-featured-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem;
}
.sf-featured-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px);
  gap: 1rem; overflow-x: auto; padding: .25rem .15rem 1rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.sf-featured-rail .sf-card { scroll-snap-align: start; min-height: 100%; }

.sf-howto {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin: 0 0 2rem;
}
@media (max-width: 720px) {
  .sf-howto { grid-template-columns: 1fr; }
}
.sf-howto article {
  background: var(--sf-card); border: 1px solid var(--sf-border); border-radius: 1.25rem;
  padding: 1rem 1.05rem; box-shadow: 0 10px 30px rgb(0 0 0 / .04);
}
.sf-howto .n {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sf-primary) 16%, transparent); color: var(--sf-primary);
  font-weight: 800; margin-bottom: .55rem;
}
.sf-howto h3 { margin: 0 0 .25rem; font-size: 1rem; }
.sf-howto p { margin: 0; color: var(--sf-muted); font-size: .9rem; }

.sf-catalog {
  background: color-mix(in srgb, var(--sf-card) 72%, transparent);
  border: 1px solid var(--sf-border);
  border-radius: 1.75rem;
  padding: 1.15rem 1.15rem 1.4rem;
  box-shadow: 0 20px 50px rgb(15 23 42 / .06);
}
.sf-catalog-head .sf-section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
}

/* Fallback de imagen más rico */
.sf-img-fallback {
  display: grid; place-items: center; gap: .35rem; text-align: center;
  width: 100%; height: 100%; padding: 1rem;
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / .35), transparent 45%),
    linear-gradient(145deg, var(--sf-fallback-a, #fdba74), var(--sf-fallback-b, #ea580c));
  color: #fff !important;
}
.sf-img-fallback .sf-fb-emoji { font-size: 2.6rem; line-height: 1; }
.sf-img-fallback .sf-fb-letter {
  font-size: 1.8rem; font-weight: 900; letter-spacing: -.04em;
  text-shadow: 0 6px 18px rgb(0 0 0 / .2);
}

.sf-pill {
  text-transform: none !important;
  font-weight: 700 !important;
}
.sf-pill em {
  background: #fff !important;
  color: var(--sf-primary) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / .06);
}

.promo-rule {
  border-radius: 1.35rem !important;
  box-shadow: 0 16px 40px rgb(6 95 70 / .2);
}

.sf-detail-link {
  margin-top: .35rem; width: 100%; border: 0; background: transparent;
  color: var(--sf-primary); font: inherit; font-weight: 700; font-size: .88rem;
  cursor: pointer; padding: .25rem 0;
}
.sf-detail-link:hover { text-decoration: underline; }
