/* app/static/css/overround.css
 * Estilos de la tabla multi-casa de overround y la calculadora manual.
 * Namespace: .overround-shell — convive con .cov-shell y .dashboard-* sin chocar.
 */

.overround-shell {
  --bg-canvas: #0a0e14;
  --bg-card: #131820;
  --bg-card-hover: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #e8eaed;
  --text-muted: #9ca3b0;
  --text-faint: #5e6873;
  --accent: #00d9ff;
  --accent-soft: rgba(0, 217, 255, 0.12);
  --gain: #00d97e;
  --gain-soft: rgba(0, 217, 126, 0.12);
  --loss: #e63757;
  --loss-soft: rgba(230, 55, 87, 0.12);
  --warn: #f6c343;
  --warn-soft: rgba(246, 195, 67, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Tabla multi-casa ────────────────────────────────────────────────── */

.overround-shell .ov-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  margin-bottom: 12px;
}

.overround-shell .ov-table-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.overround-shell .ov-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.overround-shell .ov-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.overround-shell .ov-table thead th:first-child {
  text-align: left;
}

.overround-shell .ov-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.overround-shell .ov-table tbody tr:hover {
  background: var(--bg-card-hover);
  cursor: help;
}

.overround-shell .ov-table td {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  vertical-align: middle;
}
.overround-shell .ov-table td.ov-cell-casa {
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
}

/* Barra horizontal proporcional de overround */
.overround-shell .ov-cell-overround {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.overround-shell .ov-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 4px;
}
.overround-shell .ov-bar--good { background: var(--gain); }
.overround-shell .ov-bar--ok   { background: var(--accent); }
.overround-shell .ov-bar--warn { background: var(--warn); }
.overround-shell .ov-bar--bad  { background: var(--loss); }

/* Tag MEJOR */
.overround-shell .ov-tag-best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.overround-shell .ov-tag-best::before {
  content: "★";
}

/* Outlier warning sutil */
.overround-shell .ov-flag-outlier {
  color: var(--warn);
  font-size: 11px;
  margin-left: 4px;
}

/* Footer promedio */
.overround-shell .ov-table-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* CTA secundaria a calculadora manual */
.overround-shell .ov-cta-link {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color var(--transition), background var(--transition);
}
.overround-shell .ov-cta-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Staggered reveal de filas (limitado a 10) */
.overround-shell .ov-table tbody tr {
  opacity: 0;
  transform: translateY(4px);
  animation: ov-row-in 320ms var(--transition) forwards;
}
.overround-shell .ov-table tbody tr:nth-child(1)  { animation-delay: 0ms; }
.overround-shell .ov-table tbody tr:nth-child(2)  { animation-delay: 40ms; }
.overround-shell .ov-table tbody tr:nth-child(3)  { animation-delay: 80ms; }
.overround-shell .ov-table tbody tr:nth-child(4)  { animation-delay: 120ms; }
.overround-shell .ov-table tbody tr:nth-child(5)  { animation-delay: 160ms; }
.overround-shell .ov-table tbody tr:nth-child(6)  { animation-delay: 200ms; }
.overround-shell .ov-table tbody tr:nth-child(7)  { animation-delay: 240ms; }
.overround-shell .ov-table tbody tr:nth-child(8)  { animation-delay: 280ms; }
.overround-shell .ov-table tbody tr:nth-child(9)  { animation-delay: 320ms; }
.overround-shell .ov-table tbody tr:nth-child(10) { animation-delay: 360ms; }

@keyframes ov-row-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Empty state */
.overround-shell .ov-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.overround-shell .ov-empty-icon {
  font-size: 32px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Tooltip de fórmula al hover de fila */
.overround-shell .ov-tooltip {
  position: absolute;
  z-index: 50;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease-out;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.overround-shell .ov-tooltip.is-visible { opacity: 1; }

/* Flash al click en tag MEJOR — destaca toda la fila por 600ms */
.overround-shell .ov-row-flash {
  animation: ov-row-flash 600ms ease-out;
}
@keyframes ov-row-flash {
  0%   { background: var(--bg-card); }
  20%  { background: var(--accent-soft); }
  100% { background: var(--bg-card); }
}

/* Skeleton loader para empty/loading state */
.overround-shell .ov-skeleton-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.overround-shell .ov-skeleton-cell {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--bg-card-hover) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    var(--bg-card-hover) 100%
  );
  background-size: 200% 100%;
  animation: ov-shimmer 1200ms linear infinite;
}
@keyframes ov-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .overround-shell .ov-table tbody tr {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .overround-shell .ov-bar { transition: none; }
  .overround-shell .ov-row-flash { animation: none; }
  .overround-shell .ov-skeleton-cell { animation: none; }
}

/* Responsive: mobile (< 480px) stack vertical, cards por casa */
@media (max-width: 480px) {
  .overround-shell .ov-table thead { display: none; }
  .overround-shell .ov-table,
  .overround-shell .ov-table tbody,
  .overround-shell .ov-table tr,
  .overround-shell .ov-table td {
    display: block;
    width: 100%;
    text-align: left;
  }
  .overround-shell .ov-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 8px;
    min-height: 44px;  /* WCAG touch target */
  }
  .overround-shell .ov-table td {
    padding: 6px 0;
    border: none;
    min-height: 24px;
  }
  .overround-shell .ov-table td::before {
    content: attr(data-label) " · ";
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    margin-right: 4px;
  }
  .overround-shell .ov-cell-casa {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .overround-shell .ov-cell-casa::before { content: ""; }
}

/* ── Calculadora manual ──────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════════════
   MATCH HUB OVERROUND — banner + columna en tabla del gameModal
   Aesthetic: "Trading desk editorial dark" — emerald sober sobre slate
   con números monumentales en JetBrains Mono tabular-nums. Integra con
   el namespace .mh-* existente del modal sin chocar.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --mh-ov-best: #34d399;
  --mh-ov-good: #2dd4bf;
  --mh-ov-warn: #fbbf24;
  --mh-ov-bad:  #f87171;
}

/* ─── Banner hero ──────────────────────────────────────────────────── */

.mh-ov-banner {
  position: relative;
  display: flex;
  background:
    linear-gradient(135deg,
      rgba(52, 211, 153, 0.06) 0%,
      rgba(52, 211, 153, 0.01) 40%,
      transparent 100%),
    rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
  padding: 18px 20px 16px;
  margin-bottom: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  animation: mh-ov-banner-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms forwards;
}

@keyframes mh-ov-banner-in {
  to { opacity: 1; transform: translateY(0); }
}

.mh-ov-banner-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--mh-ov-best) 0%,
    rgba(52, 211, 153, 0.0) 100%);
}

.mh-ov-banner-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 4px;
}

.mh-ov-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.mh-ov-banner-dot {
  width: 6px;
  height: 6px;
  background: var(--mh-ov-best);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: mh-ov-pulse 2.4s ease-in-out infinite;
}

@keyframes mh-ov-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.06); }
}

.mh-ov-banner-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mh-ov-banner-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 200px;
}

.mh-ov-banner-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.mh-ov-banner-body {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.mh-ov-banner-casa {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.mh-ov-banner-val {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-weight: 700;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-left: auto;
  animation: mh-ov-val-fade 700ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes mh-ov-val-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mh-ov-banner-val--best { color: var(--mh-ov-best); }
.mh-ov-banner-val--good { color: var(--mh-ov-good); }
.mh-ov-banner-val--warn { color: var(--mh-ov-warn); }
.mh-ov-banner-val--bad  { color: var(--mh-ov-bad); }

.mh-ov-banner-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
}

.mh-ov-banner-meta {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
}

.mh-ov-banner-meta-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mh-ov-banner-meta-item dt {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.mh-ov-banner-meta-item dd {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.mh-ov-banner-caption {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.85);
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* ─── Grid de mercados analizados (después del banner) ────────────── */

.mh-ov-grid {
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: mh-ov-grid-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms forwards;
}

@keyframes mh-ov-grid-in {
  to { opacity: 1; transform: translateY(0); }
}

.mh-ov-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 0 2px 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.mh-ov-grid-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.92);
}

.mh-ov-grid-help {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(148, 163, 184, 0.7);
}

.mh-ov-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 10px;
}

.mh-ov-tile {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
    rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 12px 10px;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
  cursor: help;
  opacity: 0;
  transform: translateY(6px);
  animation: mh-ov-tile-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(260ms + var(--tile-index, 0) * 40ms);
}

@keyframes mh-ov-tile-in {
  to { opacity: 1; transform: translateY(0); }
}

.mh-ov-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: currentColor;
  opacity: 0.45;
}

.mh-ov-tile--best { color: var(--mh-ov-best); }
.mh-ov-tile--good { color: var(--mh-ov-good); }
.mh-ov-tile--warn { color: var(--mh-ov-warn); }
.mh-ov-tile--bad  { color: var(--mh-ov-bad); }

.mh-ov-tile:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  box-shadow:
    0 0 0 1px currentColor,
    0 6px 16px -8px currentColor;
}

.mh-ov-tile-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.mh-ov-tile-icon {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
}

.mh-ov-tile-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-ov-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mh-ov-tile-casa {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-ov-tile-star {
  color: currentColor;
  font-size: 11px;
  line-height: 1;
}

.mh-ov-tile-val {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mh-ov-tile-val--best { color: var(--mh-ov-best); }
.mh-ov-tile-val--good { color: var(--mh-ov-good); }
.mh-ov-tile-val--warn { color: var(--mh-ov-warn); }
.mh-ov-tile-val--bad  { color: var(--mh-ov-bad); }

.mh-ov-tile-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5px;
  overflow: hidden;
  overflow: hidden;
  margin-top: 2px;
}

.mh-ov-tile-bar-fill {
  height: 100%;
  border-radius: 1.5px;
  transform-origin: left center;
  animation: mh-ov-bar-grow 700ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mh-ov-tile-bar-fill--best { background: var(--mh-ov-best); }
.mh-ov-tile-bar-fill--good { background: var(--mh-ov-good); }
.mh-ov-tile-bar-fill--warn { background: var(--mh-ov-warn); }
.mh-ov-tile-bar-fill--bad  { background: var(--mh-ov-bad); }

.mh-ov-tile-foot {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.mh-ov-tile-foot-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.65);
}

.mh-ov-tile-foot-val {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}

.mh-ov-tile-foot-sep {
  color: rgba(148, 163, 184, 0.35);
  margin: 0 2px;
}

/* ─── Tooltip rico del tile ─────────────────────────────────────────── */

.mh-ov-tile {
  cursor: pointer;
}
.mh-ov-tile:focus-visible {
  outline: none;
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor;
}

.mh-ov-tip {
  position: fixed;
  z-index: 9999;
  left: var(--tip-x, 0);
  top: var(--tip-y, 0);
  transform: translate(-50%, -4px);
  width: 440px;
  max-width: calc(100vw - 32px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 12px 14px 11px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 18px 38px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
  backdrop-filter: blur(8px);
}

/* Portal pattern: el tip vive en document.body. JS aplica .mh-ov-tip--visible
   en mouseenter/focusin del tile (con cancelación al hover del propio tip). */
.mh-ov-tip.mh-ov-tip--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Borde superior color tier */
.mh-ov-tip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
  border-radius: 2px;
}

.mh-ov-tip--best { color: var(--mh-ov-best); }
.mh-ov-tip--good { color: var(--mh-ov-good); }
.mh-ov-tip--warn { color: var(--mh-ov-warn); }
.mh-ov-tip--bad  { color: var(--mh-ov-bad); }

/* Flecha apuntando al tile */
.mh-ov-tip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.mh-ov-tip-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.mh-ov-tip-head-icon {
  color: currentColor;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

.mh-ov-tip-head-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}
.mh-ov-tip-head-text strong {
  color: #f1f5f9;
  font-weight: 700;
}

/* Bullets de valor */
.mh-ov-tip-bullets {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mh-ov-tip-bullet {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.92);
}
.mh-ov-tip-bullet strong {
  color: #f1f5f9;
  font-weight: 600;
}

.mh-ov-tip-bullet-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
}

.mh-ov-tip-icon--good {
  background: rgba(52, 211, 153, 0.16);
  color: var(--mh-ov-best);
}
.mh-ov-tip-icon--vs {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
}
.mh-ov-tip-icon--money {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}
.mh-ov-tip-icon--info {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.mh-ov-tip-emph {
  color: currentColor !important;
  font-weight: 700 !important;
}

/* Secciones con sub-headers */
.mh-ov-tip-section {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mh-ov-tip-section-head {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 5px;
}

/* Layout en 2 columnas: Cuotas que paga | Otras casas */
.mh-ov-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mh-ov-tip-col {
  min-width: 0;
}

/* Cuotas que paga la mejor casa */
.mh-ov-tip-cuotas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.mh-ov-tip-cuota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 4px;
}

.mh-ov-tip-cuota-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-ov-tip-cuota-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: currentColor;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* Otras casas (ranking compacto) */
.mh-ov-tip-others {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.mh-ov-tip-other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
}
.mh-ov-tip-other:hover { background: rgba(255, 255, 255, 0.03); }

.mh-ov-tip-other-name {
  font-family: 'Inter', sans-serif;
  color: rgba(203, 213, 225, 0.88);
}

.mh-ov-tip-other-val {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: -0.01em;
}

/* Flip up — el tip se renderiza arriba del tile cuando no hay espacio abajo.
   JS decide la dirección, calcula left/top vs viewport, y toggle de --flip. */
.mh-ov-tip.mh-ov-tip--flip.mh-ov-tip--visible {
  transform: translate(-50%, 0);
}
.mh-ov-tip--flip::after {
  top: auto;
  bottom: -6px;
  border-top: none;
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 540px) {
  .mh-ov-tip { width: 320px; padding: 11px 12px 10px; }
  .mh-ov-tip-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-ov-tip { transition: opacity 100ms ease; }
}

/* ─── Columna OVERROUND en la tabla mh-odds-table ─────────────────── */

.mh-odds-table th.mh-ov-th {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(52, 211, 153, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}

.mh-odds-table td.mh-ov-cell {
  vertical-align: middle;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  min-width: 96px;
}

.mh-ov-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  cursor: help;
}

.mh-ov-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}

.mh-ov-wrap--best .mh-ov-num { color: var(--mh-ov-best); }
.mh-ov-wrap--good .mh-ov-num { color: var(--mh-ov-good); }
.mh-ov-wrap--warn .mh-ov-num { color: var(--mh-ov-warn); }
.mh-ov-wrap--bad  .mh-ov-num { color: var(--mh-ov-bad); }

.mh-ov-bar-track {
  width: 64px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1.5px;
  overflow: hidden;
}

.mh-ov-bar-fill {
  height: 100%;
  border-radius: 1.5px;
  transform-origin: left center;
  animation: mh-ov-bar-grow 700ms 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mh-ov-bar-fill--best { background: var(--mh-ov-best); box-shadow: 0 0 8px -2px var(--mh-ov-best); }
.mh-ov-bar-fill--good { background: var(--mh-ov-good); }
.mh-ov-bar-fill--warn { background: var(--mh-ov-warn); }
.mh-ov-bar-fill--bad  { background: var(--mh-ov-bad); }

@keyframes mh-ov-bar-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.mh-ov-empty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  font-style: italic;
}

/* ─── Tag ★ MEJOR en la celda nombre ──────────────────────────────── */

.mh-odds-table td.mh-ov-name-cell {
  white-space: nowrap;
  padding-right: 8px;
}

.mh-ov-best-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--mh-ov-best);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ─── Fila MEJOR destacada ─────────────────────────────────────────── */

.mh-odds-table tbody tr.mh-row-best {
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0.06) 0%,
    rgba(52, 211, 153, 0.0) 50%);
  position: relative;
}

.mh-odds-table tbody tr.mh-row-best > td:first-child {
  box-shadow: inset 3px 0 0 0 var(--mh-ov-best);
  color: #f1f5f9;
}

/* ─── Mobile ────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
  .mh-ov-banner { padding: 14px 14px 12px; }
  .mh-ov-banner-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mh-ov-banner-divider { display: none; }
  .mh-ov-banner-val { font-size: 30px; margin-left: 0; }
  .mh-ov-banner-meta { gap: 16px; }
}

/* ─── Reduced motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .mh-ov-banner,
  .mh-ov-banner-val,
  .mh-ov-banner-dot,
  .mh-ov-bar-fill {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   FINANCIAL EDITORIAL CARDS — variant .overround-shell--editorial
   Aesthetic: Linear precision + WSJ Magazine typography. Cards de mercado
   con hero number monumental (JetBrains Mono tabular-nums 40px), ranking
   compacto, bar grow animation. Sin emoji ni gradientes. Integrado en
   tema light Bootstrap de /match/<fid>.
   ═══════════════════════════════════════════════════════════════════════ */

.overround-shell.overround-shell--editorial {
  --ed-bg: #ffffff;
  --ed-surface: #fafbfc;
  --ed-surface-2: #f1f5f9;
  --ed-border: #e2e8f0;
  --ed-border-strong: #cbd5e1;
  --ed-text: #0f172a;
  --ed-text-muted: #475569;
  --ed-text-faint: #94a3b8;

  /* Color tiers por overround */
  --ed-best: #047857;   /* emerald-700 — < 3% */
  --ed-good: #0d9488;   /* teal-600  — 3-5% */
  --ed-warn: #b45309;   /* amber-700 — 5-7% */
  --ed-bad:  #b91c1c;   /* red-700   — > 7% */

  /* Shadows — sutiles, capas múltiples */
  --ed-shadow:       0 0 0 1px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --ed-shadow-hover: 0 0 0 1px rgba(15, 23, 42, 0.10), 0 8px 24px -8px rgba(15, 23, 42, 0.12);

  background: transparent;
  margin-top: 28px;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ─── Intro / eyebrow / título principal ────────────────────────────── */

.overround-shell--editorial .ov-intro {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ed-border);
}

.overround-shell--editorial .ov-intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-text-faint);
  margin-bottom: 12px;
}

.overround-shell--editorial .ov-intro-dot {
  width: 6px;
  height: 6px;
  background: var(--ed-best);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
  animation: ov-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes ov-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15); }
  50%      { box-shadow: 0 0 0 5px rgba(4, 120, 87, 0.05); }
}

.overround-shell--editorial .ov-intro-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ed-text);
  margin: 0 0 10px 0;
}

.overround-shell--editorial .ov-intro-deck {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ed-text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

/* ─── Grid responsive ───────────────────────────────────────────────── */

.overround-shell--editorial .ov-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .overround-shell--editorial .ov-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1100px) {
  .overround-shell--editorial .ov-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1500px) {
  .overround-shell--editorial .ov-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Card ──────────────────────────────────────────────────────────── */

.overround-shell--editorial .ov-card {
  position: relative;
  background: var(--ed-bg);
  border-radius: 12px;
  padding: 20px 22px 18px;
  box-shadow: var(--ed-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Entrance animation: stagger por --card-index */
  opacity: 0;
  transform: translateY(8px);
  animation: ov-card-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--card-index, 0) * 60ms);
}
.overround-shell--editorial .ov-card:nth-child(n+8) {
  /* Cap stagger en card 7 — sino se siente lento */
  animation-delay: 420ms;
}

@keyframes ov-card-in {
  to { opacity: 1; transform: translateY(0); }
}

.overround-shell--editorial .ov-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow-hover);
}

/* Header: título + meta */
.overround-shell--editorial .ov-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ed-border);
}

.overround-shell--editorial .ov-card-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.overround-shell--editorial .ov-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  line-height: 1.2;
  /* Truncar nombres largos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overround-shell--editorial .ov-card-subtitle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-text-faint);
  margin-top: 1px;
}

.overround-shell--editorial .ov-card-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ed-text-muted);
  padding: 3px 8px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

/* ─── Hero — el "MEJOR overround" como número monumental ──────────── */

.overround-shell--editorial .ov-hero {
  margin-bottom: 16px;
}

.overround-shell--editorial .ov-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-text-faint);
  margin-bottom: 6px;
}

.overround-shell--editorial .ov-hero-star {
  color: var(--ed-best);
  font-size: 11px;
  line-height: 1;
}

.overround-shell--editorial .ov-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.overround-shell--editorial .ov-hero-casa {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ed-text);
  letter-spacing: -0.005em;
  /* Truncar */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overround-shell--editorial .ov-hero-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  /* Animación de count-up sutil */
  animation: ov-hero-fade-in 700ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ov-hero-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overround-shell--editorial .ov-hero-pct-number {
  /* color according to tier — overrides per class abajo */
}
.overround-shell--editorial .ov-hero-pct-unit {
  font-size: 0.62em;
  font-weight: 600;
  margin-left: 2px;
  opacity: 0.7;
}

.overround-shell--editorial .ov-hero-pct--best { color: var(--ed-best); }
.overround-shell--editorial .ov-hero-pct--good { color: var(--ed-good); }
.overround-shell--editorial .ov-hero-pct--warn { color: var(--ed-warn); }
.overround-shell--editorial .ov-hero-pct--bad  { color: var(--ed-bad); }

/* ─── Ranking: lista compacta top-5 ────────────────────────────────── */

.overround-shell--editorial .ov-card-ranking {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overround-shell--editorial .ov-rank-item {
  position: relative;
}

/* details/summary inside ranking row */
.overround-shell--editorial .ov-rank-details {
  border-radius: 6px;
  transition: background-color 180ms ease;
}
.overround-shell--editorial .ov-rank-details[open] {
  background: var(--ed-surface);
}

.overround-shell--editorial .ov-rank-summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 9px;
  position: relative;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
  user-select: none;
  transition: background-color 160ms ease;
}
.overround-shell--editorial .ov-rank-summary::-webkit-details-marker { display: none; }

.overround-shell--editorial .ov-rank-summary:hover {
  background: var(--ed-surface-2);
}

.overround-shell--editorial .ov-rank-details[open] .ov-rank-summary {
  background: transparent;
  border-bottom: 1px solid var(--ed-border);
  border-radius: 6px 6px 0 0;
}

.overround-shell--editorial .ov-rank-toggle {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--ed-text-faint);
  line-height: 1;
  text-align: right;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease;
}

.overround-shell--editorial .ov-rank-details[open] .ov-rank-toggle {
  transform: rotate(45deg);
  color: var(--ed-best);
}

.overround-shell--editorial .ov-rank-summary:focus-visible {
  outline: 2px solid var(--ed-best);
  outline-offset: 1px;
}

.overround-shell--editorial .ov-rank-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-text-faint);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.overround-shell--editorial .ov-rank-item:first-child .ov-rank-num {
  color: var(--ed-best);
  font-weight: 700;
}

.overround-shell--editorial .ov-rank-casa {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ed-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

.overround-shell--editorial .ov-rank-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ed-text);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

/* Barra horizontal proporcional debajo del texto, alineada con la columna casa */
.overround-shell--editorial .ov-rank-bar {
  position: absolute;
  left: 32px;
  right: 50px;
  bottom: 4px;
  height: 2px;
  background: var(--ed-good);
  border-radius: 1px;
  opacity: 0.22;
  transform-origin: left center;
  width: calc(var(--w, 0) * 1%);
  animation: ov-bar-grow 600ms 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.overround-shell--editorial .ov-rank-item:first-child .ov-rank-bar {
  background: var(--ed-best);
  opacity: 0.32;
  height: 3px;
}

@keyframes ov-bar-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 0.22; }
}

.overround-shell--editorial .ov-rank-more {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.overround-shell--editorial .ov-rank-more-details {
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fafaf7 0%, #ffffff 100%);
  transition: background 200ms ease, border-color 200ms ease;
}

.overround-shell--editorial .ov-rank-more-details[open] {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.22);
  border-style: solid;
}

.overround-shell--editorial .ov-rank-more-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.72);
  letter-spacing: -0.005em;
  user-select: none;
  transition: color 160ms ease;
}

.overround-shell--editorial .ov-rank-more-summary::-webkit-details-marker { display: none; }
.overround-shell--editorial .ov-rank-more-summary::marker { content: ''; }

.overround-shell--editorial .ov-rank-more-summary:hover {
  color: #0f172a;
}

.overround-shell--editorial .ov-rank-more-summary:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
  border-radius: 6px;
}

.overround-shell--editorial .ov-rank-more-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.30);
  border-radius: 50%;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background 200ms ease;
}

.overround-shell--editorial .ov-rank-more-details[open] .ov-rank-more-plus {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ecfdf5;
  border-color: #0f766e;
  transform: rotate(45deg);  /* convertir + en × visual */
}

.overround-shell--editorial .ov-rank-more-text {
  flex: 1;
}

.overround-shell--editorial .ov-rank-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  margin: 0 2px;
  background: rgba(15, 118, 110, 0.10);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f766e;
}

.overround-shell--editorial .ov-rank-more-chevron {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.45);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overround-shell--editorial .ov-rank-more-details[open] .ov-rank-more-chevron {
  transform: rotate(180deg);
  color: #0f766e;
}

.overround-shell--editorial .ov-card-ranking--more {
  margin: 0;
  padding: 8px 10px 12px;
  border-top: 1px dashed rgba(15, 23, 42, 0.10);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: ov-rank-more-fadein 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ov-rank-more-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .overround-shell--editorial .ov-rank-more-plus,
  .overround-shell--editorial .ov-rank-more-chevron,
  .overround-shell--editorial .ov-rank-more-details { transition: none; }
  .overround-shell--editorial .ov-card-ranking--more { animation: none; }
}

/* ─── Stats footer ──────────────────────────────────────────────────── */

.overround-shell--editorial .ov-card-stats {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--ed-border);
  margin-top: 4px;
}

.overround-shell--editorial .ov-stat {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overround-shell--editorial .ov-stat dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-text-faint);
}

.overround-shell--editorial .ov-stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ed-text);
  letter-spacing: -0.01em;
}

.overround-shell--editorial .ov-stat-sep {
  color: var(--ed-text-faint);
  font-weight: 400;
  margin: 0 4px;
}

/* ─── CTA link al final — editorial, no botón ──────────────────────── */

.overround-shell--editorial .ov-cta-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  color: var(--ed-text);
  text-decoration: none;
  transition: all 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overround-shell--editorial .ov-cta-link:hover {
  background: var(--ed-bg);
  border-color: var(--ed-best);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(4, 120, 87, 0.15);
}

.overround-shell--editorial .ov-cta-arrow {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--ed-best);
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overround-shell--editorial .ov-cta-link:hover .ov-cta-arrow {
  transform: translateX(4px);
}

.overround-shell--editorial .ov-cta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overround-shell--editorial .ov-cta-headline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ed-text);
}

.overround-shell--editorial .ov-cta-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ed-text-muted);
}

/* ─── Detalle expandible por casa (dentro de cada fila del ranking) ── */

.overround-shell--editorial .ov-rank-detail {
  padding: 14px 12px 16px;
  animation: ov-detail-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ov-detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overround-shell--editorial .ov-detail-lead {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ed-text-muted);
  margin: 0 0 12px 0;
}
.overround-shell--editorial .ov-detail-lead strong {
  color: var(--ed-text);
  font-weight: 600;
}

.overround-shell--editorial .ov-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  overflow: hidden;
}

.overround-shell--editorial .ov-detail-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-text-faint);
  text-align: left;
  padding: 8px 10px;
  background: var(--ed-surface);
  border-bottom: 1px solid var(--ed-border);
  white-space: nowrap;
}
.overround-shell--editorial .ov-detail-table th.ov-detail-num {
  text-align: right;
}

.overround-shell--editorial .ov-detail-table tbody td {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ed-text);
  padding: 7px 10px;
  border-bottom: 1px solid var(--ed-border);
}
.overround-shell--editorial .ov-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.overround-shell--editorial .ov-detail-table td.ov-detail-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -0.005em;
  font-weight: 500;
}

.overround-shell--editorial .ov-detail-table tfoot td {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  background: var(--ed-surface);
  border-top: 2px solid var(--ed-border-strong);
  color: var(--ed-text);
}
.overround-shell--editorial .ov-detail-table tfoot td.ov-detail-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.overround-shell--editorial .ov-detail-explain {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ed-text-muted);
  margin: 0 0 12px 0;
}
.overround-shell--editorial .ov-detail-explain strong {
  color: var(--ed-text);
  font-weight: 600;
}

.overround-shell--editorial .ov-detail-callout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-best);
  border-left: 3px solid var(--ed-best);
  border-radius: 6px;
  margin-bottom: 10px;
}

.overround-shell--editorial .ov-detail-callout-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-text-muted);
}

.overround-shell--editorial .ov-detail-callout-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ed-best);
  line-height: 1;
}

.overround-shell--editorial .ov-detail-footnote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ed-text-faint);
  margin: 0;
}

/* ─── Mobile ────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .overround-shell--editorial .ov-intro-title { font-size: 26px; }
  .overround-shell--editorial .ov-intro-deck { font-size: 12px; }
  .overround-shell--editorial .ov-card { padding: 16px 16px 14px; }
  .overround-shell--editorial .ov-hero-pct { font-size: 26px; }
  .overround-shell--editorial .ov-card-stats { gap: 16px; }
}

/* ─── Reduced motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .overround-shell--editorial .ov-card,
  .overround-shell--editorial .ov-hero-pct,
  .overround-shell--editorial .ov-rank-bar,
  .overround-shell--editorial .ov-intro-dot {
    animation: none !important;
  }
  .overround-shell--editorial .ov-card { opacity: 1; transform: none; }
  .overround-shell--editorial .ov-rank-bar { transform: none; opacity: 0.22; }
  .overround-shell--editorial .ov-card,
  .overround-shell--editorial .ov-cta-link,
  .overround-shell--editorial .ov-cta-arrow { transition: none; }
}

/* ─── BACKWARD COMPAT: variant --light (mantengo por si match_hub.js lo usa)
   Ahora SIN tablas — el dark variant del shell (modal gameModal) seguirá
   funcionando con sus propias clases .ov-table. La variant --light queda
   como wrapper minimal sin estilos propios para evitar ruido.
   ──────────────────────────────────────────────────────────────────────── */

.overround-shell.overround-shell--light {
  background: transparent;
  padding: 0;
  border: none;
}


/* ═══════════════════════════════════════════════════════════════════
   Sección "Cómo se calcula" en el tooltip rico
   ─────────────────────────────────────────────────────────────────── */
.mh-ov-tip-formula {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 4px;
}

.mh-ov-tip-formula-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 4px;
}

.mh-ov-tip-formula-line:last-child {
  margin-bottom: 0;
}

.mh-ov-tip-formula-expr {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, 0.88);
}

.mh-ov-tip-formula-eq {
  color: rgba(148, 163, 184, 0.6);
  font-weight: 500;
}

.mh-ov-tip-formula-num {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  font-weight: 600;
}

.mh-ov-tip-formula-result {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: currentColor;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mh-ov-tip-formula-note {
  margin: 6px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.7);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   Botón "?" en el eyebrow del banner
   ─────────────────────────────────────────────────────────────────── */
.mh-ov-banner-eyebrow {
  align-items: center;
}

.mh-ov-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 3px 9px 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.78);
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mh-ov-help-btn i {
  font-size: 12px;
  line-height: 1;
  color: rgba(148, 163, 184, 0.85);
  transition: color 180ms ease;
}

.mh-ov-help-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.mh-ov-help-btn:hover i {
  color: var(--mh-ov-good, #2dd4bf);
}

.mh-ov-help-btn:focus-visible {
  outline: 2px solid var(--mh-ov-good, #2dd4bf);
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .mh-ov-help-btn span { display: none; }
  .mh-ov-help-btn { padding: 5px 7px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Panel overlay "¿Qué es el overround?" (para principiantes)
   Vive en document.body — escapa cualquier stacking context.
   ─────────────────────────────────────────────────────────────────── */
.mh-ov-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mh-ov-help-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.mh-ov-help-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mh-ov-help-overlay--visible .mh-ov-help-panel {
  transform: translateY(0) scale(1);
}

.mh-ov-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.04) 0%, transparent 100%);
}

.mh-ov-help-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-ov-help-title-icon {
  color: var(--mh-ov-good, #2dd4bf);
  font-size: 18px;
}

.mh-ov-help-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.7);
  cursor: pointer;
  transition: all 160ms ease;
}

.mh-ov-help-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.16);
}

.mh-ov-help-close:focus-visible {
  outline: 2px solid var(--mh-ov-good, #2dd4bf);
  outline-offset: 2px;
}

.mh-ov-help-body {
  overflow-y: auto;
  padding: 18px 22px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}

.mh-ov-help-body::-webkit-scrollbar { width: 6px; }
.mh-ov-help-body::-webkit-scrollbar-track { background: transparent; }
.mh-ov-help-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 3px;
}

.mh-ov-help-section {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.mh-ov-help-section:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.mh-ov-help-section:first-child {
  padding-top: 4px;
}

.mh-ov-help-section h4 {
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-ov-good, #2dd4bf);
}

.mh-ov-help-section p {
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.mh-ov-help-section p:last-child {
  margin-bottom: 0;
}

.mh-ov-help-section p strong {
  color: #f1f5f9;
  font-weight: 600;
}

.mh-ov-help-section code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.mh-ov-help-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ov-step;
}

.mh-ov-help-steps li {
  position: relative;
  padding: 6px 0 6px 32px;
  counter-increment: ov-step;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.86);
}

.mh-ov-help-steps li::before {
  content: counter(ov-step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.30);
  border-radius: 50%;
  color: var(--mh-ov-good, #2dd4bf);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.mh-ov-help-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mh-ov-help-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.86);
}

.mh-ov-help-legend li > div { flex: 1; }

.mh-ov-help-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.6);
}

.mh-ov-help-dot--best { background: var(--mh-ov-best, #34d399); }
.mh-ov-help-dot--good { background: var(--mh-ov-good, #2dd4bf); }
.mh-ov-help-dot--warn { background: var(--mh-ov-warn, #fbbf24); }
.mh-ov-help-dot--bad  { background: var(--mh-ov-bad, #f87171); }

@media (max-width: 540px) {
  .mh-ov-help-overlay { padding: 12px; }
  .mh-ov-help-panel { max-height: calc(100vh - 24px); border-radius: 12px; }
  .mh-ov-help-head { padding: 14px 16px 12px; }
  .mh-ov-help-title { font-size: 16px; }
  .mh-ov-help-body { padding: 14px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-ov-help-overlay,
  .mh-ov-help-panel {
    transition: opacity 100ms ease;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA "Abrir calculadora manual" en el panel de ayuda
   ─────────────────────────────────────────────────────────────────── */
.mh-ov-help-cta {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.06) 0%, transparent 100%);
  margin: 6px -22px -22px;
  padding: 16px 22px 22px;
  border-bottom: none;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
}

.mh-ov-help-cta h4 {
  color: var(--mh-ov-good, #2dd4bf);
}

.mh-ov-help-cta-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14) 0%, rgba(45, 212, 191, 0.08) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 10px;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 18px -8px rgba(45, 212, 191, 0.30);
}

.mh-ov-help-cta-btn i {
  font-size: 16px;
  line-height: 1;
  color: var(--mh-ov-good, #2dd4bf);
}

.mh-ov-help-cta-arrow {
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mh-ov-help-cta-btn:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22) 0%, rgba(45, 212, 191, 0.12) 100%);
  border-color: rgba(45, 212, 191, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(45, 212, 191, 0.45);
}

.mh-ov-help-cta-btn:hover .mh-ov-help-cta-arrow {
  transform: translateX(3px);
}

.mh-ov-help-cta-btn:focus-visible {
  outline: 2px solid var(--mh-ov-good, #2dd4bf);
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .mh-ov-help-cta {
    margin: 6px -16px -18px;
    padding: 14px 16px 18px;
  }
  .mh-ov-help-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   CALCULADORA OVERROUND MANUAL — rediseño premium 2026-06-04
   Aesthetic: "Trading desk editorial dark" coherente con match hub.
   Layered backgrounds, gradient mesh, JetBrains Mono para números,
   Syne para display headings, Inter para body. Step indicators visuales.
   ═══════════════════════════════════════════════════════════════════════ */

.overround-shell.ov-calc {
  --ov-emerald: #34d399;
  --ov-teal: #2dd4bf;
  --ov-amber: #fbbf24;
  --ov-red: #f87171;
  --ov-slate-950: #020617;
  --ov-slate-900: #0f172a;
  --ov-slate-800: #1e293b;
  --ov-slate-700: #334155;
  --ov-slate-400: #94a3b8;
  --ov-slate-200: #e2e8f0;
  --ov-slate-100: #f1f5f9;

  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(52, 211, 153, 0.05), transparent 55%),
    linear-gradient(180deg, var(--ov-slate-900) 0%, var(--ov-slate-950) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */
.ov-calc-hero {
  position: relative;
  padding: 28px 32px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.04) 0%, transparent 100%);
}

.ov-calc-hero-rail {
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 26px;
  width: 3px;
  background: linear-gradient(180deg, var(--ov-teal), transparent);
  opacity: 0.65;
}

.ov-calc-hero-inner { padding-left: 22px; }

.ov-calc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Syne'), sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ov-teal);
  margin-bottom: 12px;
}

.ov-calc-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ov-teal);
  box-shadow: 0 0 12px var(--ov-teal);
  animation: ov-pulse 2.4s ease-in-out infinite;
}

@keyframes ov-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.ov-calc-hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Syne'), sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ov-slate-100);
}

.ov-calc-hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--ov-teal);
  background: linear-gradient(135deg, var(--ov-teal) 0%, var(--ov-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ov-calc-hero-subtitle {
  margin: 0;
  max-width: 580px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.78);
}

/* ─── Steps ────────────────────────────────────────────────────────── */
.ov-calc-step {
  padding: 26px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ov-calc-step:last-of-type { border-bottom: none; }

.ov-calc-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.ov-calc-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.30);
  border-radius: 10px;
  color: var(--ov-teal);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ov-calc-step-num--done {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.20), rgba(52, 211, 153, 0.14));
  border-color: rgba(45, 212, 191, 0.50);
  color: var(--ov-emerald);
  box-shadow: 0 0 18px -4px rgba(45, 212, 191, 0.55);
}

.ov-calc-step-title {
  margin: 0 0 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ov-slate-100);
}

.ov-calc-step-help {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.85);
}

/* ─── Cards de mercado ─────────────────────────────────────────────── */
.ov-calc-markets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ov-calc-market {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.ov-calc-market::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(45, 212, 191, 0) 100%);
  pointer-events: none;
  transition: background 200ms ease;
}

.ov-calc-market:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.ov-calc-market.is-active {
  border-color: var(--ov-teal);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.10) 0%, rgba(45, 212, 191, 0.04) 100%);
  box-shadow:
    0 0 0 1px var(--ov-teal),
    0 10px 22px -8px rgba(45, 212, 191, 0.30);
}

.ov-calc-market.is-active::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, transparent 100%);
}

.ov-calc-market:focus-visible {
  outline: 2px solid var(--ov-teal);
  outline-offset: 2px;
}

.ov-calc-market-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ov-teal);
  text-transform: uppercase;
}

.ov-calc-market.is-active .ov-calc-market-tag {
  background: rgba(45, 212, 191, 0.22);
  border-color: var(--ov-teal);
}

.ov-calc-market-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ov-slate-100);
}

.ov-calc-market-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.78);
}

.ov-calc-market-count {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.55);
}

.ov-calc-market.is-active .ov-calc-market-count {
  color: rgba(45, 212, 191, 0.85);
}

/* ─── Guía para principiantes ──────────────────────────────────────── */
.ov-calc-when {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.ov-calc-when summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.82);
  transition: background 160ms ease;
}

.ov-calc-when summary::-webkit-details-marker { display: none; }
.ov-calc-when summary::marker { content: ''; }

.ov-calc-when summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ov-calc-when summary > i:first-child {
  font-size: 14px;
  color: var(--ov-teal);
  flex-shrink: 0;
}

.ov-calc-when summary > span {
  flex: 1;
}

.ov-calc-when-chevron {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.65);
  transition: transform 200ms ease;
}

.ov-calc-when[open] .ov-calc-when-chevron { transform: rotate(180deg); }

.ov-calc-when-body {
  padding: 4px 16px 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.ov-calc-when-body p {
  margin: 10px 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.86);
}

.ov-calc-when-body p strong {
  color: var(--ov-slate-100);
  font-weight: 600;
}

.ov-calc-when-list {
  margin: 8px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ov-calc-when-list li {
  padding: 7px 10px 7px 28px;
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.86);
}

.ov-calc-when-list li::before {
  content: "→";
  position: absolute;
  left: 10px;
  top: 7px;
  color: var(--ov-teal);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.ov-calc-when-list li strong {
  color: var(--ov-slate-100);
  font-weight: 600;
}

.ov-calc-when-tip {
  margin-top: 12px !important;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.20);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.86) !important;
}

.ov-calc-when-tip i {
  color: var(--ov-amber);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ─── Inputs de cuotas ─────────────────────────────────────────────── */
.ov-calc-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.ov-calc-inputs[data-count="2"] { grid-template-columns: repeat(2, 1fr); }

.ov-calc-input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 14px 12px;
  transition: border-color 180ms ease;
}

.ov-calc-input-wrap:focus-within {
  border-color: var(--ov-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.10);
}

.ov-calc-input-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.30);
  border-radius: 6px;
  color: var(--ov-teal);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}

.ov-calc-input-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin: 0 0 8px 0;
  padding-right: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-calc-input-box {
  position: relative;
  margin-bottom: 6px;
}

.ov-calc-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--ov-slate-100);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 10px 8px;
  transition: all 180ms ease;
  -moz-appearance: textfield;
}

.ov-calc-input::-webkit-outer-spin-button,
.ov-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ov-calc-input:focus {
  outline: none;
  border-color: var(--ov-teal);
  background: rgba(2, 6, 23, 0.8);
}

.ov-calc-input.is-invalid {
  border-color: var(--ov-red);
  animation: ov-shake 240ms ease-in-out;
}

.ov-calc-input.is-prefilled {
  animation: ov-prefill-glow 600ms ease-out;
}

@keyframes ov-prefill-glow {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); border-color: var(--ov-teal); }
  100% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); border-color: rgba(255, 255, 255, 0.08); }
}

@keyframes ov-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.ov-calc-input-hint {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.6);
}

.ov-calc-input-error {
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: var(--ov-red);
}

/* ─── Actions ──────────────────────────────────────────────────────── */
.ov-calc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-calc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.85);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 180ms ease;
}

.ov-calc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ov-slate-100);
}

.ov-calc-btn-ghost i { color: var(--ov-amber); font-size: 13px; }

.ov-calc-btn-ghost:focus-visible {
  outline: 2px solid var(--ov-teal);
  outline-offset: 2px;
}

/* ─── Botón principal · Calcular margen ───────────────────────────── */
/* Dirección: "Emerald sólido profundo" (estilo Stripe Continue).
   Sin gradient brillante, sin shimmer. Verde oscuro sobrio + texto
   blanco uppercase. El protagonismo viene del peso visual y la sombra
   ambiente, no del color saturado. */
.ov-calc-btn-primary {
  flex: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: #047857;
  border: 1px solid #059669;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease,
    border-color 220ms ease,
    color 160ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 12px 24px -8px rgba(4, 120, 87, 0.45);
}

.ov-calc-btn-primary > * { position: relative; z-index: 1; }

.ov-calc-btn-primary i {
  font-size: 15px;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov-calc-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #059669;
  border-color: #10b981;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.20),
    0 18px 32px -10px rgba(5, 150, 105, 0.60);
}

.ov-calc-btn-primary:hover:not(:disabled) i { transform: translateX(5px); }

.ov-calc-btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
  background: #065f46;
  transition-duration: 90ms;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 2px 6px rgba(0, 0, 0, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

.ov-calc-btn-primary:focus-visible {
  outline: 2px solid var(--ov-teal);
  outline-offset: 3px;
}

/* Estado deshabilitado — silueta del botón clara pero claramente inactiva.
   Background dark con borde discreto + ícono "candado" implícito por
   color muted del texto. Le da affordance de "está acá, esperá llenar". */
.ov-calc-btn-primary:disabled {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.58);
  cursor: not-allowed;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 6px -2px rgba(0, 0, 0, 0.30);
}

.ov-calc-btn-primary:disabled i { color: rgba(148, 163, 184, 0.40); }

/* En estado "calculating" el botón mantiene el background activo
   (no parece que se rompió) pero sin lift ni shimmer. */
.overround-shell[data-state="calculating"] .ov-calc-btn-primary {
  cursor: progress;
}
.overround-shell[data-state="calculating"] .ov-calc-btn-primary::before {
  display: none;
}

.ov-calc-btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ov-calc-spinner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ov-bounce 1.2s ease-in-out infinite;
}

.ov-calc-spinner-dot:nth-child(2) { animation-delay: 0.15s; }
.ov-calc-spinner-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes ov-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ─── Error ────────────────────────────────────────────────────────── */
.ov-calc-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 10px;
  color: var(--ov-red);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
}

.ov-calc-error i { font-size: 14px; flex-shrink: 0; }

/* ─── Resultado ────────────────────────────────────────────────────── */
.ov-calc-result {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.04) 0%, transparent 100%);
}

.ov-calc-result-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.ov-calc-result-card {
  position: relative;
  padding: 18px 20px 16px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.ov-calc-result-card--primary {
  border-color: rgba(45, 212, 191, 0.22);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.06) 0%, transparent 100%),
    rgba(2, 6, 23, 0.55);
}

.ov-calc-result-card-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 10px;
}

.ov-calc-result-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ov-slate-100);
  margin-bottom: 14px;
}

.overround-shell[data-state="result-arbitrage"] .ov-calc-result-number {
  color: var(--ov-emerald);
}

.overround-shell[data-state="result-outlier"] .ov-calc-result-number {
  color: var(--ov-amber);
}

.ov-calc-result-payout {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ov-emerald);
  margin-bottom: 8px;
}

.ov-calc-result-payout-help {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.82);
}

.ov-calc-result-bar-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ov-calc-result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ov-emerald) 0%, var(--ov-teal) 50%, var(--ov-amber) 75%, var(--ov-red) 100%);
  transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 999px;
}

.ov-calc-result-scale {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.65);
  font-variant-numeric: tabular-nums;
}

.ov-calc-result-scale-tick {
  position: relative;
}

.ov-calc-result-scale-tick::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 4px;
  background: rgba(148, 163, 184, 0.30);
  transform: translateX(-50%);
}

.ov-calc-interpretation {
  margin: 16px 0 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border-left: 3px solid var(--ov-teal);
  border-radius: 0 8px 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ov-slate-100);
}

/* ─── Fórmula plegable ─────────────────────────────────────────────── */
.ov-calc-formula {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ov-calc-formula summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.82);
}

.ov-calc-formula summary::-webkit-details-marker { display: none; }
.ov-calc-formula summary > i:first-child {
  color: var(--ov-amber);
  font-size: 13px;
}
.ov-calc-formula summary > span { flex: 1; }

.ov-calc-formula-chevron {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.65);
  transition: transform 200ms ease;
}

.ov-calc-formula[open] .ov-calc-formula-chevron { transform: rotate(180deg); }

.ov-calc-formula pre {
  margin: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.92);
  font-variant-numeric: tabular-nums;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ─── CTA al comparativo ───────────────────────────────────────────── */
.ov-calc-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.10) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ov-slate-100);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov-calc-cta:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16) 0%, rgba(52, 211, 153, 0.10) 100%);
  border-color: var(--ov-teal);
  transform: translateY(-1px);
  color: var(--ov-slate-100);
  box-shadow: 0 12px 24px -8px rgba(45, 212, 191, 0.40);
}

.ov-calc-cta > i:first-child {
  color: var(--ov-teal);
  font-size: 18px;
  flex-shrink: 0;
}

.ov-calc-cta > span {
  flex: 1;
  color: rgba(226, 232, 240, 0.85);
}

.ov-calc-cta > span strong {
  display: block;
  color: var(--ov-slate-100);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  margin-top: 2px;
  letter-spacing: -0.01em;
}

.ov-calc-cta > i:last-child {
  color: var(--ov-teal);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.ov-calc-cta:hover > i:last-child { transform: translateX(4px); }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ov-calc-hero { padding: 22px 18px 20px; }
  .ov-calc-hero-inner { padding-left: 18px; }
  .ov-calc-hero-title { font-size: 24px; }
  .ov-calc-step { padding: 20px 18px; }
  .ov-calc-markets { grid-template-columns: 1fr; }
  .ov-calc-inputs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ov-calc-inputs[data-count="2"] { grid-template-columns: 1fr 1fr; }
  .ov-calc-input { font-size: 20px; }
  .ov-calc-actions { flex-direction: column; align-items: stretch; }
  .ov-calc-btn-ghost { justify-content: center; }
  .ov-calc-result-grid { grid-template-columns: 1fr; }
  .ov-calc-result-number { font-size: 44px; }
  .ov-calc-result-payout { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ov-calc-hero-dot,
  .ov-calc-spinner-dot { animation: none; }
  .ov-calc-result-bar { transition: none; }
  .ov-calc-input.is-invalid,
  .ov-calc-input.is-prefilled { animation: none; }
  .ov-calc-market,
  .ov-calc-btn-primary,
  .ov-calc-cta { transition: none; }
  .ov-calc-btn-primary::before { animation: none; display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPARADOR — Controles (filtros chips + toggle visibility overrounds)
   Theme: Financial Editorial Cards (light variant).
   ═══════════════════════════════════════════════════════════════════════ */

.overround-shell--editorial .ov-deck-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.overround-shell--editorial .ov-deck-total {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}

.ov-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0 20px;
  margin: 8px 0 6px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.ov-controls-filters {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ov-controls-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.ov-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ov-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #334155;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    color 160ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 200ms ease;
}

.ov-chip:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.22);
  color: #0f172a;
  transform: translateY(-1px);
}

.ov-chip:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.ov-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 180ms ease, background 180ms ease;
}

.ov-chip-label {
  white-space: nowrap;
}

.ov-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 5px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 23, 42, 0.62);
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease;
}

/* Estado activo — color tier emerald (consistente con resto del comparador) */
.ov-chip.is-active {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  border-color: #0f766e;
  color: #ecfdf5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px -4px rgba(15, 118, 110, 0.45);
}

.ov-chip.is-active:hover {
  background: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
  transform: translateY(-1px);
}

.ov-chip.is-active .ov-chip-dot {
  opacity: 1;
  background: #5eead4;
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.65);
}

.ov-chip.is-active .ov-chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ecfdf5;
}

/* ─── Toggle switch (Mostrar overrounds) ────────────────────────────── */
.ov-toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
  padding-top: 18px;  /* alinea con la fila de chips */
  user-select: none;
}

.ov-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ov-toggle-track {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.10);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov-toggle-input:checked + .ov-toggle-track {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.ov-toggle-input:checked + .ov-toggle-track .ov-toggle-thumb {
  transform: translateX(16px);
}

.ov-toggle-input:focus-visible + .ov-toggle-track {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}

.ov-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ov-toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.005em;
}

.ov-toggle-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.35;
}

/* ─── Collapse total del comparador ─────────────────────────────────
   Cuando .ov-collapsed: solo quedan visibles el header (intro) y el toggle.
   La barra de chips, el grid de cards, el CTA y el empty state se ocultan
   completamente. Esto evita que el user tenga que scrollear para saltar la
   sección si no le interesa en este partido. */
.overround-shell.ov-collapsed .ov-controls-filters,
.overround-shell.ov-collapsed .ov-collapsible {
  display: none;
}

.overround-shell.ov-collapsed .ov-controls {
  padding: 12px 0 14px;
  border-bottom: 0;
}

/* Caption sutil visible solo cuando está colapsado. Da feedback al user
   sobre por qué la sección parece vacía. */
.ov-collapsed-caption {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  margin-top: 6px;
  background: linear-gradient(180deg, #fafaf7 0%, #ffffff 100%);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.62);
  font-style: italic;
}

.ov-collapsed-caption i {
  font-size: 14px;
  color: rgba(15, 23, 42, 0.45);
}

.overround-shell.ov-collapsed .ov-collapsed-caption {
  display: inline-flex;
}

/* ─── Empty state cuando un filtro deja la grid sin cards ───────────── */
.ov-empty-state {
  text-align: center;
  padding: 36px 24px;
  margin: 8px 0;
  background: linear-gradient(180deg, #fafaf7 0%, #ffffff 100%);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 12px;
}

.ov-empty-state i {
  font-size: 24px;
  color: rgba(15, 23, 42, 0.35);
  margin-bottom: 8px;
}

.ov-empty-state p {
  margin: 6px 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: rgba(15, 23, 42, 0.7);
}

.ov-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #0f766e;
  border: none;
  border-radius: 999px;
  color: #ecfdf5;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov-empty-reset:hover {
  background: #115e59;
  transform: translateY(-1px);
}

/* ─── Animación de fade-in cuando reaparecen cards filtradas ────────── */
.ov-cards-grid > .ov-card:not([hidden]) {
  animation: ov-card-fadein 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ov-card-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive: layout compacto en mobile ─────────────────────────── */
@media (max-width: 720px) {
  .ov-controls {
    flex-direction: column;
    gap: 16px;
  }
  .ov-toggle {
    padding-top: 0;
    padding-top: 4px;
  }
  .ov-chip {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-chip,
  .ov-toggle-track,
  .ov-toggle-thumb,
  .ov-empty-reset { transition: none; }
  .ov-cards-grid > .ov-card:not([hidden]) { animation: none; }
}
