/* AJUSTES PRO · DISEÑO DASHBOARD FINAL */

.ajustes-dashboard-page{
  max-width:1480px;
  margin:0 auto;
  display:grid;
  gap:16px;
  color:var(--heading);
}

.ajustes-dashboard-page *,
.ajustes-dashboard-page *::before,
.ajustes-dashboard-page *::after{
  box-sizing:border-box;
}

.ajustes-hero,
.ajustes-card,
.ajustes-kpis article,
.ajustes-savebar{
  border:1px solid var(--line-soft);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
}

.ajustes-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:26px 32px;
}

.ajustes-hero-main{
  display:flex;
  align-items:center;
  gap:22px;
}

.ajustes-hero-icon{
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  flex:0 0 86px;
  border-radius:28px;
  background:var(--primary-soft);
  font-size:42px;
}

.ajustes-hero span,
.ajustes-card-head span{
  display:block;
  margin-bottom:8px;
  color:var(--primary);
  font-size:11px;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.ajustes-hero h1{
  margin:0;
  font-size:52px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.06em;
}

.ajustes-hero p{
  max-width:760px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.4;
  font-weight:800;
}

.ajustes-hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px;
}

.ajustes-dashboard-page .pro-btn,
.ajustes-dashboard-page .ghost-btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  cursor:pointer;
  white-space:nowrap;
}

.ajustes-dashboard-page .pro-btn{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),#10b981);
  box-shadow:0 14px 28px rgba(4,120,87,.20);
}

.ajustes-dashboard-page .ghost-btn{
  border:1px solid var(--line-soft);
  background:#fff;
  color:var(--primary);
}

.ajustes-dashboard-page .danger{
  color:#b91c1c;
}

/* KPIS */
.ajustes-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.ajustes-kpis article{
  min-height:118px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 22px;
}

.ajustes-kpis article > span{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:var(--primary-soft);
  font-size:34px;
}

.ajustes-kpis small{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.ajustes-kpis strong{
  display:block;
  margin-top:5px;
  font-size:34px;
  line-height:1;
  font-weight:1000;
}

.ajustes-kpis em{
  display:inline-flex;
  margin-top:7px;
  padding:5px 13px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:12px;
  font-style:normal;
  font-weight:950;
}

/* FORM */
#ajustesProForm{
  display:grid;
  gap:14px;
}

.ajustes-main-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.ajustes-bottom-grid{
  display:grid;
  grid-template-columns:1.05fr 1.55fr;
  gap:16px;
  align-items:stretch;
}

.ajustes-side-stack{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.ajustes-card{
  padding:22px 24px;
}

.ajustes-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.ajustes-card-head h3{
  margin:0;
  font-size:26px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.04em;
}

.ajustes-card-head strong{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  white-space:nowrap;
}

.ajustes-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.ajustes-form-grid-2{
  align-content:start;
}

.ajustes-dashboard-page .form-field{
  display:grid;
  gap:7px;
}

.ajustes-dashboard-page label{
  color:var(--muted);
  font-size:10px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ajustes-dashboard-page input{
  width:100%;
  min-height:46px;
  padding:0 14px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:#fff;
  color:var(--heading);
  font-size:13px;
  font-weight:850;
}

/* MAESTRO */
.ajustes-master-list{
  display:grid;
  gap:10px;
}

.ajustes-master-list article{
  min-height:74px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 180px;
  align-items:center;
  gap:12px;
  padding:11px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.ajustes-master-list article > span,
.ajustes-backup-box > span,
.ajustes-clean-list .crm-action-btn > span{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:var(--primary-soft);
  font-size:26px;
}

.ajustes-master-list strong,
.ajustes-backup-box strong,
.ajustes-clean-list strong{
  display:block;
  color:var(--heading);
  font-size:13px;
  font-weight:1000;
}

.ajustes-master-list small,
.ajustes-backup-box small,
.ajustes-clean-list small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
  font-weight:800;
}

.ajustes-master-list .ghost-btn{
  width:100%;
  min-height:38px;
}

/* BACKUP */
.ajustes-backup-box{
  min-height:150px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 160px;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:20px;
  background:
    radial-gradient(circle at 90% 10%,rgba(25,165,125,.12),transparent 34%),
    #f8fafc;
}

.ajustes-backup-actions{
  display:grid;
  gap:10px;
}

.ajustes-backup-actions .pro-btn,
.ajustes-backup-actions .ghost-btn{
  width:100%;
  min-height:40px;
}

/* CLEAN */
.ajustes-clean-list{
  display:grid;
  gap:10px;
}

.ajustes-clean-list .crm-action-btn{
  width:100%;
  min-height:74px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 20px;
  align-items:center;
  gap:12px;
  padding:11px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:#fff;
  color:var(--heading);
  text-align:left;
  cursor:pointer;
}

.ajustes-clean-list .crm-action-btn::after{
  content:"›";
  color:var(--muted);
  font-size:28px;
  font-weight:400;
}

/* SAVE */
.ajustes-savebar{
  position:sticky;
  bottom:10px;
  z-index:5;
  display:flex;
  justify-content:flex-end;
  padding:12px 20px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
}

.ajustes-savebar .pro-btn{
  min-width:250px;
  min-height:52px;
  font-size:14px;
}

/* RESPONSIVE */
@media(max-width:1280px){
  .ajustes-main-grid,
  .ajustes-bottom-grid,
  .ajustes-side-stack{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .ajustes-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .ajustes-hero h1{
    font-size:36px;
  }

  .ajustes-kpis,
  .ajustes-form-grid,
  .ajustes-master-list article,
  .ajustes-backup-box{
    grid-template-columns:1fr;
  }
}
/* AJUSTES · ESTADO SISTEMA Y CIERRE */

.ajustes-system-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.ajustes-system-strip article{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--line-soft);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.ajustes-system-strip article > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  border-radius:15px;
  background:var(--primary-soft);
  font-size:22px;
}

.ajustes-system-strip small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
}

.ajustes-system-strip strong{
  display:block;
  margin-top:3px;
  color:var(--heading);
  font-size:17px;
  font-weight:1000;
}

.ajustes-savebar{
  align-items:center;
  justify-content:space-between !important;
}

.ajustes-savebar strong{
  display:block;
  color:var(--heading);
  font-size:14px;
  font-weight:1000;
}

.ajustes-savebar small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

@media(max-width:1180px){
  .ajustes-system-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}