/* CAS-1174 - Mis Datos: completar perfil, contraseña separada y alerta del menu. Mobile first. */

.ct-misdatos {
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

.ct-misdatos-panel {
  background-color: #fff;
  margin-top: 0.5rem;
  padding: 1.25rem 1rem;
}

@media (min-width: 48em) {
  .ct-misdatos {
    margin-top: 3.125rem;
  }

  .ct-misdatos-panel {
    margin-top: 1.25rem;
    padding: 2.5rem 3.75rem;
  }
}

/* Campos y botones con area tactil comoda */
.ct-campo,
.ct-misdatos .form-select,
.ct-misdatos .form-control {
  min-height: 3rem;
}

.ct-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.ct-error {
  color: #d64545;
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-top: 0.25rem;
}

.ct-volver {
  color: inherit;
  text-decoration: underline;
  display: inline-block;
  min-height: 2.75rem;
  line-height: 2.75rem;
}

/* Invitacion discreta a completar el perfil */
.ct-invita {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  border: 1px solid #f3d9a8;
  background: #fff9ee;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
}

.ct-invita-texto {
  flex: 1 1 13.75rem;
}

.ct-invita-barra {
  height: 0.5rem;
  background: #eadfc8;
  border-radius: 6.1875rem;
  overflow: hidden;
  margin: 0.375rem 0 0.125rem;
}

.ct-invita-barra i {
  display: block;
  height: 100%;
  background: #f08a00;
  border-radius: 6.1875rem;
  transition: width 0.3s;
}

.ct-invita-acciones {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-invita-acciones .btn {
  min-height: 3rem;
}

.ct-ahora-no {
  color: #6b6b76;
}

/* Acciones del formulario: Cancelar a la izquierda, Guardar a la derecha */
.ct-acciones {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.ct-acciones .btn {
  flex: 1 1 0;
  min-height: 3.25rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.ct-btn-sec {
  background: #dcdce3;
  color: #1b1b1f;
  border: 0;
}

.ct-btn-sec:hover {
  background: #cfcfd8;
  color: #1b1b1f;
}

@media (min-width: 48em) {
  .ct-acciones {
    justify-content: space-between;
  }

  .ct-acciones .btn {
    flex: 0 0 12.5rem;
  }
}

/* Indicador de fortaleza */
.ct-fortaleza {
  margin-top: 0.5rem;
}

.ct-fortaleza-barras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}

.ct-fortaleza-barras i {
  height: 0.375rem;
  border-radius: 6.1875rem;
  background: #e2e2e8;
}

.ct-fortaleza-debil .ct-fortaleza-barras i:nth-child(1) {
  background: #d64545;
}

.ct-fortaleza-media .ct-fortaleza-barras i:nth-child(-n + 2) {
  background: #e5a100;
}

.ct-fortaleza-fuerte .ct-fortaleza-barras i {
  background: #1f9d55;
}

.ct-fortaleza-texto {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Alerta de perfil incompleto junto al saludo del menu */
.ct-alerta-perfil {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.375rem;
  border-radius: 50%;
  background: #f08a00;
  color: #1b1b1f;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  text-align: center;
  vertical-align: middle;
  position: relative;
}

.ct-alerta-perfil::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  border: 2px solid #f08a00;
  opacity: 0;
  animation: ct-pulso 2.4s ease-out 2;
}

@keyframes ct-pulso {
  0% {
    opacity: 0.7;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-alerta-perfil::after {
    animation: none;
  }
}

.ct-perfil-invita {
  background: #fff4e0;
}

.ct-pill-perfil {
  background: #f08a00;
  color: #1b1b1f;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  font-weight: 600;
  margin-left: 0.375rem;
}

/* Formulario de completar perfil como foco de la pantalla */
.ct-perfil-card {
  border: 1px solid #e2e2e8;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  background: #fff;
}

@media (min-width: 48em) {
  .ct-perfil-card {
    padding: 1.75rem 2rem;
  }
}

.ct-identidad {
  color: #6b6b76;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Dato del perfil que falta: se dice claramente y se invita a completarlo */
.ct-sin-completar {
  color: #b45f00;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.ct-completar-link {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 2.75rem;
}
