.config-view{
  min-height: 100dvh;
  background: #e9f0f3;
  padding: calc(12px + env(safe-area-inset-top)) 16px 18px;
}

.cfg-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 10px;
}
.cfg-header .btn-back, .cfg-header .btn-menu{
  width:36px; height:36px; border:none; border-radius:10px;
  background:#0a5c73; color:#fff; font-size:18px;
  display:grid; place-items:center;
}
.cfg-logo{ height:28px; }

.cfg-title{
  color:#0a4150; font-size:20px; font-weight:700; margin: 10px 0 12px;
}

.cfg-list{ display:flex; flex-direction:column; gap:12px; }

.cfg-item{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:14px 16px;
  background:#fff; color:#0a4150;
  border:none; border-radius:14px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  text-align:left; font-size:15px; font-weight:600;
}
.cfg-item .ico{ width:26px; text-align:center; font-size:18px; }
.cfg-item.active{
  background:#1fa0b2; color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.cfg-item.danger{ color:#0a4150; }

@media (min-width:480px){
  .config-view{ max-width:420px; margin:0 auto; border-radius:16px; }
}

/* ===============================
   MODAL CAMBIO DE CONTRASEÃ‘A
=============================== */

.modal-pass{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.modal-pass.hidden{
  display: none;
}

.modal-pass .modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(10, 65, 80, .45);
  backdrop-filter: blur(2px);
}

.modal-pass .modal-box{
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  z-index: 1;
  animation: modalIn .18s ease-out;
}

.modal-pass h3{
  margin: 0 0 6px;
  color: #0a4150;
  font-size: 18px;
  font-weight: 700;
}

.modal-pass .muted{
  margin: 0 0 14px;
  font-size: 14px;
  color: #5f7d88;
}

.modal-pass .campo{
  margin-bottom: 12px;
}

.modal-pass .input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dbe6ea;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.modal-pass .input:focus{
  border-color: #1fa0b2;
  box-shadow: 0 0 0 2px rgba(31,160,178,.15);
}

.modal-pass .btn{
  margin-top: 6px;
}

/* ====== Acordeones ====== */
.cfg-acc{ border-radius:14px; }

.cfg-acc-btn{
  position: relative;
  justify-content: space-between;
}

.cfg-acc-btn .txt{ flex: 1; }

.cfg-acc-btn .chev{
  font-size: 18px;
  opacity: .85;
  transition: transform .18s ease;
}

.cfg-acc.open .cfg-acc-btn{
  background: #1fa0b2;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.cfg-acc.open .cfg-acc-btn .chev{
  transform: rotate(180deg);
}

/* panel */
.cfg-acc-panel{
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.cfg-acc-body{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(10,65,80,.08);
  border-top: 0;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* campos visuales */
.cfg-field{ margin-bottom: 10px; }
.cfg-field label{
  display:block;
  font-size: 12px;
  font-weight: 700;
  color: #0a4150;
  opacity: .85;
  margin-bottom: 6px;
}

/* skeleton bonito */
.cfg-skeleton{
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(90deg,#eef4f6,#e3eef2,#eef4f6);
  background-size: 220% 100%;
  animation: sk 1.1s linear infinite;
  border: 1px solid rgba(10,65,80,.08);
}
@keyframes sk{
  0%{ background-position: 0% 0; }
  100%{ background-position: 220% 0; }
}

.cfg-note{
  font-size: 13px;
  color: #2b5562;
  opacity: .9;
  margin-bottom: 10px;
}

/* chips visuales */
.cfg-chip-row{ display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 12px; }
.cfg-chip{
  padding: 8px 10px;
  border-radius: 999px;
  background: #e8f6fa;
  color: #0a5c73;
  border: 1px solid rgba(10,92,115,.14);
  font-weight: 700;
  font-size: 12px;
}

/* mini botones dentro de acorde¨®n */
.cfg-mini-btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(90deg, #00c6a2, #cde80b 85%);
  color:#0c2b2b;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.cfg-mini-btn:active{ transform: translateY(1px); }

/* accesibilidad */
.cfg-item:focus-visible{
  outline:3px solid rgba(31,160,178,.35);
  outline-offset:4px;
}


/* AnimaciÃ³n */
@keyframes modalIn{
  from{
    transform: translateY(10px) scale(.98);
    opacity: 0;
  }
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Desktop */
@media (min-width:480px){
  .modal-pass .modal-box{
    border-radius: 20px;
  }
}

.modal-pass .input{
  background:#fff;
  color:#0a4150;              /* <-- clave */
  -webkit-text-fill-color:#0a4150; /* <-- chrome/safari si hay algo raro */
}

.modal-pass .input::placeholder{
  color:#6b8791;
  opacity:1;
}
