:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --success: #10B981;
  --bg-slate: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-xl: 20px;
  --radius-lg: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-slate);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Contenedor móvil restringido para experiencia nativa */
.mobile-app-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 35px rgba(0,0,0,0.06);
}

.screen-view {
  display: none;
  flex: 1;
  padding: 20px 18px 90px 18px;
  overflow-y: auto;
}

.screen-view.active {
  display: block;
}

/* Header de la App */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-badge .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.btn-icon {
  background: var(--bg-slate);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

/* Tarjeta Billetera Principal */
.wallet-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px -6px rgba(49, 46, 129, 0.4);
  margin-bottom: 22px;
}

.wallet-card::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.wallet-card .wallet-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #A5B4FC;
  font-weight: 600;
  margin-bottom: 6px;
}

.wallet-card .balance-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-card .balance-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

.vueltito-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  border: 1.5px solid #FCD34D;
}

.wallet-card .balance-ars {
  font-size: 14px;
  color: #CBD5E1;
}

.wallet-card .wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-wallet-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wallet-action:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.22);
}

/* Secciones y Tarjetas */
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease;
}

.card-item:active {
  transform: scale(0.98);
}

/* Barra de Navegación Inferior Móvil */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 20%;
  transition: color 0.2s ease;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.nav-tab.active {
  color: var(--primary);
}

.nav-tab.active svg {
  stroke: var(--primary);
}

/* Vistas de Autenticación */
.auth-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 22px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 15px;
  outline: none;
  background-color: var(--bg-slate);
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #FFFFFF;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}