/* =============================================================
   Profile.css — /account/profile

   Solo lo que es PROPIO de esta pantalla: el heroe claro, el
   avatar y las filas desplegables. Todo lo demas (tarjeta,
   secciones, campos, botones) sale de qp-forms.css.

   Prefijo pf-. Nada de nombres genericos: los que habia antes
   (.btn-modern, .modern-input, .profile-card) vivian en un
   bloque <style> sin scope y eran globales mientras la pagina
   estaba montada.
============================================================= */

.pf-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* =============================================================
   HEROE CLARO
   Mismo dialecto que .crt-hero de Carrito: fondo blanco, dos
   manchas radiales difuminadas y titulo grande. El navy de
   Edit.razor es el lenguaje del panel del negocio; aqui entran
   clientes tambien.
============================================================= */
.pf-hero {
    position: relative;
    overflow: hidden;
    padding: 2.25rem 0 1.75rem;
}

.pf-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: .45;
}

.pf-hero-blob--1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
    top: -170px;
    right: -70px;
}

.pf-hero-blob--2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #d1fae5 0%, transparent 70%);
    bottom: -140px;
    left: -50px;
}

.pf-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.pf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: .6rem;
}

.pf-name {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--qp-n-900);
    margin: 0;
    word-break: break-word;
}

/* Avatar: sin anillo translucido ni sombra. La inicial es el dato. */
.pf-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary, #0ea5e9), #0369a1);
    box-shadow: 0 4px 14px rgba(14,165,233,.28);
}

/* =============================================================
   FILA DESPLEGABLE (disclosure)
   La fila cerrada YA muestra el dato. No es un acordeon con
   cabecera vacia: es una fila informativa que se abre a editar.
============================================================= */
.pf-disc {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem .25rem;
    background: transparent;
    border: none;
    border-top: 1px solid var(--qp-n-100);
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    transition: background .15s ease;
}

.pf-disc-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    background: var(--qp-n-100);
    color: var(--qp-n-500);
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.pf-disc-body {
    flex: 1;
    min-width: 0;
}

.pf-disc-title {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--qp-n-800);
    line-height: 1.25;
}

/* El valor actual, visible con la fila cerrada */
.pf-disc-value {
    display: block;
    font-size: .8rem;
    color: var(--qp-n-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-disc-chevron {
    color: var(--qp-n-400);
    font-size: .85rem;
    flex-shrink: 0;
    transition: transform .25s var(--qp-ease);
}

.pf-disc[aria-expanded="true"] .pf-disc-chevron {
    transform: rotate(180deg);
}

.pf-disc[aria-expanded="true"] .pf-disc-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.pf-disc:focus-visible {
    outline: 2px solid var(--accent-primary, #0ea5e9);
    outline-offset: -2px;
}

@media (hover: hover) {
    .pf-disc:hover { background: var(--qp-n-50); }
    .pf-disc:hover .pf-disc-icon { background: var(--qp-n-200); }
}

/* Cuerpo desplegado */
.pf-disc-panel {
    padding: .35rem .25rem 1.1rem;
    animation: pf-disc-in .22s ease both;
}

@keyframes pf-disc-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   ESTADO DE CARGA
   Esqueleto con la forma final en vez de un spinner a 60vh:
   sin salto de layout y la misma espera se percibe mas corta.
   .shimmer ya existe en app.css.
============================================================= */
.pf-skel {
    border-radius: var(--qp-r-input);
    height: 14px;
    margin-bottom: .6rem;
}

.pf-skel--avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
}

.pf-skel--title { width: 55%; height: 26px; }
.pf-skel--row   { width: 100%; height: 42px; margin-bottom: .8rem; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 767.98px) {
    .pf-page { padding: 0 .85rem 2.5rem; }

    .pf-hero {
        padding: 1.4rem 0 1.25rem;
    }

    .pf-hero-inner { gap: .9rem; }

    .pf-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    /* Area tactil comoda: 56px de alto minimo */
    .pf-disc {
        padding: 1rem .25rem;
        min-height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-disc,
    .pf-disc-chevron,
    .pf-disc-panel {
        animation: none !important;
        transition: none !important;
    }
}
