/* Red Account UI — carga condicional únicamente en Auth. */
[data-red-google-client-only][hidden]{display:none!important}
.red-auth-shell{display:grid;grid-template-columns:minmax(280px,.88fr) minmax(420px,1.12fr);margin:8px auto 28px;border:1px solid rgba(148,163,184,.22);border-radius:clamp(22px,2vw,32px);overflow:hidden;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.09)}
.red-auth-aside{position:relative;display:flex;min-height:620px;flex-direction:column;padding:clamp(28px,4vw,56px);color:#fff;background:linear-gradient(145deg,var(--red-color-primary,#2563eb),color-mix(in srgb,var(--red-color-primary,#2563eb) 58%,#111827));isolation:isolate}
.red-auth-aside::before{content:"";position:absolute;inset:auto -25% -20% auto;width:360px;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.11);filter:blur(1px);z-index:-1}.red-auth-aside::after{content:"";position:absolute;inset:8% auto auto -18%;width:220px;aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,255,255,.18);z-index:-1}
.red-auth-aside__brand{display:flex;align-items:center;gap:12px;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.red-auth-aside__brand img{width:64px;height:50px;object-fit:contain;padding:7px;border-radius:14px;background:#fff}.red-auth-aside__copy{margin:auto 0 34px}.red-auth-aside__copy h1{margin:10px 0 16px;font-size:clamp(2rem,4vw,3.35rem);line-height:1.02;letter-spacing:-.045em}.red-auth-aside__copy p{max-width:520px;margin:0;color:rgba(255,255,255,.82);font-size:1rem;line-height:1.72}.red-auth-eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--red-color-primary,#2563eb);font-size:.76rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.red-auth-aside .red-auth-eyebrow{color:rgba(255,255,255,.74)}
.red-auth-benefits,.red-auth-steps{display:grid;gap:14px;margin:0;padding:0;list-style:none}.red-auth-benefits>div,.red-auth-steps>li{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.07);backdrop-filter:blur(6px)}.red-auth-check,.red-auth-steps>li>span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:999px;background:#fff;color:var(--red-color-primary,#2563eb);font-weight:900}.red-auth-benefits p,.red-auth-steps p{display:grid;gap:2px;margin:0}.red-auth-benefits strong,.red-auth-steps strong{font-size:.9rem}.red-auth-benefits small,.red-auth-steps small{color:rgba(255,255,255,.72);font-size:.78rem;line-height:1.4}
.red-auth-panel{display:flex;align-items:center;justify-content:center;padding:clamp(24px,4vw,54px);background:linear-gradient(180deg,#fff,#fbfdff)}.red-auth-card{width:min(100%,820px)}.red-auth-card--wide{width:min(100%,720px)}.red-auth-card--compact{width:min(100%,520px);padding:clamp(24px,4vw,42px);border:1px solid #e5eaf1;border-radius:24px;background:#fff;box-shadow:0 22px 64px rgba(15,23,42,.08)}.red-auth-card__header{margin-bottom:24px}.red-auth-card__header h1,.red-auth-card__header h2{margin:7px 0 8px;color:#101828;font-size:clamp(1.7rem,2.5vw,2.25rem);line-height:1.1;letter-spacing:-.035em}.red-auth-card__header p{margin:0;color:#667085;line-height:1.65}.red-auth-card__header--register{margin-top:26px}
.red-auth-alert{display:flex;gap:12px;margin:0 0 20px;padding:14px 15px;border:1px solid;border-radius:15px;font-size:.88rem}.red-auth-alert>span{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;font-weight:900}.red-auth-alert strong{display:block;margin:1px 0 3px}.red-auth-alert p{margin:2px 0;line-height:1.45}.red-auth-alert--success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.red-auth-alert--success>span{background:#dcfce7}.red-auth-alert--error{border-color:#fecaca;background:#fff7f7;color:#991b1b}.red-auth-alert--error>span{background:#fee2e2}.red-auth-alert--info{border-color:#bfdbfe;background:#eff6ff;color:#1e40af}.red-auth-alert--info>span{background:#dbeafe}
.red-auth-form{display:grid;gap:17px}.red-auth-field{display:grid;gap:7px;color:#344054;font-size:.86rem;font-weight:700}.red-auth-field>span:first-child small{color:#98a2b3;font-weight:500}.red-auth-input,.red-auth-select{position:relative;display:flex;align-items:center;width:100%;min-height:48px;border:1px solid #d0d5dd;border-radius:13px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.red-auth-input:focus-within,.red-auth-select:focus-within{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 4px color-mix(in srgb,var(--red-color-primary,#2563eb) 13%,transparent)}.red-auth-input input,.red-auth-select select{width:100%;min-width:0;height:46px;padding:0 14px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#101828;font:inherit;font-weight:500}.red-auth-input__icon{display:grid;place-items:center;align-self:stretch;min-width:44px;border-right:1px solid #eef2f6;color:#98a2b3;font-weight:800}.red-auth-input__icon+input{padding-left:12px}.red-auth-password-toggle{align-self:stretch;padding:0 14px;border:0;border-left:1px solid #eef2f6;background:transparent;color:var(--red-color-primary,#2563eb);font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}.red-auth-password-toggle:hover{background:#f8fafc}.red-auth-select select{appearance:auto;cursor:pointer}.red-auth-form__meta{display:flex;justify-content:space-between;align-items:center;margin-top:-5px;font-size:.82rem}.red-auth-form__meta a,.red-auth-back,.red-auth-footer-link a,.red-auth-details a{color:var(--red-color-primary,#2563eb);font-weight:750;text-decoration:none}.red-auth-submit,.red-auth-secondary{display:inline-flex;min-height:49px;align-items:center;justify-content:center;border:0;border-radius:13px;font:inherit;font-weight:850;cursor:pointer}.red-auth-submit{width:100%;background:var(--red-color-primary,#2563eb);color:#fff;box-shadow:0 9px 22px color-mix(in srgb,var(--red-color-primary,#2563eb) 22%,transparent)}.red-auth-submit:hover{filter:brightness(.96)}.red-auth-secondary{padding:0 18px;border:1px solid #d0d5dd;background:#fff;color:#344054}
.red-auth-role-fieldset{margin:0;padding:0;border:0}.red-auth-role-fieldset legend{margin-bottom:8px;color:#344054;font-size:.86rem;font-weight:700}.red-auth-role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.red-auth-role-option{position:relative;cursor:pointer}.red-auth-role-option input{position:absolute;opacity:0;pointer-events:none}.red-auth-role-option>span{display:grid;min-height:66px;align-content:center;gap:2px;padding:10px 11px;border:1px solid #e1e6ed;border-radius:13px;background:#fff;transition:.16s ease}.red-auth-role-option strong{color:#344054;font-size:.84rem}.red-auth-role-option small{color:#98a2b3;font-size:.68rem}.red-auth-role-option input:checked+span{border-color:var(--red-color-primary,#2563eb);background:color-mix(in srgb,var(--red-color-primary,#2563eb) 7%,#fff);box-shadow:0 0 0 2px color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,transparent)}.red-auth-role-option input:focus-visible+span{outline:2px solid var(--red-color-primary,#2563eb);outline-offset:2px}
.red-auth-divider{display:flex;align-items:center;gap:11px;margin:21px 0;color:#98a2b3;font-size:.76rem}.red-auth-divider::before,.red-auth-divider::after{content:"";height:1px;flex:1;background:#eaecf0}.red-auth-google{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;min-height:49px;padding:0 14px;border:1px solid #d0d5dd;border-radius:13px;background:#fff;color:#344054;text-decoration:none;font-weight:800;transition:.15s ease}.red-auth-google:hover{border-color:#98a2b3;background:#fcfcfd}.red-auth-google svg{width:19px;height:19px}.red-auth-google small{padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:.65rem}.red-auth-google-note{margin:10px 4px 0;color:#7b8494;font-size:.72rem;line-height:1.5}.red-auth-google--register{margin-top:4px}
.red-auth-register-box{display:grid;gap:13px;margin-top:24px;padding:15px;border:1px solid #e4e7ec;border-radius:15px;background:#f8fafc}.red-auth-register-box strong{font-size:.85rem}.red-auth-register-box p{margin:2px 0 0;color:#667085;font-size:.75rem}.red-auth-register-links{display:flex;flex-wrap:wrap;gap:7px}.red-auth-register-links a{padding:6px 10px;border:1px solid #dbe2ea;border-radius:999px;background:#fff;color:var(--red-color-primary,#2563eb);font-size:.72rem;font-weight:800;text-decoration:none}.red-auth-details{margin-top:14px;border-top:1px solid #eef2f6;padding-top:13px;color:#475467;font-size:.8rem}.red-auth-details summary{cursor:pointer;font-weight:750}.red-auth-inline-form{display:grid;gap:11px;margin-top:14px}.red-auth-inline-form .red-auth-secondary{justify-self:start}
.red-auth-profile-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:5px;border:1px solid #e4e7ec;border-radius:15px;background:#f8fafc}.red-auth-profile-nav a{display:grid;gap:1px;padding:10px 12px;border-radius:11px;color:#667085;text-decoration:none}.red-auth-profile-nav a strong{font-size:.8rem}.red-auth-profile-nav a small{font-size:.65rem}.red-auth-profile-nav a.is-active{background:#fff;color:var(--red-color-primary,#2563eb);box-shadow:0 3px 10px rgba(15,23,42,.08)}
.red-auth-form--register{gap:22px}.red-auth-form-section{display:grid;gap:15px;padding-top:3px}.red-auth-form-section+.red-auth-form-section{padding-top:20px;border-top:1px solid #eef2f6}.red-auth-form-section--soft{padding:16px;border:1px dashed #dbe2ea;border-radius:15px;background:#fbfcfe}.red-auth-form-section__heading{display:flex;align-items:center;gap:10px}.red-auth-form-section__heading>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,#fff);color:var(--red-color-primary,#2563eb);font-size:.72rem;font-weight:900}.red-auth-form-section__heading>div{display:grid}.red-auth-form-section__heading strong{color:#344054;font-size:.9rem}.red-auth-form-section__heading small{color:#98a2b3;font-size:.7rem}.red-auth-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.red-auth-field--full{grid-column:1/-1}.red-auth-phone-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(125px,.7fr) minmax(160px,1.3fr);gap:9px}.red-auth-store-target{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #dbe4ee;border-radius:15px;background:#f8fafc}.red-auth-store-target img{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#fff}.red-auth-store-target div{display:grid}.red-auth-store-target small{color:#98a2b3}.red-auth-store-target strong{color:#344054}.red-auth-referral{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:12px;border-radius:12px;background:#fff}.red-auth-referral small{color:#98a2b3}.red-auth-referral span{padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:.68rem;font-weight:800}.red-auth-password-hint,.red-auth-legal,.red-auth-help{margin:0;color:#98a2b3;font-size:.72rem;line-height:1.5}.red-auth-footer-link{margin-top:22px;padding-top:18px;border-top:1px solid #eef2f6;text-align:center;color:#667085;font-size:.82rem}.red-auth-back{display:inline-block;margin-bottom:24px;font-size:.8rem}
.red-auth-shell--compact{display:block;max-width:650px;border:0;background:transparent;box-shadow:none}.red-auth-shell--compact .red-auth-panel{padding:18px;background:transparent}
@media(max-width:980px){.red-auth-shell{grid-template-columns:1fr;max-width:720px}.red-auth-aside{min-height:auto;padding:28px}.red-auth-aside__copy{margin:32px 0 24px}.red-auth-benefits{grid-template-columns:repeat(3,1fr)}.red-auth-benefits>div{display:grid}.red-auth-panel{padding:30px}.red-auth-shell--register .red-auth-aside{display:none}}
@media(max-width:640px){.red-auth-shell{margin:0 -4px;border-radius:20px}.red-auth-aside{padding:22px}.red-auth-aside__brand img{width:52px;height:42px}.red-auth-aside__copy h1{font-size:2rem}.red-auth-benefits{grid-template-columns:1fr}.red-auth-panel{padding:22px 18px}.red-auth-role-grid{grid-template-columns:1fr}.red-auth-role-option>span{min-height:54px}.red-auth-profile-nav{grid-template-columns:1fr}.red-auth-profile-nav a{grid-template-columns:auto 1fr;align-items:center;gap:8px}.red-auth-card__header--register{margin-top:20px}.red-auth-fields-grid{grid-template-columns:1fr}.red-auth-field--full{grid-column:auto}.red-auth-phone-grid{grid-template-columns:1fr}.red-auth-referral{grid-template-columns:1fr}.red-auth-shell--compact .red-auth-panel{padding:0}.red-auth-card--compact{padding:22px 18px;border-radius:18px}.red-auth-google{grid-template-columns:24px 1fr auto}}

/* Red Customer Dashboard */
.red-account{display:grid;gap:22px;max-width:1240px;margin:0 auto}.red-account button,.red-account input,.red-account select,.red-account textarea{font:inherit}.red-account-alert{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:15px;border:1px solid}.red-account-alert p{margin:0}.red-account-alert--error{border-color:#fecaca;background:#fff7f7;color:#991b1b}.red-account-alert--success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.red-account-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:clamp(24px,4vw,42px);overflow:hidden;border-radius:28px;color:#fff;background:linear-gradient(135deg,var(--red-color-primary,#2563eb),color-mix(in srgb,var(--red-color-primary,#2563eb) 58%,#111827));box-shadow:0 24px 60px color-mix(in srgb,var(--red-color-primary,#2563eb) 16%,transparent)}.red-account-hero:after{content:"";position:absolute;right:-80px;bottom:-140px;width:330px;height:330px;border:55px solid rgba(255,255,255,.08);border-radius:50%;pointer-events:none}.red-account-hero__copy{position:relative;z-index:1}.red-account-eyebrow,.red-account-section-head>div>span,.red-account-feature-card>div>span{display:inline-flex;margin-bottom:7px;font-size:.7rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.red-account-hero h1{margin:0 0 9px!important;color:#fff!important;font-size:clamp(2rem,4.4vw,3.5rem)!important}.red-account-hero p{max-width:670px;margin:0;color:rgba(255,255,255,.78);font-size:.96rem}.red-account-scope{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(255,255,255,.1);font-size:.75rem;font-weight:800}.red-account-hero__points{position:relative;z-index:1;display:grid;min-width:205px;padding:22px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.1);backdrop-filter:blur(10px)}.red-account-hero__points span{font-size:.76rem;font-weight:800}.red-account-hero__points strong{font-size:2.15rem;line-height:1.05}.red-account-hero__points small{margin-top:5px;color:rgba(255,255,255,.68)}
.red-account-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.red-account-kpi{display:flex;align-items:center;gap:12px;min-width:0;padding:15px;border:1px solid #e7ebf0;border-radius:18px;background:#fff;color:#172033;text-align:left;text-decoration:none;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.045);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.red-account-kpi:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--red-color-primary,#2563eb) 35%,#e7ebf0);box-shadow:0 15px 34px rgba(15,23,42,.08)}.red-account-kpi__icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,var(--red-color-primary,#2563eb) 8%,#fff);color:var(--red-color-primary,#2563eb);font-size:1.05rem}.red-account-kpi>span:last-child{display:grid;min-width:0}.red-account-kpi small{overflow:hidden;color:#667085;font-size:.7rem;white-space:nowrap;text-overflow:ellipsis}.red-account-kpi strong{font-size:1.25rem}
.red-account-nav{position:sticky;top:90px;z-index:18;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:6px;border:1px solid #e7ebf0;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 10px 35px rgba(15,23,42,.06);backdrop-filter:blur(14px)}.red-account-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 12px;border:0;border-radius:13px;background:transparent;color:#667085;font-weight:800;cursor:pointer}.red-account-nav button.is-active{background:color-mix(in srgb,var(--red-color-primary,#2563eb) 9%,#fff);color:var(--red-color-primary,#2563eb)}.red-account-panel{display:grid;gap:22px}.red-account-panel[hidden]{display:none!important}.red-account-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.red-account-section-head h2{margin:0;font-size:clamp(1.4rem,2.4vw,2rem)}.red-account-section-head p{margin:5px 0 0;color:#667085}.red-account-section-head>div>span{color:var(--red-color-primary,#2563eb)}.red-account-link-button{display:inline-flex;align-items:center;gap:8px;padding:8px 0;border:0;background:transparent;color:var(--red-color-primary,#2563eb);font-weight:850;text-decoration:none;cursor:pointer}
.red-account-active-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.red-account-order-card{display:grid;gap:15px;padding:20px;border:1px solid #e4e9f0;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(15,23,42,.045)}.red-account-order-card__top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.red-account-order-type{display:block;margin-bottom:3px;color:#98a2b3;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.red-account-order-card h3{margin:0;font-size:1.16rem}.red-account-status{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:999px;font-size:.7rem;font-weight:850;white-space:nowrap}.red-account-status[data-tone="success"]{background:#ecfdf3;color:#027a48}.red-account-status[data-tone="danger"]{background:#fff1f1;color:#b42318}.red-account-status[data-tone="info"]{background:#eff8ff;color:#175cd3}.red-account-status[data-tone="warning"]{background:#fffaeb;color:#b54708}.red-account-order-card__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#667085;font-size:.74rem}.red-account-order-card__meta span{display:inline-flex;align-items:center;gap:5px}.red-account-order-card__meta strong{margin-left:auto;color:#172033;font-size:1rem}.red-account-order-card__actions{display:flex;gap:8px;flex-wrap:wrap}.red-account-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid #d8dee8;border-radius:12px;background:#fff;color:#344054;text-decoration:none;font-weight:800;cursor:pointer}.red-account-action--primary{border-color:var(--red-color-primary,#2563eb);background:var(--red-color-primary,#2563eb);color:#fff}.red-account-marketplace-progress{display:grid;gap:8px;padding:12px;border-radius:15px;background:#f8fafc}.red-account-marketplace-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:.7rem}.red-account-marketplace-progress__bar{height:6px!important;overflow:hidden;border-radius:999px;background:#e5eaf0}.red-account-marketplace-progress__bar span{display:block;height:100%;border-radius:inherit;background:var(--red-color-primary,#2563eb)}.red-account-marketplace-stores{display:flex;gap:5px;flex-wrap:wrap}.red-account-marketplace-stores span{padding:4px 7px;border:1px solid #e4e7ec;border-radius:999px;background:#fff;color:#667085;font-size:.62rem}
.red-account-empty{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:20px;border:1px dashed #d5dbe5;border-radius:20px;background:#fbfcfe}.red-account-empty>span{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#ecfdf3;color:#039855;font-size:1.3rem}.red-account-empty strong{display:block}.red-account-empty p{margin:3px 0 0;color:#667085}.red-account-home-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.red-account-feature-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:20px;border:1px solid #e4e9f0;border-radius:22px;background:#fff}.red-account-feature-card>a,.red-account-feature-card>button{grid-column:2;justify-self:start;border:0;background:transparent;color:var(--red-color-primary,#2563eb);font-weight:850;text-decoration:none;cursor:pointer}.red-account-feature-card__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:color-mix(in srgb,var(--red-color-primary,#2563eb) 9%,#fff);color:var(--red-color-primary,#2563eb)}.red-account-feature-card h3{margin:0 0 5px}.red-account-feature-card p{margin:0;color:#667085}.red-account-feature-card--points{background:linear-gradient(145deg,color-mix(in srgb,var(--red-color-primary,#2563eb) 4%,#fff),#fff)}.red-account-mini-list{display:grid;gap:8px;margin:9px 0 0;padding:0;list-style:none}.red-account-mini-list li{display:flex;justify-content:space-between;gap:12px}.red-account-mini-list small{color:#98a2b3}
.red-account-order-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,.7fr) minmax(180px,.8fr);gap:10px;padding:14px;border:1px solid #e6eaf0;border-radius:18px;background:#fff}.red-account-order-filters label{display:grid;gap:5px;color:#667085;font-size:.68rem;font-weight:800}.red-account-order-filters input,.red-account-order-filters select{min-height:43px;padding:9px 11px;border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#172033;outline:0}.red-account-order-filters input:focus,.red-account-order-filters select:focus{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,transparent)}.red-account-orders-server{display:grid;gap:10px;min-height:120px}.red-account-history-row{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(120px,.7fr) minmax(140px,.75fr) minmax(100px,.6fr) auto;gap:14px;align-items:center;padding:15px 17px;border:1px solid #e6eaf0;border-radius:16px;background:#fff}.red-account-history-row__doc{display:grid}.red-account-history-row__doc strong{font-size:.9rem}.red-account-history-row__doc small,.red-account-history-row__store small,.red-account-history-row__date small{color:#98a2b3;font-size:.66rem}.red-account-history-row__store,.red-account-history-row__date{display:grid}.red-account-history-row__total{font-weight:900;text-align:right}.red-account-history-row__action{display:inline-flex;padding:7px 9px;border-radius:10px;color:var(--red-color-primary,#2563eb);font-size:.74rem;font-weight:850;text-decoration:none}.red-account-orders-pagination{display:flex;align-items:center;justify-content:center;gap:5px}.red-account-orders-pagination button{min-width:38px;height:38px;border:1px solid #e1e6ed;border-radius:10px;background:#fff;color:#475467;font-weight:800;cursor:pointer}.red-account-orders-pagination button.is-active{border-color:var(--red-color-primary,#2563eb);background:var(--red-color-primary,#2563eb);color:#fff}.red-account-orders-pagination button:disabled{opacity:.45;cursor:not-allowed}.red-account-loading{display:flex;justify-content:center;align-items:center;gap:6px;min-height:100px}.red-account-loading span{width:8px;height:8px;border-radius:50%;background:#98a2b3;animation:redAccountLoading .9s infinite alternate}.red-account-loading span:nth-child(2){animation-delay:.15s}.red-account-loading span:nth-child(3){animation-delay:.3s}@keyframes redAccountLoading{to{transform:translateY(-7px);opacity:.35}}
.red-account-benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.red-account-benefit{display:grid;align-content:start;gap:7px;padding:22px;border:1px solid #e4e9f0;border-radius:22px;background:#fff}.red-account-benefit__icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:5px;border-radius:14px;background:#f2f4f7;color:#475467}.red-account-benefit small{color:#667085;font-weight:800}.red-account-benefit>strong{font-size:2rem}.red-account-benefit p{margin:0;color:#667085;font-size:.82rem}.red-account-benefit a{margin-top:5px;color:var(--red-color-primary,#2563eb);font-weight:850;text-decoration:none}.red-account-benefit--primary{border-color:color-mix(in srgb,var(--red-color-primary,#2563eb) 20%,#e4e9f0);background:linear-gradient(145deg,color-mix(in srgb,var(--red-color-primary,#2563eb) 8%,#fff),#fff)}.red-account-benefit--primary .red-account-benefit__icon{background:var(--red-color-primary,#2563eb);color:#fff}.red-account-referral-code{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border-radius:20px;background:#111827;color:#fff}.red-account-referral-code>div{display:grid}.red-account-referral-code span,.red-account-referral-code small{color:#b7c0cf}.red-account-referral-code strong{font-size:1.55rem;letter-spacing:.05em}.red-account-referral-code button{padding:10px 13px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-weight:850;cursor:pointer}.red-account-network-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.red-account-network-links a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:15px;border:1px solid #e4e9f0;border-radius:17px;background:#fff;text-decoration:none}.red-account-network-links>a>i:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2f4f7;color:var(--red-color-primary,#2563eb)}.red-account-network-links span{display:grid}.red-account-network-links small{color:#98a2b3;font-size:.68rem}
.red-account-activity-list{display:grid;gap:10px}.red-account-activity-list article{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:16px;align-items:center;padding:17px;border:1px solid #e5e9f0;border-radius:17px;background:#fff}.red-account-activity-list__date{display:grid}.red-account-activity-list__date small{color:#98a2b3}.red-account-activity-list h3{margin:0}.red-account-activity-list p{margin:3px 0 0;color:#667085}.red-account-activity-list a{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f8fafc;text-decoration:none}
.red-account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.red-account-profile-card{padding:20px;border:1px solid #e4e9f0;border-radius:22px;background:#fff}.red-account-profile-card__head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.red-account-profile-card__head>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--red-color-primary,#2563eb) 8%,#fff);color:var(--red-color-primary,#2563eb)}.red-account-profile-card__head h3{margin:0}.red-account-profile-card__head p{margin:2px 0 0;color:#98a2b3;font-size:.75rem}.red-account-form{display:grid;gap:12px}.red-account-form label{display:grid;gap:5px;color:#475467;font-size:.76rem;font-weight:750}.red-account-form input,.red-account-form textarea{width:100%;padding:10px 12px;border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#172033;outline:0}.red-account-form input:focus,.red-account-form textarea:focus{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,transparent)}.red-account-profile-card--addresses{margin-top:14px}.red-account-addresses{display:grid;gap:9px}.red-account-address{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid #e7ebf0;border-radius:15px}.red-account-address.is-default{border-color:color-mix(in srgb,var(--red-color-primary,#2563eb) 30%,#e7ebf0);background:color-mix(in srgb,var(--red-color-primary,#2563eb) 3%,#fff)}.red-account-address__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2f4f7;color:#667085}.red-account-address p{margin:2px 0;color:#667085;font-size:.75rem}.red-account-address small{color:var(--red-color-primary,#2563eb);font-weight:850}.red-account-address__actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.red-account-address__actions form{margin:0}.red-account-address__actions button{padding:6px 8px;border:1px solid #e1e6ed;border-radius:9px;background:#fff;color:#475467;font-size:.68rem;font-weight:800;cursor:pointer}.red-account-address__actions button.is-danger{color:#b42318}.red-account-address-add{margin-top:12px;padding-top:12px;border-top:1px solid #eef2f6}.red-account-address-add summary{cursor:pointer;color:var(--red-color-primary,#2563eb);font-weight:850}.red-account-form--address{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:15px}.red-account-form__wide{grid-column:1/-1}.red-account-checkbox{display:flex!important;grid-column:1/-1;flex-direction:row!important;align-items:center;gap:8px!important}.red-account-checkbox input{width:auto}.red-account-profile-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.red-account-profile-footer a,.red-account-profile-footer button{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #e1e6ed;border-radius:11px;background:#fff;color:#475467;text-decoration:none;font-weight:800;cursor:pointer}.red-account-profile-footer form{margin:0}
.red-account-chat-overlay{position:fixed;inset:0;z-index:96;background:rgba(15,23,42,.48);backdrop-filter:blur(2px)}.red-account-chat{position:fixed;z-index:97;top:0;right:0;bottom:0;display:grid;grid-template-rows:auto 1fr auto;width:min(94vw,430px);background:#fff;box-shadow:-20px 0 60px rgba(15,23,42,.2)}.red-account-chat[hidden],.red-account-chat-overlay[hidden]{display:none!important}.red-account-chat header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e7ebf0}.red-account-chat header span{display:block;color:var(--red-color-primary,#2563eb);font-size:.64rem;font-weight:900;letter-spacing:.1em}.red-account-chat header h2{margin:2px 0 0;font-size:1.2rem}.red-account-chat header small{color:#667085}.red-account-chat header button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:#f2f4f7;cursor:pointer}.red-account-chat__messages{overflow:auto;display:flex;flex-direction:column;gap:9px;padding:18px;background:#f8fafc}.red-account-chat-message{max-width:84%;padding:10px 12px;border-radius:15px;background:#fff;border:1px solid #e5e9f0;box-shadow:0 3px 12px rgba(15,23,42,.04)}.red-account-chat-message.is-client{align-self:flex-end;border-color:transparent;background:var(--red-color-primary,#2563eb);color:#fff}.red-account-chat-message.is-system{align-self:center;max-width:94%;background:#eef2f7;color:#667085;font-size:.72rem;text-align:center}.red-account-chat-message p{margin:0;white-space:pre-wrap}.red-account-chat-message small{display:block;margin-top:4px;opacity:.65;font-size:.62rem}.red-account-chat-media{display:block;margin:0 0 8px;max-width:100%}.red-account-chat-media.is-image{overflow:hidden;border-radius:10px;background:#eef2f7}.red-account-chat-media.is-image img{display:block;width:100%;max-height:260px;object-fit:cover}.red-account-chat-media.is-audio{width:min(100%,290px);height:36px}.red-account-chat-media.is-video{width:100%;max-height:280px;border-radius:10px;background:#111}.red-account-chat-media.is-file{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid currentColor;border-radius:10px;color:inherit;text-decoration:none;font-size:.74rem;font-weight:800}.red-account-chat-message.is-client .red-account-chat-media.is-file{border-color:rgba(255,255,255,.5)}.red-account-chat__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:13px;border-top:1px solid #e7ebf0;background:#fff}.red-account-chat__form textarea{resize:none;min-height:48px;padding:11px 12px;border:1px solid #d8dee8;border-radius:13px;outline:0}.red-account-chat__form textarea:focus{border-color:var(--red-color-primary,#2563eb)}.red-account-chat__form button{width:48px;border:0;border-radius:13px;background:var(--red-color-primary,#2563eb);color:#fff;cursor:pointer}.red-account-chat__closed{margin:0;padding:13px 16px;border-top:1px solid #e7ebf0;background:#fffaeb;color:#b54708;font-size:.78rem;font-weight:700}.red-account-legacy-wrap{display:grid;gap:16px;max-width:900px;margin:0 auto}.red-account-legacy-wrap>.red-card{padding:18px}
@media(max-width:1050px){.red-account-kpis{grid-template-columns:repeat(3,1fr)}.red-account-active-orders,.red-account-home-grid{grid-template-columns:1fr}.red-account-benefit-grid,.red-account-network-links{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.red-account{gap:16px}.red-account-hero{grid-template-columns:1fr;border-radius:22px}.red-account-hero__points{min-width:0}.red-account-kpis{display:flex;overflow:auto;margin-inline:-16px;padding:2px 16px 8px;scroll-snap-type:x mandatory}.red-account-kpi{flex:0 0 165px;scroll-snap-align:start}.red-account-nav{top:auto;bottom:74px;grid-template-columns:repeat(5,1fr);border-radius:16px}.red-account-nav button{display:grid;place-items:center;gap:2px;padding:7px 4px;font-size:.62rem}.red-account-nav button i{font-size:.9rem}.red-account-section-head{align-items:flex-start;flex-direction:column}.red-account-order-card__meta strong{width:100%;margin-left:0}.red-account-benefit-grid,.red-account-network-links,.red-account-profile-grid{grid-template-columns:1fr}.red-account-order-filters{grid-template-columns:1fr}.red-account-history-row{grid-template-columns:1fr auto}.red-account-history-row__store,.red-account-history-row__date{display:none}.red-account-history-row__total{text-align:right}.red-account-history-row__action{grid-column:1/-1;justify-content:center;background:#f8fafc}.red-account-activity-list article{grid-template-columns:1fr auto}.red-account-activity-list__date{grid-column:1}.red-account-empty{grid-template-columns:auto 1fr}.red-account-empty .red-button{grid-column:1/-1}.red-account-address{grid-template-columns:auto 1fr}.red-account-address__actions{grid-column:1/-1;justify-content:flex-start;padding-left:50px}.red-account-form--address{grid-template-columns:1fr}.red-account-form__wide{grid-column:auto}.red-account-referral-code{align-items:flex-start;flex-direction:column}.red-account-chat{width:100vw}.red-account-profile-footer{display:grid}.red-account-profile-footer a,.red-account-profile-footer form,.red-account-profile-footer button{width:100%;justify-content:center}}
.red-account-history-row__actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.red-account-history-row__action--button{border:0;background:transparent;cursor:pointer;font:inherit}.red-account-orders-empty,.red-account-chat__empty{display:grid;place-items:center;gap:5px;min-height:130px;padding:24px;border:1px dashed #d8dee8;border-radius:17px;background:#fbfcfe;color:#667085;text-align:center}.red-account-orders-empty>i,.red-account-chat__empty>i{font-size:1.45rem;color:var(--red-color-primary,#2563eb)}.red-account-orders-empty strong,.red-account-chat__empty strong{color:#344054}.red-account-orders-empty span,.red-account-chat__empty span{font-size:.76rem}.red-account-orders-empty.is-error,.red-account-chat__empty.is-error{border-color:#fecaca;background:#fff7f7;color:#991b1b}.red-account-chat__empty{min-height:180px;border:0;background:transparent}.red-account-chat__form button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.red-account-history-row__actions{grid-column:1/-1;justify-content:stretch}.red-account-history-row__actions .red-account-history-row__action{flex:1;justify-content:center;background:#f8fafc;border:1px solid #e5e9f0}.red-account-history-row__actions .red-account-history-row__action--button{color:var(--red-color-primary,#2563eb)}}

/* Dashboard cliente PRO V2 — timeline, operación Marketplace y libro de puntos. */
.red-account-action[type="button"]{font:inherit;cursor:pointer}
.red-account-points-card{margin-top:18px;padding:20px;border:1px solid #e5e9f0;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.04)}
.red-account-points-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.red-account-points-card__head span:first-child{display:block;color:var(--red-color-primary,#2563eb);font-size:.66rem;font-weight:900;letter-spacing:.11em}
.red-account-points-card__head h3{margin:3px 0 3px;font-size:1.08rem}.red-account-points-card__head p{margin:0;color:#667085;font-size:.78rem}
.red-account-points-badge{display:inline-flex!important;align-items:center;gap:6px;flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#ecfdf3!important;color:#067647!important;font-size:.65rem!important;font-weight:800!important;letter-spacing:0!important}
.red-account-points-list{display:grid;gap:8px}.red-account-points-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #eef1f5;border-radius:13px;background:#fbfcfe}.red-account-points-row>div{display:grid;gap:2px;min-width:0}.red-account-points-row>div strong{color:#344054;font-size:.8rem}.red-account-points-row small{overflow:hidden;color:#98a2b3;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.red-account-points-row__amount{flex:0 0 auto;font-size:.88rem}.red-account-points-row__amount.is-positive{color:#067647}.red-account-points-row__amount.is-negative{color:#b42318}.red-account-points-empty{padding:18px;border:1px dashed #d5dce7;border-radius:14px;background:#fbfcfe;text-align:center}.red-account-points-empty strong{display:block;color:#344054}.red-account-points-empty p{margin:4px auto 0;max-width:620px;color:#667085;font-size:.76rem}.red-account-points-empty.is-error{border-color:#fecaca;background:#fff7f7;color:#991b1b}.red-account-points-note{margin:3px 0 0;color:#7a8495;font-size:.7rem}
.red-account-order-detail-overlay{position:fixed;inset:0;z-index:94;background:rgba(15,23,42,.52);backdrop-filter:blur(3px)}
.red-account-order-detail{position:fixed;z-index:95;top:0;right:0;bottom:0;display:grid;grid-template-rows:auto 1fr auto;width:min(96vw,650px);background:#fff;box-shadow:-24px 0 70px rgba(15,23,42,.22)}
.red-account-order-detail[hidden],.red-account-order-detail-overlay[hidden]{display:none!important}
.red-account-order-detail__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:19px 22px;border-bottom:1px solid #e7ebf0;background:linear-gradient(180deg,#fff,#fbfcfe)}
.red-account-order-detail__header>div>span{display:block;color:var(--red-color-primary,#2563eb);font-size:.65rem;font-weight:900;letter-spacing:.11em}.red-account-order-detail__header h2{margin:3px 0 1px;color:#101828;font-size:1.3rem}.red-account-order-detail__header small{color:#667085}.red-account-order-detail__header button{display:grid;place-items:center;width:39px;height:39px;border:0;border-radius:12px;background:#f2f4f7;color:#475467;cursor:pointer}
.red-account-order-detail__body{overflow:auto;padding:20px;background:#f8fafc}.red-account-order-detail__notice{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 13px;border:1px solid;border-radius:14px;font-size:.78rem;line-height:1.5}.red-account-order-detail__notice i{margin-top:2px;font-size:1rem}.red-account-order-detail__notice p{margin:0}.red-account-order-detail__notice.is-active{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.red-account-order-detail__notice.is-history{border-color:#fde68a;background:#fffbeb;color:#92400e}
.red-account-order-detail__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.red-account-order-detail__fact{display:grid;gap:2px;padding:11px 12px;border:1px solid #e5e9f0;border-radius:13px;background:#fff}.red-account-order-detail__fact small{color:#98a2b3;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em}.red-account-order-detail__fact strong{overflow:hidden;color:#344054;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}
.red-account-order-detail__section{margin-top:12px;padding:16px;border:1px solid #e5e9f0;border-radius:17px;background:#fff}.red-account-order-detail__section h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#344054;font-size:.9rem}.red-account-order-detail__section h3 i{color:var(--red-color-primary,#2563eb)}.red-account-order-detail__section>p{margin:0;color:#475467;font-size:.78rem}.red-account-order-detail__section>small{display:block;margin-top:6px;color:#667085;font-size:.7rem}
.red-account-order-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.red-account-order-operations article{display:grid;gap:8px;padding:11px;border:1px solid #eef1f5;border-radius:13px;background:#fbfcfe}.red-account-order-operations article>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.red-account-order-operations article>div strong{font-size:.76rem}.red-account-order-operations article>div span{flex:0 0 auto;color:#344054;font-size:.72rem;font-weight:800}.red-account-order-operations .red-account-status{justify-self:start}
.red-account-order-timeline{position:relative;display:grid;gap:0}.red-account-order-timeline::before{content:"";position:absolute;top:9px;bottom:9px;left:7px;width:2px;background:#e5e9f0}.red-account-order-timeline__item{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;padding:0 0 16px}.red-account-order-timeline__item:last-child{padding-bottom:0}.red-account-order-timeline__dot{position:relative;z-index:1;width:16px;height:16px;margin-top:2px;border:4px solid #fff;border-radius:50%;background:var(--red-color-primary,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb,var(--red-color-primary,#2563eb) 20%,#dbe2ea)}.red-account-order-timeline__item.is-operation .red-account-order-timeline__dot{background:#0e9384}.red-account-order-timeline__item>div{display:grid;gap:3px}.red-account-order-timeline__item>div>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.red-account-order-timeline__item strong{color:#344054;font-size:.78rem}.red-account-order-timeline__item small{flex:0 0 auto;color:#98a2b3;font-size:.65rem}.red-account-order-timeline__item p{margin:0;color:#667085;font-size:.72rem;line-height:1.45}.red-account-order-timeline__store{justify-self:start;padding:3px 7px;border-radius:999px;background:#ecfdf3;color:#067647;font-size:.62rem;font-weight:800}
.red-account-order-products{display:grid;gap:6px}.red-account-order-products article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #f0f2f5}.red-account-order-products article:last-child{border-bottom:0}.red-account-order-products article>div{display:grid;gap:2px;min-width:0}.red-account-order-products article>div strong{font-size:.75rem}.red-account-order-products article small{overflow:hidden;color:#98a2b3;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}.red-account-order-products article>strong{flex:0 0 auto;font-size:.76rem}
.red-account-order-detail__footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 17px;border-top:1px solid #e7ebf0;background:#fff}.red-account-order-detail__footer .red-account-action{min-height:40px}
@media(max-width:760px){.red-account-points-card__head{flex-direction:column}.red-account-order-detail{width:100vw}.red-account-order-detail__body{padding:14px}.red-account-order-detail__facts,.red-account-order-operations{grid-template-columns:1fr}.red-account-order-detail__footer{display:grid;grid-template-columns:1fr 1fr}.red-account-order-detail__footer .red-account-action{justify-content:center}.red-account-order-timeline__item>div>div{flex-direction:column;gap:2px}}

/* Dashboard Cliente PRO V3: dock interno siempre disponible en móvil. */
@media(max-width:760px){
    .red-account-nav{
        position:fixed!important;
        top:auto!important;
        left:max(10px,env(safe-area-inset-left));
        right:max(10px,env(safe-area-inset-right));
        bottom:calc(72px + env(safe-area-inset-bottom) + 8px)!important;
        width:auto;
        max-width:560px;
        margin:0 auto;
        z-index:68;
        box-shadow:0 16px 42px rgba(15,23,42,.16);
    }
    .red-account-panels{padding-bottom:82px}
}


/* Dashboard Cliente PRO V4 — acciones de pedido y accesibilidad de drawers. */
.red-account-order-detail[inert],.red-account-chat[inert]{pointer-events:none}
.red-account-order-actions{background:linear-gradient(180deg,#fff,#fbfcfe)}
.red-account-order-actions__message{margin:0 0 11px!important;color:#475467!important;line-height:1.5}
.red-account-order-actions__methods{display:grid;gap:7px;margin-top:10px}
.red-account-order-actions__methods>small{color:#98a2b3;font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.red-account-order-actions__methods>div{display:flex;flex-wrap:wrap;gap:6px}
.red-account-order-actions__methods span{display:inline-flex;padding:5px 8px;border:1px solid #e4e7ec;border-radius:999px;background:#f8fafc;color:#475467;font-size:.66rem;font-weight:800}
.red-account-order-actions__methods span.is-current{border-color:color-mix(in srgb,var(--red-color-primary,#b00000) 28%,#e4e7ec);background:color-mix(in srgb,var(--red-color-primary,#b00000) 7%,#fff);color:var(--red-color-primary,#b00000)}
.red-account-order-actions__buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.red-account-action--whatsapp{border-color:#bbf7d0!important;background:#ecfdf3!important;color:#047857!important;text-decoration:none}
.red-account-operation-contact{display:inline-flex;align-items:center;justify-content:center;gap:6px;justify-self:start;padding:6px 9px;border:1px solid #bbf7d0;border-radius:9px;background:#ecfdf3;color:#047857;font-size:.66rem;font-weight:850;text-decoration:none}
@media(max-width:760px){.red-account-order-actions__buttons{display:grid;grid-template-columns:1fr 1fr}.red-account-order-actions__buttons>*{justify-content:center}}

/* Dashboard Cliente PRO V5 — pagos reintentables y perfil geográfico. */
.red-account-form select{width:100%;padding:10px 12px;border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#172033;outline:0;font:inherit}.red-account-form select:focus{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,transparent)}
.red-account-phone-field{display:grid;grid-template-columns:minmax(140px,42%) minmax(0,1fr);gap:8px}.red-account-form__hint{display:block;margin-top:2px;color:#98a2b3;font-size:.66rem;font-weight:600;line-height:1.35}
.red-account-profile-card__head--with-action{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.red-account-address-add-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 11px;border:1px solid color-mix(in srgb,var(--red-color-primary,#2563eb) 22%,#e1e6ed);border-radius:10px;background:color-mix(in srgb,var(--red-color-primary,#2563eb) 5%,#fff);color:var(--red-color-primary,#2563eb);font:inherit;font-size:.72rem;font-weight:850;cursor:pointer}
.red-account-address>div>em{display:block;margin-top:3px;color:#667085;font-size:.7rem;font-style:normal}.red-account-address-empty{display:flex;align-items:center;gap:11px;padding:16px;border:1px dashed #d8dee8;border-radius:15px;background:#fbfcfe;color:#667085}.red-account-address-empty>i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2f4f7}.red-account-address-empty span{display:grid;gap:2px}.red-account-address-empty strong{color:#344054}.red-account-address-empty small{font-size:.72rem}.red-account-address-map-source{display:none!important}
.red-account-payment-method{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e4e7ec;border-radius:999px;background:#fff;color:#344054;font:inherit;font-size:.68rem;font-weight:850;cursor:pointer;transition:.15s ease}.red-account-payment-method:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--red-color-primary,#b00000) 40%,#e4e7ec);color:var(--red-color-primary,#b00000)}.red-account-payment-method.is-current{border-color:color-mix(in srgb,var(--red-color-primary,#b00000) 34%,#e4e7ec);background:color-mix(in srgb,var(--red-color-primary,#b00000) 7%,#fff);color:var(--red-color-primary,#b00000)}.red-account-payment-method:disabled{opacity:.6;cursor:wait;transform:none}
@media(max-width:760px){.red-account-phone-field{grid-template-columns:135px minmax(0,1fr)}.red-account-profile-card__head--with-action{grid-template-columns:auto minmax(0,1fr)}.red-account-profile-card__head--with-action .red-account-address-add-button{grid-column:1/-1;width:100%}.red-account-address__actions{padding-left:0}.red-account-address__actions button{min-height:34px}.red-account-payment-method{width:100%;justify-content:center;border-radius:10px}}

/* V5 · estados unificados con Admin Monitoreo */
.red-account-status[data-tone="primary"]{background:#eef2ff;color:#4f46e5}.red-account-status[data-tone="secondary"]{background:#f2f4f7;color:#475467}
.red-account-order-state-info{--state-bg:#f8fafc;--state-border:#d0d5dd;--state-color:#475467;display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--state-border);border-radius:14px;background:var(--state-bg);color:var(--state-color)}.red-account-order-state-info__icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid color-mix(in srgb,var(--state-border) 72%,transparent)}.red-account-order-state-info__copy{display:grid;gap:2px;min-width:0}.red-account-order-state-info__copy strong{font-size:.75rem;line-height:1.25}.red-account-order-state-info__copy small{font-size:.69rem;line-height:1.45;color:inherit;opacity:.86}.red-account-order-state-info[data-tone="warning"]{--state-bg:#fffaeb;--state-border:#fedf89;--state-color:#b54708}.red-account-order-state-info[data-tone="info"]{--state-bg:#eff8ff;--state-border:#b2ddff;--state-color:#175cd3}.red-account-order-state-info[data-tone="success"]{--state-bg:#ecfdf3;--state-border:#abefc6;--state-color:#067647}.red-account-order-state-info[data-tone="danger"]{--state-bg:#fff1f1;--state-border:#fecdca;--state-color:#b42318}.red-account-order-state-info[data-tone="primary"]{--state-bg:#eef2ff;--state-border:#c7d2fe;--state-color:#4338ca}.red-account-order-state-info[data-tone="secondary"]{--state-bg:#f2f4f7;--state-border:#d0d5dd;--state-color:#475467}
.red-account-history-row__doc{display:grid;justify-items:start;gap:3px}.red-account-history-row__status{min-height:22px;padding:3px 7px;font-size:.61rem}.red-account-history-row__action--pdf{color:#b42318!important}
.red-account-order-detail__header small[data-tone]{display:inline-flex;margin-top:5px;padding:4px 8px;border-radius:999px;font-weight:800}.red-account-order-detail__header small[data-tone="warning"]{background:#fffaeb;color:#b54708}.red-account-order-detail__header small[data-tone="info"]{background:#eff8ff;color:#175cd3}.red-account-order-detail__header small[data-tone="success"]{background:#ecfdf3;color:#067647}.red-account-order-detail__header small[data-tone="danger"]{background:#fff1f1;color:#b42318}.red-account-order-detail__header small[data-tone="primary"]{background:#eef2ff;color:#4338ca}.red-account-order-detail__header small[data-tone="secondary"]{background:#f2f4f7;color:#475467}
.red-account-order-detail__notice>div{display:grid;gap:2px}.red-account-order-detail__notice>div>strong{font-size:.78rem}.red-account-order-detail__notice[data-tone="warning"]{border-color:#fedf89;background:#fffaeb;color:#b54708}.red-account-order-detail__notice[data-tone="info"]{border-color:#b2ddff;background:#eff8ff;color:#175cd3}.red-account-order-detail__notice[data-tone="success"]{border-color:#abefc6;background:#ecfdf3;color:#067647}.red-account-order-detail__notice[data-tone="danger"]{border-color:#fecdca;background:#fff1f1;color:#b42318}.red-account-order-detail__notice[data-tone="primary"]{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}.red-account-order-detail__notice[data-tone="secondary"]{border-color:#d0d5dd;background:#f2f4f7;color:#475467}
.red-account-order-timeline__item[data-tone="warning"] .red-account-order-timeline__dot{border-color:#f79009;background:#fffaeb}.red-account-order-timeline__item[data-tone="info"] .red-account-order-timeline__dot{border-color:#2e90fa;background:#eff8ff}.red-account-order-timeline__item[data-tone="success"] .red-account-order-timeline__dot{border-color:#12b76a;background:#ecfdf3}.red-account-order-timeline__item[data-tone="danger"] .red-account-order-timeline__dot{border-color:#f04438;background:#fff1f1}.red-account-order-timeline__item[data-tone="primary"] .red-account-order-timeline__dot{border-color:#6366f1;background:#eef2ff}.red-account-order-timeline__item[data-tone="secondary"] .red-account-order-timeline__dot{border-color:#98a2b3;background:#f2f4f7}


/* V9: adjuntos compactos + indicador de conversación nueva por pedido */
.red-account-chat-message{min-width:0}
.red-account-chat-media.is-file{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden}
.red-account-chat-media.is-file>i{flex:0 0 auto}
.red-account-chat-media.is-file>span{min-width:0;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.red-account-action[data-red-order-chat-open],.red-account-history-row__action[data-red-order-chat-open],.red-account-action[data-red-order-detail-chat]{position:relative}
.red-account-chat-unread{position:absolute;z-index:2;top:-8px;right:-8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#e11d48;color:#fff;font-size:.62rem;font-weight:900;line-height:1;box-shadow:0 3px 10px rgba(15,23,42,.18)}
.red-account-action.has-unread,.red-account-history-row__action.has-unread{border-color:#fda4af}
@media(max-width:760px){.red-account-chat-message{max-width:88%}.red-account-chat-media.is-file{font-size:.7rem}.red-account-chat-unread{top:-7px;right:-6px}}


/* Dashboard ChatCenter Order V15 V4: composer + emoji picker liviano, sin librerias externas. */
.red-account-chat__form{position:relative;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.red-account-chat__composer{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;min-width:0;border:1px solid #d8dee8;border-radius:13px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.red-account-chat__composer:focus-within{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 10%,transparent)}
.red-account-chat__composer textarea{min-width:0;border:0!important;box-shadow:none!important;resize:none;background:transparent}
.red-account-chat__emoji-toggle{display:grid;place-items:center;width:42px;height:44px;margin:3px 0 3px 3px;border:0;border-radius:11px;background:transparent;color:#667085;font-size:1.05rem;cursor:pointer;transition:background .15s ease,color .15s ease}
.red-account-chat__emoji-toggle:hover,.red-account-chat__emoji-toggle[aria-expanded="true"]{background:#f2f4f7;color:var(--red-color-primary,#2563eb)}
.red-account-chat__emoji-picker{position:absolute;z-index:4;right:0;bottom:calc(100% + 10px);display:grid;grid-template-columns:repeat(6,1fr);gap:3px;width:min(320px,calc(100vw - 36px));max-height:250px;overflow:auto;padding:10px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.18)}
.red-account-chat__emoji-picker[hidden]{display:none!important}
.red-account-chat__emoji{display:grid;place-items:center;aspect-ratio:1;border:0;border-radius:10px;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}
.red-account-chat__emoji:hover,.red-account-chat__emoji:focus-visible{background:#f2f4f7;outline:0;transform:scale(1.06)}
.red-account-chat__send{flex:0 0 auto}
@media(max-width:520px){.red-account-chat__emoji-picker{left:0;right:auto;grid-template-columns:repeat(6,1fr);width:min(310px,calc(100vw - 82px))}}

/* Dashboard ChatCenter Order V15 V5: composer compacto + adjuntos cliente -> asesor. */
.red-account-chat__form{padding:10px;gap:6px}
.red-account-chat__composer{grid-template-columns:auto auto minmax(0,1fr);border-radius:12px}
.red-account-chat__composer textarea{min-height:42px;max-height:92px;padding:9px 8px;font-size:.82rem;line-height:1.35}
.red-account-chat__attach-toggle,.red-account-chat__emoji-toggle{display:grid!important;place-items:center!important;width:34px!important;height:36px!important;margin:3px 0 3px 3px!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#667085!important;font-size:.98rem!important;box-shadow:none!important;cursor:pointer}
.red-account-chat__emoji-toggle{margin-left:0!important}
.red-account-chat__attach-toggle:hover,.red-account-chat__attach-toggle:focus-visible,.red-account-chat__emoji-toggle:hover,.red-account-chat__emoji-toggle:focus-visible,.red-account-chat__emoji-toggle[aria-expanded="true"]{background:#f2f4f7!important;color:var(--red-color-primary,#2563eb)!important;outline:0}
.red-account-chat__attach-toggle:disabled,.red-account-chat__emoji-toggle:disabled{opacity:.45;cursor:wait}
.red-account-chat__send{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;padding:0!important;border-radius:12px!important;align-self:end}
.red-account-chat__emoji-picker{left:4px!important;right:auto!important;bottom:calc(100% + 8px)!important;grid-template-columns:repeat(8,28px)!important;justify-content:start!important;gap:2px!important;width:auto!important;max-width:calc(100vw - 92px)!important;max-height:184px!important;padding:7px!important;border-radius:13px!important}
.red-account-chat__emoji-picker .red-account-chat__emoji{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:initial!important;font-size:1.08rem!important;line-height:1!important;box-shadow:none!important}
.red-account-chat__emoji-picker .red-account-chat__emoji:hover,.red-account-chat__emoji-picker .red-account-chat__emoji:focus-visible{background:#f2f4f7!important;outline:0;transform:none}
.red-account-chat__attachment-preview{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:8px 9px;border:1px solid #e4e7ec;border-radius:11px;background:#f8fafc;color:#344054}
.red-account-chat__attachment-preview[hidden]{display:none!important}
.red-account-chat__attachment-preview.is-sending{opacity:.62}
.red-account-chat__attachment-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#fff;color:var(--red-color-primary,#2563eb);box-shadow:0 1px 3px rgba(15,23,42,.08)}
.red-account-chat__attachment-copy{display:grid;min-width:0;gap:1px}
.red-account-chat__attachment-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}
.red-account-chat__attachment-copy small{color:#667085;font-size:.62rem}
.red-account-chat__attachment-preview>button{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#667085!important;cursor:pointer}
.red-account-chat__attachment-preview>button:hover,.red-account-chat__attachment-preview>button:focus-visible{background:#eef2f6!important;color:#101828!important;outline:0}
@media(max-width:520px){.red-account-chat__form{padding:8px}.red-account-chat__emoji-picker{grid-template-columns:repeat(8,27px)!important;max-width:calc(100vw - 88px)!important}.red-account-chat__emoji-picker .red-account-chat__emoji{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;font-size:1.02rem!important}.red-account-chat__send{width:42px!important;height:42px!important}.red-account-chat__attach-toggle,.red-account-chat__emoji-toggle{width:32px!important;height:34px!important}.red-account-chat__composer textarea{font-size:.8rem}}


/* Dashboard ChatCenter Order V15 V6: scroll estable + notas de voz. */
.red-account-chat__composer{grid-template-columns:auto auto auto minmax(0,1fr)}
.red-account-chat__voice-toggle{display:grid!important;place-items:center!important;width:34px!important;height:36px!important;margin:3px 0 3px 0!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#667085!important;font-size:.98rem!important;box-shadow:none!important;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.red-account-chat__voice-toggle:hover,.red-account-chat__voice-toggle:focus-visible{background:#f2f4f7!important;color:var(--red-color-primary,#2563eb)!important;outline:0}
.red-account-chat__voice-toggle.is-recording{background:#fff1f2!important;color:#e11d48!important;animation:redAccountVoicePulse 1.15s ease-in-out infinite}
.red-account-chat__voice-toggle:disabled{opacity:.45;cursor:wait;animation:none}
@keyframes redAccountVoicePulse{0%,100%{box-shadow:0 0 0 0 rgba(225,29,72,.08)}50%{box-shadow:0 0 0 5px rgba(225,29,72,.12)}}
.red-account-chat__attachment-preview:has([data-red-order-chat-attachment-icon].fa-microphone){background:#fffafa}
@media(max-width:520px){.red-account-chat__voice-toggle{width:32px!important;height:34px!important}.red-account-chat__composer textarea{padding-left:6px}}

/* Referral share V15 */
.red-account-referral-share [hidden]{display:none!important}
.red-account-referral-share{display:grid;gap:18px;padding:22px;border:1px solid color-mix(in srgb,var(--red-color-primary,#2563eb) 18%,#e4e9f0);border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--red-color-primary,#2563eb) 5%,#fff),#fff);overflow:hidden}
.red-account-referral-share__head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.red-account-referral-share__icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:var(--red-color-primary,#2563eb);color:#fff;font-size:1.05rem}
.red-account-referral-share__head>div{display:grid;gap:3px}.red-account-referral-share__head>div>span{font-size:.68rem;font-weight:900;letter-spacing:.09em;color:var(--red-color-primary,#2563eb)}.red-account-referral-share__head h3{margin:0;font-size:1.15rem}.red-account-referral-share__head p{max-width:780px;margin:0;color:#667085;font-size:.82rem;line-height:1.55}
.red-account-referral-share__body{display:grid;grid-template-columns:minmax(150px,.42fr) minmax(0,1.58fr);gap:12px}
.red-account-referral-share__code,.red-account-referral-share__link>span:last-child{min-width:0;border:1px solid #e4e9f0;border-radius:16px;background:#fff}
.red-account-referral-share__code{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:12px 14px}.red-account-referral-share__code small{grid-column:1;color:#667085;font-size:.66rem;font-weight:800}.red-account-referral-share__code strong{font-size:1.15rem;letter-spacing:.06em}.red-account-referral-share__code button{grid-column:2;grid-row:1/3;align-self:stretch}
.red-account-referral-share button,.red-account-referral-share__qr a{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid #dfe4eb;border-radius:12px;background:#fff;color:#344054;font:inherit;font-size:.76rem;font-weight:850;text-decoration:none;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.red-account-referral-share button:hover,.red-account-referral-share__qr a:hover{border-color:#c5ccd6;background:#f8fafc}.red-account-referral-share button:active{transform:translateY(1px)}.red-account-referral-share button.is-copied{border-color:#abefc6;background:#ecfdf3;color:#067647}
.red-account-referral-share__link{display:grid;gap:6px;min-width:0}.red-account-referral-share__link>span:first-child{padding-left:3px;color:#667085;font-size:.67rem;font-weight:850}.red-account-referral-share__link>span:last-child{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:5px}.red-account-referral-share__link input{min-width:0;padding:7px 9px;border:0;outline:0;background:transparent;color:#475467;font:inherit;font-size:.76rem;text-overflow:ellipsis}
.red-account-referral-share__actions{display:flex;flex-wrap:wrap;gap:8px}.red-account-referral-share__actions .is-whatsapp{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.red-account-referral-share__actions .is-whatsapp:hover{background:#dcfce7}
.red-account-referral-share__qr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:16px;border:1px dashed #d0d5dd;border-radius:18px;background:#fff}.red-account-referral-share__qr[hidden]{display:none}.red-account-referral-share__qr-box{display:grid;place-items:center;width:180px;height:180px;padding:9px;border:1px solid #eaecf0;border-radius:16px;background:#fff;overflow:hidden}.red-account-referral-share__qr img{display:block;width:100%;height:100%;object-fit:contain}.red-account-referral-share__qr>div:last-child{display:grid;justify-items:start;gap:6px}.red-account-referral-share__qr p{max-width:520px;margin:0;color:#667085;font-size:.78rem;line-height:1.45}
.red-account-referral-share__note{display:flex;align-items:flex-start;gap:8px;color:#667085;font-size:.72rem;line-height:1.45}.red-account-referral-share__note i{margin-top:2px;color:var(--red-color-primary,#2563eb)}
@media(max-width:760px){.red-account-referral-share{padding:17px;gap:14px;border-radius:19px}.red-account-referral-share__head{grid-template-columns:1fr}.red-account-referral-share__icon{width:40px;height:40px}.red-account-referral-share__body{grid-template-columns:1fr}.red-account-referral-share__link>span:last-child{grid-template-columns:minmax(0,1fr)}.red-account-referral-share__link button{margin:2px}.red-account-referral-share__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.red-account-referral-share__actions button{width:100%}.red-account-referral-share__qr{grid-template-columns:1fr;justify-items:center;text-align:center}.red-account-referral-share__qr>div:last-child{justify-items:center}.red-account-referral-share__qr-box{width:min(180px,70vw);height:min(180px,70vw)}}


/* Dashboard Cliente V15 · Entregado -> calificar/omitir -> Finalizado. */
.red-account-order-card__actions.is-rating-ready{align-items:center}
.red-account-action--rating{border-color:#f5c451!important;background:#fff8df!important;color:#9a6700!important}
.red-account-action--rating:hover,.red-account-action--rating:focus-visible{border-color:#e9ad20!important;background:#fff3c4!important;color:#7a5000!important;outline:0}
.red-account-action--quiet{border-color:#e4e7ec!important;background:#f8fafc!important;color:#667085!important}
.red-account-action--quiet:hover,.red-account-action--quiet:focus-visible{background:#eef2f6!important;color:#344054!important;outline:0}
.red-account-rating-prompt{border-color:#f7d77b!important;background:linear-gradient(180deg,#fffdf7,#fffaf0)!important}
.red-account-rating-prompt>p{margin:0!important;color:#667085!important;line-height:1.5}
.red-account-rating-prompt__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

.red-account-rating-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}
.red-account-rating-modal{position:fixed;z-index:101;top:50%;left:50%;width:min(calc(100vw - 28px),560px);max-height:min(88vh,680px);overflow:auto;transform:translate(-50%,-50%);border:1px solid #e4e7ec;border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(15,23,42,.3)}
.red-account-rating-modal[hidden],.red-account-rating-overlay[hidden]{display:none!important}
.red-account-rating-modal header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #edf0f4}
.red-account-rating-modal header span{display:block;color:var(--red-color-primary,#2563eb);font-size:.63rem;font-weight:900;letter-spacing:.1em}
.red-account-rating-modal header h2{margin:3px 0 2px;font-size:1.28rem;color:#101828}
.red-account-rating-modal header small{color:#667085;font-size:.75rem}
.red-account-rating-modal header button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0;border-radius:12px;background:#f2f4f7;color:#344054;cursor:pointer}
.red-account-rating-modal form{display:grid;gap:18px;padding:20px 22px 22px}
.red-account-rating-field{display:grid;gap:9px;color:#344054;font-size:.78rem;font-weight:800}
.red-account-rating-field>span,.red-account-rating-field>label{font-weight:850}
.red-account-rating-field em{color:#98a2b3;font-size:.68rem;font-style:normal;font-weight:650}
.red-account-rating-field textarea{width:100%;resize:vertical;min-height:104px;padding:12px 13px;border:1px solid #d8dee8;border-radius:13px;background:#fff;color:#172033;outline:0;font:inherit;font-weight:500;line-height:1.5}
.red-account-rating-field textarea:focus{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 9%,transparent)}
.red-account-rating-stars{display:flex;align-items:center;gap:5px}
.red-account-rating-stars button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e4e7ec;border-radius:12px;background:#fff;color:#c7cdd6;font-size:1.35rem;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease,color .12s ease}
.red-account-rating-stars button:hover,.red-account-rating-stars button:focus-visible{transform:translateY(-1px);border-color:#f2c65c;background:#fffaf0;color:#dda400;outline:0}
.red-account-rating-stars button.is-selected{border-color:#f2c65c;background:#fff8df;color:#e6a800}
.red-account-rating-field>small{color:#667085;font-size:.69rem;font-weight:650}
.red-account-rating-feedback{margin:0;padding:10px 12px;border:1px solid #e4e7ec;border-radius:11px;background:#f8fafc;color:#475467;font-size:.74rem;font-weight:750}
.red-account-rating-feedback[data-tone="danger"]{border-color:#fecdca;background:#fef3f2;color:#b42318}
.red-account-rating-feedback[data-tone="success"]{border-color:#abefc6;background:#ecfdf3;color:#067647}
.red-account-rating-feedback[data-tone="info"]{border-color:#b2ddff;background:#eff8ff;color:#175cd3}
.red-account-rating-modal footer{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.red-account-rating-modal footer .red-account-action{min-width:150px}
.red-account-toast{position:fixed;z-index:110;left:50%;bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));transform:translateX(-50%);width:min(calc(100vw - 28px),520px);padding:12px 15px;border:1px solid #abefc6;border-radius:13px;background:#ecfdf3;color:#067647;box-shadow:0 18px 48px rgba(15,23,42,.18);font-size:.78rem;font-weight:800;text-align:center}
.red-account-toast[hidden]{display:none!important}.red-account-toast[data-tone="danger"]{border-color:#fecdca;background:#fef3f2;color:#b42318}
@media(max-width:760px){.red-account-order-card__actions.is-rating-ready{display:grid;grid-template-columns:1fr 1fr}.red-account-order-card__actions.is-rating-ready>[data-red-order-detail-open],.red-account-order-card__actions.is-rating-ready>[data-red-order-chat-open]{grid-column:span 1}.red-account-rating-prompt__actions{display:grid;grid-template-columns:1fr 1fr}.red-account-rating-modal{width:calc(100vw - 20px);border-radius:18px}.red-account-rating-modal header{padding:17px}.red-account-rating-modal form{padding:17px}.red-account-rating-stars{justify-content:space-between}.red-account-rating-stars button{width:min(16vw,46px);height:min(16vw,46px)}.red-account-rating-modal footer{display:grid;grid-template-columns:1fr 1fr}.red-account-rating-modal footer .red-account-action{min-width:0;width:100%}}

/* V18.3 — Login: compactar y centrar verticalmente la tarjeta institucional.
   En desktop los tres beneficios pasan a una fila para evitar que el contenido
   principal quede empujado hacia el borde inferior de la tarjeta. */
@media (min-width:981px){
    .red-auth-aside{
        justify-content:center;
        gap:30px;
    }
    .red-auth-aside__brand{
        flex:0 0 auto;
    }
    .red-auth-aside__copy{
        width:min(100%,560px);
        margin:0;
    }
    .red-auth-aside__copy p{
        max-width:540px;
    }
    .red-auth-benefits{
        width:100%;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:10px;
    }
    .red-auth-benefits>div{
        min-width:0;
        padding:12px;
    }
    .red-auth-benefits strong{
        font-size:.82rem;
    }
    .red-auth-benefits small{
        font-size:.7rem;
    }
}

/* V19 V4 · participaciones de eventos: evidencia y GPS más legibles. */
.red-account-participations-title{margin:0 0 10px;color:#101828;font-size:1rem}
.red-account-participation-list{gap:12px}
.red-account-participation-list .red-account-participation-card{grid-template-columns:130px minmax(0,1fr);align-items:start;padding:18px 19px;overflow:hidden}
.red-account-participation-card__date{align-content:start;padding-top:3px}
.red-account-participation-status{display:inline-flex;align-items:center;gap:5px;width:max-content;margin-top:7px;padding:5px 8px;border-radius:999px;background:#ecfdf3;color:#067647;font-size:.65rem;font-weight:850;line-height:1}
.red-account-participation-card__body{display:grid;gap:12px;min-width:0}
.red-account-participation-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.red-account-participation-card__head h3{margin:0;color:#101828;font-size:1rem}.red-account-participation-card__head p{margin:3px 0 0;color:#667085;font-size:.76rem}
.red-account-participation-camera{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #e7ebf0;border-radius:12px;background:#f8fafc;color:var(--red-color-primary,#2563eb);cursor:pointer}
.red-account-participation-card__content{display:grid;gap:14px}.red-account-participation-card__content.has-photo{grid-template-columns:132px minmax(0,1fr)}
.red-account-evidence-thumb{position:relative;display:block;width:132px;height:104px;padding:0;overflow:hidden;border:1px solid #e4e9f0;border-radius:14px;background:#f8fafc;cursor:pointer;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.red-account-evidence-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.red-account-evidence-thumb:hover img{transform:scale(1.035)}
.red-account-evidence-thumb span{position:absolute;right:7px;bottom:7px;left:7px;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 7px;border-radius:9px;background:rgba(15,23,42,.78);color:#fff;font-size:.62rem;font-weight:850;backdrop-filter:blur(5px)}
.red-account-participation-card__details{display:grid;align-content:start;gap:11px;min-width:0}
.red-account-participation-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.red-account-participation-answer{display:grid;gap:2px;min-width:0;padding:9px 10px;border:1px solid #eef1f5;border-radius:11px;background:#fbfcfe}.red-account-participation-answer small{overflow:hidden;color:#98a2b3;font-size:.62rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.red-account-participation-answer strong{overflow-wrap:anywhere;color:#344054;font-size:.72rem;line-height:1.35}
.red-account-participation-location{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 11px;border:1px solid #dbeafe;border-radius:12px;background:#f5f9ff}
.red-account-participation-location__icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf2ff;color:#175cd3}.red-account-participation-location__copy{display:grid;min-width:0}.red-account-participation-location__copy strong{color:#344054;font-size:.72rem}.red-account-participation-location__copy small{overflow:hidden;color:#667085;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}
.red-account-activity-list .red-account-participation-location__map{display:inline-flex;width:auto;height:auto;align-items:center;justify-content:center;gap:6px;padding:7px 9px;border:1px solid #cfe0ff;border-radius:10px;background:#fff;color:#175cd3;font-size:.66rem;font-weight:850;white-space:nowrap}
.red-account-evidence-dialog{width:min(94vw,980px);max-width:none;padding:0;border:0;border-radius:22px;background:transparent;box-shadow:0 30px 90px rgba(15,23,42,.3)}.red-account-evidence-dialog::backdrop{background:rgba(15,23,42,.72);backdrop-filter:blur(5px)}
.red-account-evidence-dialog__card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:88vh;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:#fff}
.red-account-evidence-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:16px 18px;border-bottom:1px solid #e7ebf0}.red-account-evidence-dialog header span{display:block;color:var(--red-color-primary,#2563eb);font-size:.62rem;font-weight:900;letter-spacing:.1em}.red-account-evidence-dialog header h2{margin:3px 0 0;color:#101828;font-size:1.08rem}.red-account-evidence-dialog header button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:11px;background:#f2f4f7;color:#475467;cursor:pointer}
.red-account-evidence-dialog__body{display:grid;place-items:center;min-height:260px;padding:18px;overflow:auto;background:#101828}.red-account-evidence-dialog__body img{display:block;max-width:100%;max-height:68vh;border-radius:12px;object-fit:contain;background:#fff}
.red-account-evidence-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid #e7ebf0}.red-account-evidence-dialog footer a,.red-account-evidence-dialog footer button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 11px;border-radius:10px;font:inherit;font-size:.72rem;font-weight:850;text-decoration:none;cursor:pointer}.red-account-evidence-dialog footer a{border:1px solid #d8dee8;background:#fff;color:#344054}.red-account-evidence-dialog footer button{border:1px solid var(--red-color-primary,#2563eb);background:var(--red-color-primary,#2563eb);color:#fff}
@media(max-width:760px){.red-account-participation-list .red-account-participation-card{grid-template-columns:1fr;padding:15px}.red-account-participation-card__date{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.red-account-participation-card__date small{width:auto}.red-account-participation-status{margin-top:0}.red-account-participation-card__content.has-photo{grid-template-columns:104px minmax(0,1fr)}.red-account-evidence-thumb{width:104px;height:96px}.red-account-evidence-thumb span{font-size:.57rem}.red-account-participation-answers{grid-template-columns:1fr}.red-account-participation-location{grid-template-columns:auto minmax(0,1fr)}.red-account-activity-list .red-account-participation-location__map{grid-column:1/-1;width:100%}.red-account-evidence-dialog{width:96vw}.red-account-evidence-dialog__body{min-height:220px;padding:10px}.red-account-evidence-dialog footer{align-items:stretch;flex-direction:column}.red-account-evidence-dialog footer a,.red-account-evidence-dialog footer button{width:100%}}

/* V20 Customer/B2B profile refinement */
.red-account-profile-card__head--with-action{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.red-account-profile-avatar{width:52px!important;height:52px!important;padding:0!important;overflow:hidden;border-radius:16px}
.red-account-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.red-account-profile-edit{border:1px solid rgba(15,23,42,.12);background:#fff;border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer}
.red-account-profile-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}
.red-account-profile-summary div{padding:12px;border:1px solid rgba(15,23,42,.08);border-radius:12px;background:rgba(15,23,42,.018)}
.red-account-profile-summary dt{font-size:.72rem;opacity:.58;text-transform:uppercase;font-weight:800;letter-spacing:.04em}
.red-account-profile-summary dd{margin:5px 0 0;font-weight:700;word-break:break-word}
.red-account-profile-summary--tax{grid-template-columns:repeat(2,minmax(0,1fr))}
.red-account-security-state{display:flex;align-items:center;gap:12px;padding:16px;border-radius:14px;background:rgba(22,163,74,.07);margin-top:18px}
.red-account-security-state>i{font-size:1.45rem;color:#15803d}.red-account-security-state span{display:grid;gap:3px}.red-account-security-state small{opacity:.64}
.red-account-tax-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.red-account-tax-badges span{padding:6px 9px;border-radius:999px;background:rgba(15,23,42,.06);font-size:.75rem;font-weight:700;opacity:.56}.red-account-tax-badges span.is-active{background:rgba(22,163,74,.1);color:#15803d;opacity:1}
.red-account-profile-card--customer-benefit{display:grid;grid-template-columns:1fr auto;gap:6px 18px;align-items:center}.red-account-profile-card--customer-benefit .red-account-profile-card__head{grid-column:1}.red-account-profile-card--customer-benefit>strong{grid-column:2;grid-row:1;font-size:2rem}.red-account-profile-card--customer-benefit>small{grid-column:1/-1;opacity:.65}
.red-account-benefit--discount{position:relative;overflow:hidden}.red-account-benefit--discount:after{content:'%';position:absolute;right:-8px;bottom:-32px;font-size:7rem;font-weight:900;opacity:.035}.red-account-benefit__validity{display:block;margin-top:8px;font-size:.72rem;font-weight:700;opacity:.65}
.red-account-profile-dialog{width:min(760px,calc(100vw - 28px));max-height:90vh;padding:0;border:0;border-radius:20px;background:transparent}.red-account-profile-dialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.red-account-profile-dialog__card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.2)}.red-account-profile-dialog__card>header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:20px 22px;border-bottom:1px solid rgba(15,23,42,.08)}.red-account-profile-dialog__card>header span{font-size:.7rem;font-weight:900;letter-spacing:.08em;opacity:.55}.red-account-profile-dialog__card>header h2{margin:3px 0 0;font-size:1.35rem}.red-account-profile-dialog__card>header button{border:0;background:rgba(15,23,42,.06);width:36px;height:36px;border-radius:50%;cursor:pointer}.red-account-profile-dialog__body{padding:22px;display:grid;gap:14px;max-height:65vh;overflow:auto}.red-account-profile-dialog__card>footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid rgba(15,23,42,.08)}
.red-account-avatar-upload{display:flex!important;align-items:center;gap:14px;padding:13px;border:1px dashed rgba(15,23,42,.18);border-radius:14px}.red-account-avatar-upload img{width:64px;height:64px;border-radius:16px;object-fit:cover}.red-account-avatar-upload>span{display:grid;gap:4px}.red-account-avatar-upload input{padding:0!important;border:0!important}.red-account-profile-dialog__divider{margin-top:5px;border-top:1px solid rgba(15,23,42,.09);padding-top:16px;font-weight:800}.red-account-profile-dialog__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.red-account-tax-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.red-account-tax-options label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:10px;border-radius:10px;background:rgba(15,23,42,.035)}.red-account-tax-options input{width:auto!important}
@media(max-width:720px){.red-account-profile-summary,.red-account-profile-summary--tax,.red-account-profile-dialog__grid,.red-account-tax-options{grid-template-columns:1fr}.red-account-profile-card__head--with-action{grid-template-columns:auto 1fr}.red-account-profile-edit{grid-column:1/-1;width:100%}.red-account-profile-card--customer-benefit{grid-template-columns:1fr}.red-account-profile-card--customer-benefit>strong{grid-column:1;grid-row:auto}.red-account-profile-dialog__card>footer{flex-direction:column-reverse}.red-account-profile-dialog__card>footer button{width:100%}}

/* V20.2 fiscal profile */
.red-account-fiscal-note{grid-column:1/-1;padding:11px 13px;border:1px solid rgba(245,158,11,.28);background:rgba(245,158,11,.08);border-radius:12px;font-size:.82rem;line-height:1.45;color:#854d0e}.red-account-fiscal-note.is-valid{border-color:rgba(22,163,74,.25);background:rgba(22,163,74,.07);color:#166534}.red-account-tax-base{display:block;margin-top:10px;color:rgba(15,23,42,.6);font-size:.78rem}.red-account-profile-dialog__grid label small{display:block;margin-top:5px;font-size:.72rem;color:rgba(15,23,42,.55)}

/* ALEX_ACCOUNT_NAV_RESPONSIVE_FINAL_V27_START */
/* ==========================================================================
   Proyecto Alex · V27
   Account navigation responsive FINAL
   Marker: ALEX_ACCOUNT_NAV_RESPONSIVE_FINAL_V27
   ========================================================================== */

:root {
  --alex-account-dock-bg: rgba(255,255,255,.97);
  --alex-account-dock-border: rgba(148,163,184,.27);
  --alex-account-dock-shadow: 0 14px 38px rgba(15,23,42,.16);
  --alex-account-dock-radius: 18px;
}

/* Soporta los nombres reales usados por Dashboard y Soporte. */
.red-account-nav,
.red-support__tabs,
.red-support-tabs {
  box-sizing: border-box !important;
}

/* ========================= DESKTOP ======================================= */
@media (min-width: 769px) {
  .red-account-nav,
  .red-support__tabs,
  .red-support-tabs {
    position: sticky !important;
    top: calc(var(--red-sticky-header-offset, 70px) + 8px) !important;
    z-index: 34 !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    align-items: stretch !important;
    gap: 4px !important;

    background: var(--alex-account-dock-bg) !important;
    border: 1px solid var(--alex-account-dock-border) !important;
    border-radius: var(--alex-account-dock-radius) !important;
    box-shadow: var(--alex-account-dock-shadow) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .red-account-nav > *,
  .red-support__tabs > *,
  .red-support-tabs > * {
    min-width: 0 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 13px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }
}

/* ========================= MOBILE / PWA ================================== */
@media (max-width: 768px) {
  /*
   * Una sola fila de seis accesos, flotando encima de la barra PWA.
   * 342 px => ~53 px por acceso, suficiente con icono + label compacto.
   */
  .red-account-nav,
  .red-support__tabs,
  .red-support-tabs,
  .red-account-nav[data-pqrs-grid="1"] {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;

    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 5px 4px !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    gap: 1px !important;

    background: var(--alex-account-dock-bg) !important;
    border: 1px solid var(--alex-account-dock-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.22) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    overflow: visible !important;
    z-index: 960 !important;
  }

  .red-account-nav > button,
  .red-account-nav > a,
  .red-support__tabs > a,
  .red-support__tabs > button,
  .red-support-tabs > a,
  .red-support-tabs > button {
    min-width: 0 !important;
    width: 100% !important;
    height: 51px !important;
    min-height: 51px !important;
    max-height: 51px !important;

    margin: 0 !important;
    padding: 4px 1px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;

    border-radius: 12px !important;
    overflow: hidden !important;

    font-size: 8.7px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: -.08px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .red-account-nav > button > span,
  .red-account-nav > a > span,
  .red-support__tabs > a > span,
  .red-support__tabs > button > span,
  .red-support-tabs > a > span,
  .red-support-tabs > button > span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .red-account-nav i,
  .red-support__tabs i,
  .red-support-tabs i,
  .red-account-nav svg,
  .red-support__tabs svg,
  .red-support-tabs svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }

  /*
   * Reserva aire para que el dock de cuenta + bottom nav PWA nunca cubran
   * el último pedido, actividad o compositor de soporte.
   */
  .red-account,
  .red-account-page,
  .red-support,
  .red-support-page,
  .red-support__page,
  .red-support__main {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Fallback moderno para wrappers distintos de templates. */
  body:has(.red-account-nav) main,
  body:has(.red-support__tabs) main,
  body:has(.red-support-tabs) main {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
}

/* Teléfonos muy angostos: mantenemos UNA sola fila. */
@media (max-width: 360px) {
  .red-account-nav,
  .red-support__tabs,
  .red-support-tabs,
  .red-account-nav[data-pqrs-grid="1"] {
    left: 6px !important;
    right: 6px !important;
    padding: 4px 3px !important;
  }

  .red-account-nav > button,
  .red-account-nav > a,
  .red-support__tabs > a,
  .red-support__tabs > button,
  .red-support-tabs > a,
  .red-support-tabs > button {
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;
    font-size: 8.1px !important;
  }

  .red-account-nav i,
  .red-support__tabs i,
  .red-support-tabs i,
  .red-account-nav svg,
  .red-support__tabs svg,
  .red-support-tabs svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
  }
}

@media print {
  .red-account-nav,
  .red-support__tabs,
  .red-support-tabs {
    position: static !important;
    box-shadow: none !important;
  }
}
/* ALEX_ACCOUNT_NAV_RESPONSIVE_FINAL_V27_END */

/* ALEX_ACCOUNT_NAV_FINISH_GAP_SCROLL_V27_START */
/* ==========================================================================
   Proyecto Alex · V27
   Account navigation FINAL finish
   Gap PWA + compact six items + section scroll anchors
   ========================================================================== */

/* Los encabezados destino no deben quedar ocultos bajo el header sticky. */
.red-account-section-head,
.red-account-section__head,
.red-support__section-head,
.red-support-section-head {
  scroll-margin-top: calc(var(--red-sticky-header-offset, 70px) + 14px) !important;
}

@media (max-width: 768px) {
  /*
   * 8px aprox. de respiración entre el dock de Mi cuenta y la navegación
   * principal de la PWA. El parche anterior usaba ~58px y quedaban pegados.
   */
  .red-account-nav,
  .red-account-nav[data-pqrs-grid="1"],
  .red-support__tabs,
  .red-support-tabs {
    bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    right: 8px !important;

    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    gap: 2px !important;

    padding: 5px !important;
  }

  .red-account-nav > button,
  .red-account-nav > a,
  .red-support__tabs > a,
  .red-support__tabs > button,
  .red-support-tabs > a,
  .red-support-tabs > button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    padding: 4px 0 !important;
    gap: 2px !important;

    font-size: 8.1px !important;
    line-height: 1 !important;
    letter-spacing: -0.12px !important;
    overflow: hidden !important;
  }

  .red-account-nav > button > span,
  .red-account-nav > a > span,
  .red-support__tabs > a > span,
  .red-support__tabs > button > span,
  .red-support-tabs > a > span,
  .red-support-tabs > button > span {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 1px !important;
    text-align: center !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .red-account-nav i,
  .red-support__tabs i,
  .red-support-tabs i,
  .red-account-nav svg,
  .red-support__tabs svg,
  .red-support-tabs svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    font-size: 14px !important;
  }

  /*
   * Dock de cuenta (~60) + pequeño gap + bottom nav (~58).
   * Deja libre el compositor y la última tarjeta.
   */
  .red-account,
  .red-account-page,
  .red-support,
  .red-support-page,
  .red-support__page,
  .red-support__main {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:has(.red-account-nav) main,
  body:has(.red-support__tabs) main,
  body:has(.red-support-tabs) main {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 360px) {
  .red-account-nav,
  .red-account-nav[data-pqrs-grid="1"],
  .red-support__tabs,
  .red-support-tabs {
    left: 6px !important;
    right: 6px !important;
    bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 1px !important;
    padding: 4px !important;
  }

  .red-account-nav > button,
  .red-account-nav > a,
  .red-support__tabs > a,
  .red-support__tabs > button,
  .red-support-tabs > a,
  .red-support-tabs > button {
    font-size: 7.7px !important;
    letter-spacing: -0.18px !important;
  }
}
/* ALEX_ACCOUNT_NAV_FINISH_GAP_SCROLL_V27_END */

/* EVENT_ACTIVITY_CHAT_POLISH_V30 */
.red-account-participation-card__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}
.red-account-participation-chat{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #dbe5f2;border-radius:12px;background:#fff;color:var(--red-color-primary,#2563eb);text-decoration:none;box-shadow:0 3px 10px rgba(15,23,42,.04);transition:transform .15s ease,border-color .15s ease,background .15s ease}
.red-account-participation-chat:hover{border-color:var(--red-color-primary,#2563eb);background:#f8fbff;color:var(--red-color-primary,#2563eb);transform:translateY(-1px)}
.red-account-participation-chat.has-unread{background:#f5f9ff;border-color:#bfd3f4}
.red-account-participation-chat__badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#dc2626;color:#fff;font-size:.58rem;font-weight:900;line-height:1;box-shadow:0 2px 6px rgba(220,38,38,.22)}
@media(max-width:760px){.red-account-participation-card__head{gap:8px}.red-account-participation-card__head>div:first-child{min-width:0}.red-account-participation-card__head h3{overflow-wrap:anywhere}.red-account-participation-card__actions{gap:6px}.red-account-participation-camera,.red-account-participation-chat{flex-basis:36px;width:36px;height:36px;border-radius:11px}.red-account-participation-card__content.has-photo{grid-template-columns:92px minmax(0,1fr);gap:10px}.red-account-evidence-thumb{width:92px;height:88px}.red-account-participation-card__details{gap:8px}.red-account-participation-answer{padding:8px 9px}.red-account-participation-location{padding:9px}.red-account-activity-list .red-account-participation-location__map{padding:7px 8px}}
@media(max-width:420px){.red-account-participation-list .red-account-participation-card{padding:12px}.red-account-participation-card__content.has-photo{grid-template-columns:86px minmax(0,1fr)}.red-account-evidence-thumb{width:86px;height:84px}.red-account-participation-camera,.red-account-participation-chat{flex-basis:34px;width:34px;height:34px}.red-account-participation-answer small{white-space:normal}.red-account-participation-location__copy small{font-size:.61rem}}


/* EVENT_OPERATOR_MVP_V32 */
.red-merchant-work{margin-top:18px}
.red-merchant-work__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.red-merchant-work__head>div:first-child>span{display:block;font-size:.68rem;font-weight:900;letter-spacing:.08em;color:var(--red-color-primary,#2563eb)}
.red-merchant-work__head h2{margin:.2rem 0 .25rem;font-size:1.35rem}
.red-merchant-work__head p{margin:0;color:#64748b}
.red-merchant-work__kpis{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:8px;min-width:min(440px,100%)}
.red-merchant-work__kpis span{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.red-merchant-work__kpis small{font-size:.66rem;color:#64748b}
.red-merchant-work__kpis strong{font-size:1.05rem;color:#0f172a}
.red-merchant-work__empty{padding:18px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#64748b}
.red-merchant-work__list{display:grid;gap:12px}
.red-merchant-request{padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.red-merchant-request>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #eef2f7}
.red-merchant-request>header small{color:#64748b}
.red-merchant-request>header h3{margin:2px 0 0;font-size:1rem;color:#0f172a}
.red-merchant-request>header p{margin:2px 0 0;color:#64748b;font-size:.82rem}
.red-merchant-request__status{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-weight:800}
.red-merchant-request--en_proceso .red-merchant-request__status{background:#fff7ed;color:#c2410c}
.red-merchant-request--finalizada .red-merchant-request__status{background:#ecfdf5;color:#047857}
.red-merchant-request__meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.red-merchant-request__meta span,.red-merchant-request__answers span{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:11px;background:#f8fafc;min-width:0}
.red-merchant-request__meta small,.red-merchant-request__answers small{font-size:.64rem;color:#64748b}
.red-merchant-request__meta strong,.red-merchant-request__answers strong{font-size:.78rem;color:#0f172a;overflow-wrap:anywhere}
.red-merchant-request__answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.red-merchant-request>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.red-merchant-request__assignment{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:.75rem;color:#475569}
.red-merchant-request__assignment a{color:var(--red-color-primary,#2563eb);text-decoration:none;font-weight:700}
.red-merchant-request__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.red-merchant-request__actions form{margin:0}
.red-merchant-request__actions .red-button{min-height:34px;padding:7px 11px;font-size:.74rem}
.red-button--secondary{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important}
@media(max-width:860px){
  .red-merchant-work__head{flex-direction:column}
  .red-merchant-work__kpis{width:100%;min-width:0}
}
@media(max-width:640px){
  .red-merchant-work__kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .red-merchant-request__meta,.red-merchant-request__answers{grid-template-columns:1fr}
  .red-merchant-request>footer{align-items:stretch;flex-direction:column}
  .red-merchant-request__actions{justify-content:flex-start}
}
/* V36_OPERATOR_PROFILE */
.red-operator-profile{display:grid;gap:16px}.red-operator-profile__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.red-operator-profile__identity{display:flex;align-items:center;gap:13px;min-width:0}.red-operator-profile__identity>div>span{display:block;color:var(--red-color-primary,#2563eb);font-size:.66rem;font-weight:900;letter-spacing:.08em}.red-operator-profile__identity h2{margin:.15rem 0 .1rem;font-size:1.28rem}.red-operator-profile__identity p{margin:0;color:#64748b}.red-operator-profile__avatar{display:grid;place-items:center;width:58px;height:58px;overflow:hidden;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;flex:0 0 auto}.red-operator-profile__avatar img{width:100%;height:100%;object-fit:cover}.red-operator-profile__edit{min-width:min(100%,360px)}.red-operator-profile__edit>summary,.red-operator-profile__password>summary{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #dbe3ec;border-radius:11px;background:#fff;color:#334155;font-weight:800;cursor:pointer;list-style:none}.red-operator-profile__edit>summary::-webkit-details-marker,.red-operator-profile__password>summary::-webkit-details-marker{display:none}.red-operator-profile__form{margin-top:12px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.red-operator-profile__readonly{display:grid;gap:4px;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:11px;background:#fff}.red-operator-profile__readonly span{display:grid;gap:2px}.red-operator-profile__readonly small{color:#64748b}.red-operator-profile__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.red-operator-profile__meta span{display:grid;gap:3px;padding:11px 13px;border-radius:12px;background:#f8fafc}.red-operator-profile__meta small{color:#64748b;font-size:.68rem}.red-operator-profile__meta strong{overflow-wrap:anywhere}.red-operator-profile__password{padding-top:12px;border-top:1px solid #eef2f6}.red-operator-profile__password .red-operator-profile__form{max-width:520px}@media(max-width:760px){.red-operator-profile__head{flex-direction:column}.red-operator-profile__edit{width:100%;min-width:0}.red-operator-profile__edit>summary,.red-operator-profile__password>summary{width:100%;justify-content:center}.red-operator-profile__meta{grid-template-columns:1fr}.red-account-phone-field{grid-template-columns:1fr}}
/* V36_2_OPERATOR_AVATAR */
.red-operator-profile__avatar{position:relative;font-weight:900;color:#0f172a;letter-spacing:.03em}.red-operator-profile__avatar-fallback{display:grid;place-items:center;width:100%;height:100%;padding:.2rem;font-size:1rem;line-height:1;text-transform:uppercase}.red-operator-profile__avatar img+.red-operator-profile__avatar-fallback{display:none}.red-operator-profile__avatar.is-fallback{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);border-color:#cbd5e1}.red-operator-profile__avatar.is-fallback .red-operator-profile__avatar-fallback{display:grid}.red-operator-profile__avatar.is-fallback img{display:none!important}

/* AUTH_TENANT_V39_1 */
.red-auth-role-grid{gap:12px}
.red-auth-role-option>span{grid-template-columns:42px minmax(0,1fr);align-items:center;min-height:78px;gap:10px;padding:12px 14px;border-width:2px}
.red-auth-role-option__badge,.red-auth-profile-nav__badge{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2f4f7;color:#344054;font-size:.96rem;font-weight:800;line-height:1}
.red-auth-role-option__copy{display:grid;gap:3px;min-width:0}
.red-auth-role-option strong{font-size:.92rem;color:#101828}
.red-auth-role-option small{font-size:.72rem;line-height:1.25}
.red-auth-role-option input:checked+span{border-color:var(--red-color-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-color-primary,#2563eb) 12%,transparent)}
.red-auth-role-option input:checked+span .red-auth-role-option__badge{background:var(--red-color-primary,#2563eb);color:#fff}
.red-auth-profile-nav{gap:10px;padding:7px}
.red-auth-profile-nav a{grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-height:66px;padding:11px 13px;border:1px solid transparent}
.red-auth-profile-nav a>span{display:grid;gap:2px;min-width:0}
.red-auth-profile-nav a strong{font-size:.88rem;color:#344054}
.red-auth-profile-nav a small{font-size:.7rem;line-height:1.2}
.red-auth-profile-nav a.is-active{border-color:color-mix(in srgb,var(--red-color-primary,#2563eb) 35%,#e4e7ec);background:color-mix(in srgb,var(--red-color-primary,#2563eb) 7%,#fff);color:var(--red-color-primary,#2563eb);box-shadow:0 4px 14px rgba(15,23,42,.09)}
.red-auth-profile-nav a.is-active .red-auth-profile-nav__badge{background:var(--red-color-primary,#2563eb);color:#fff}
@media(max-width:640px){
  .red-auth-role-option>span{grid-template-columns:38px minmax(0,1fr);min-height:68px;padding:10px 12px}
  .red-auth-role-option__badge,.red-auth-profile-nav__badge{width:34px;height:34px;border-radius:10px;font-size:.88rem}
  .red-auth-profile-nav{grid-template-columns:1fr;gap:7px}
  .red-auth-profile-nav a{grid-template-columns:34px minmax(0,1fr);min-height:56px;padding:9px 11px}
}
