:root {
  --primary-color: #00c2ff;
  --accent-color: #0077ff;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --bg-color: #0e0e0e;
  --card-color: #1a1a1a;
  --text-color: #ffffff;
  --muted-text: #aaa;
  --border-color: #333;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* RESET + FONDO */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh; 
  background:  #0e0e0e;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* ✅ permite scroll si lo necesita */
}

.main-wrapper {
  height: 100dvh; /* ✅ en lugar de 100% o 100vh clásico */
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}


/* LAYOUT PRINCIPAL */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 1.2rem);
  padding-bottom: 0; /* esto lo dejamos en la scroll-area */
}



.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom, 0));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
  scroll-padding-bottom: 6rem;
}
.scroll-area::-webkit-scrollbar {
  display: none;
}


/* ENCABEZADO */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  margin-top: 0.6rem; /* 👈 esto lo agregás */
  padding-top: env(safe-area-inset-top, 1.2rem); /* 👈 esto lo agregás */
}


.header .icon {
  font-size: 1.5rem;
}
.header .title {
  font-size: 1.3rem;
  font-weight: 600;
}

/* EFECTO VISUAL */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}


/* BADGE / TAGS */
.badge {
  background: linear-gradient(to right, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}


/* SECCIONES */
.section {
  margin-bottom: 1.4rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.5rem;
}

/* SALDO BOX */
.saldo-box {
  background: radial-gradient(ellipse at top left, #1b1b1b 40%, #111);
  padding: 1rem 1.2rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.saldo-box div {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* BOTONES */
.fixed-buttons {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(13, 13, 13, 0.95);
  padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
  border-top: 1px solid #222;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.btn-row {
  display: flex;
  gap: 0.6rem;
}

.btn {
  background: linear-gradient(to right, #00c2ff, #0072ff);
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}
.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 194, 255, 0.3);
}
.btn:active {
  transform: scale(0.98);
}



.primary-btn {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.primary-btn:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #00d4ff, #3399ff);
}

.secondary-btn {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}
.secondary-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.01);
}

/* INPUTS Y SELECTS */


input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
option {
  background-color: #1a1a1a;
  color: white;
}

/* FILTROS */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}
.filter {
  padding: 8px 12px;
  border-radius: 20px;
  background-color: #222;
  color: white;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  cursor: pointer;
}
.filter.active {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* MOVIMIENTOS */
.movement-card {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.movement-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}
.movement-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* TAGS DE MOVIMIENTOS */
.tag {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 6px;
}
.tag.ingreso {
  background-color: rgba(0, 255, 100, 0.2);
  color: #00ff64;
}
.tag.egreso {
  background-color: rgba(255, 80, 80, 0.2);
  color: #ff4f4f;
}

/* UTILIDADES */
.status-message {
  margin-top: 1rem;
  text-align: center;
  color: var(--primary-color);
  font-size: 0.95rem;
}
.error {
  color: var(--error-color);
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}
.hidden {
  display: none !important;
}
.actions-module {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0));
  background: rgba(13,13,13,0.92);
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}


.action-card {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  text-align: center;
  padding: 0.6rem 0.4rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
  min-height: 72px;
  justify-content: center;

}

.action-card:hover {
  transform: scale(1.03);
  box-shadow: inset 0 0 12px rgba(0,194,255,0.08);
}

.action-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.safe-container {
  padding: env(safe-area-inset-top, 1.2rem) 1rem env(safe-area-inset-bottom, 1.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #0e0e0e, #151515);
}

.card-centered {
  background: #121212;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: fadeInUp 0.6s ease both;
}

.card-centered h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.card-centered p {
  color: var(--muted-text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.button-wide {
  display: block;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  background: linear-gradient(to right, #00c2ff, #0077ff);
  color: white;
  border: none;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.button-wide:active {
  transform: scale(0.98);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* base visual de la bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 15, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
  z-index: 999;
}


/* botón de nav */
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.75;
}
.nav-btn:hover {
  opacity: 1;
}
.nav-btn:active {
  transform: scale(0.97);
}

/* ícono base */
.nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* cuando está activo */
.nav-btn.active {
  opacity: 1;
  font-weight: 600;
}
.nav-btn.active .nav-icon {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 30%;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-color);
}

.glass-card {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.05);
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---- Agregar Movimiento refinado ---- */




.neon-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  background: rgba(30, 30, 30, 0.9);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 4px rgba(0, 255, 255, 0.05);
}


.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn.pulse {
  background: linear-gradient(to right, #00d2ff, #3a7eff);
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.2);
}

.pulse {
  animation: pulseBtn 2.4s ease-in-out infinite;
}

@keyframes pulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(0, 194, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0);
  }
}

.status-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #00f0ff;
}

#feedback {
  margin-top: 20px;
  text-align: center;
  position: relative;
  height: 40px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #00f0ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.checkmark {
  display: inline-block;
  font-size: 2.2rem;
  color: #2ecc71;
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.safe-container {
  padding: env(safe-area-inset-top, 1.2rem) 1.2rem env(safe-area-inset-bottom, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.main-card {
  background-color: #292929;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.sub {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.error {
  margin-top: 1.5rem;
  color: #ff4d4d;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.logo-gif {
  width: 250px;
  height: auto;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s ease both;
}
.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
  margin-top: 0.4rem;
}

.logo-header-img {
  height: 40px;
  width: auto;
  animation: fadeInUp 0.6s ease both;
}

.logo-img {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 220px; /* podés subirlo para agrandarlo */
  width: 100%;
  border-radius: 12px;
}
