/* foto-perfil.css
   Modal "Imagen de Perfil" (26 nov 2026): vista previa circular y dos
   botones, "Cargar" (azul) y "Guardar" (verde). También el botón de
   texto "Cambiar foto" de la tarjeta del perfil, que abre el modal y
   permanece visible siempre, se cambie o no la foto. */

.foto-perfil-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 20px 20px;
}

.foto-perfil-vista-previa {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 6px;
  background: #e4eef9;
  box-shadow: 0 0 0 4px rgba(22, 112, 192, 0.15);
  overflow: hidden;
}

.foto-perfil-vista-previa img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.foto-perfil-vista-previa-iniciales {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a84d6, #1670c0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 700;
}

.foto-perfil-error {
  margin: 0;
  color: #a52e36;
  font-size: 14px;
  text-align: center;
}

.foto-perfil-error[hidden] {
  display: none;
}

.foto-perfil-input {
  display: none;
}

.foto-perfil-acciones {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

/* Botones del modal de foto (2cz-a/2cz-c): mismo estandar de pastilla
   que la ventana de confirmacion. Cargar va en el verde del logo del
   ITSA (#68b258, como el Agregar PDF de la bandeja) y Guardar en
   azul como el resto de los Guardar del sistema. */
.foto-perfil-cargar,
.foto-perfil-guardar {
  border: 1px solid #1670c0;
  border-radius: 10px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1670c0;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.foto-perfil-cargar {
  border-color: #68b258;
  background: #68b258;
}

.foto-perfil-cargar:hover:not(:disabled) {
  background: #58974b;
  border-color: #58974b;
}

.foto-perfil-guardar:hover:not(:disabled) {
  background: #0f5da8;
  border-color: #0f5da8;
}

.foto-perfil-cargar:disabled,
.foto-perfil-guardar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
