/* Perfil de la cuenta (12-oct-2026): la foto o inicial redonda y la ventanita «Mi perfil». Usa los tonos de tema.css. */
.pf-avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%;
  background: linear-gradient(160deg, #2D6BF0, var(--acento-2)); color: #fff; font-weight: 600; line-height: 1;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Portada: la pastilla de la sesión en la barra */
.vz-perfil {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 3px 14px 3px 3px; border-radius: 999px;
  text-decoration: none; color: var(--tinta); font: 600 14px/1 var(--v-letra, inherit); white-space: nowrap;
  background: rgba(14, 22, 48, .7); border: 1px solid rgba(126, 176, 255, .32);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.vz-perfil[hidden] { display: none; }
.vz-perfil:hover { border-color: var(--acento-texto); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(37, 99, 235, .9); }
.vz-perfil-foto { width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 2px rgba(126, 176, 255, .35); }
.vz-perfil-texto::after { content: " →"; color: var(--acento-texto); }
.vz-con-sesion .vz-barra-der .vz-iniciar { display: none; }
@media (max-width: 719px) {
  .vz-perfil { padding: 3px; min-height: 40px; border-color: transparent; background: transparent; }
  .vz-perfil-texto { display: none; }
  .vz-con-sesion .vz-buscar-simbolo { display: none; } /* con la foto en la barra, la pastilla del buscador cede su símbolo para que quepa la frase */
  .vz-con-sesion .vz-buscar { padding: 0 10px; font-size: 12px; }
  .vz-con-sesion .vz-barra-der { gap: 4px; }
}
/* Saludo sobre el título cuando ya hay sesión */
.vz-hola {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 22px; padding: 8px 8px 8px 16px; border-radius: 999px;
  font-size: 14.5px; color: var(--tinta); background: rgba(37, 99, 235, .12); border: 1px solid rgba(126, 176, 255, .28);
}
.vz-hola[hidden] { display: none; }
.vz-hola a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--acento); color: #fff; font-weight: 600; text-decoration: none; }
.vz-hola a:hover { background: #3B74F0; }

/* Panel: «Mi perfil» */
.pf-ventana {
  width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border-radius: 22px;
  border: 1px solid var(--linea); background: var(--tarjeta); color: var(--tinta);
  box-shadow: 0 40px 120px -30px rgba(37, 99, 235, .55); font: 400 16px/1.5 var(--v-letra, var(--letra, system-ui, sans-serif));
}
.pf-ventana::backdrop { background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px); }
.pf-ventana[open] { animation: pf-entra .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes pf-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pf-forma { position: relative; display: grid; gap: 12px; padding: 26px 22px 20px; }
.pf-forma h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.pf-sub { margin: -6px 0 6px; color: var(--tinta-suave); font-size: 14.5px; }
.pf-cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--superficie-2); color: var(--tinta); font-size: 22px; line-height: 1; cursor: pointer; }
.pf-fila-foto { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.pf-foto-grande { width: 84px; height: 84px; font-size: 34px; box-shadow: 0 0 0 3px rgba(126, 176, 255, .28); }
.pf-acciones-foto { display: grid; gap: 4px; justify-items: start; }
.pf-archivo { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-forma label { font-size: 14px; font-weight: 600; }
.pf-forma input[type="text"] {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--fondo); color: var(--tinta); border: 1px solid var(--linea-control);
}
.pf-forma input[type="text"]:focus { outline: none; border-color: var(--acento-texto); box-shadow: 0 0 0 3px rgba(126, 176, 255, .2); }
.pf-correo { margin: -4px 0 4px; font-size: 13.5px; color: var(--tinta-suave); overflow-wrap: anywhere; }
.pf-boton { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.pf-boton:disabled { opacity: .6; cursor: progress; }
.pf-boton-lleno { background: var(--acento); color: #fff; box-shadow: var(--brillo); }
.pf-boton-lleno:hover { background: #3B74F0; }
.pf-boton-borde { background: transparent; color: var(--tinta); border-color: var(--linea-control); }
.pf-boton-borde:hover { border-color: var(--acento-texto); }
.pf-enlace { border: 0; background: none; padding: 6px 2px; color: var(--tinta-suave); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-enlace[hidden] { display: none; }
.pf-estado { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--acento-texto); }
.pf-estado.pf-error { color: var(--rojo); }
/* En el menú de la cuenta del panel */
.cuenta-inicial.pf-avatar { width: 34px; height: 34px; font-size: 15px; }
.cuenta-menu-perfil {
  width: 100%; min-height: 44px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--linea-control);
  background: transparent; color: var(--tinta); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.cuenta-menu-perfil:hover { border-color: var(--acento-texto); }
@media (prefers-reduced-motion: reduce) { .pf-ventana[open] { animation: none; } .vz-perfil { transition: none; } }
