/* === JaPiChat Landing — palette: #4158D0 #7B2FF7 #C850C0 #00C6FF #E91E8C #0D1B6E === */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c1: #4158D0;
  --c2: #7B2FF7;
  --c3: #C850C0;
  --c4: #00C6FF;
  --c5: #E91E8C;
  --ink: #0D1B6E;
  --txt: #1a1a2e;
  --muted: #6B7280;
  --bg: #ffffff;
  --bg-alt: #f8f7fc;
  --border: #e5e7eb;
  --grad: linear-gradient(135deg, #4158D0 0%, #7B2FF7 50%, #C850C0 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(123,47,247,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(123,47,247,.45); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--c2); }
.btn-outline:hover { background: var(--c2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(123,47,247,.08); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--txt);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--c2); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(200,80,192,.18), transparent 50%),
    radial-gradient(circle at 20% 100%, rgba(65,88,208,.15), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f8f7fc 100%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: rgba(123,47,247,.1);
  color: var(--c2);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08; font-weight: 800;
  color: var(--ink); margin-bottom: 18px; letter-spacing: -0.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 19px; color: var(--muted);
  margin-bottom: 22px; max-width: 540px;
}
.hero-bullets {
  list-style: none; margin-bottom: 30px;
}
.hero-bullets li {
  font-size: 15px; padding: 4px 0; color: var(--txt);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.hero-trust {
  margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* hero phone mock */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone {
  width: 320px; height: 540px;
  background: #1f2937; border-radius: 36px;
  padding: 12px; box-shadow: 0 30px 60px rgba(13,27,110,.18), 0 0 0 8px #111827;
  position: relative;
}
.phone-screen {
  background: #ECE5DD; border-radius: 24px;
  height: 100%; padding: 18px 14px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
.msg {
  max-width: 80%; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  animation: msgIn .4s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 4px; }
.typing {
  align-self: flex-start; background: #fff; padding: 10px 14px;
  border-radius: 12px; border-top-left-radius: 4px;
  display: inline-flex; gap: 4px;
}
.typing span {
  width: 6px; height: 6px; background: #9CA3AF; border-radius: 50%;
  animation: typing 1.2s infinite ease;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 70px; }
  .phone { transform: scale(.85); }
}

/* === Metrics === */
.metrics {
  background: var(--ink);
  color: #fff; padding: 40px 0;
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  text-align: center;
}
.metrics-grid div { display: flex; flex-direction: column; gap: 4px; }
.metrics-grid strong {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, #00C6FF, #C850C0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.metrics-grid span { font-size: 13px; color: rgba(255,255,255,.7); }
@media (max-width: 700px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-grid strong { font-size: 28px; }
}

/* === Sections === */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--c2); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
  color: var(--ink); margin-bottom: 14px; letter-spacing: -.02em;
}
.section-head p { font-size: 17px; color: var(--muted); }

/* === Features === */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(13,27,110,.08);
  border-color: transparent;
}
.ficon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .feature-grid { grid-template-columns: 1fr; } }

/* === Nosotros / MVC === */
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  align-items: start;
}
.nosotros-text h2 { font-size: 36px; color: var(--ink); margin-bottom: 18px; line-height: 1.1; }
.nosotros-text p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.mvc-stack { display: flex; flex-direction: column; gap: 18px; }
.mvc-card {
  background: #fff; border-radius: 16px; padding: 24px;
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
}
.mvc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.mvc-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.mvc-card p { font-size: 14px; color: var(--muted); line-height: 1.55; grid-column: 1 / -1; }
@media (min-width: 600px) {
  .mvc-card p { grid-column: 2 / -1; }
}
@media (max-width: 880px) { .nosotros-grid { grid-template-columns: 1fr; gap: 40px; } }

/* === Steps === */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.step {
  background: #fff; border-radius: 16px; padding: 28px 22px;
  border: 1px solid var(--border); text-align: center;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin: 0 auto 16px;
}
.step h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* === Demo === */
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.demo-grid h2 { font-size: 34px; color: var(--ink); margin-bottom: 14px; line-height: 1.1; }
.demo-grid p { color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.demo-chat {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(13,27,110,.08);
  display: flex; flex-direction: column;
  min-height: 380px;
}
.demo-msgs {
  flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; max-height: 360px;
}
.demo-form {
  display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border);
}
.demo-form input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s ease;
}
.demo-form input:focus { border-color: var(--c2); }
.demo-form button {
  background: var(--grad); color: #fff; border: none;
  padding: 0 20px; border-radius: 10px; font-size: 18px; cursor: pointer;
  font-weight: 700;
}
@media (max-width: 880px) { .demo-grid { grid-template-columns: 1fr; } }

/* === Plans === */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
.plan {
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 26px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13,27,110,.08); }
.plan-featured {
  border-color: var(--c2);
  box-shadow: 0 24px 50px rgba(123,47,247,.18);
  position: relative; transform: scale(1.02);
}
.plan-featured:hover { transform: scale(1.02) translateY(-4px); }
.ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 6px 16px rgba(123,47,247,.4);
}
.plan h3 { color: var(--ink); font-size: 24px; margin-bottom: 2px; font-weight: 800; }
.plan-headline {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.plan-tagline {
  font-size: 13px; color: var(--ink); font-style: italic;
  border-left: 3px solid var(--c2); padding-left: 10px;
  margin-bottom: 18px; line-height: 1.4;
}
.plan-tag { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.amt {
  font-size: 44px; font-weight: 800; color: var(--ink);
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.per { color: var(--muted); font-size: 14px; }
.plan-feats {
  list-style: none; margin-bottom: 26px; flex: 1;
}
.plan-feats li {
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.plan-feats li:before { content: "✓"; color: var(--c2); font-weight: 700; }
.plan-feats li:last-child { border-bottom: none; }
.plan-premium {
  border: 2px solid #FFD700;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #FFFAF0 100%);
}
.plan-premium .amt {
  background: linear-gradient(135deg, #DAA520, #FFD700, #B8860B);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ribbon-premium {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #B8860B 100%) !important;
  box-shadow: 0 6px 16px rgba(218, 165, 32, 0.4) !important;
  color: #4a3500 !important;
}

.addons-box {
  margin-top: 50px; padding: 30px;
  background: linear-gradient(135deg, rgba(65,88,208,.05), rgba(123,47,247,.05));
  border-radius: 18px;
  border: 1px dashed rgba(123,47,247,.25);
}
.addons-box h4 {
  text-align: center; font-size: 18px; color: var(--ink);
  margin-bottom: 18px; font-weight: 700;
}
.addons-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px;
  font-size: 14px;
}
.addons-grid span {
  padding: 10px 14px; background: #fff; border-radius: 10px;
  border: 1px solid var(--border); color: var(--txt);
}
@media (max-width: 800px) { .addons-grid { grid-template-columns: 1fr; } }

.addons-note {
  text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px;
}
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* === Garantía === */
.guarantee {
  padding: 70px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.guarantee-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 50px;
  align-items: center;
}
.guarantee-badge { display: flex; justify-content: center; }
.badge-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 20px 50px rgba(123,47,247,.35);
  position: relative;
  animation: pulse 3s ease-in-out infinite;
}
.badge-circle::before {
  content: ""; position: absolute; inset: -10px;
  border: 3px dashed rgba(123,47,247,.35); border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes spin {
  from { transform: rotate(0); } to { transform: rotate(360deg); }
}
.badge-num { font-size: 72px; font-weight: 800; line-height: 1; }
.badge-txt { font-size: 14px; font-weight: 700; letter-spacing: .15em; margin-top: 4px; }
.guarantee-text h2 {
  font-size: clamp(26px, 3.2vw, 36px); color: var(--ink);
  margin-bottom: 14px; line-height: 1.15; letter-spacing: -.02em;
}
.guarantee-text p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.guarantee-bullets {
  list-style: none;
}
.guarantee-bullets li {
  font-size: 15px; padding: 5px 0; color: var(--txt);
}
@media (max-width: 760px) {
  .guarantee-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .guarantee-text { text-align: center; }
  .guarantee-bullets { display: inline-block; text-align: left; }
  .badge-circle { width: 160px; height: 160px; }
  .badge-num { font-size: 56px; }
}

/* === Testimonios === */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testi {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 22px;
}
.testi p { font-size: 15px; color: var(--txt); margin-bottom: 18px; line-height: 1.55; font-style: italic; }
.testi-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.testi-foot strong { color: var(--ink); font-size: 14px; }
.testi-foot span { color: var(--muted); font-size: 13px; }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq-wrap { max-width: 820px; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff; margin-bottom: 12px; overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: 0 8px 22px rgba(13,27,110,.06); }
.faq summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; color: var(--ink);
  list-style: none; position: relative;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--c2); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 22px 22px; color: var(--muted); font-size: 14px; line-height: 1.6;
}

/* === CTA Final === */
.cta-final {
  padding: 80px 0;
  background: var(--grad);
  color: #fff; text-align: center;
}
.cta-box h2 {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.02em;
}
.cta-box p { font-size: 17px; opacity: .92; margin-bottom: 26px; }
.cta-final .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-final .btn-primary:hover { background: #f3f4f6; }
.cta-final .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-final .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* === Footer === */
.site-footer {
  background: #0a0a23;
  color: #cbd5e1; padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid h4 {
  color: #fff; font-size: 14px; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-grid a {
  display: block; padding: 5px 0; font-size: 14px;
  color: #9ca3af; transition: color .15s ease;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #6b7280;
}
.footer-bottom .cis a { color: #cbd5e1; transition: color .15s ease; }
.footer-bottom .cis a:hover { color: #fff; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== CASOS DE ÉXITO ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 8px;
  align-items: stretch;
}
@media (max-width: 1000px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px 18px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(13,27,110,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* estado inicial para la animación de entrada */
  opacity: 0;
  transform: translateY(26px);
  transition: transform .55s cubic-bezier(.22,1,.36,1),
              opacity .55s ease,
              box-shadow .25s ease,
              border-color .25s ease;
}
/* barra de acento superior — uniforme en todas las tarjetas */
.case-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(.55);
  transform-origin: center;
  transition: transform .3s ease;
}
/* revelado al entrar en viewport (escalonado por posición) */
.cases-grid.in-view .case-card { opacity: 1; transform: none; }
.cases-grid.in-view .case-card:nth-child(1) { transition-delay: .00s; }
.cases-grid.in-view .case-card:nth-child(2) { transition-delay: .08s; }
.cases-grid.in-view .case-card:nth-child(3) { transition-delay: .16s; }
.cases-grid.in-view .case-card:nth-child(4) { transition-delay: .24s; }
.cases-grid.in-view .case-card:nth-child(5) { transition-delay: .32s; }
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(123,47,247,.18);
  border-color: rgba(123,47,247,.35);
}
.case-card:hover::before { transform: scaleX(1); }
.case-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(13,27,110,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 9px;
  overflow: hidden;
  transition: transform .25s ease;
}
.case-card:hover .case-logo { transform: scale(1.06) rotate(-1.5deg); }
/* todos los logos se normalizan al mismo recuadro, sin importar su proporción */
.case-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Si el logo aún no existe, mostramos las iniciales del negocio */
.case-logo-fallback::before {
  content: attr(data-name);
  font-weight: 800;
  font-size: 15px;
  color: var(--c2);
  padding: 0 8px;
  text-align: center;
  line-height: 1.2;
}
.case-name {
  font-weight: 800;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.25;
  margin-bottom: 8px;
  min-height: 34px; /* 2 líneas: alinea la métrica entre tarjetas */
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-metric { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.case-metric strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; /* evita "salto" de ancho al contar */
}
.case-metric span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.case-quote { font-size: 12px; color: var(--muted); line-height: 1.45; margin: auto 0 0; } /* anclada abajo */
@media (prefers-reduced-motion: reduce) {
  .case-card { opacity: 1; transform: none; transition: none; }
}
