/* Cuenta del cliente dentro de la tienda */

.fam-page {
    width: min(100% - 28px, 980px);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.fam-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(105deg, #0f766e 0%, #0d9488 42%, #22d3ee 100%);
    box-shadow: 0 12px 28px rgba(13, 148, 136, .22);
}

.fam-hero__kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .88;
}

.fam-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: 1.05;
}

.fam-hero p {
    margin: 8px 0 0;
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
}

.fam-hero__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f766e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.fam-hero__btn:hover { background: #f0fdfa; color: #0f766e; }

.fam-card {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e8eef2;
    border-radius: 18px;
    padding: 20px 22px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.fam-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.fam-card__kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e11d74;
}

.fam-card h2 {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.02em;
}

.fam-card__count {
    font-size: 13px;
    font-weight: 700;
    color: #e11d74;
}

.fam-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7f9fb;
    text-decoration: none;
    color: inherit;
}

.fam-row + .fam-row { margin-top: 10px; }

.fam-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #fce7f3;
    color: #e11d74;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}

.fam-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fam-row__text { min-width: 0; flex: 1; }

.fam-row__text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.fam-row__text span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #64748b;
}

.fam-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.fam-pill--ok {
    background: #86efac;
    color: #14532d;
}

.fam-pill--ok:hover { background: #4ade80; color: #14532d; }

.fam-pill--ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #dbe4ea;
}

.fam-empty {
    margin: 8px 0 4px;
    color: #64748b;
    font-size: 14px;
}

.fam-move {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.fam-move:last-child { border-bottom: 0; }

.fam-move strong { color: #1e293b; }
.fam-move span { color: #64748b; font-size: 13px; }

.fam-pickup {
    text-align: center;
    padding: 8px 8px 4px;
}

.fam-pickup img {
    height: 56px;
    max-width: 100%;
    margin: 12px auto;
}

.fam-pickup strong {
    display: block;
    font-size: 26px;
    letter-spacing: .08em;
    color: #1e293b;
}

.fam-prod {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fam-prod:last-child { border-bottom: 0; }

.fam-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef3f7;
    font-size: 14px;
}

.fam-line:last-child { border-bottom: 0; }

.fam-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.fam-logout {
    margin-top: 22px;
    text-align: center;
}

.fam-logout button {
    background: none;
    border: 0;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.fam-page--login {
    max-width: 520px;
}

.fam-login__group { margin-bottom: 16px; }

.fam-login__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.fam-login__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7e3ec;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.fam-login__input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}

.fam-login__error {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.fam-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    margin: 4px 0 18px;
}

.fam-login__submit {
    width: 100%;
    background: #e11d74;
    color: #fff;
    border: 0;
    padding: 14px;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.fam-login__submit:hover { background: #c0357c; }

.fam-login__note {
    margin: 16px 0 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.fam-login__note a {
    color: #0a4b6e;
    font-weight: 700;
}

.fam-login__note--muted { margin-top: 8px; }
.fam-login__note--muted a {
    color: #94a3b8;
    font-weight: 600;
}

.fam-logout button:hover { color: #e11d74; }

@media (max-width: 860px) {
    .fam-hero { flex-direction: column; align-items: flex-start; }
}
