/* App de clientes */
body { padding-bottom: env(safe-area-inset-bottom); }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { width: 140px; height: 140px; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(0,150,255,.6)); } }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* ── Acceso */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 40px; }
.auth-logo { width: min(250px, 66vw); aspect-ratio: 1; margin: 0 auto 6px; display: block; border-radius: 50%; filter: drop-shadow(0 20px 50px rgba(0,120,255,.45)); }
.auth h1 { text-align: center; font-size: 1.5em; margin-top: 6px; }
.auth .sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tabs button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: .7em; border-radius: 10px; cursor: pointer; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.auth-foot { text-align: center; font-size: .85em; color: var(--muted); margin-top: 16px; }
.promo-strip { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,204,77,.08); border: 1px solid rgba(255,204,77,.25); color: #ffe3a3; font-size: .9em; margin-bottom: 18px; }
.promo-strip svg.i { color: var(--gift); width: 1.6em; height: 1.6em; }

/* ── Encabezado */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: linear-gradient(180deg, rgba(4,6,13,.96) 60%, rgba(4,6,13,0)); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.top img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 20px -4px rgba(0,140,255,.7); }
.top .hola { line-height: 1.15; }
.top .hola small { color: var(--muted); display: block; font-size: .8em; }
.top .hola b { font-size: 1.05em; }
.bell { margin-left: auto; position: relative; }
.bell .dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

main { padding-bottom: 96px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 10px; }
.sec-title h2 { font-size: 1.05em; }

/* ── Tarjeta de fidelidad */
.loyal {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0,198,255,.35), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(21,101,255,.45), transparent 60%),
    linear-gradient(160deg, #0b1838, #070d20);
  border: 1px solid rgba(96,156,255,.35);
  box-shadow: 0 30px 60px -30px rgba(0,120,255,.65), inset 0 1px 0 rgba(255,255,255,.08);
}
.loyal::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 190px; height: 190px; background: url(/img/logo.jpg) center/cover; border-radius: 50%; opacity: .1; }
.loyal-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.loyal-head small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7em; color: #9cc6ff; font-weight: 700; }
.loyal-head h3 { font-size: 1.25em; margin-top: 4px; }
.loyal-head .tel { color: var(--text-2); font-size: .85em; }
.loyal-count { text-align: right; }
.loyal-count b { font-size: 2.2em; line-height: 1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loyal-count span { color: var(--muted); font-size: .9em; }
.stamps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0 16px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(150,190,255,.3); color: rgba(150,190,255,.35); background: rgba(4,8,20,.4); position: relative; }
.stamp svg.i { width: 46%; height: 46%; }
.stamp.on { border: 0; color: #fff; background: var(--grad); box-shadow: 0 0 18px -2px rgba(0,160,255,.75), inset 0 1px 0 rgba(255,255,255,.3); animation: stampIn .5s cubic-bezier(.2,.9,.3,1.4) both; }
.stamp.gift { border-color: rgba(255,204,77,.55); color: var(--gift); }
.stamp .n { position: absolute; bottom: -2px; right: -2px; font-size: 10px; font-weight: 700; color: var(--muted); }
@keyframes stampIn { from { transform: scale(.3); opacity: 0; } }
.bar { position: relative; z-index: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--grad); border-radius: 99px; transition: width .8s cubic-bezier(.2,.9,.3,1); }
.loyal-foot { position: relative; z-index: 1; margin-top: 10px; color: var(--text-2); font-size: .92em; }

.reward {
  margin-top: 16px; border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, rgba(255,183,0,.2), rgba(255,216,107,.08)); border: 1px solid rgba(255,204,77,.5);
  box-shadow: 0 20px 50px -25px rgba(255,190,40,.8); animation: glowGift 2.4s ease-in-out infinite;
}
.reward .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg,#ffb700,#ffd86b); color: #2a1a00; flex: none; }
.reward .ic svg.i { width: 28px; height: 28px; }
.reward b { color: #ffe3a3; font-size: 1.08em; }
.reward p { margin: 3px 0 0; color: #f1d9a6; font-size: .88em; }
@keyframes glowGift { 50% { box-shadow: 0 20px 60px -18px rgba(255,190,40,1); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { padding: 14px 10px; text-align: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.35em; }
.stat small { color: var(--muted); font-size: .76em; }

/* ── Listas */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: default; text-align: left; font: inherit; color: inherit; width: 100%; }
button.item { cursor: pointer; }
.item .av { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(47,140,255,.13); color: #8ec0ff; }
.item .av svg.i { width: 22px; height: 22px; }
.item .av.gift { background: rgba(255,204,77,.14); color: var(--gift); }
.item .av.warn { background: rgba(244,179,61,.14); color: var(--warn); }
.item .mid { flex: 1; min-width: 0; }
.item .mid b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .mid small { color: var(--muted); font-size: .82em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .end { text-align: right; font-weight: 600; font-size: .92em; }
.item.unread { border-color: rgba(47,140,255,.45); background: linear-gradient(90deg, rgba(47,140,255,.1), var(--surface)); }
.item.unread .mid b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); margin-right: 7px; vertical-align: 2px; box-shadow: 0 0 8px var(--primary-2); }

.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row svg.i { color: var(--primary-2); margin-top: 2px; }
.info-row small { display: block; color: var(--muted); font-size: .8em; }

.install-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; margin-top: 16px; background: rgba(47,140,255,.1); border: 1px solid rgba(47,140,255,.35); }
.install-card .mid { flex: 1; font-size: .9em; }
.install-card b { display: block; }

/* ── Navegación inferior */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(7,11,24,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav button { font: inherit; font-size: .72em; font-weight: 600; background: none; border: 0; color: var(--muted); padding: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; }
.nav button svg.i { width: 23px; height: 23px; }
.nav button.on { color: #fff; }
.nav button.on::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); box-shadow: 0 0 12px var(--primary-2); }
.nav .dot { position: absolute; top: 6px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }

.fade-in { animation: popIn .35s ease both; }

/* ── Aviso del servicio de recogida */
.promo-shell .ui-modal-body { padding: 0; }
.promo-shell .ui-modal { max-width: 480px; }
.promo-modal { text-align: center; }
.promo-hero { position: relative; padding: 30px 24px 8px; overflow: hidden; }
.promo-hero::before { content: ''; position: absolute; inset: -60% -20% auto; height: 300px; background: radial-gradient(closest-side, rgba(0,198,255,.4), transparent); filter: blur(8px); }
.promo-ic { position: relative; width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -12px rgba(0,160,255,.8); }
.promo-ic svg.i { width: 40px; height: 40px; }
.promo-hero .badge { position: relative; }
.promo-hero h3 { position: relative; font-size: 1.45em; color: #fff; margin: 12px 0 8px; }
.promo-hero p { position: relative; color: var(--text-2); margin: 0 auto; max-width: 360px; }
.promo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 20px 4px; }
.promo-steps div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: rgba(47,140,255,.08); border: 1px solid var(--line); }
.promo-steps span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #8ec0ff; background: rgba(47,140,255,.15); }
.promo-steps b { font-size: .86em; color: #fff; }
.promo-steps small { font-size: .72em; color: var(--muted); line-height: 1.25; }
.promo-info { display: grid; gap: 2px; margin: 12px 20px 0; padding: 4px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: left; }
.promo-info div { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.promo-info div:last-child { border-bottom: 0; }
.promo-info svg.i { color: var(--primary-2); }
.promo-info small { display: block; color: var(--muted); font-size: .75em; }

/* ── Servicios en la pantalla de inicio */
.servicios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.servicios.uno { grid-template-columns: 1fr; }
.serv { font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(47,140,255,.18), rgba(12,19,38,.9)); border: 1px solid rgba(47,140,255,.35); }
.serv:active { transform: scale(.98); }
.serv-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 6px; }
.serv-ic svg.i { width: 22px; height: 22px; }
.serv b { font-size: .95em; color: #fff; }
.serv small { font-size: .78em; color: var(--text-2); line-height: 1.3; }
.serv.gold { background: linear-gradient(160deg, rgba(255,190,40,.18), rgba(12,19,38,.9)); border-color: rgba(255,204,77,.4); }
.serv.gold .serv-ic { background: linear-gradient(135deg,#ffb700,#ffd86b); color: #2a1a00; }
.recog-estado { margin-top: 12px; }

/* ── Membresía activa */
.memb-card { margin-top: 16px; position: relative; overflow: hidden; border-radius: 22px; padding: 18px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,204,77,.22), transparent 55%), linear-gradient(160deg, #1d1a10, #0d1224 60%);
  border: 1px solid rgba(255,204,77,.45); box-shadow: 0 24px 50px -28px rgba(255,190,40,.7); }
.memb-top { display: flex; justify-content: space-between; align-items: center; }
.memb-eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: .72em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gift); }
.memb-dias { font-size: .8em; font-weight: 700; color: #2a1a00; background: linear-gradient(135deg,#ffb700,#ffd86b); padding: .2em .7em; border-radius: 99px; }
.memb-card h3 { font-size: 1.3em; color: #fff; margin: 8px 0 4px; }
.memb-veh { color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.memb-veh b { color: #fff; letter-spacing: .04em; }
.memb-bar { margin-top: 14px; }
.memb-bar > i { background: linear-gradient(90deg,#ffb700,#ffd86b); }
.memb-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: .82em; color: var(--text-2); }
.memb-foot b { color: #fff; }
.memb-serv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.memb-serv span { display: inline-flex; gap: 4px; align-items: center; font-size: .76em; padding: .3em .65em; border-radius: 99px; background: rgba(255,204,77,.1); color: #ffe3a3; border: 1px solid rgba(255,204,77,.25); }

/* ── Planes */
.planes { display: grid; gap: 12px; }
.plan { padding: 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid rgba(255,204,77,.3); }
.plan-h { display: flex; gap: 12px; align-items: center; }
.plan-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,204,77,.14); color: var(--gift); flex: none; }
.plan-ic svg.i { width: 24px; height: 24px; }
.plan-h b { display: block; color: #fff; }
.plan-h small { color: var(--muted); font-size: .8em; }
.plan-precio { margin-left: auto; text-align: right; }
.plan-precio b { font-size: 1.25em; color: var(--gift); }
.plan p { margin: 10px 0 0; color: var(--text-2); font-size: .9em; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 5px; font-size: .9em; }
.plan li { display: flex; gap: 8px; align-items: center; color: var(--text); }
.plan li svg.i { color: var(--good); }
.plan li em { font-style: normal; color: var(--muted); font-size: .85em; margin-left: auto; }
.recog-estado .badge { flex: none; }
.serv small b.gratis { color: var(--gift); font-size: 1em; }
