/* Battlecards: "¿Por qué elegirnos a nosotros?" Comparativa frente a categorías de proveedores */

.bc { max-width: 1100px; margin: 0 auto; }

/* ---------- Selector de rival ---------- */
.bc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.bc-tab { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid #dfe4eb; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: #1b2430; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.bc-tab:hover { transform: translateY(-2px); border-color: #1b2430; }
.bc-tab:focus-visible { outline: 2px solid #0b6f6c; outline-offset: 2px; }
.bc-tab small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; transition: color 0.25s ease; }
.bc-tab strong { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }
.bc-tab[aria-selected="true"] { background: #1b2430; border-color: #1b2430; color: #fff; box-shadow: 0 18px 30px -20px rgba(27, 36, 48, 0.8); transform: translateY(-3px); }
.bc-tab[aria-selected="true"] small { color: #51D9D6; }

/* ---------- Tarjeta de comparación ---------- */
.bc-card { position: relative; padding: 28px; border: 1px solid #dfe4eb; border-radius: 24px; background: #fff; box-shadow: 0 26px 54px -38px rgba(27, 36, 48, 0.6); }
.bc-panel[hidden] { display: none; }
.bc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 28px; }
.bc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 1.05rem; font-weight: 700; }
.bc-head--them { background: #eef1f5; color: #4b5563; }
.bc-head--us { background: linear-gradient(120deg, #51D9D6, #2fb5b2); color: #14201f; box-shadow: 0 14px 26px -16px #2fb5b2; }
.bc-head img { height: 22px; width: auto; }
.bc-head small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.bc-vs { position: absolute; left: 50%; top: 6px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border: 3px solid #fff; border-radius: 50%; background: #1b2430; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; box-shadow: 0 8px 18px -8px rgba(27, 36, 48, 0.7); }
.bc-crit { grid-column: 1 / -1; margin: 12px 0 -2px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: #0b6f6c; }
.bc-cell { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 0.97rem; line-height: 1.45; }
.bc-cell--them { background: #f6f7f9; color: #4b5563; }
.bc-cell--us { background: #ecfafa; border: 1px solid #bfeceb; color: #1b2430; font-weight: 600; }
.bc-cell--us strong { font-weight: 800; }
.bc-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; }
.bc-mark svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bc-cell--them .bc-mark { background: #d9777a; }
.bc-cell--us .bc-mark { background: #0b6f6c; }

.bc-verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 26px; padding: 22px 26px; border-radius: 16px; background: #1b2430; color: #fff; }
.bc-verdict p { margin: 0; max-width: 40em; font-size: 1.08rem; line-height: 1.45; color: #e5e9ef; }
.bc-verdict p b { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #51D9D6; }
.bc-verdict p strong { color: #fff; }
.bc-cta { flex: none; padding: 14px 24px; border: 0; border-radius: 12px; background: #51D9D6; font: inherit; font-size: 0.98rem; font-weight: 700; color: #14201f; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.bc-cta:hover, .bc-cta:focus-visible { background: #7be6e3; transform: translateY(-2px); outline: none; }
.bc-note { margin: 16px 0 0; font-size: 0.8rem; text-align: center; color: #6b7280; }

/* ---------- Animación al cambiar de rival ---------- */
.bc-js .bc-panel.is-active .bc-cell--them { animation: bc-left 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--r, 0) * 0.09s); }
.bc-js .bc-panel.is-active .bc-cell--us { animation: bc-right 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.12s + var(--r, 0) * 0.09s); }
.bc-js .bc-panel.is-active .bc-cell--us .bc-mark { animation: bc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.4s + var(--r, 0) * 0.09s); }
.bc-js .bc-panel.is-active .bc-verdict { animation: bc-up 0.5s ease both; animation-delay: 0.5s; }
@keyframes bc-left { from { opacity: 0; transform: translateX(-22px); } }
@keyframes bc-right { from { opacity: 0; transform: translateX(22px); } }
@keyframes bc-pop { from { transform: scale(0); } }
@keyframes bc-up { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .bc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .bc-card { padding: 18px; border-radius: 20px; }
  .bc-grid { grid-template-columns: 1fr; gap: 8px; }
  .bc-vs { display: none; }
  .bc-head--us { margin-top: 4px; }
  .bc-crit { text-align: left; margin-top: 14px; }
  .bc-verdict { padding: 18px; }
  .bc-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-js .bc-panel.is-active .bc-cell--them, .bc-js .bc-panel.is-active .bc-cell--us, .bc-js .bc-panel.is-active .bc-cell--us .bc-mark, .bc-js .bc-panel.is-active .bc-verdict { animation: none; }
  .bc-tab, .bc-cta { transition: none; }
}
