.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;
}

/* 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;
}
