/* service-cases.css — "Casos reales" en páginas de servicio.
   Usa --color-primary (definido por cada página) como acento del servicio. */

.sc-section { padding: 6rem 1.5rem; }
.sc-inner { max-width: 80rem; margin-inline: auto; }

.sc-head { margin-bottom: 3rem; }
.sc-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgb(var(--color-primary));
}
.sc-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: rgb(var(--color-primary));
  box-shadow: 0 0 8px rgb(var(--color-primary));
}
.sc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 0.95; margin-top: 0.75rem;
}
.sc-title em { font-style: normal; color: rgb(var(--color-primary)); }
.sc-sub {
  margin-top: 0.9rem; max-width: 46ch; font-weight: 300; line-height: 1.5;
  color: #94a3b8; font-size: 0.95rem;
}
html:not(.dark) .sc-sub { color: #475569; }
.sc-count { font-variant-numeric: tabular-nums; color: rgb(var(--color-primary)); font-weight: 700; }

.sc-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sc-grid { grid-template-columns: repeat(3, 1fr); } }

.sc-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  padding: 1rem; border-radius: 0.9rem;
  background: rgba(18, 26, 38, 0.55);
  border: 1px solid rgb(var(--color-primary) / 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
  /* Visible por defecto (sin JS / headless). El reveal es realce, no gate. */
}
.sc-card.is-in { animation: scIn .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes scIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
html:not(.dark) .sc-card { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.08); }
.sc-card:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--color-primary) / 0.55);
  box-shadow: 0 18px 44px rgb(var(--color-primary) / 0.18);
}

.sc-media {
  position: relative; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 1rem;
  border-radius: 0.6rem; overflow: hidden; background: #05070c;
  border: 1px solid rgba(255,255,255,0.06);
}
.sc-media-el { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1); }
.sc-card:hover .sc-media-el { transform: scale(1.06); }
.sc-media-empty { display: flex; align-items: center; justify-content: center; }
.sc-media-empty .material-symbols-outlined { font-size: 2.5rem; color: #475569; }

.sc-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: 1.1rem; line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-foot {
  margin-top: 0.9rem; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}
html:not(.dark) .sc-foot { border-top-color: rgba(0,0,0,0.07); }
.sc-loc { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sc-loc-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #64748b; }
.sc-loc-val { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #cbd5e1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
html:not(.dark) .sc-loc-val { color: #334155; }
.sc-flag { height: 15px; width: auto; opacity: 0.7; flex-shrink: 0; }

.sc-tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sc-tag {
  font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.5rem; border-radius: 0.25rem; color: #fff;
  background: var(--tag, #06f994);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tag, #06f994) 40%, transparent);
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .sc-card { transition: border-color .3s ease, box-shadow .3s ease; }
  .sc-card.is-in { animation: none; }
  .sc-media-el { transition: none; }
}
