/* --- ESTILOS GENERALES Y LAYOUT --- */
:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(15, 23, 42, 0.85);
  --border-color: rgba(255, 255, 255, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-green: #22c55e;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-image {
  background-image: url('./background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg-cover {
  background-size: cover;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- TOPBAR & BRAND --- */
.topbar {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.top-link:hover {
  color: #ffffff;
}

/* --- MENÚ DE IDIOMAS --- */
.lang-menu {
  position: relative;
}

.lang-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
}

.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  list-style: none;
  padding: 0.25rem;
  z-index: 100;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.lang-menu.open .lang-list {
  display: block;
}

.lang-item {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- NAVEGACIÓN --- */
.nav {
  margin: 1.5rem 0 0.5rem 0;
}

.nav-inner {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.nav-link.active, .nav-link:hover {
  background: var(--card-bg);
  color: #ffffff;
  border-bottom-color: transparent;
}

.nav-link.right {
  margin-left: auto;
}

/* --- TARJETAS --- */
.grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* --- FILAS DE ENTRADA --- */
.row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .row-grid {
    grid-template-columns: 1fr;
  }
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.row-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

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

.addon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.addon svg {
  width: 22px;
  height: 22px;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.input-group input[readonly] {
  color: var(--accent-green);
  cursor: default;
}

/* --- MÉTODOS DE PAGO --- */
.pay-methods {
  margin: 1.25rem 0;
}

.pay-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.pay-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pay-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* --- CALCULADORA SIMÉTRICA Y TITULOS EN BLANCO/CLARO --- */
.total-display-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  width: 100%;
}

.total-display-grid.has-ves {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 580px) {
  .total-display-grid.has-ves {
    grid-template-columns: 1fr;
  }
}

.total-box {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
}

/* TITULOS TOTAL USD Y TOTAL YOU RECEIVE (USD) EN BLANCO OSCURO / GRIS SUAVE */
.total-box .total-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important; /* Blanco oscuro / Gris mate suavizado */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

/* INPUTS DE RESULTADOS */
.total-box .total-value {
  color: #38bdf8 !important; /* Cyan resplandeciente */
  background: transparent !important;
  border: none !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-family: inherit;
}

/* --- BOTÓN PRINCIPAL --- */
button.primary {
  width: 100%;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 0.2s;
}

button.primary:hover {
  background: #0369a1;
}

/* --- FAQ & FOOTER --- */
.faq-list details {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.faq-list summary {
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: #ffffff;
}

.faq-list .answer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}