/* Reset forced capitalization on Spanish-language titles.
   Spanish does not capitalize prepositions/articles, so the upstream
   theme rules (text-transform: capitalize) render strings like
   "Soluciones en la Nube" incorrectly as "Soluciones En La Nube". */
.section-title-3 h2,
.home3-solution-section .solution-card .solution-content h4,
.home3-solution-section .solution-card .solution-content h4 a {
  text-transform: none;
}

/* ── Casos de éxito section ─────────────────────────────────────────── */
.bm-casos {
  --bm-bg:          #121212;
  --bm-bg-raised:   #1d1d1d;
  --bm-bg-subtle:   #1a1a1a;
  --bm-border:      #2a2a32;
  --bm-text:        #f0f0f4;
  --bm-text-muted:  #8888a0;
  --bm-accent:      #06D889;
  --bm-accent-dim:  rgba(6,216,137,.12);
  --bm-radius:      10px;
  --bm-radius-sm:   6px;
  --bm-transition:  150ms ease;
  --bm-font-mono:   'JetBrains Mono', 'Courier New', monospace;

  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--bm-bg);
  color: var(--bm-text);
}

.bm-casos .bm-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.bm-casos .bm-section-head {
  max-width: 56ch;
  margin-bottom: 3rem;
}

.bm-casos .bm-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bm-accent);
  margin-bottom: .75rem;
}

.bm-casos .bm-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: .75rem;
  color: var(--bm-text);
  text-transform: none;
}

.bm-casos .bm-section-lede {
  font-size: 1rem;
  color: var(--bm-text-muted);
  max-width: 52ch;
  margin: 0;
}

/* Case card */
.bm-case-card {
  background: var(--bm-bg-subtle);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  border-top: 3px solid var(--bm-accent);
}

/* Card header */
.bm-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--bm-border);
}

.bm-case-client-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.bm-case-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bm-bg-raised);
  border: 1px solid var(--bm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--bm-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.bm-case-client-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--bm-text);
  margin: 0;
}

.bm-case-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}

.bm-case-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 99px;
  border: 1px solid var(--bm-border);
  color: var(--bm-text-muted);
  white-space: nowrap;
}

.bm-case-meta-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bm-case-year {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  font-family: var(--bm-font-mono);
}

.bm-stack-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.bm-stack-tag {
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--bm-font-mono);
  padding: .2rem .6rem;
  border-radius: 99px;
  background: var(--bm-accent-dim);
  color: var(--bm-accent);
  white-space: nowrap;
}

/* Card body */
.bm-case-body {
  padding: 2rem;
  border-bottom: 1px solid var(--bm-border);
}

.bm-case-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--bm-text);
  margin-bottom: 1.75rem;
  max-width: 36ch;
  text-transform: none;
}

.bm-case-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-bottom: 0;
}

.bm-case-col-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bm-accent);
  margin-bottom: .6rem;
}

.bm-case-col-text {
  font-size: .9375rem;
  color: var(--bm-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 7 apps section */
.bm-apps-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--bm-border);
}

.bm-apps-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bm-text-muted);
  margin-bottom: 1rem;
}

.bm-apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-app-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  background: var(--bm-bg-raised);
  transition: border-color var(--bm-transition), background var(--bm-transition);
}

.bm-app-chip:hover {
  border-color: var(--bm-accent);
  background: var(--bm-accent-dim);
}

.bm-app-chip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.bm-app-chip-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--bm-text);
  letter-spacing: -.01em;
}

/* Results row */
.bm-case-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-result-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--bm-border);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.bm-result-item:last-child { border-right: none; }

.bm-result-number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--bm-text);
}

.bm-result-number .bm-result-accent { color: var(--bm-accent); }

.bm-result-label {
  font-size: .8125rem;
  color: var(--bm-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .bm-case-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .bm-case-results { grid-template-columns: 1fr 1fr; }
  .bm-result-item:nth-child(2) { border-right: none; }
  .bm-result-item:nth-child(3) { border-top: 1px solid var(--bm-border); }
  .bm-result-item:nth-child(4) { border-top: 1px solid var(--bm-border); border-right: none; }
}

@media (max-width: 600px) {
  .bm-case-header {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .bm-case-body { padding: 1.5rem 1.25rem; }
  .bm-apps-section { padding: 1.25rem; }
  .bm-case-results { grid-template-columns: 1fr 1fr; }
  .bm-result-item { padding: 1.25rem; }
}
