/* Roraimax Remesas — cotizador (versión compacta) */
.rrxq {
  --rx-blue: #0f4a82;
  --rx-light: #518cc4;
  --rx-ink: #12263d;
  --rx-muted: #62748a;
  --rx-line: #e1e9f2;
  --rx-bg: #f3f7fb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--rx-ink);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
}
.rrxq *, .rrxq *::before, .rrxq *::after { box-sizing: border-box; }
.rrxq [hidden] { display: none !important; }

.rrxq .rrxq-card {
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(7, 30, 60, 0.30), 0 1px 3px rgba(7, 30, 60, 0.10);
}
.rrxq .rrxq-card.rrxq-pulse { animation: rrxq-pulse 1.1s ease-out 1; }
@keyframes rrxq-pulse {
  0% { box-shadow: 0 0 0 0 rgba(81, 140, 196, 0.85), 0 18px 44px rgba(7, 30, 60, 0.30); }
  100% { box-shadow: 0 0 0 18px rgba(81, 140, 196, 0), 0 18px 44px rgba(7, 30, 60, 0.30); }
}

/* Pestañas */
.rrxq .rrxq-tabs { display: flex; gap: 3px; background: var(--rx-bg); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.rrxq .rrxq-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  height: 40px; padding: 0 6px; border-radius: 10px;
  font-weight: 600; font-size: 16.25px; line-height: 1; font-family: inherit; color: var(--rx-muted);
  transition: background .18s, color .18s, box-shadow .18s;
}
.rrxq .rrxq-tab.is-active { background: #fff; color: var(--rx-blue); box-shadow: 0 1px 6px rgba(15, 74, 130, 0.16); }
.rrxq .rrxq-tab:focus-visible, .rrxq .rrxq-dest:focus-visible, .rrxq .rrxq-chips button:focus-visible, .rrxq .rrxq-cta:focus-visible { outline: 2px solid var(--rx-light); outline-offset: 2px; }

.rrxq .rrxq-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--rx-muted); margin: 10px 0 5px; }
.rrxq [data-panel] > .rrxq-label:first-child { margin-top: 0; }

/* Destinos: una sola fila compacta */
.rrxq .rrxq-dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rrxq .rrxq-dest {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 6px; border: 1.5px solid var(--rx-line); border-radius: 10px; background: #fff; cursor: pointer;
  font-weight: 600; font-size: 15.5px; line-height: 1; font-family: inherit; color: var(--rx-ink); transition: border-color .15s, background .15s;
}
.rrxq .rrxq-dest img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.rrxq .rrxq-dest:hover { border-color: var(--rx-light); }
.rrxq .rrxq-dest.is-active { border-color: var(--rx-blue); background: #eef5fc; color: var(--rx-blue); }

/* Campos */
.rrxq .rrxq-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--rx-bg); border: 1.5px solid var(--rx-line); border-radius: 12px;
  padding: 0 14px; height: 56px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.rrxq .rrxq-input:focus-within { border-color: var(--rx-light); box-shadow: 0 0 0 3px rgba(81, 140, 196, 0.18); background: #fff; }
.rrxq .rrxq-input input {
  flex: 1; min-width: 0; width: 100%; height: 100%;
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
  font-weight: 800; font-size: 27.5px; line-height: 1; font-family: inherit; color: var(--rx-ink) !important; padding: 0 !important; margin: 0;
}
.rrxq .rrxq-input input::placeholder { color: #a9b7c7; font-weight: 700; }
.rrxq .rrxq-prefix, .rrxq .rrxq-unit { font-weight: 700; color: var(--rx-muted); font-size: 17.5px; flex: none; }
.rrxq .rrxq-input img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--rx-line); }
.rrxq .rrxq-input-recv { background: #eef5fc; border-color: #d5e5f4; }
.rrxq .rrxq-input-recv input { color: var(--rx-blue) !important; }
.rrxq input[type=number]::-webkit-inner-spin-button, .rrxq input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rrxq input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.rrxq .rrxq-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rrxq .rrxq-chips button {
  border: 1px solid var(--rx-line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; line-height: 1; font-family: inherit; color: var(--rx-blue); transition: background .15s, border-color .15s;
}
.rrxq .rrxq-chips button:hover { background: #eef5fc; border-color: var(--rx-light); }

/* Tasa: línea discreta, sin caja */
.rrxq .rrxq-pref { margin-top: 8px; text-align: center; font-size: 14.5px; font-weight: 700; color: #fff; padding: 5px; border-radius: 8px; background: linear-gradient(135deg, #0f4a82, #518cc4); }
.rrxq .rrxq-rate { margin: 8px 2px 0; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--rx-muted); min-height: 15px; }
.rrxq .rrxq-pref + .rrxq-rate { margin-top: 5px; }

/* Dólares al cambio */
.rrxq .rrxq-bcv { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 12px; background: var(--rx-bg); border-radius: 10px; font-size: 15px; color: var(--rx-muted); font-weight: 600; }
.rrxq .rrxq-bcv strong { color: var(--rx-ink); font-size: 16.25px; }
.rrxq .rrxq-bcv-date { text-align: right; font-size: 13px; color: #8b9aac; margin: 3px 3px 0; min-height: 13px; }
.rrxq .rrxq-usdresult { margin-top: 8px; background: #eef5fc; border-radius: 12px; padding: 10px 12px; }
.rrxq .rrxq-usdresult .rrxq-label { margin: 0 0 2px; }
.rrxq .rrxq-big { font-size: 32.5px; font-weight: 800; color: var(--rx-blue); line-height: 1.15; word-break: break-word; }
.rrxq .rrxq-eq { font-size: 15px; color: var(--rx-muted); margin-top: 2px; }

/* Resumen de la cotización */
.rrxq .rrxq-summary { margin-top: 12px; border: 1.5px dashed #bcd2e8; border-radius: 12px; padding: 9px 12px; background: #fbfdff; }
.rrxq .rrxq-sum-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rx-blue); margin-bottom: 4px; }
.rrxq .rrxq-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 2px 0; color: var(--rx-muted); }
.rrxq .rrxq-row strong { color: var(--rx-ink); text-align: right; font-weight: 700; }
.rrxq .rrxq-ref { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--rx-line); font-size: 13px; color: #8b9aac; }

/* Botón de WhatsApp */
.rrxq .rrxq-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; height: 54px; padding: 0 12px; border-radius: 13px;
  background: linear-gradient(135deg, #518cc4 0%, #0f4a82 100%);
  color: #fff !important; text-decoration: none !important; font-size: 18px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 74, 130, 0.32); transition: transform .15s, box-shadow .15s;
}
.rrxq .rrxq-cta:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(15, 74, 130, 0.38); }
.rrxq .rrxq-cta.is-disabled { background: #c9d6e4; box-shadow: none; cursor: not-allowed; transform: none; }
.rrxq .rrxq-wa { width: 24px; height: 24px; color: #fff; flex: none; }
.rrxq .rrxq-hint { margin: 8px 0 0; text-align: center; font-size: 14.5px; color: var(--rx-muted); min-height: 15px; }
.rrxq .rrxq-hint.is-warn { color: #b3261e; font-weight: 600; }
.rrxq .rrxq-terms { margin: 6px 0 0; text-align: center; font-size: 13px; color: #8b9aac; line-height: 1.4; }
.rrxq .rrxq-terms a { color: var(--rx-blue); text-decoration: underline; }

@media (max-width: 400px) {
  .rrxq .rrxq-cta { font-size: 15px; gap: 8px; }
  .rrxq .rrxq-wa { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .rrxq { max-width: 100%; }
  .rrxq .rrxq-card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rrxq .rrxq-card.rrxq-pulse { animation: none; }
  .rrxq * { transition: none !important; }
}
