/* ==================================================================
   Tinvito · ingreso, registro y mi cuenta (entrega 5: azul sobre fondo claro).
   ================================================================== */
.account-page, .customer-page {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 100% -10%, rgba(47, 107, 255, .10), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(255, 122, 89, .08), transparent 60%),
        var(--bg);
}

/* Cabeceras */
.account-header { width: min(100% - 40px, var(--container)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-header-actions { display: flex; align-items: center; gap: 14px; }
.back-link { font-size: .9rem; }
.customer-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.customer-header-inner { width: min(100% - 40px, var(--container)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.customer-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.customer-nav a { padding: 8px 12px; border-radius: 10px; }
.customer-nav a:hover { color: var(--brand-deep); background: var(--brand-softer); }
.customer-nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.customer-header-actions { display: flex; align-items: center; gap: 10px; }
.customer-header .brand { margin-right: 12px; }

/* Registro */
.registration-shell { width: min(100% - 40px, 1180px); margin: 24px auto 72px; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.registration-intro h1 { margin: 6px 0 16px; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.registration-intro > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.registration-intro ul { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.registration-intro li { padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); font-weight: 600; font-size: .95rem; }
.registration-intro li span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--brand-deep); background: var(--brand-soft); font-size: .78rem; font-weight: 800; }
.registration-card, .auth-card { padding: clamp(26px, 4.5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.registration-card-heading h2 { margin: 2px 0 6px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; font-weight: 800; }
.registration-card-heading > p:not(.eyebrow):not(.plan-chip) { margin: 0; color: var(--muted); }
.plan-chip { display: inline-flex; margin-top: 12px; padding: 5px 12px; border-radius: 999px; color: #b04a2c; background: var(--coral-soft); font-size: .82rem; font-weight: 700; }

/* Formularios de cuenta */
.registration-form { margin-top: 22px; }
.registration-form > label:not(.consent-field), .password-grid label, .label-row label { margin: 16px 0 6px; display: block; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.registration-form input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--white); font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.registration-form input:hover { border-color: #b3c3e2; }
.registration-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.registration-form small { margin-top: 6px; display: block; color: var(--muted); font-size: .8rem; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent-field { margin: 20px 0; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .86rem; line-height: 1.5; cursor: pointer; }
.consent-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.registration-form .button { width: 100%; margin-top: 8px; }
.form-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: .8rem; }
.auth-footer { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: .9rem; }
.label-row { margin: 16px 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.label-row label { margin: 0 !important; }
.label-row a, .auth-footer a { color: var(--brand); font-weight: 700; }
.label-row a:hover, .auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.label-row a { font-size: .82rem; }

/* Ingreso y claves */
.auth-shell { width: min(100% - 40px, 480px); margin: 24px auto 72px; }
.auth-card h1 { margin: 2px 0 8px; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; font-weight: 800; }
.auth-lead { margin: 0; color: var(--muted); }
.auth-card .registration-form .button { margin-top: 22px; }
.auth-card .form-alert p { margin: 0; }

/* Mi cuenta */
.customer-shell { width: min(100% - 40px, var(--container)); margin: 36px auto 72px; }
.customer-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.customer-welcome h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; font-weight: 800; }
.customer-welcome p:not(.eyebrow) { margin: 0; color: var(--muted); }
.customer-welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.status-pill { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; color: var(--ok); background: var(--ok-soft); font-size: .8rem; font-weight: 700; }
.verification-note { margin: 24px 0; padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid #ffd9a8; border-radius: var(--radius); background: var(--warn-soft); }
.verification-note > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--white); background: #f0932b; }
.verification-note strong { display: block; }
.verification-note p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.verification-content form { margin-top: 6px; }
.verification-content button { padding: 0; border: 0; color: var(--brand-deep); background: transparent; cursor: pointer; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.development-link { margin: -8px 0 24px; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--white); }
.development-link strong { color: var(--coral); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.development-link p { margin: 4px 0 10px; color: var(--muted); font-size: .86rem; }
.development-link .button { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.dashboard-grid { margin-top: 28px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.dashboard-main-card, .dashboard-side article { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.dashboard-main-card { position: relative; overflow: hidden; min-height: 280px; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.dashboard-main-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); pointer-events: none; }
.dashboard-number { color: var(--brand); font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.dashboard-main-card h2 { margin: 10px 0 6px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; font-weight: 800; }
.dashboard-main-card > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--muted); }
.dashboard-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-side { display: grid; gap: 18px; align-content: start; }
.dashboard-side article { padding: 24px; }
.dashboard-side h3 { margin: 2px 0 12px; font-size: 1.1rem; font-weight: 800; }
.dashboard-side p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.dashboard-side dl { margin: 0; }
.dashboard-side dl div { padding: 9px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.dashboard-side dt { color: var(--muted); }
.dashboard-side dd { margin: 0; text-align: right; font-weight: 700; }

@media (max-width: 960px) {
    .customer-nav { display: none; }
    .customer-header-actions { margin-left: auto; }
}
@media (max-width: 860px) {
    .registration-shell, .dashboard-grid { grid-template-columns: 1fr; }
    .customer-welcome { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .account-header, .customer-header-inner, .registration-shell, .customer-shell, .auth-shell { width: min(100% - 28px, var(--container)); }
    .account-header { min-height: 64px; }
    .account-header .brand-logo, .customer-header .brand-logo { height: 30px; }
    .account-header-actions { gap: 8px; }
    .back-link { font-size: .82rem; }
    .back-link span { display: none; }
    .lang-switch summary .lang-code { display: none; }
    .registration-card, .auth-card { padding: 24px 18px; border-radius: 20px; }
    .password-grid { grid-template-columns: 1fr; gap: 0; }
    .customer-header-inner { gap: 8px; min-height: 60px; }
    .account-menu-name, .account-menu-chevron { display: none; }
    .dashboard-main-card { min-height: 0; }
}
