/* Secciones libres (banner, texto) y modo edición desde el panel */
.banner { position: relative; min-height: clamp(320px, 46vw, 560px); display: grid; align-items: center; padding: 60px clamp(24px, 6vw, 96px); color: #fff; overflow: hidden; isolation: isolate;
  background: #1b1b1d var(--bn-img, none) center / cover no-repeat; }
.bn-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,6,calc(var(--bn-ov, .45) + .25)), rgba(5,5,6,var(--bn-ov, .45)) 55%, rgba(5,5,6,calc(var(--bn-ov, .45) - .2))); }
.banner[data-align="center"] { text-align: center; justify-items: center; }
.banner[data-align="right"] { justify-items: end; text-align: right; }
.bn-copy { max-width: 620px; display: grid; gap: 14px; justify-items: inherit; }
.bn-kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.bn-title { font-size: clamp(30px, 5vw, 64px); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.bn-text { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.6; color: rgba(255,255,255,.85); }
.bn-copy .btn-light { margin-top: 10px; display: inline-block; }
.richtext { padding: 80px 28px; }
.rt-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.richtext[data-align="center"] .rt-inner { text-align: center; justify-items: center; }
.rt-inner p { font-size: 16px; line-height: 1.75; color: #3d3d41; }
.rt-inner .section-title { margin-bottom: 4px; }

/* Modo edición (iframe del panel) */
body.edit-mode [data-section-id] { cursor: pointer; position: relative; }
body.edit-mode [data-section-id]:hover { outline: 2px dashed var(--accent); outline-offset: -2px; }
body.edit-mode [data-section-id]:hover::before { content: attr(data-section-name); position: absolute; z-index: 50; top: 8px; left: 8px; background: var(--accent); color: #0b0b0c; font: 700 11px/1 var(--font); padding: 6px 9px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
body.edit-mode .edit-selected { outline: 3px solid var(--accent); outline-offset: -3px; }
body.edit-mode .site-header, body.edit-mode .wa-float { pointer-events: none; }

/* ---------- Seguimiento de pedido y detalles de botones ---------- */
.page-order .auth { max-width: 460px; }
.order-card { margin-top: 36px; max-width: 620px; border: 1px solid #e3e3e6; padding: 26px; animation: orderIn .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes orderIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.order-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.order-card h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.badge-st { padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff1e2; color: #a85a00; }
.badge-st.paid, .badge-st.delivered { background: #e3f4ea; color: #178a4a; } .badge-st.cancelled { background: #ececec; color: #666; }
.order-steps { display: flex; margin: 0 0 24px; position: relative; }
.order-steps li { flex: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; }
.order-steps li::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e3e3e6; z-index: 0; }
.order-steps li:first-child::before { display: none; }
.order-steps li.on::before { background: var(--accent); animation: lineIn .8s ease both; transform-origin: right; }
@keyframes lineIn { from { transform: scaleX(0); } }
.order-steps i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d5d5d9; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; position: relative; z-index: 1; transition: all .4s cubic-bezier(.34,1.56,.64,1); }
.order-steps li.on i { background: var(--accent); border-color: var(--accent); color: #0b0b0c; font-weight: 800; transform: scale(1.1); }
.order-steps li.on span { color: var(--ink); font-weight: 600; }
.order-msg { margin: 0 0 6px; padding: 12px 14px; background: #fff7ef; border-left: 3px solid var(--accent); font-size: 13.5px; line-height: 1.55; }
.order-msg.paid, .order-msg.delivered { background: #eaf7ef; border-color: #1f9d55; }
.order-msg.cancelled { background: #f1f1f2; border-color: #9a9a9f; }
.page-order.tracking #orderForm, .page-order.tracking > .lead { display: none; }
.page-order.tracking .order-card { margin-top: 8px; }
.order-other { display: inline-block; margin-top: 18px; font-size: 13px; text-decoration: underline; color: var(--muted); }
.order-live { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 11.5px; color: var(--muted); }
.order-live i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.order-steps li.just i { animation: stepPop .9s cubic-bezier(.34,1.56,.64,1) both; }
.order-steps li.just::before { animation: lineIn 1s ease both; }
@keyframes stepPop { 0% { transform: scale(.4); box-shadow: 0 0 0 0 rgba(255,122,0,.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(255,122,0,0); } }
.order-card[data-status="paid"] { animation: none; }
.thanks-mail { margin: -6px 0 18px; color: var(--muted); font-size: 13px; }
.thanks-live { max-width: 520px; margin: 0 auto 26px; text-align: left; }
.thanks.is-paid .next { display: none; }
.thanks.is-paid .tick { animation: stepPop .9s cubic-bezier(.34,1.56,.64,1) both; }
.order-items .oi { display: flex; align-items: center; gap: 12px; }
.order-items .oi img { width: 44px; height: 55px; object-fit: cover; background: #f1f0ee; flex: none; }
.order-items em { font-style: normal; }
.order-items { display: grid; gap: 10px; border-top: 1px solid #ececee; padding-top: 16px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 14px; }
.order-total { display: flex; justify-content: space-between; margin: 16px 0 10px; padding-top: 14px; border-top: 1px solid #ececee; font-size: 17px; }
.pd-ask { display: inline-block; margin: 14px 0 6px; text-align: center; width: 100%; }
.sr-all a { display: block !important; text-align: center; font-weight: 700; padding: 14px !important; grid-template-columns: 1fr !important; color: var(--accent); }

/* ---------- Cuenta de clientes (login con Google / email) ---------- */
#accountBtn.has-user { padding: 0; }
.acc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 13px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.auth-wrap { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 20px; background: rgba(8,8,10,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.auth-wrap.in { opacity: 1; }
.auth-box { position: relative; width: min(420px, 100%); background: #fff; padding: 38px 34px 30px; border-radius: var(--radius, 0); transform: translateY(24px) scale(.97); transition: transform .5s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.auth-wrap.in .auth-box { transform: none; }
.auth-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; transition: background .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.auth-x:hover { background: #f1f1f2; transform: rotate(90deg); }
.auth-kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.auth-box h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0 6px; }
.auth-sub { color: #666; font-size: 14px; margin-bottom: 22px; }
.g-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #d9d9dc; background: #fff; font-weight: 700; font-size: 14px; transition: border-color .3s, box-shadow .3s, transform .35s cubic-bezier(.22,1,.36,1); }
.g-btn:hover { border-color: #111; box-shadow: 0 12px 24px -14px rgba(0,0,0,.4); transform: translateY(-2px); }
.g-btn:active { transform: scale(.98); }
.g-btn.is-loading { opacity: .6; pointer-events: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8a8a8f; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #e3e3e6; }
.mail-form { display: grid; gap: 10px; }
.mail-form input { padding: 14px; border: 1px solid #d5d5d8; font: inherit; font-size: 14px; transition: border-color .3s, box-shadow .3s; }
.mail-form input:focus { outline: 0; border-color: #111; box-shadow: 0 0 0 3px rgba(255,122,0,.2); }
.auth-note { min-height: 20px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.auth-note.ok { color: #1f7a3d; } .auth-note.bad { color: #c8312b; }
.auth-small { margin-top: 10px; font-size: 11px; color: #9a9aa0; line-height: 1.5; }
.page-account { max-width: 1060px; }
.acc-login { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 48px; align-items: start; }
.acc-login h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.acc-track { display: inline-block; margin-top: 8px; font-size: 13px; text-decoration: underline; }
.acc-form { border: 1px solid #e3e3e6; padding: 24px; }
.acc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.acc-head .btn-outline { margin-left: auto; }
.acc-head .page-title { margin: 0; }
.acc-big { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 26px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); flex: none; }
.acc-big img { width: 100%; height: 100%; object-fit: cover; }
.acc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.acc-card { border: 1px solid #e3e3e6; padding: 24px; animation: orderIn .7s cubic-bezier(.22,1,.36,1) both; }
.acc-card h2 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.acc-card .auth { max-width: none; margin-top: 14px; gap: 14px; }
.acc-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-order { padding: 16px 0; border-top: 1px solid #ececee; display: grid; gap: 8px; font-size: 13.5px; }
.acc-order:first-child { border-top: 0; padding-top: 0; }
.acc-order header { display: flex; justify-content: space-between; align-items: center; }
.acc-order footer { display: flex; gap: 14px; align-items: center; color: #77777c; font-size: 12px; }
.acc-order footer b { color: var(--ink); margin-left: auto; } .acc-order footer a { text-decoration: underline; }
@media (max-width: 900px) { .acc-login, .acc-grid { grid-template-columns: 1fr; gap: 24px; } .auth-box { padding: 32px 22px 24px; } }
[data-auth][hidden], .or[hidden] { display: none !important; }
.auth-page { max-width: 520px; padding-bottom: 40px; }
.auth-page .page-title { margin-bottom: 14px; }
.auth-lead { font-weight: 700; margin-bottom: 22px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 8px; bottom: 0; width: 42px; display: grid; place-items: center; color: #333; opacity: .75; transition: opacity .2s; }
.pw-eye:hover { opacity: 1; }
.pw-eye .slash { transition: opacity .2s; } .pw-eye.on .slash { opacity: 0; }
.auth-forgot { justify-self: end; margin-top: -10px; font-size: 12px; font-weight: 600; text-decoration: underline; }
.auth-switch { text-align: center; font-size: 12.5px; font-weight: 600; }
.auth-switch a { text-decoration: underline; }
.auth .auth-note { margin: 0; text-align: center; }
.auth .or { margin: 4px 0; }
