/* Páginas de tarifas por mercado (/precios/uy, /precios/usa).
   Porteo del sistema `px-*` de la referencia: negro, violeta y verde ácido,
   tipografía enorme con tracking muy negativo, Arial en pesos 900-950.
   Valores numéricos tomados tal cual del reference, no redondeados. */

.px {
  --black: #090a0b;
  --paper: #f1efe8;
  --acid: #c9ff36;
  --violet: #7857ff;

  background: var(--black);
  color: var(--paper);
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.px a { color: inherit; text-decoration: none; }

/* Grano: da textura al negro plano. Va en un pseudo-elemento fijo para no
   ensuciar el markup. */
.px::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* ── Marca y navegación ──────────────────────────────────────────────────── */

.px-mark {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #090a0b;
  flex-shrink: 0;
}
.px-mark svg { width: 26px; display: block; }

.px-nav {
  height: 94px;
  padding: 0 4vw;
  border-bottom: 1px solid #2a2b2d;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.px-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 950;
  font-size: 12px;
  line-height: 0.88;
}

.px-nav > div {
  display: flex;
  gap: 25px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.17em;
}
.px-place { color: #d9d9d7; }
.px-date { color: #77797d; }

.px-back {
  justify-self: end;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

/* ── Primera pantalla: solo remesas ──────────────────────────────────────── */

.px-rate-first {
  min-height: calc(100vh - 94px);
  padding: 38px 4vw 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: radial-gradient(circle at 78% 38%, rgba(120, 87, 255, 0.18), transparent 26%);
  border-bottom: 1px solid #2a2b2d;
}

.px-rate-label { display: flex; gap: 22px; align-items: flex-start; }
.px-rate-label > span { color: var(--acid); font-size: 9px; letter-spacing: 0.17em; font-weight: 900; }
.px-rate-label p {
  margin: 0;
  color: #888a8d;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.11em;
}

.px-rate-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4vw;
  align-items: end;
  margin: 18px 0 8px;
}
.px-rate-flow > div > span {
  display: block;
  color: #808286;
  font-size: 10px;
  letter-spacing: 0.21em;
  margin-bottom: 25px;
}
.px-rate-flow strong {
  font-size: clamp(52px, 8.8vw, 142px);
  line-height: 0.72;
  letter-spacing: -0.085em;
  display: inline-block;
}
.px-rate-flow small { font-size: 20px; color: #85878b; font-weight: 900; margin-left: 10px; }
.px-rate-arrow { font-size: 50px; color: #626468; padding-bottom: 18px; }
.px-receive strong, .px-receive small { color: var(--acid); }

/* Las tres tarifas secundarias, bajo la principal. */
.px-rate-lines { border-top: 1px solid #343538; }

.px-rate-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid #343538;
}

.px-line-name {
  padding: 16px 12px 16px 0;
  color: var(--acid);
  font-size: 8px;
  letter-spacing: 0.17em;
  font-weight: 900;
  display: flex;
  align-items: center;
}

.px-quick-rates { display: grid; grid-template-columns: repeat(3, 1fr); }

.px-quick-rates article {
  min-height: 82px;
  padding: 16px;
  border-right: 1px solid #343538;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.px-quick-rates article:first-child { padding-left: 0; }
.px-quick-rates article:last-child { border-right: 0; }
.px-quick-rates article > span { color: #77797d; font-size: 7px; letter-spacing: 0.13em; line-height: 1.35; }
.px-quick-value { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.px-quick-rates article strong { font-size: clamp(19px, 2.1vw, 34px); letter-spacing: -0.055em; }
.px-quick-rates article small { font-size: 10px; color: var(--acid); }

.px-rate-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.px-rate-foot p { font-size: clamp(20px, 2.5vw, 38px); letter-spacing: -0.055em; margin: 0; font-weight: 900; }
.px-rate-foot span { color: #6f7175; text-transform: uppercase; font-size: 8px; letter-spacing: 0.16em; }

.px-rate-stamp {
  position: absolute;
  right: 4vw;
  top: 70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: rotate(8deg);
}
.px-rate-stamp .px-mark { width: 36px; height: 36px; }
.px-rate-stamp .px-mark svg { width: 21px; }
.px-rate-stamp span { text-transform: uppercase; font-size: 8px; line-height: 1.15; font-weight: 900; }

/* ── Intro de la sección de tarifas ──────────────────────────────────────── */

.px-price-intro {
  padding: 125px 4vw 100px;
  background: #090a0b;
  display: grid;
  grid-template-columns: 0.35fr 1.4fr 0.6fr;
  gap: 30px;
  align-items: end;
}
.px-price-intro > span { align-self: start; color: var(--acid); font-size: 9px; letter-spacing: 0.17em; }
.px-price-intro h1 { font-size: clamp(52px, 8vw, 122px); line-height: 0.8; letter-spacing: -0.075em; margin: 0; }
.px-price-intro h1 em { font-style: normal; color: var(--acid); }
.px-price-intro > p { color: #838589; font-size: 13px; line-height: 1.5; margin: 0; }

/* ── Otras formas de enviar ──────────────────────────────────────────────── */

.px-alt { padding: 110px 4vw 130px; background: var(--paper); color: #090a0b; }

.px-section-label { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-bottom: 48px; }
.px-section-label > span { font-size: 9px; letter-spacing: 0.16em; font-weight: 900; }
.px-section-label p { margin: 0; font-size: 30px; font-weight: 850; letter-spacing: -0.04em; }

.px-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.px-card { min-height: 370px; padding: 25px; display: flex; flex-direction: column; }
.px-card--violet { background: var(--violet); color: #ffffff; }
.px-card--paper { background: #d8d4ca; color: #090a0b; }
.px-card--dark { background: #111315; color: #ffffff; }

.px-card-top { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; font-size: 9px; letter-spacing: 0.16em; }
.px-card > p { margin: auto 0 14px; opacity: 0.65; font-size: 13px; }
.px-card-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.px-card strong { font-size: clamp(40px, 5vw, 76px); line-height: 0.85; letter-spacing: -0.065em; }
.px-card b { font-size: 15px; }
.px-card > a { margin-top: 65px; text-transform: uppercase; font-size: 9px; letter-spacing: 0.12em; font-weight: 900; }
.px-card--violet > a { color: var(--acid); }

/* ── Recargas ────────────────────────────────────────────────────────────── */

.px-recharge {
  padding: 125px 4vw;
  background: var(--acid);
  color: #090a0b;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.px-recharge > div > span { font-size: 9px; letter-spacing: 0.17em; font-weight: 900; }
.px-recharge h2 { font-size: clamp(48px, 7vw, 110px); line-height: 0.8; letter-spacing: -0.07em; margin: 28px 0 0; }
.px-recharge h2 em { font-style: normal; color: var(--violet); }

.px-recharge-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.px-recharge-list article {
  min-height: 240px;
  background: #090a0b;
  color: #ffffff;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.px-recharge-list article > span { color: #85878a; font-size: 8px; letter-spacing: 0.17em; }
.px-recharge-list article > strong { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.07em; margin-top: 25px; }
.px-recharge-list article > strong small { font-size: 13px; color: var(--acid); }
.px-recharge-list article > i { font-style: normal; color: #6f7175; font-size: 8px; margin-top: auto; }
.px-recharge-list article > b { font-size: 19px; color: var(--acid); }

/* ── Aviso y pie ─────────────────────────────────────────────────────────── */

.px-notice {
  min-height: 350px;
  padding: 95px 4vw;
  display: grid;
  grid-template-columns: 0.35fr 1.4fr 0.75fr;
  gap: 40px;
  align-items: start;
}
.px-notice > span { color: var(--acid); font-size: 9px; letter-spacing: 0.16em; }
.px-notice > p { font-size: clamp(24px, 3.7vw, 56px); line-height: 1.02; letter-spacing: -0.05em; margin: 0; }
.px-notice > a { align-self: end; color: #a0a2a5; text-transform: uppercase; font-size: 9px; line-height: 1.6; letter-spacing: 0.12em; }
.px-notice > a b { color: var(--acid); font-size: 14px; }

.px-footer {
  min-height: 145px;
  padding: 24px 4vw;
  border-top: 1px solid #2a2b2d;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.px-footer > p { text-transform: uppercase; color: #77797c; font-size: 9px; letter-spacing: 0.15em; margin: 0; }
.px-footer-links { justify-self: end; display: flex; gap: 25px; text-transform: uppercase; color: #888a8d; font-size: 9px; letter-spacing: 0.12em; }

/* ── Estado sin datos ────────────────────────────────────────────────────── */

/* Los números salen de la API. Mientras no llegan, o si falla, se muestra un
   guion en vez de un valor inventado: es una página de precios. */
[data-rate]:empty::before,
[data-rate="—"]::before { content: ""; }

.px-error {
  display: none;
  padding: 14px 4vw;
  background: var(--violet);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.px-error.is-visible { display: block; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .px-nav { grid-template-columns: 1fr auto; height: auto; padding: 16px 5vw; gap: 12px 16px; }
  .px-brand { grid-area: 1 / 1; }
  .px-back { grid-area: 1 / 2; justify-self: end; }
  .px-nav > div { grid-area: 2 / 1 / auto / -1; gap: 14px; flex-wrap: wrap; }

  .px-rate-stamp { position: static; margin-left: auto; width: 96px; height: 96px; }
  .px-rate-flow { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .px-rate-flow > div > span { margin-bottom: 10px; }
  .px-rate-arrow { transform: rotate(90deg); padding: 0; font-size: 34px; }

  .px-rate-line { grid-template-columns: 1fr; }
  .px-line-name { padding: 14px 0 0; }
  .px-quick-rates { grid-template-columns: 1fr; }
  .px-quick-rates article { border-right: 0; border-bottom: 1px solid #343538; padding-left: 0; }
  .px-quick-rates article:last-child { border-bottom: 0; }

  .px-price-intro, .px-notice { grid-template-columns: 1fr; gap: 24px; }
  .px-section-label { grid-template-columns: 1fr; gap: 12px; }
  .px-grid, .px-recharge-list { grid-template-columns: 1fr; }
  .px-card { min-height: 0; }
  .px-card > a { margin-top: 32px; }
  .px-recharge { grid-template-columns: 1fr; gap: 40px; padding: 80px 5vw; }
  .px-footer { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .px-footer-links { justify-self: start; }
}
