/* Perfil personal: foto de Google, tarjeta del menú y bienvenida del primer ingreso. */

.avatar-photo { overflow: hidden; background: var(--surface-2); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-xxl { --s: 96px; }

.user-profile { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px; margin: -4px; border-radius: 12px; color: inherit; text-align: left; transition: background-color .2s var(--ease); }
.user-profile:hover { background: rgba(255, 255, 255, .08); }
.user-profile:focus-visible { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 1px; }
.user-profile > .avatar { flex: none; transition: transform .3s var(--spring); }
.user-profile:hover > .avatar { transform: scale(1.06); }

dialog.modal-profile { width: min(500px, calc(100vw - 24px)); }
.profile-card { overflow: hidden; }
.profile-hero { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 6px; padding: 30px 24px 24px; text-align: center; color: var(--surface); background: var(--grad-brand); }
.profile-glow { position: absolute; top: -90px; left: 50%; z-index: -1; width: 360px; height: 260px; margin-left: -180px; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); animation: profile-float 6s var(--ease) infinite alternate; }
@keyframes profile-float { from { transform: translateY(0) scale(1); } to { transform: translateY(18px) scale(1.08); } }
.profile-photo { padding: 4px; border-radius: 50%; background: var(--grad-ai); box-shadow: var(--shadow-md); animation: profile-pop .5s var(--spring) both; }
.profile-photo .avatar { box-shadow: 0 0 0 3px var(--surface); }
@keyframes profile-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.profile-hero .eyebrow { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.profile-hero h2 { font-size: 24px; font-weight: 800; line-height: 1.2; animation: rise .4s var(--ease) .1s both; }
.profile-hero p { max-width: 340px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.profile-close { position: absolute; top: 12px; right: 12px; color: var(--surface); }
.profile-close:hover { background: rgba(255, 255, 255, .15); }
.profile-body { display: grid; gap: 14px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.name-chip { height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink-2); background: var(--surface); animation: rise .35s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms + 150ms); transition: transform .2s var(--spring), border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.name-chip:hover { transform: translateY(-2px); border-color: var(--blue-200); }
.name-chip[aria-pressed="true"] { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-700); }
.name-chip:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }

@media (max-width: 560px) {
  .profile-hero { padding: 26px 18px 20px; }
  .profile-hero h2 { font-size: 21px; }
  .modal-profile .modal-foot .btn { flex: 1; }
}

/* Mi perfil */
.my-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 20px; border-radius: var(--r-xl); color: var(--surface); background: var(--grad-brand); box-shadow: var(--shadow-md); }
.my-hero::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); animation: profile-float 7s var(--ease) infinite alternate; }
.my-hero-photo { padding: 4px; border-radius: 50%; background: var(--grad-ai); animation: profile-pop .5s var(--spring) both; }
.my-hero-photo .avatar { box-shadow: 0 0 0 3px var(--surface); }
.my-hero-text { flex: 1 1 280px; display: grid; gap: 6px; min-width: 0; }
.my-hero-text .eyebrow { color: rgba(255, 255, 255, .78); }
.my-hero-text h2 { font-size: 28px; font-weight: 800; line-height: 1.15; }
.my-hero-text p { color: rgba(255, 255, 255, .88); font-size: 14px; }
.my-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.my-hero-chips .chip { background: rgba(255, 255, 255, .16); color: var(--surface); }
.btn-glass { background: rgba(255, 255, 255, .16); color: var(--surface); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.btn-glass:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }

.my-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.my-side { display: grid; gap: 18px; }
.my-card { overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.my-card.is-dirty { border-color: var(--tone-ink); }
.my-card .icon-tile { background: var(--tone-soft); color: var(--tone-ink); }
.my-subhead { padding-top: 6px; border-top: 1px solid var(--line-soft); }
.my-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 18px 22px 22px; }
.my-facts dt { font-size: 11.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.my-facts dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.my-privacy { padding: 18px 22px 20px; }
.my-privacy ul { display: grid; gap: 10px; margin-top: 14px; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Contacto en el organigrama */
.contact-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); animation: rise .3s var(--ease) both; }
.contact-card ul { display: grid; gap: 10px; margin-top: 10px; }
.contact-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.contact-card li .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ink-4); }
.contact-card small { display: block; font-size: 11px; color: var(--ink-3); }
.contact-card a { color: var(--blue-700); font-weight: 650; }

@media (max-width: 980px) {
  .my-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .my-hero { padding: 22px 18px; text-align: center; justify-content: center; }
  .my-hero-chips { justify-content: center; }
  .my-hero .btn-glass { flex: 1; }
  .my-facts { grid-template-columns: 1fr; }
}
