/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* El sitio es solo oscuro: esto le dice al navegador que dibuje los
     controles nativos (el menú desplegable de un <select>, por ejemplo)
     en oscuro también, en vez del blanco por defecto del sistema. */
  color-scheme: dark;

  --bg:        #08090d;
  --bg-2:      #0e1016;
  --bg-3:      #14161f;
  --bg-4:      #1a1d29;
  --ink:       #f5f6fa;
  --ink-soft:  #c7cad6;
  --mute:      #8a90a3;
  --line:      rgba(245, 246, 250, 0.10);
  --line-soft: rgba(245, 246, 250, 0.06);

  --accent:    #00e6a0;   /* neon green — USDT / gains */
  --accent-2:  #7c5cfc;   /* electric purple — web3 */
  --accent-3:  #00c2ff;   /* cyan — blockchain / tech */
  --danger:    #ff6b6b;

  --gradient-1: var(--accent);
  --gradient-2: var(--accent-3);
  --gradient-3: var(--accent-2);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* color-scheme por sí solo no basta en algunos Chrome/Windows para pintar
   oscuro el fondo del menú desplegable nativo de un <select> — hay que
   fijarlo explícitamente en las opciones. */
select { color-scheme: dark; }
option { background-color: var(--bg-4); color: var(--ink); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 230, 160, 0.18);
}

.eyebrow { color: var(--mute); font-size: .95rem; }

.section {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: .75rem; }
.section-head p { margin-top: .9rem; font-size: 1.05rem; color: var(--mute); }
.section-head.center { margin-inline: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(115deg, var(--accent), var(--accent-3));
  color: #04140f;
  box-shadow: 0 12px 30px -12px rgba(0, 230, 160, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0, 230, 160, 0.7); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,230,160,0.06); }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
}

/* =============================================================
   4. Header / Nav
   ============================================================= */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8, 9, 13, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(8, 9, 13, 0.82);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #04140f;
  font-size: .95rem;
}
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; color: var(--ink-soft);
  position: relative;
  padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-actions .btn-ghost { display: none; }

.hamburger {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line);
}
.hamburger svg { width: 18px; height: 18px; }

.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: .3rem;
  height: 42px; padding: 0 .65rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch-btn:hover { color: var(--ink); border-color: var(--accent); }
.lang-flag { display: inline-flex; }
.lang-flag svg { width: 20px; height: 14px; border-radius: 2px; display: block; }
.lang-chevron { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 190px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  z-index: 200;
}
.lang-switch.is-open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-option {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .55rem .6rem; border-radius: 8px;
  font-size: .88rem; color: var(--ink-soft); text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.lang-option:hover { background: var(--bg-4); color: var(--ink); }
.lang-option.is-active { color: var(--accent); }
.lang-option .lang-flag { font-size: 1.05rem; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: rgba(8,9,13,0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-size: 1.4rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); }

@media (max-width: 539px) {
  .nav-actions .btn-primary { display: none; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .hamburger { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 30%), rgba(0,230,160,0.22) 0%, transparent 55%),
    radial-gradient(circle 720px at calc(var(--mx, 30%) + 25%) calc(var(--my, 30%) + 20%), rgba(0,194,255,0.16) 0%, transparent 55%),
    radial-gradient(circle 820px at calc(var(--mx, 30%) - 15%) calc(var(--my, 30%) + 40%), rgba(124,92,252,0.16) 0%, transparent 55%),
    var(--bg);
  filter: blur(10px);
  transition: background .5s ease;
}
.hero-network {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: .55;
}
@media (prefers-reduced-motion: reduce) {
  .hero-network { display: none; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .04; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

.hero-inner { position: relative; z-index: 1; }
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  max-width: 15ch;
}
.hero-title .accent-text {
  color: var(--accent); /* solid fallback if background-clip: text is unsupported */
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title .accent-text {
    background: linear-gradient(115deg, var(--accent), var(--accent-3) 55%, var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 720px;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.hero-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  font-weight: 600;
}
.hero-stat-label { font-size: .85rem; color: var(--mute); margin-top: .3rem; }

/* =============================================================
   6. Trust ticker
   ============================================================= */
.ticker-wrap {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: tickerScroll 32s linear infinite;
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--mute);
  white-space: nowrap;
}
.ticker-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* =============================================================
   7. Services
   ============================================================= */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: clip;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, rgba(0,230,160,0.35) 12%, transparent 24%);
  opacity: 0; transition: opacity .4s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,230,160,0.35);
  box-shadow: 0 24px 48px -24px rgba(0,230,160,0.28);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(0,230,160,0.1);
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.25rem; }
.service-card p.summary { margin-top: .7rem; color: var(--mute); font-size: .96rem; }
.service-points { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.service-points li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .88rem; color: var(--ink-soft);
}
.service-points svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: .18rem; }

/* =============================================================
   8. Calculator
   ============================================================= */
.calc-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124,92,252,0.14), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(0,230,160,0.12), transparent 55%),
    var(--bg-3);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .calc-panel { grid-template-columns: 1fr auto 1fr; align-items: end; }
}
.calc-field label {
  display: block; font-size: .82rem; color: var(--mute);
  font-family: var(--font-mono); margin-bottom: .6rem;
}
/* Mobile-first: monto y selector de moneda apilados — lado a lado, el select
   necesita más ancho del que entra junto al input en pantallas angostas (el
   texto de las monedas es largo), lo que antes desbordaba el panel y
   descuadraba todo el resto (botón de invertir incluido). */
.calc-field .row { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 560px) {
  .calc-field .row { flex-direction: row; flex-wrap: wrap; }
  .calc-field input[type="text"] { flex: 1 1 120px; width: auto; }
  .calc-field .cur-select { flex: 1 1 140px; width: auto; }
}
.calc-field input[type="text"] {
  width: 100%; min-width: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}
.calc-field .cur-select { width: 100%; min-width: 0; }
.calc-field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem .8rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .95rem;
  width: 100%; min-width: 0; max-width: 100%;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.calc-field input:focus, .calc-field select:focus { border-color: var(--accent); }

/* ---- Menú de moneda a medida (reemplaza visualmente el <select> nativo,
   cuyo menú desplegable no se puede redondear ni recolorear entre
   navegadores). Si el JS no corre, el <select> normal sigue funcionando —
   solo se oculta cuando el propio JS termina de armar el reemplazo. ---- */
.cur-select { position: relative; }
.cur-select.is-enhanced select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.cur-select-btn {
  display: none;
  width: 100%; align-items: center; justify-content: space-between; gap: .5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem .8rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .95rem;
  cursor: pointer;
  text-align: left;
}
.cur-select.is-enhanced .cur-select-btn { display: flex; }
.cur-select-btn:hover, .cur-select-btn:focus-visible { border-color: var(--accent); outline: none; }
.cur-select-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cur-select-chevron { width: 15px; height: 15px; flex-shrink: 0; color: var(--mute); transition: transform .2s var(--ease-out); }
.cur-select.is-open .cur-select-chevron { transform: rotate(180deg); }
.cur-select-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
  max-height: 280px; overflow-y: auto;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  z-index: 60;
}
/* Cuando no hay lugar debajo (select cerca del borde inferior), el JS agrega
   esta clase y el menú se abre hacia arriba en su lugar. */
.cur-select.drop-up .cur-select-menu { top: auto; bottom: calc(100% + .5rem); transform: translateY(6px); }
.cur-select.is-open .cur-select-menu { opacity: 1; transform: none; pointer-events: auto; }
.cur-select-option {
  display: block; width: 100%; padding: .6rem .7rem; border-radius: 8px;
  font-size: .85rem; font-family: var(--font-mono); color: var(--ink-soft); text-align: left;
  background: none; border: none; cursor: pointer;
}
.cur-select-option:hover { background: var(--bg-4); color: var(--ink); }
.cur-select-option.is-active { color: var(--accent); }

.calc-swap {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-4);
  color: var(--accent);
  margin-inline: auto;
  transition: transform .4s var(--ease-bounce), border-color .3s;
}
.calc-swap:hover { border-color: var(--accent); transform: rotate(180deg); }
.calc-swap svg { width: 18px; height: 18px; }

.calc-meta {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--mute);
}
.calc-rate-value { color: var(--accent); }
.calc-unavailable {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 700;
  color: #ff5c72;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.calc-disclaimer {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--mute);
  opacity: .85;
}

/* =============================================================
   8b. Envíos a Perú (promo condicional, ver #envios-peru)
   ============================================================= */
.peru-layout {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .peru-layout { grid-template-columns: 1fr 1fr; }
}
.peru-perks { list-style: none; display: grid; gap: 1.6rem; margin-bottom: 2rem; }
.peru-perks li { display: flex; align-items: flex-start; gap: 1rem; }
.peru-perks li > div { display: grid; gap: .3rem; }
.peru-perks strong { display: block; color: var(--ink); font-size: 1.05rem; }
.peru-perks span { color: var(--mute); font-size: .92rem; line-height: 1.5; }
.peru-perks svg {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: .1rem;
  padding: 5px; border-radius: 50%;
  background: rgba(0,230,160,0.14); color: var(--accent);
}
.peru-route-badge {
  display: flex; align-items: center; gap: 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  color: var(--mute); font-size: .9rem; line-height: 1.5;
}
.peru-route-flags { flex-shrink: 0; display: flex; align-items: center; gap: .4rem; }
.peru-route-flags svg:not([stroke]) { width: 26px; height: 18px; border-radius: 3px; display: block; }
.peru-route-flags svg[stroke] { width: 16px; height: 16px; color: var(--mute); }
.peru-flag-icon { width: 16px; height: 11px; border-radius: 2px; display: inline-block; vertical-align: -1px; margin-right: .3rem; }

.peru-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(217,16,35,0.18), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(0,230,160,0.12), transparent 55%),
    var(--bg-3);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.peru-panel .calc-field { margin-bottom: 1.2rem; }
.peru-panel .calc-field .row { flex-direction: column; gap: .6rem; }
@media (min-width: 420px) {
  .peru-panel .calc-field .row { flex-direction: row; align-items: center; }
  .peru-panel .calc-field input[type="text"] { flex: 1 1 auto; }
  .peru-panel .calc-field select { flex: 0 0 auto; width: auto; max-width: 190px; }
}
.peru-usd-equiv {
  font-family: var(--font-mono); font-size: .85rem; color: var(--mute);
  margin-bottom: .2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.peru-usd-equiv input {
  width: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 8px;
  padding: .3rem .55rem;
  color: var(--ink); font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
}
.peru-usd-equiv input:focus { outline: none; border-color: var(--accent); }

.peru-arrow {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: .8rem auto;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-4); color: var(--accent);
}
.peru-arrow svg { width: 18px; height: 18px; }

.peru-result-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,230,160,0.35);
  background: rgba(0,230,160,0.08);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.peru-result-label {
  display: block; font-size: .78rem; font-family: var(--font-mono);
  color: var(--mute); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .4rem;
}
.peru-result-value {
  font-family: var(--font-mono); font-weight: 700; color: var(--accent);
  font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.1;
}
.peru-result-currency { font-size: .5em; margin-left: .4rem; color: var(--ink-soft); font-weight: 600; }

.peru-meta {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .9rem 0; margin-bottom: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .85rem; color: var(--mute);
}
.peru-meta-value { color: var(--ink); font-weight: 700; }
.peru-panel .calc-disclaimer { margin-bottom: 1.4rem; grid-column: auto; }

/* =============================================================
   9. Steps
   ============================================================= */
.steps-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.step-n {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--accent);
}
.step h3 { margin-top: .9rem; font-size: 1.2rem; }
.step p { margin-top: .6rem; color: var(--mute); font-size: .94rem; }

/* =============================================================
   10. Security grid
   ============================================================= */
.security-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.security-card {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.security-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.security-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.security-card p { margin-top: .7rem; font-size: .9rem; color: var(--mute); }

/* =============================================================
   11. Review invite
   ============================================================= */
.review-invite {
  max-width: 560px; margin: 0 auto; text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.review-stars { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.4rem; }
.review-stars svg { width: 26px; height: 26px; color: var(--accent); opacity: .5; }
.review-invite h2 { font-size: 1.5rem; }
.review-invite p { margin-top: .8rem; font-size: .95rem; color: var(--mute); }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.4rem;
  text-align: left; font-size: 1.02rem; color: var(--ink); font-weight: 600;
}
.faq-q .plus {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .35s var(--ease-out), border-color .3s;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--ink-soft);
}
.faq-q .plus::before { width: 10px; height: 1.4px; }
.faq-q .plus::after { width: 1.4px; height: 10px; transition: transform .3s var(--ease-out); }
.faq-item.is-open .plus { border-color: var(--accent); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-a p { padding-bottom: 1.4rem; color: var(--mute); font-size: .95rem; max-width: 62ch; }

/* =============================================================
   13. Contact / lead
   ============================================================= */
.contact-wrap {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.form-row { display: grid; gap: 1.1rem; }
.form-row.two { grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .82rem; color: var(--mute); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  color: var(--ink);
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.field-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--mute); }
.field-consent input { width: auto; margin-top: .2rem; }
.form-msg {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; border: 1px solid var(--line);
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg.ok { background: rgba(0,230,160,0.1); border-color: rgba(0,230,160,0.35); color: #c9ffe9; }
.form-msg.warn { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.35); color: #ffd6d6; }

.contact-info h3 { font-size: 1.35rem; }
.contact-info p { margin-top: .9rem; color: var(--mute); }
.contact-links { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: .8rem; font-size: .95rem; color: var(--ink-soft); }
.contact-link svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.legal-note {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--mute); opacity: .85;
}

/* =============================================================
   14. Final CTA
   ============================================================= */
.cta-final {
  position: relative;
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  overflow: clip;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.cta-final::before {
  content: ""; position: absolute; inset: -60% -20% -20% -20%;
  background: radial-gradient(50% 50% at 50% 30%, rgba(0,230,160,0.22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 24ch; margin-inline: auto; position: relative; }
.cta-final p { margin-top: 1rem; color: var(--mute); position: relative; }
.cta-final .hero-actions { justify-content: center; position: relative; }

/* =============================================================
   15. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-col h4 { font-size: .82rem; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-family: var(--font-mono); }
.footer-col a, .footer-col p { font-size: .9rem; color: var(--mute); display: block; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--mute);
}

/* =============================================================
   16. Chat assistant widget
   ============================================================= */
.chat-toggle {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04140f;
  box-shadow: 0 14px 34px -12px rgba(0,230,160,0.65);
  transition: transform .3s var(--ease-bounce);
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-toggle .icon-close { display: none; }
.chat-toggle.is-open .icon-chat { display: none; }
.chat-toggle.is-open .icon-close { display: block; }

.chat-panel {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 199;
  width: min(360px, calc(100vw - 2.4rem));
  height: min(520px, calc(100vh - 8rem));
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-head {
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-4);
}
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,230,160,0.18); }
.chat-head strong { color: var(--ink); font-size: .95rem; }
.chat-head span { font-size: .78rem; color: var(--mute); display: block; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-4); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(115deg, var(--accent), var(--accent-3)); color: #04140f; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem 1rem; }
.chat-chip {
  font-size: .78rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-row {
  display: flex; gap: .6rem; padding: .9rem;
  border-top: 1px solid var(--line);
}
.chat-input-row input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 999px; padding: .7rem 1rem; color: var(--ink); font: inherit; font-size: .88rem;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent); color: #04140f;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-typing { display: flex; gap: 4px; padding: .3rem 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: chatTyping 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* =============================================================
   17. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
