/* ===============================
   THEME BASE (CLARO POR DEFECTO)
   =============================== */
:root{
  --bg:#ffffff;
  --panel:#f8fafc;
  --border:#e5e7eb;
  --text:#0b0f14;

  --blue:#2563eb;
  --cyan:#0ea5e9;
}

/* ===============================
   DARK MODE AUTOMÁTICO
   =============================== */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#020617;
    --panel:#0f1623;
    --border:#1f2933;
    --text:#e5e7eb;
  }
}

body{
  margin:0;
}

/*.nb-body{
  background: radial-gradient(1200px 600px at 70% 20%, #0b1b33 0%, var(--bg) 45%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}*/

.nb-navbar{
  background: rgba(2,6,23,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nb-dot{ color: var(--cyan); }

.nb-btn-primary{
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.3rem;
}
.nb-btn-primary:hover{ filter: brightness(1.1); }

.nb-badge{
  display:inline-block;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(59,130,246,.12);
  color:#93c5fd;
  border:1px solid rgba(59,130,246,.35);
}

.nb-gradient{
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.nb-card-mockup{
  width: 400px;
  height: 240px;
  border-radius: 26px;
  position: relative;
  margin-left: auto;
  margin-right: 60px;
  padding: 1.6rem;

  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    linear-gradient(135deg, #0b1220, #020617);

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    0 50px 120px rgba(0,0,0,.75),
    inset 0 0 0 1px rgba(255,255,255,.06);

  transform-style: preserve-3d;
  animation: floatCard 7s ease-in-out infinite;
}


.nb-chip{
  width:46px;height:34px;
  background:linear-gradient(135deg,#facc15,#eab308);
  border-radius:6px;
  margin:20px;
}

.nb-card-lines{
  position:absolute;
  bottom:24px;left:20px;
  width:120px;height:10px;
  background:#1f2933;border-radius:6px;
}

.nb-card-name{
  position:absolute;
  bottom:24px;right:20px;
  font-size:.75rem;color:#9ca3af;
}

.nb-float-note{
  position:absolute;
  bottom:0; right:20px;
  transform: translateY(40%);
  display:flex; gap:.6rem;
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:.6rem .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.nb-float-note i{
  color: var(--cyan);
  font-size:1.2rem;
}

.nb-metrics{
  padding:4rem 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.nb-metric{
  font-size:2.2rem;
  font-weight:700;
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  -webkit-background-clip:text;
  color:transparent;
}

.nb-superapp{
  padding:5rem 0 3rem;
}

.nb-features{
  padding:3rem 0 5rem;
}

.nb-feature-card{
  height:100%;
  padding:2rem;
  border-radius:18px;
  background: linear-gradient(180deg,#0f1623,#020617);
  border:1px solid var(--border);
  transition:.3s ease;
}

.nb-feature-card i{
  font-size:1.8rem;
  color: var(--cyan);
}

.nb-feature-card h5{
  margin-top:1rem;
  font-weight:600;
}

.nb-feature-card:hover{
  transform: translateY(-6px);
  box-shadow:0 20px 50px rgba(0,0,0,.6);
  border-color: rgba(59,130,246,.5);
}

.nb-footer{
  background: #020617;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.nb-footer h6{
  color: #e5e7eb;
}

.nb-footer a{
  color: #93c5fd;
  text-decoration: none;
}

.nb-footer a:hover{
  text-decoration: underline;
}

.nb-footer-divider{
  border-color: var(--border);
  margin: 2rem 0 1.5rem;
}

.nb-how{
  padding: 5rem 0;
  border-top: none; /* 👈 quitamos la línea */
  background: linear-gradient(180deg, transparent, rgba(14,165,233,.04), transparent);
}

.nb-step{
  height: 100%;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg,#0f1623,#020617);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: .3s ease;
}

.nb-step i{
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: .75rem;
}

.nb-step-number{
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .9rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 999px;
  padding: .2rem .6rem;
}

.nb-step h6{
  margin-top: .5rem;
  font-weight: 600;
}

.nb-step p{
  font-size: .95rem;
  color: #9ca3af;
}

.nb-step:hover{
  transform: translateY(-6px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.nb-testimonials{
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(59,130,246,.04), transparent);
}

.nb-testimonial-card{
  height: 100%;
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg,#0f1623,#020617);
  border: 1px solid var(--border);
  transition: .3s ease;
}

.nb-testimonial-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  border-color: rgba(59,130,246,.45);
}

.nb-stars{
  color: #facc15;
  letter-spacing: 2px;
  margin-bottom: .75rem;
}

.nb-testimonial-card p{
  color: #d1d5db;
  font-size: .95rem;
}

.nb-user{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.nb-user img{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nb-cta{
  padding: 6rem 0;
  background: radial-gradient(
    800px 400px at 50% 0%,
    rgba(59,130,246,.15),
    transparent 70%
  );
  border-top: 1px solid var(--border);
}

.nb-cta-box{
  max-width: 720px;
  margin: auto;
  padding: 3rem 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg,#0f1623,#020617);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.nb-card-mockup{
  width: 360px;
  height: 220px;
  border-radius: 22px;
  position: relative;
  margin-left: auto;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(135deg, #0b1220, #020617);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 40px 90px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(255,255,255,.05);
  transform: rotate(-6deg);
}

.nb-card-top{
  font-size: .95rem;
  color:#93c5fd;
}

.nb-card-top i{
  font-size:1.2rem;
  transform: rotate(90deg);
}

.nb-card-brand{
  font-weight: 600;
  letter-spacing: .6px;
}

.nb-chip{
  width: 54px;
  height: 38px;
  border-radius: 10px;
  margin: 1.4rem 0;
  background: linear-gradient(135deg,#fde047,#facc15,#eab308);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

.nb-card-number{
  letter-spacing: 3.5px;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  color:#e5e7eb;
}

.nb-card-bottom{
  font-size:.78rem;
}

.nb-card-type{
  padding:.2rem .6rem;
  border-radius:999px;
  background: rgba(59,130,246,.15);
  color:#93c5fd;
  border:1px solid rgba(59,130,246,.35);
}

.nb-arrow{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#020617;
  border:1px solid var(--border);
  color:#e5e7eb;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  transition:.2s ease;
}

.nb-arrow:hover{
  background:rgba(59,130,246,.15);
  border-color:rgba(59,130,246,.5);
}

/* Avatar para empresas / personas sin imagen */
.nb-company-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-weight:600;
  font-size:.85rem;
  flex-shrink:0;
}

/* Asegurar contraste en textos del testimonio */
.nb-testimonial-card strong{
  color:#e5e7eb;
}

.nb-testimonial-card small{
  color:#9ca3af;
}

@keyframes floatCard {
  0%   { transform: translateY(0) rotateX(0deg) rotateZ(-4deg); }
  50%  { transform: translateY(-14px) rotateX(3deg) rotateZ(-4deg); }
  100% { transform: translateY(0) rotateX(0deg) rotateZ(-4deg); }
}

@media (hover: hover){
  .nb-card-mockup:hover{
    transform: translateY(-18px) rotateX(6deg) rotateZ(-4deg) scale(1.02);
    box-shadow:
      0 70px 140px rgba(0,0,0,.85),
      inset 0 0 0 1px rgba(255,255,255,.08);
  }
}

@keyframes textFloat {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-6px); }
}

.nb-hero .col-lg-6.text-lg-start{
  animation: textFloat 8s ease-in-out infinite;
}

.nb-hero .btn{
  transition: transform .25s ease, box-shadow .25s ease;
}

.nb-hero .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59,130,246,.35);
}

/* ===============================
   REGISTRO – MEJORAS VISUALES
   =============================== */

/* Fondo más vivo
.nb-body {
  background:
    radial-gradient(600px 400px at 70% 20%, rgba(37,99,235,.15), transparent 60%),
    radial-gradient(500px 300px at 30% 80%, rgba(14,165,233,.12), transparent 60%),
    #020617;
} */

.nb-body{
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

/* Card tipo glass */
.nb-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: fadeUp 0.8s ease;
}

/* Animación entrada */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inputs más vivos */
.form-control {
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all .25s ease;
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.25);
  background: #fff;
}

/* Botón principal */
.nb-btn-primary {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: .3px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
  box-shadow: 0 15px 30px rgba(37,99,235,.35);
  transition: all .3s ease;
}

.nb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37,99,235,.45);
}

/* Badge informativo */
.nb-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  color: #93c5fd;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
}

/* ===============================
   REGISTRO SPLIT SCREEN
   =============================== */
/* Grid principal */
.nb-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Lado izquierdo */
.nb-register-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* Card del formulario */
.nb-register-left .nb-card {
  width: 100%;
  max-width: 420px;
}

/* Lado derecho */
.nb-register-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(37,99,235,.18), transparent 60%);
}

/* Texto grande */
.nb-register-right h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.nb-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtexto */
.nb-register-right p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 420px;
}

/* Responsive */
@media (max-width: 992px) {
  .nb-register-grid {
    grid-template-columns: 1fr;
  }

  .nb-register-right {
    display: none;
  }
}

/*Boton volver registro*/
.nb-back-arrow{
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;
  font-size: 18px;
  text-decoration: none;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);

  transition: all 0.25s ease;
}

.nb-back-arrow:hover{
  background: rgba(255,255,255,0.18);
  transform: translateX(-3px);
  color: #fff;
}

.nb-back-arrow{
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;
  font-size: 18px;
  text-decoration: none;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);

  transition: all 0.25s ease;
}

.nb-back-arrow:hover{
  background: rgba(255,255,255,0.16);
  transform: translateX(-3px);
  color: #fff;
}

/* ===============================
   DASHBOARD USUARIO
   =============================== */

.nb-dashboard{
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ===== SIDEBAR ===== */
.nb-sidebar{
  width: 260px;
  background: linear-gradient(180deg,#020617,#020617);
  border-right: 1px solid var(--border);
  padding: 28px 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nb-logo{
  font-size: 22px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 36px;
}

.nb-logo span{
  color: var(--cyan);
}

.nb-menu a{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  margin-bottom: 6px;

  color: rgba(229,231,235,.75);
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;

  transition: all .2s ease;
}

.nb-menu a i{
  font-size: 16px;
}

.nb-menu a:hover,
.nb-menu a.active{
  background: rgba(59,130,246,.15);
  color: #ffffff;
}

/* Logout */
.nb-logout{
  margin-top: 30px;
  color: #ef4444;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.nb-logout:hover{
  background: rgba(239,68,68,.15);
}

/* ===== CONTENIDO ===== */
.nb-content{
  flex: 1;
  padding: 36px;
  overflow-y: auto;
}

/* Header */
.nb-header h2{
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.nb-header p{
  color: #94a3b8;
  margin-bottom: 30px;
}

/* ===== SECCIONES ===== */
.nb-section{
  display: none;
}

.nb-section.active{
  display: block;
}

/* ===== TARJETAS ===== */
.nb-card{
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(14px);
}

/* ===== BADGE ESTADO ===== */
.nb-badge-success{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(34,197,94,.15);
  color: #22c55e;
}

/* ===== MOVIMIENTOS ===== */
.nb-movement{
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}

.nb-movement:last-child{
  border-bottom: none;
}

/* ===============================
   RESPONSIVE DASHBOARD
   =============================== */

@media (max-width: 768px){

  .nb-dashboard{
    flex-direction: column;
  }

  /* Sidebar se vuelve topbar */
  .nb-sidebar{
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nb-menu{
    display: flex;
    gap: 10px;
  }

  .nb-menu a{
    padding: 8px 10px;
    font-size: 13px;
  }

  .nb-menu a span{
    display: none;
  }

  .nb-content{
    padding: 20px 16px;
  }

  .row.g-4 > div{
    flex: 0 0 100%;
    max-width: 100%;
  }

}
/* ===============================
   FIX REAL RESPONSIVE MOBILE
   =============================== */

@media (max-width: 768px){

  /* El dashboard deja de ser columnas */
  .nb-dashboard{
    display: block;
    width: 100%;
  }

  /* OCULTAR sidebar completamente */
  .nb-sidebar{
    display: none !important;
  }

  /* Contenido ocupa todo */
  .nb-content{
    width: 100%;
    padding: 20px 16px;
  }

  /* Header más compacto */
  .nb-header h2{
    font-size: 1.4rem;
  }

  .nb-header p{
    font-size: 0.9rem;
  }

  /* Cards full width */
  .row.g-4 > div{
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Evitar scroll horizontal */
  body{
    overflow-x: hidden;
  }
}

/* ===============================
   TARJETA FLOTANTE FBU
   =============================== */

.nb-card-fbu{
  background: linear-gradient(135deg, #0b1220, #020617);
  color: #e5e7eb;
  position: relative;
}

/* Header */
.nb-card-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nb-card-bank{
  font-size: 1.3rem;
  font-weight: 700;
  color: #a3e635;
}

/* Digital debit arriba derecha */
.nb-card-debit{
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: .7rem;
  color: #9ca3af;
  letter-spacing: .4px;
  text-transform: lowercase;
}

/* Chip */
.nb-card-chip-row{
  margin: 22px 0;
}

/* Usuario */
.nb-card-user{
  font-size: .85rem;
  letter-spacing: 1px;
  color: #e5e7eb;
  margin-bottom: 22px;
}

/* Footer Mastercard */
.nb-card-footer{
  position: absolute;
  bottom: 18px;
  right: 18px;
}

/* Mastercard */
.nb-mastercard{
  position: relative;
  width: 64px;   /* antes 42px */
  height: 40px;  /* antes 26px */
}

.nb-mastercard .mc{
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  opacity: .95;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.nb-mastercard .mc-red{
  background: #eb001b;
  left: 0;
}

.nb-mastercard .mc-orange{
  background: #f79e1b;
  right: 0;
}

/*BALANCE CLICKEABLE*/
.nb-clickable{
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nb-clickable:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59,130,246,.25);
}

/* ===============================
   HERO CON IMAGEN ANCLADA
   =============================== */

.nb-hero{
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Imagen SOLO en hero */
.nb-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.85) 38%,
      rgba(255,255,255,0) 70%
    ),
    url("../images/fondo.png") center right / cover no-repeat;
  z-index:0;
}

/* Dark mode hero */
@media (prefers-color-scheme: dark){
  .nb-hero::before{
    background:
      linear-gradient(
        90deg,
        rgba(2,6,23,.96) 0%,
        rgba(2,6,23,.85) 38%,
        rgba(2,6,23,0) 70%
      ),
      url("../images/fondo.png") center right / cover no-repeat;
  }
}

/* Contenido encima */
.nb-hero > .container{
  position: relative;
  z-index: 1;
}

/* ==================================
   TEXTO FIJO PARA TARJETAS OSCURAS
   ================================== */

.nb-feature-card,
.nb-step,
.nb-testimonial-card,
.nb-card {
  color: #e5e7eb;
}

.nb-feature-card p,
.nb-step p,
.nb-testimonial-card p {
  color: #cbd5f5;
}

/* ===============================
   LOGIN / REGISTRO – TEXTO FIJO
   =============================== */

.nb-register-left .nb-card,
.nb-register-right {
  color: #e5e7eb;
}

.nb-register-right p{
  color: #cbd5f5;
}

/* ===============================
   LOGIN BRAND (TOP RIGHT)
   =============================== */

.nb-login-brand{
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* Claro → negro */
@media (prefers-color-scheme: light){
  .nb-login-brand{
    color: #020617;
  }
}

/* Oscuro → blanco */
@media (prefers-color-scheme: dark){
  .nb-login-brand{
    color: #e5e7eb;
  }
}

.nb-login-brand span{
  color: var(--cyan);
}

/* ===============================
   LOGIN SEGÚN TEMA REAL
   =============================== */

/* MODO CLARO */
@media (prefers-color-scheme: light){
  .nb-register{
    background: #ffffff;
  }

  /* Panel derecho gris suave */
  .nb-register-right{
    background: #f3f4f6;
  }
}

/* MODO OSCURO */
@media (prefers-color-scheme: dark){
  .nb-register{
    background:
      radial-gradient(600px 400px at 70% 20%, rgba(37,99,235,.15), transparent 60%),
      radial-gradient(500px 300px at 30% 80%, rgba(14,165,233,.12), transparent 60%),
      #020617;
  }

  .nb-register-right{
    background:
      radial-gradient(600px 400px at 20% 20%, rgba(37,99,235,.18), transparent 60%),
      radial-gradient(500px 300px at 80% 80%, rgba(124,58,237,.18), transparent 60%),
      #020617;
  }
}

/* ===============================
   BACK ARROW SEGÚN TEMA
   =============================== */

/* Modo claro → flecha negra */
@media (prefers-color-scheme: light){
  .nb-back-arrow{
    color: #020617;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.12);
  }

  .nb-back-arrow:hover{
    background: rgba(0,0,0,0.08);
  }

  .nb-register-right{
    background:
      radial-gradient(
        600px 400px at 30% 20%,
        rgba(37,99,235,.10),
        transparent 60%
      ),
      radial-gradient(
        500px 300px at 80% 80%,
        rgba(14,165,233,.08),
        transparent 60%
      ),
      #e5e7eb; /* gris más oscuro */
  }

  .nb-register-right h1{
    color: #0f172a;
  }

  .nb-register-right p{
    color: #475569;
  }
}

.amount-positive{
  color:#16a34a !important; /* verde */
  font-weight:700;
}

.amount-negative{
  color:#dc2626 !important; /* rojo */
  font-weight:700;
}

/* ===============================
   FIX CONTRASTE MODO CLARO – DASHBOARD USER
   =============================== */
@media (prefers-color-scheme: light){

  /* Cards principales */
  .nb-card{
    color: #0f172a; /* gris oscuro legible */
  }

  /* Títulos dentro de cards */
  .nb-card h1,
  .nb-card h2,
  .nb-card h3,
  .nb-card h4,
  .nb-card h5,
  .nb-card h6{
    color: #020617;
  }

  /* Textos secundarios */
  .nb-card p,
  .nb-card span,
  .nb-card small,
  .nb-card label{
    color: #475569;
  }
}

@media (prefers-color-scheme: light){

  /* Estado del producto */
  .nb-badge-success{
    color: #166534;
    background: rgba(34,197,94,.18);
  }

  /* Movimientos */
  .nb-movement{
    color: #0f172a;
  }

  .nb-movement span{
    color: #475569;
  }
}

@media (prefers-color-scheme: light){

  /* Cards de impuestos */
  #impuestos .nb-card{
    color: #0f172a;
  }

  #impuestos h4,
  #impuestos h5{
    color: #020617;
  }

  #impuestos p{
    color: #475569;
  }
}

@media (prefers-color-scheme: light){

  /* Labels del formulario */
  .nb-section label{
    color: #020617;
    font-weight: 500;
  }

  /* Placeholders */
  .form-control::placeholder{
    color: #94a3b8;
  }
}

/* ==================================
   MODAL BALANCE – FIX MODO CLARO
   ================================== */
@media (prefers-color-scheme: light){

  /* Fondo del modal */
  .modal-content,
  .nb-modal,
  .nb-modal .nb-card{
    background: #ffffff !important;
    color: #020617 !important;
    border: 1px solid #e5e7eb;
    backdrop-filter: none;
  }

  /* Header del modal */
  .modal-header,
  .nb-modal-header{
    border-bottom: 1px solid #e5e7eb;
  }

  .modal-title{
    color: #020617;
  }

  /* Textos generales */
  .modal-body,
  .modal-body p,
  .modal-body span,
  .modal-body small{
    color: #475569;
  }

  /* Títulos internos */
  .modal-body h5,
  .modal-body h6,
  .modal-body strong{
    color: #020617;
  }

  /* Líneas divisorias */
  .modal-body hr{
    border-color: #e5e7eb;
  }
}

@media (prefers-color-scheme: light){

  .amount-positive{
    color: #16a34a !important;
  }

  .amount-negative{
    color: #dc2626 !important;
  }
}

@media (prefers-color-scheme: light){

  .modal-header .btn-close{
    filter: none;
    opacity: .7;
  }

  .modal-header .btn-close:hover{
    opacity: 1;
  }
}

/* ==================================
   MODAL BALANCE – DIVISORES MODO CLARO
   ================================== */
@media (prefers-color-scheme: light){

  /* Líneas generales del modal */
  .modal-content hr,
  .modal-body hr{
    border-color: #e5e7eb;
  }

  /* Separadores entre secciones */
  .modal-content .border-bottom,
  .modal-content .border-top{
    border-color: #e5e7eb !important;
  }

  /* Separadores de cada movimiento */
  .modal-content .nb-movement,
  .modal-content .movement-row{
    border-bottom: 1px solid #e5e7eb;
  }

}

/* ==================================
   HERO BADGE – FIX MODO CLARO
   ================================== */
@media (prefers-color-scheme: light){

  .nb-badge{
    background: rgba(37, 99, 235, 0.15); /* azul más presente */
    color: #1e40af;                     /* azul oscuro legible */
    border: 1px solid rgba(37, 99, 235, 0.35);
  }

}

/* ==================================
   CTA FINAL – TEXTO VISIBLE EN MODO CLARO (FIX REAL)
   ================================== */
@media (prefers-color-scheme: light){

  .nb-cta-box{
    color: #e5e7eb !important;
  }

  .nb-cta-box h2{
    color: #ffffff !important;
  }

  .nb-cta-box p,
  .nb-cta-box span,
  .nb-cta-box .small{
    color: #cbd5f5 !important;
  }

}


/* ==================================
   APP ANDROID E IOS
   ================================== */

.nb-btn-download {
  text-decoration: none !important;
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nb-app-download h2 {
  color: #fff;
}

.nb-app-download p {
  color: #b0b8c5;
}

.nb-app-download .btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
}

.nb-app-download .btn i {
  margin-right: 8px;
}

/* Hover más elegante */
.nb-btn-download:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

@media (prefers-color-scheme: light){

  .nb-app-download{
    background: #f8fafc; /* fondo claro elegante */
  }

  .nb-app-download h2{
    color: #020617; /* negro real */
  }

  .nb-app-download p{
    color: #475569; /* gris legible */
  }

  /* Botones */
  .nb-app-download .btn{
    border: 1px solid #d1d5db;
    color: #020617;
    background: #ffffff;
  }

  .nb-app-download .btn:hover{
    background: #f1f5f9;
    border-color: #cbd5f5;
  }

}