/* ===== BASE GLOBAL RecargasPaCuba ===== */

/* Fuentes globales */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --left: #0b63d1;
  --right: #19c6c3;
  --accent: #ffb13b;
  --danger: #ff4b5c;
  --success: #00c897;
  --bg-card: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.18);
  --text-main: #ffffff;
  --text-muted: #e0f3ff;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.25);
  --radius-xl: 22px;
  --bg-top: #2fb8d6;
  --bg-mid: #2ba6d0;
  --bg-bottom: #1aa0c3;
}

/* Reset bÇ­sico + anti-flash */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  animation: none !important;
  transition: none !important;
}

html {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, #0b63d1 0%, #19c6c3 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: inherit;
}

body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: inherit;
}

/* Contenedor base de la app */
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tarjetas genÇ¸ricas */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  backdrop-filter: blur(16px);
}
.historial-container .card--gradient {
  width: 100%;
  box-sizing: border-box;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0b5bd3, #28c6db);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(3, 69, 170, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-full {
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-lg {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
}

.btn-accent {
  background: linear-gradient(135deg, #ffe176, #ffb13b);
  color: #321800;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Inputs base */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.input-group label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.input-group input,
.input-group select {
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.input-group input::placeholder,
.input-group select::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Texto utilitario */
.text-muted {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Estado online genÇ¸rico */
.estado-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.estado-online__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

/* Toasters (para B6, pero lo dejamos preparado) */
#toast-container {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mt-3 {
  margin-top: 20px;
}
