/* ============================================================
   PROFILE EDIT (SPA) — /profile/edit
   Un solo contenedor (la card): .profile-edit-main
   No toca body/main global
   ============================================================ */

.profile-edit-page * { box-sizing: border-box; }

/* Card principal */
.profile-edit-page .profile-edit-main{
  position: relative;
  width: min(700px, 92%);
  margin: 90px auto 30px;           /* baja la card debajo del top-bar */
  padding: 50px 40px 35px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(255,173,173,0.35);
  animation: profileEditFadeIn 0.6s ease-in-out;
}

/* Tipografías (solo textos, no íconos) */
.profile-edit-page .profile-edit-main h1,
.profile-edit-page .profile-edit-main label,
.profile-edit-page .profile-edit-main input,
.profile-edit-page .profile-edit-main button,
.profile-edit-page .profile-edit-main p,
.profile-edit-page .profile-edit-main small{
  font-family: "Poppins", sans-serif;
}

@keyframes profileEditFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Flecha volver (arriba a la izquierda dentro de la card) */
.profile-edit-page .btn-back{
  position: absolute;
  top: 18px;
  left: 18px;
  background: none;
  border: none;
  color: #ffadad;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-edit-page .btn-back:hover{
  transform: scale(1.2);
  color: #ff9191;
}

/* Título */
.profile-edit-page h1{
  text-align: center;
  color: #ffadad;
  font-weight: 700;
  margin: 10px 0 25px;
}

/* Preview */
.profile-edit-page .preview-container{
  text-align: center;
  margin-bottom: 26px;              /* espacio real para que no choque con inputs */
}

.profile-edit-page .preview-frame{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px auto;
  border: 3px solid #ffadad;
  box-shadow: 0 0 12px rgba(255,173,173,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fffdf7;
}

.profile-edit-page .preview-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Botón cambiar foto: AHORA EN FLUJO (no absoluto) */
.profile-edit-page .edit-photo-btn{
  background: #ffadad;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,173,173,0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-edit-page .edit-photo-btn:hover{
  background: #fff3c2;
  color: #333;
  transform: translateY(-1px);
}

/* Zoom */
.profile-edit-page #zoomContainer{
  margin-top: 14px;
  display: none;                    /* se muestra cuando seleccionás imagen */
  text-align: center;
  animation: profileEditFadeIn 0.4s ease-in-out;
}
.profile-edit-page #zoomRange{
  width: 80%;
  accent-color: #ffadad;
}

/* Form */
.profile-edit-page label{
  font-weight: 600;
  color: #333;
  margin: 10px 0 6px;
  display: block;
}

/* Input con ícono */
.profile-edit-page .input-icon{
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.profile-edit-page .input-icon input{
  width: 450px;
  height: 38px;
  padding: 6px 34px 6px 12px;
  border-radius: 10px;
  border: 1px solid #ffd6d6;
  background: #fffdf7;
  font-size: 15px;
  transition: all 0.25s ease;
  color: #333;
}

.profile-edit-page .input-icon input:focus{
  border-color: #ffadad;
  box-shadow: 0 0 4px rgba(255,173,173,0.25);
  outline: none;
}

/* Icono lapicito */
.profile-edit-page .edit-icon{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffadad;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0.85;
}
.profile-edit-page .edit-icon:hover{
  color: #ff7f7f;
  transform: translateY(-50%) scale(1.1);
}

/* Readonly vs editable */
.profile-edit-page .input-icon input[readonly]{
  background: #f9f9f9;
  color: #666;
  border: 1px solid #eee;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
}
.profile-edit-page .input-icon input:not([readonly]){
  background: #fffdf7;
  color: #333;
  border-color: #ffadad;
  box-shadow: 0 0 6px rgba(255,173,173,0.25);
  cursor: text;
  opacity: 1;
}

/* Guardar */
.profile-edit-page .save-btn{
  width: 100%;
  background: #ffadad;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255,173,173,0.3);
  margin-top: 10px;
}
.profile-edit-page .save-btn:hover{
  background: #fff3c2;
  color: #333;
  transform: translateY(-2px);
}

.profile-edit-page .note{
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-top: 15px;
}

.profile-edit-page .hidden{ display: none; }

@media (max-width: 500px){
  .profile-edit-page .profile-edit-main{ padding: 35px 25px 25px; }
  .profile-edit-page .preview-frame{ width: 120px; height: 120px; }
}
