/* ==========================================================================
   Attomos Finance — estilo iOS 27 (liquid glass) sobre fondo blanco
   ========================================================================== */

:root {
  --accent: #06b6d4;
  --accent-strong: #0891b2;
  --accent-soft: rgba(6, 182, 212, 0.10);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --bg: #ffffff;
  --positive: #16a34a;
  --positive-soft: rgba(22, 163, 74, 0.10);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.10);
  --negative: #dc2626;
  --neutral-soft: rgba(100, 116, 139, 0.10);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.08);

  --radius-lg: 24px;
  --radius-md: 16px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;

  --p: 0; /* progreso de colapso del título (0 → 1), lo controla JS */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Halo cian muy sutil detrás del encabezado (el fondo sigue siendo blanco) */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(600px 260px at 12% -40px, rgba(6, 182, 212, 0.14), transparent 70%),
    radial-gradient(520px 240px at 92% 0, rgba(56, 189, 248, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

button { font: inherit; color: inherit; }

.page {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px 64px;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   Barra compacta + título grande que colapsa
   -------------------------------------------------------------------------- */

.compact-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: calc(52px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, calc(var(--p) * 0.72));
  -webkit-backdrop-filter: blur(calc(var(--p) * 22px)) saturate(calc(100% + var(--p) * 80%));
  backdrop-filter: blur(calc(var(--p) * 22px)) saturate(calc(100% + var(--p) * 80%));
  border-bottom: 0.5px solid rgba(15, 23, 42, calc(var(--p) * 0.10));
  pointer-events: none;
}

.compact-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: clamp(0, calc((var(--p) - 0.55) * 2.4), 1);
  transform: translateY(calc((1 - var(--p)) * 8px));
}

.hero { padding: 8px 0 22px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  opacity: calc(1 - var(--p) * 1.6);
}

.large-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  transform-origin: left bottom;
  transform: translateY(calc(var(--p) * -6px)) scale(calc(1 - var(--p) * 0.12));
  opacity: calc(1 - var(--p) * 1.25);
  will-change: transform, opacity;
}

.large-title span {
  background: linear-gradient(100deg, var(--accent-strong), var(--accent) 55%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 620px;
  margin: 12px 0 18px;
  font-size: 17px;
  color: var(--ink-2);
}

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
}

.meta-pill strong { color: var(--ink); font-weight: 650; }
.meta-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 3px var(--positive-soft); }

/* --------------------------------------------------------------------------
   Calculadora de monto
   -------------------------------------------------------------------------- */

.amount-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.amount-main label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.amount-input {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 2px solid var(--line-strong);
  transition: border-color 0.25s var(--ease-out);
  max-width: 340px;
}

.amount-input:focus-within { border-color: var(--accent); }

.amount-currency { font-size: 30px; font-weight: 700; color: var(--muted); }
.amount-suffix { font-size: 13px; font-weight: 600; color: var(--muted); }

.amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 2px 0 4px;
  font-variant-numeric: tabular-nums;
}

.amount-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 420px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--spring), background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.94); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Control segmentado líquido (se minimiza al bajar, se expande al subir)
   -------------------------------------------------------------------------- */

.segmented-dock {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
  pointer-events: none;
}

.segmented {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  transform-origin: center top;
  transition: transform 0.55s var(--spring), padding 0.45s var(--spring), box-shadow 0.3s;
}

.seg-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.25s, padding 0.45s var(--spring), font-size 0.45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}

.seg-btn.is-active { color: #fff; }

.segmented-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c3dd, var(--accent-strong));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(6, 182, 212, 0.35);
  transition:
    left 0.5s var(--spring),
    width 0.5s var(--spring),
    transform 0.4s var(--spring);
}

/* Fase "líquida": el indicador se estira hacia el destino antes de asentarse */
.segmented-indicator.is-stretching {
  transition: left 0.18s var(--ease-out), width 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  transform: scaleY(0.88);
}

.segmented.is-minimized { transform: scale(0.9); padding: 3px; }
.segmented.is-minimized .seg-btn { padding: 7px 14px; font-size: 13px; }
.segmented.is-minimized .segmented-indicator { top: 3px; bottom: 3px; }

/* --------------------------------------------------------------------------
   Tabla
   -------------------------------------------------------------------------- */

.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 12px 32px rgba(15, 23, 42, 0.05);
}

.rates { width: 100%; border-collapse: collapse; }

.rates thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rates tbody td {
  padding: 18px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rates tbody tr:last-child td { border-bottom: 0; }

.rate-row {
  animation: rowIn 0.55s var(--ease-out) both;
  transition: background 0.2s;
}

.rate-row:hover { background: rgba(6, 182, 212, 0.025); }
.rate-row.is-best { background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), transparent 60%); }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* Institución */
.inst { display: flex; gap: 12px; align-items: flex-start; min-width: 190px; }

.inst-badge {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.18);
}

.inst-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.inst-product { color: var(--muted); font-size: 13px; }

.type-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--neutral-soft);
  color: var(--ink-2);
}

.type-chip.sofipo { background: rgba(168, 85, 247, 0.10); color: #7e22ce; }
.type-chip.banco { background: var(--accent-soft); color: var(--accent-strong); }
.type-chip.gobierno { background: var(--positive-soft); color: #15803d; }

/* Tasas */
.rate-big {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rate-big small { font-size: 16px; font-weight: 700; margin-left: 1px; }
.rate-cap { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.rate-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.rate-change.up { background: var(--positive-soft); color: var(--positive); }
.rate-change.down { background: rgba(220, 38, 38, 0.08); color: var(--negative); }

.effective { min-width: 140px; }
.effective-rate { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.effective-gain { display: block; font-size: 13px; color: var(--positive); font-weight: 650; margin-top: 2px; }

.effective-bar { height: 4px; border-radius: 4px; background: var(--neutral-soft); margin-top: 8px; overflow: hidden; }
.effective-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.6s var(--spring); }

.best-tag {
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

/* Tramos */
.tiers { list-style: none; margin: 0; padding: 0; min-width: 200px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.tiers li + li { border-top: 1px dashed var(--line); }
.tier-label { color: var(--ink-2); }
.tier-rate { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Requisitos */
.reqs { list-style: none; margin: 0; padding: 0; min-width: 240px; max-width: 340px; }
.reqs li { position: relative; padding-left: 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.reqs li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.no-req {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--positive-soft);
  color: var(--positive);
}

.has-req {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--warn-soft);
  color: var(--warn);
}

.inst-protection { margin-top: 10px; display: grid; gap: 2px; }
.prot-line { font-size: 12.5px; color: var(--muted); }
.prot-line:first-child { color: var(--ink-2); font-weight: 600; }

/* Fuente / estado */
.source { min-width: 150px; }

.status {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--positive-soft); color: var(--positive); }
.status.live::before { animation: pulse 2s infinite; }
.status.cached { background: var(--warn-soft); color: var(--warn); }
.status.fallback { background: var(--neutral-soft); color: var(--muted); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.source-time { display: block; margin-top: 0; font-size: 12px; color: var(--muted); }

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-strong);
  text-decoration: none;
}

.source-link:hover { text-decoration: underline; }

/* Estados vacíos / error / carga */
.empty-row td { text-align: center; padding: 48px 16px; color: var(--muted); }

.retry-btn {
  margin-top: 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.skeleton-bar, .skeleton-text {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-bar { height: 56px; border-radius: 12px; }
.skeleton-text { color: transparent !important; border-color: transparent !important; }

@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.footnote { margin-top: 22px; font-size: 12.5px; color: var(--muted); max-width: 820px; }
.footnote p { margin: 0 0 6px; }

/* --------------------------------------------------------------------------
   Responsive: la tabla se vuelve tarjetas
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .rates thead { display: none; }
  .rates, .rates tbody { display: block; }
  .table-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }

  .rates tbody tr.rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 26px rgba(15, 23, 42, 0.05);
  }

  .rates tbody tr.rate-row.is-best { border-color: rgba(6, 182, 212, 0.35); }

  .rates tbody tr.rate-row td { display: block; padding: 0; border: 0; }
  .rates tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .rates td.cell-inst { grid-column: 1 / -1; }
  .rates td.cell-inst::before { display: none !important; }
  .rates td.cell-tiers, .rates td.cell-reqs { grid-column: 1 / -1; }
  .reqs, .tiers { max-width: none; min-width: 0; }
  .rates tbody tr.skeleton-row, .rates tbody tr.empty-row { display: block; }
  .rates tbody tr.skeleton-row td, .rates tbody tr.empty-row td { display: block; border: 0; padding: 6px 0; }
}

@media (max-width: 560px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .amount-card { padding: 18px; }
  .amount-input input { font-size: 30px; }
  .seg-btn { padding: 8px 13px; font-size: 13px; }
  .segmented.is-minimized .seg-btn { padding: 6px 10px; font-size: 12px; }
  .rate-big { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* ==========================================================================
   Navbar y footer de Attomos (micronicho dentro del sitio)
   La barra compacta propia queda oculta: el navbar flotante ocupa la parte
   de arriba y el título grande sigue colapsando al hacer scroll.
   ========================================================================== */
.niche-page .compact-bar { display: none !important; }

.niche-page .page {
  padding-top: calc(118px + env(safe-area-inset-top));
}

.niche-page .footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

/* El navbar trae su propia tipografía; que no la herede de esta página */
.niche-page .navbar,
.niche-page .nav-more-menu {
  line-height: normal;
}

@media (max-width: 768px) {
  .niche-page .page {
    padding-top: calc(96px + env(safe-area-inset-top));
  }
}

/* El control segmentado se pega justo debajo del navbar flotante */
.niche-page .segmented-dock {
  top: calc(100px + env(safe-area-inset-top));
}

@media (max-width: 768px) {
  .niche-page .segmented-dock {
    top: calc(80px + env(safe-area-inset-top));
  }
}

/* ==========================================================================
   iOS 27 — contenedores redondeados sin borde y animaciones de resorte
   ========================================================================== */
:root {
  --ios-spring: linear(0, 0.04, 0.139, 0.271, 0.416, 0.56, 0.691, 0.805, 0.897, 0.969, 1.021, 1.055, 1.074, 1.082, 1.081, 1.075, 1.065, 1.053, 1.041, 1.03, 1.02, 1.011, 1.005, 1, 0.996, 0.994, 0.993, 0.993, 0.994, 0.994, 0.995, 0.996, 0.997, 0.998, 0.999, 0.999, 1, 1, 1, 1.001, 1.001, 1.001, 1.001, 1, 1, 1, 1, 1, 1);
  --radius-lg: 32px;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 20px 46px -26px rgba(15, 23, 42, 0.22);
  --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.04), 0 30px 56px -26px rgba(6, 182, 212, 0.38);
}
@supports not (animation-timing-function: linear(0, 1)) {
  :root { --ios-spring: cubic-bezier(0.34, 1.35, 0.64, 1); }
}

@keyframes iosRise { from { opacity: 0; transform: translateY(24px) scale(0.965); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes iosPop { 0% { transform: scale(0.85); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }

.niche-page .hero > * { animation: iosRise 0.8s var(--ios-spring) backwards; }
.niche-page .hero > *:nth-child(2) { animation-delay: 0.05s; }
.niche-page .hero > *:nth-child(3) { animation-delay: 0.1s; }
.niche-page .hero > *:nth-child(4) { animation-delay: 0.15s; }

.niche-page .chip,
.niche-page .btn,
.niche-page .back-btn {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, transform 0.45s var(--ios-spring);
}
.niche-page .chip:active,
.niche-page .btn:active,
.niche-page .back-btn:active { transform: scale(0.92, 0.86); }
.niche-page .chip.is-active { animation: iosPop 0.45s var(--ios-spring); }

/* Tarjetas sin borde y con esquinas amplias */
.amount-card {
  border: 0;
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  animation: iosRise 0.8s var(--ios-spring) 0.12s backwards;
}
.amount-input { border-bottom: 0; padding: 4px 16px; border-radius: 999px; background: rgba(6, 182, 212, 0.06); transition: background 0.25s ease, box-shadow 0.25s ease; }
.amount-input:focus-within { background: #fff; box-shadow: 0 0 0 2px #06b6d4, 0 8px 20px -10px rgba(6, 182, 212, 0.5); }
.amount-input input.is-bump { animation: iosPop 0.4s var(--ios-spring); }
.meta-pill { border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 16px -10px rgba(15, 23, 42, 0.25); }
.chip { border: 0; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 14px -8px rgba(15, 23, 42, 0.25); }
.chip:hover { box-shadow: 0 0 0 1.5px rgba(6, 182, 212, 0.5), 0 6px 14px -8px rgba(6, 182, 212, 0.4); }

.segmented { border: 0; }
.segmented-dock { animation: iosRise 0.7s var(--ios-spring) 0.18s backwards; }

.table-card {
  border: 0;
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  animation: iosRise 0.8s var(--ios-spring) 0.22s backwards;
}
.rate-row { animation: iosRise 0.6s var(--ios-spring) backwards; }
.inst-badge { border-radius: 50%; transition: transform 0.5s var(--ios-spring); }
.rate-row:hover .inst-badge { transform: rotate(-10deg) scale(1.1); }
.rate-big { display: inline-block; transition: transform 0.45s var(--ios-spring); }
.rate-row:hover .rate-big { transform: scale(1.06); }
.source-link { transition: transform 0.4s var(--ios-spring); }
.source-link:hover { transform: translateX(3px); }

@media (max-width: 1080px) {
  .table-card { box-shadow: none; border-radius: 0; animation: none; }
  .rates tbody tr.rate-row { border: 0; border-radius: 30px; box-shadow: var(--card-shadow); }
  .rates tbody tr.rate-row.is-best { box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.45), var(--card-shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .amount-card, .segmented-dock, .table-card, .rate-row, .niche-page .hero > * { animation: none !important; }
}

/* Filtros: la misma cápsula de las pestañas de Mi Negocio (la mueve finance.js) */
.segmented { padding: 3px; gap: 2px; background: rgba(118, 118, 128, 0.12); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.segmented-indicator {
  top: 3px;
  bottom: 3px;
  background: #06b6d4;
  box-shadow: 0 3px 8px rgba(6, 182, 212, 0.3), 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: none !important;
  will-change: transform, width;
}
.segmented.is-minimized .segmented-indicator { top: 3px; bottom: 3px; }
.seg-btn { transition: color 0.25s ease, opacity 0.2s ease, padding 0.45s var(--spring), font-size 0.45s var(--spring); }
.seg-btn:not(.is-active):active { opacity: 0.6; }