/* Club ISIS · demo — «Mi cuenta» (.mc-) y seguimiento de un pedido (.sg-). */

/* ═════════════ Mi cuenta ═════════════ */

/* ───── credencial del socio: marino con trama de puntos, como la tarjeta del QR ───── */
.mc-socio { position: relative; margin: 6px var(--pad) 0; padding: 16px 18px 12px; border-radius: var(--r-l); background: linear-gradient(160deg, #35506B, var(--marino) 55%, var(--tinta)); color: #fff; box-shadow: var(--sombra-l); overflow: hidden; isolation: isolate; }
.mc-socio::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(161, 206, 79, .38) 1.2px, transparent 1.4px); background-size: 12px 12px; -webkit-mask: linear-gradient(215deg, #000, transparent 52%); mask: linear-gradient(215deg, #000, transparent 52%); }
.mc-socio::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(161, 206, 79, .2), transparent); }
.mc-socio-arriba { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-marca { display: inline-flex; align-items: flex-end; gap: 8px; }
.mc-marca img { height: 36px; width: auto; }
.mc-marca em { font: 400 30px/1 var(--fs); color: var(--lima); transform: translateY(3px) rotate(-5deg); }
.mc-socio .btn-chico svg { width: 16px; height: 16px; }
.mc-socio-ceja { margin-top: 22px; font: 700 11px/1 var(--fd); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.mc-socio-num { margin-top: 7px; font: 800 clamp(40px, 12cqw, 50px)/.86 var(--fd); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mc-socio-desde { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .74); }
.mc-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px -8px 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.mc-datos button { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 4px 8px; border-radius: 10px; transition: background-color .2s, transform .25s var(--resorte); }
.mc-datos button + button { box-shadow: -1px 0 0 rgba(255, 255, 255, .12); border-radius: 0 10px 10px 0; }
.mc-datos button:active { background: rgba(255, 255, 255, .08); transform: scale(.97); }
.mc-datos b { font: 800 20px/1.05 var(--fd); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mc-datos small { font: 500 11.5px/1.2 var(--fb); color: rgba(255, 255, 255, .66); }
.mc-datos b.mc-fav { font-size: 14px; line-height: 1.1; letter-spacing: -.01em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 21px; align-content: center; }
.mc-datos .es-invita b { display: inline-flex; align-items: center; gap: 4px; color: var(--lima); }
.mc-datos .es-invita svg { width: 16px; height: 16px; margin-top: -3px; }

.mc-sub { display: block; margin: 22px 0 10px; }
.mc .seccion-cab .enlace { margin: -10px 0; padding: 14px 0 14px 14px; }
.mc-nota { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--gris); }
.mc-nota svg { width: 15px; height: 15px; margin-top: 1px; color: var(--azul); }
.mc-llegar { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 34px; padding: 1px 12px 0 10px; border-radius: 99px; background: var(--azul-3); color: var(--azul); font: 700 12.5px/1 var(--fd); white-space: nowrap; transition: transform .25s var(--resorte); }
.mc-llegar:active { transform: scale(.94); }
.mc-llegar svg { width: 14px; height: 14px; margin-top: -2px; }

/* ───── pedido en curso ───── */
.mc-activo { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-l); background: var(--carta); box-shadow: inset 0 0 0 2px var(--lima), var(--sombra-l); transition: transform .25s var(--resorte); animation: sg-cambio .5s var(--ease); }
.mc-activo:active { transform: scale(.985); }
.mc-activo-cab { display: flex; align-items: center; gap: 14px; }
.mc-activo-txt { display: grid; gap: 4px; min-width: 0; }
.mc-vivo { display: inline-flex; align-items: center; gap: 7px; font: 700 11px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--verde-osc); }
.mc-activo-txt b { font: 800 21px/1.05 var(--fd); letter-spacing: -.025em; color: var(--marino); }
.mc-activo-txt small { font-size: 12.5px; line-height: 1.3; color: var(--gris); }
.mc-activo-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--linea); }
.mc-activo-pie small { font-size: 12.5px; color: var(--gris); }
.mc-activo-pie .enlace { padding: 2px 0; }

/* ───── invitación a pedir ───── */
.mc-invita { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: var(--r-l); background: linear-gradient(120deg, var(--lima-3), #fff 75%); box-shadow: var(--sombra); }
.mc-invita b { display: block; font: 800 21px/1.05 var(--fd); letter-spacing: -.025em; color: var(--marino); }
.mc-invita p { margin: 5px 0 12px; font-size: 13px; line-height: 1.4; color: var(--marino); text-wrap: pretty; }
.mc-invita-foto { width: clamp(76px, 23cqw, 96px); aspect-ratio: 1; border-radius: 50%; background: url(../assets/gondola.jpg) 50% 60% / cover; box-shadow: 0 0 0 4px var(--lima), 0 14px 22px -10px rgba(60, 116, 19, .7); }

/* ───── historial ───── */
.mc-historial { display: grid; gap: 12px; }
.mc-ped { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--carta); box-shadow: var(--sombra); transition: transform .25s var(--resorte); }
.mc-ped:active { transform: scale(.985); }
.mc-ped-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mc-ped-cab div { display: grid; gap: 3px; min-width: 0; }
.mc-ped-cab b { font: 800 17px/1.05 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.mc-ped-cab small { font-size: 12px; color: var(--gris); }
.mc-ped-fotos { display: flex; gap: 6px; }
.mc-ped-fotos span { display: grid; place-items: center; flex: 1 1 0; min-width: 0; max-width: 50px; aspect-ratio: 1; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.mc-ped-fotos img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mc-ped-fotos .mc-ped-mas { background: var(--fondo); box-shadow: none; font: 800 13px/1 var(--fd); color: var(--marino); padding-top: 2px; }
.mc-ped-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--linea); }
.mc-ped-pie div { display: grid; gap: 3px; min-width: 0; }
.mc-ped-pie b { font: 800 20px/1 var(--fd); letter-spacing: -.02em; color: var(--marino); font-variant-numeric: tabular-nums; }
.mc-ped-pie small { font-size: 12px; color: var(--gris); }
.mc-ped-pie .btn svg { width: 15px; height: 15px; }

/* ───── sucursales ───── */
.mc-sucs { padding: 2px 14px; }
.mc-sucs li { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.mc-sucs li + li { border-top: 1px solid var(--linea); }
.mc-suc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mc-suc-txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 800 15px/1.15 var(--fd); color: var(--marino); }
.mc-suc-txt b .sello { height: 18px; font-size: 9px; padding: 1px 7px 0; }
.mc-suc-txt small { font-size: 12px; color: var(--gris); }
.mc-suc-txt em { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font: 600 12px/1 var(--fb); font-style: normal; color: var(--tinta); }

/* ───── medios de pago ───── */
.mc-hoy-no { margin: -2px 0 12px; font-size: 13px; line-height: 1.4; color: var(--gris); }
.mc-bancos { display: grid; gap: 10px; }
.mc-banco { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: var(--r); background: var(--carta); box-shadow: var(--sombra); }
.mc-banco.es-hoy { background: linear-gradient(120deg, var(--lima-3), #fff 80%); box-shadow: inset 0 0 0 2px var(--lima), var(--sombra); }
.mc-banco-pct { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; padding-top: 4px; border-radius: 16px; background: var(--c, var(--azul)); color: #fff; font: 800 28px/1 var(--fd); letter-spacing: -.04em; box-shadow: 0 10px 16px -10px var(--c, var(--azul)); }
.mc-banco-pct b { font: inherit; }
.mc-banco-pct i { font-style: normal; font-size: .5em; margin-left: 1px; transform: translateY(-.42em); }
.mc-banco-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mc-banco-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-banco-cab b { font: 800 17px/1.1 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.mc-banco-cab em { font-style: normal; flex: none; }
.mc-banco-dia { font: 700 11px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.mc-banco-txt small { font-size: 12px; line-height: 1.35; color: var(--gris); }
.mc-cuotas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-cuotas li { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 3px; padding: 14px 12px 13px 16px; border-radius: var(--r); background: var(--carta); box-shadow: var(--sombra); overflow: hidden; }
.mc-cuotas li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--azul)); }
.mc-cuotas b { font: 800 16.5px/1.1 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.mc-cuotas small { font-size: 12.5px; line-height: 1.3; color: var(--gris); }
.mc-cuotas .pastilla { height: 24px; margin-top: 6px; padding: 1px 10px 0; font-size: 10.5px; color: var(--azul); }

/* ───── contacto ───── */
.mc-contacto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-canal { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--carta); box-shadow: var(--sombra); transition: transform .25s var(--resorte); }
.mc-canal:active { transform: scale(.97); }
.mc-canal-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; }
.mc-canal-ico svg { width: 22px; height: 22px; }
.mc-canal.es-wa .mc-canal-ico { background: #25D366; }
.mc-canal.es-ig .mc-canal-ico { background: linear-gradient(45deg, #F9A825, #E1306C 55%, #7B2FF7); }
.mc-canal b { display: block; font: 800 16.5px/1.1 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.mc-canal small { display: block; margin-top: 3px; font-size: 12px; color: var(--gris); white-space: nowrap; }

/* ───── pie: onda verde del folleto, que sigue por debajo de la barra de navegación ───── */
.mc-pie { --hueco: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); margin: 30px 0 calc(var(--hueco) * -1); text-align: center; }
.con-carrito .mc-pie { --hueco: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.mc-ola { display: block; width: 100%; height: 46px; margin-bottom: -1px; fill: var(--lima); }
.mc-ola .mc-ola-2 { fill: var(--lima-2); }
.mc-pie-cuerpo { display: grid; justify-items: center; gap: 10px; padding: 12px var(--pad) calc(var(--hueco) + 14px); background: linear-gradient(var(--lima), var(--verde)); }
.mc-pie-cuerpo img { width: 104px; height: auto; }
.mc-lema { padding: 7px 14px 5px; border-radius: 6px; background: var(--marino); color: #fff; font: 800 11px/1 var(--fd); letter-spacing: .16em; text-transform: uppercase; }
.mc-pie-cuerpo p { max-width: 30ch; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--tinta); opacity: .8; }
.mc-reiniciar { padding: 6px 10px; font: 600 12px/1 var(--fb); color: var(--tinta); opacity: .78; text-decoration: underline; text-underline-offset: 3px; }
.mc-reiniciar[data-seguro] { opacity: 1; color: #fff; font-weight: 700; text-decoration: none; background: var(--tinta); border-radius: 99px; padding: 9px 14px 8px; }

/* ═════════════ Seguimiento ═════════════ */

/* ───── ícono animado del paso (el tamaño sale de --e) ───── */
.sg-etapa { --e: 92px; position: relative; display: grid; place-items: center; width: var(--e); height: var(--e); flex: none; border-radius: 50%; background: linear-gradient(150deg, var(--lima-2), var(--lima) 45%, var(--verde)); color: var(--tinta); box-shadow: 0 14px 26px -10px rgba(113, 179, 49, .85); animation: sg-pop .55s var(--resorte) both; }
.sg-etapa.chica { --e: 58px; box-shadow: 0 10px 18px -10px rgba(113, 179, 49, .9); }
.sg-etapa-ico { position: relative; display: grid; place-items: center; }
.sg-etapa-ico svg { width: calc(var(--e) * .46); height: calc(var(--e) * .46); stroke-width: 1.8; }
.sg-etapa > i { position: absolute; pointer-events: none; }

/* recibido: el tilde se dibuja y salen ondas */
.sg-onda { inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--lima); opacity: 0; animation: sg-onda 2.4s ease-out infinite; }
.sg-onda + .sg-onda { animation-delay: 1.2s; }
.es-recibido .sg-etapa-ico path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: sg-trazo .55s .35s var(--ease) forwards; }
/* preparando: el changuito se mece y le caen productos */
.es-preparando .sg-etapa-ico { transform-origin: 50% 90%; animation: sg-mecer 1.8s ease-in-out infinite; }
.sg-cae { top: 14%; left: 50%; width: calc(var(--e) * .1); height: calc(var(--e) * .1); margin-left: calc(var(--e) * -.02); border-radius: 22%; background: #fff; opacity: 0; animation: sg-cae 1.8s cubic-bezier(.5, 0, .8, .6) infinite; }
.sg-cae:nth-child(2) { --dx: 90%; background: var(--azul); animation-delay: .6s; }
.sg-cae:nth-child(3) { --dx: -60%; background: var(--marino); animation-delay: 1.2s; }
/* listo: la bolsa flota y destella */
.es-listo .sg-etapa-ico { animation: flotar 2.4s ease-in-out infinite; }
.sg-chispa { width: calc(var(--e) * .2); height: calc(var(--e) * .2); background: var(--sol); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: scale(0); animation: sg-chispa 1.9s ease-in-out infinite; }
.sg-chispa:nth-child(1) { top: -6%; right: 0; }
.sg-chispa:nth-child(2) { top: 34%; left: -18%; width: calc(var(--e) * .14); height: calc(var(--e) * .14); animation-delay: .6s; }
.sg-chispa:nth-child(3) { bottom: 0; right: -14%; width: calc(var(--e) * .16); height: calc(var(--e) * .16); animation-delay: 1.2s; }
/* en camino: el camión anda y deja líneas de viento */
.es-camino .sg-etapa-ico { margin-left: 10%; animation: sg-andar .55s ease-in-out infinite; }
.sg-viento { left: 11%; width: 15%; height: 2px; border-radius: 2px; background: var(--tinta); opacity: 0; animation: sg-viento .9s linear infinite; }
.sg-viento:nth-child(1) { top: 40%; }
.sg-viento:nth-child(2) { top: 51%; width: 10%; animation-delay: .3s; }
.sg-viento:nth-child(3) { top: 62%; animation-delay: .6s; }
/* terminado: aro punteado que gira despacio */
.sg-aro { inset: -9%; border-radius: 50%; border: 2px dashed var(--lima); animation: sg-girar 22s linear infinite; }

/* ───── barra de tramos ───── */
.sg-tramos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; width: 100%; }
.sg-tramos i { position: relative; height: 6px; border-radius: 99px; background: rgba(27, 40, 54, .1); overflow: hidden; }
.sg-tramos i.hecho { background: linear-gradient(90deg, var(--verde), var(--lima)); }
.sg-tramos i.actual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--verde) 45%, var(--lima) 55%, transparent); transform: translateX(-100%); animation: sg-pasa 1.5s ease-in-out infinite; }

/* ───── estado grande ───── */
.sg-heroe { position: relative; display: grid; justify-items: center; margin: 6px var(--pad) 0; padding: 16px 18px 20px; border-radius: var(--r-l); background: linear-gradient(160deg, #35506B, var(--marino) 55%, var(--tinta)); color: #fff; text-align: center; box-shadow: var(--sombra-l); overflow: hidden; isolation: isolate; }
.sg-heroe::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(161, 206, 79, .36) 1.2px, transparent 1.4px); background-size: 12px 12px; -webkit-mask: linear-gradient(200deg, #000, transparent 48%); mask: linear-gradient(200deg, #000, transparent 48%); }
.sg-heroe.cambia { animation: sg-cambio .5s var(--ease); }
.sg-heroe-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font: 700 11px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.sg-heroe-cab span { display: inline-flex; align-items: center; gap: 6px; }
.sg-heroe-cab svg { width: 14px; height: 14px; margin-top: -2px; color: var(--lima); }
.sg-heroe .sg-etapa { margin-top: 26px; }
.sg-estado { margin-top: 20px; font: 800 clamp(26px, 7.8cqw, 32px)/1 var(--fd); letter-spacing: -.03em; text-wrap: balance; }
.sg-bajada { max-width: 32ch; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .8); text-wrap: balance; }
.sg-heroe .sg-tramos { margin-top: 22px; }
.sg-heroe .sg-tramos i { background: rgba(255, 255, 255, .16); }
.sg-heroe .sg-tramos i.hecho { background: var(--lima); }
.sg-heroe .sg-tramos i.actual::after { background: linear-gradient(90deg, transparent, var(--lima), transparent); }
.sg-heroe > .btn { margin-top: 18px; }
/* terminado: en calma, como un comprobante */
.sg-heroe.es-final { background: var(--carta); color: var(--tinta); box-shadow: var(--sombra); }
.sg-heroe.es-final::before { background-image: radial-gradient(rgba(113, 179, 49, .3) 1.2px, transparent 1.4px); }
.sg-heroe.es-final .sg-heroe-cab { color: var(--gris); }
.sg-heroe.es-final .sg-heroe-cab svg { color: var(--verde); }
.sg-heroe.es-final .sg-estado { color: var(--marino); }
.sg-heroe.es-final .sg-bajada { color: var(--gris); }

/* ───── código de retiro: un ticket troquelado, con el QR en el talón ───── */
.sg-ticket { --c: #fff; --t: var(--tinta); width: 100%; margin-top: 20px; grid-template-columns: minmax(0, 1fr) min(31cqw, 128px); text-align: left; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35)); animation: sg-ticket .7s var(--resorte) .2s both; }
.sg-ticket .cupon-cuerpo { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 14px 6px 12px 16px; }
.sg-ticket .cupon-ceja { color: var(--gris); opacity: 1; }
.sg-codigo { font: 800 clamp(40px, 12.5cqw, 52px)/.9 var(--fd); letter-spacing: .1em; color: var(--marino); font-variant-numeric: tabular-nums; padding-top: 4px; }
.sg-ticket-pie { display: inline-flex; align-items: center; gap: 5px; font: 700 12.5px/1.2 var(--fd); color: var(--verde-osc); }
.sg-ticket-pie svg { width: 14px; height: 14px; margin-top: -2px; }
.sg-ticket .cupon-talon { padding: 10px 10px 10px 12px; color: var(--tinta); }
.sg-ticket .cupon-talon .qr { width: 100%; height: auto; }
.sg-sin-codigo { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .12); font-size: 13.5px; }

/* ───── en camino: el camión avanza de la sucursal a la casa ───── */
.sg-ruta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; width: 100%; margin-top: 22px; }
.sg-ruta-punta { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.sg-ruta-punta svg { width: 18px; height: 18px; }
.sg-ruta-punta.es-casa { background: var(--lima); color: var(--tinta); box-shadow: 0 0 0 0 rgba(161, 206, 79, .6); animation: sg-late 1.8s infinite; }
.sg-ruta-via { position: relative; height: 40px; }
.sg-ruta-via::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); border-top: 2px dashed rgba(255, 255, 255, .3); }
.sg-ruta-hecho { position: absolute; left: 0; top: calc(50% - 1.5px); width: 0; height: 3px; border-radius: 3px; background: var(--lima); animation: sg-tramo 36s cubic-bezier(.12, .7, .3, 1) forwards; }
.sg-ruta-camion { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--marino); box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .5); animation: sg-viaje 36s cubic-bezier(.12, .7, .3, 1) forwards; }
.sg-ruta-camion svg { width: 21px; height: 21px; animation: sg-andar .55s ease-in-out infinite; }
.sg-ruta-pie { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin-top: 6px; font: 600 11.5px/1.25 var(--fb); color: rgba(255, 255, 255, .72); }
.sg-ruta-pie span { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── línea de tiempo ───── */
.sg-linea-caja { margin: 14px var(--pad) 0; padding: 18px 16px 14px; }
.sg-linea li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; padding-bottom: 20px; }
.sg-linea li:last-child { padding-bottom: 4px; }
.sg-linea li::before { content: ""; position: absolute; left: 13px; top: 31px; bottom: 3px; width: 2px; border-radius: 2px; background: rgba(27, 40, 54, .12); }
.sg-linea li:last-child::before { display: none; }
.sg-linea li.es-hecho::before { background: var(--lima); }
.sg-linea li.es-actual::before { background: linear-gradient(var(--lima), rgba(27, 40, 54, .12)); }
.sg-nodo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--carta); box-shadow: inset 0 0 0 2px rgba(27, 40, 54, .16); color: var(--tinta); }
.sg-nodo svg { width: 14px; height: 14px; }
.es-hecho .sg-nodo { background: var(--lima); box-shadow: none; }
.es-actual .sg-nodo { background: var(--marino); box-shadow: 0 0 0 0 rgba(113, 179, 49, .55); animation: sg-late 1.8s infinite; }
.es-actual .sg-nodo::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lima); animation: sg-punto 1.8s ease-in-out infinite; }
.sg-paso { display: grid; gap: 3px; min-width: 0; padding-top: 5px; }
.sg-paso-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.sg-paso b { font: 800 16px/1.15 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.sg-paso small { font-size: 12.5px; line-height: 1.35; color: var(--gris); }
.es-falta .sg-paso b { color: var(--gris-2); }
.es-falta .sg-paso small { color: var(--gris-2); }
.sg-linea .sello { flex: none; margin-top: -2px; }
.sg-demo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 16px; padding-top: 1px; border: 1.5px dashed rgba(27, 40, 54, .22); border-radius: 99px; font: 700 12.5px/1 var(--fd); color: var(--gris); transition: transform .25s var(--resorte), background-color .2s; }
.sg-demo:active { transform: scale(.97); background: var(--fondo); }
.sg-demo svg { width: 14px; height: 14px; margin-top: -2px; }

/* ───── dónde y cuándo; medio de pago y sustitución ───── */
.sg-lugar { margin: 14px var(--pad) 0; padding: 2px 14px; }
.sg-lugar.sg-extra { margin: 12px 0 0; }
.sg-dato { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; }
.sg-dato + .sg-dato { border-top: 1px solid var(--linea); }
.sg-dato-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lima); color: #fff; }
.sg-dato-ico svg { width: 20px; height: 20px; }
.sg-extra .sg-dato-ico { background: var(--azul-3); color: var(--azul); }
.sg-dato-txt { flex: 1; min-width: 0; display: grid; gap: 2px; min-height: 40px; align-content: center; }
.sg-dato-txt small { font: 700 10.5px/1.2 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.sg-dato-txt b { font: 800 16px/1.15 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.sg-dato-txt em { font: 500 12px/1.3 var(--fb); font-style: normal; color: var(--gris); }
.sg-dato-txt .sg-abierta { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; color: var(--tinta); }
.sg-dato-txt .mc-llegar { justify-self: start; margin-top: 8px; }

/* ───── lo que sumaste con el Club ───── */
.sg-cupon { width: 100%; grid-template-columns: minmax(0, 1fr) 84px; min-height: 100px; text-align: left; transition: transform .25s var(--resorte); }
.sg-cupon:active { transform: scale(.98); }
.sg-cupon .cupon-cuerpo { display: grid; align-content: center; gap: 5px; padding: 14px 10px 14px 16px; }
.sg-cupon .cupon-num { font-size: 26px; letter-spacing: -.02em; }
.sg-cupon .cupon-det { display: block; margin-top: 0; opacity: .85; }
.sg-cupon-ver { display: grid; justify-items: center; gap: 4px; }
.sg-cupon-ver em { font: 800 12px/1 var(--fd); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.sg-ahorro { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px 12px 12px; border-radius: var(--r); background: linear-gradient(120deg, var(--lima-3), #fff); box-shadow: inset 0 0 0 1.5px var(--lima), var(--sombra); }
.sg-ahorro-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lima); color: var(--tinta); }
.sg-ahorro-ico svg { width: 20px; height: 20px; }
.sg-ahorro-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sg-ahorro-txt b { font: 800 17px/1.1 var(--fd); letter-spacing: -.015em; color: var(--verde-osc); }
.sg-ahorro-txt small { font-size: 12px; line-height: 1.35; color: var(--marino); }

/* ───── detalle ───── */
.sg-detalle { padding: 4px 14px 16px; }
.sg-items li + li { border-top: 1px solid var(--linea); }
.sg-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; }
.sg-item-foto { position: relative; width: 48px; height: 48px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); }
.sg-item-foto img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sg-item-foto i { position: absolute; right: -6px; bottom: -5px; min-width: 20px; height: 20px; padding: 1px 5px 0; border-radius: 99px; background: var(--marino); color: #fff; font: 800 11px/19px var(--fd); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--carta); }
.sg-item-txt { display: grid; gap: 3px; min-width: 0; }
.sg-item-txt > b { font: 600 13.5px/1.25 var(--fb); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-item-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.sg-item-sub small { font-size: 12px; color: var(--gris); }
.sg-item-sub .sello { height: 18px; font-size: 9px; padding: 1px 7px 0; }
.sg-item-precio { font: 800 15px/1 var(--fd); color: var(--marino); font-variant-numeric: tabular-nums; }
.sg-totales { display: grid; gap: 10px; margin: 6px 0 0; padding-top: 16px; border-top: 2px dashed var(--linea); }
.sg-totales > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sg-totales dt { font-size: 13.5px; color: var(--gris); }
.sg-totales dd { margin: 0; font: 700 15px/1 var(--fd); color: var(--tinta); font-variant-numeric: tabular-nums; }
.sg-totales .es-ahorro dt, .sg-totales .es-ahorro dd { color: var(--verde-osc); font-weight: 700; }
.sg-totales .es-total { align-items: center; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--linea); }
.sg-totales .es-total dt { font: 800 17px/1 var(--fd); letter-spacing: -.015em; color: var(--marino); }
.sg-totales .es-total .precio { font-size: 32px; }

.sg-ayuda { display: grid; justify-items: center; padding: 22px var(--pad) 0; }
.sg-ayuda .enlace { gap: 7px; }
.sg-ayuda .enlace svg { width: 17px; height: 17px; }

/* ───── el pedido no existe ───── */
.sg-vacio { display: grid; justify-items: center; gap: 12px; padding: 56px 28px 0; text-align: center; }
.sg-vacio-ico { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; background: var(--lima-3); color: var(--verde-osc); box-shadow: 0 0 0 10px rgba(237, 246, 218, .5); }
.sg-vacio-ico svg { width: 40px; height: 40px; }
.sg-vacio p { max-width: 30ch; margin-bottom: 8px; text-wrap: balance; }
.sg-vacio p b { font-weight: 700; color: var(--marino); white-space: nowrap; }

/* ───── animaciones ───── */
@keyframes sg-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes sg-cambio { from { transform: scale(.965); opacity: .35; } }
@keyframes sg-onda { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sg-trazo { to { stroke-dashoffset: 0; } }
@keyframes sg-mecer { 0%, 100% { transform: rotate(-5deg) translateX(-2%); } 50% { transform: rotate(5deg) translateX(2%); } }
@keyframes sg-cae { 0% { transform: translate(var(--dx, 0%), -130%) rotate(0deg); opacity: 0; } 18% { opacity: 1; } 68% { transform: translate(var(--dx, 0%), 230%) rotate(90deg); opacity: 1; } 84%, 100% { transform: translate(var(--dx, 0%), 270%) rotate(100deg); opacity: 0; } }
@keyframes sg-chispa { 0%, 100% { transform: scale(0) rotate(0deg); } 50% { transform: scale(1) rotate(45deg); } }
@keyframes sg-andar { 50% { transform: translateY(-4%) rotate(-1.5deg); } }
@keyframes sg-viento { 0% { transform: translateX(70%); opacity: 0; } 30% { opacity: .55; } 100% { transform: translateX(-90%); opacity: 0; } }
@keyframes sg-girar { to { transform: rotate(360deg); } }
@keyframes sg-pasa { to { transform: translateX(100%); } }
@keyframes sg-ticket { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.92); } }
@keyframes sg-late { 0% { box-shadow: 0 0 0 0 rgba(113, 179, 49, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(113, 179, 49, 0); } }
@keyframes sg-punto { 50% { transform: scale(.6); } }
@keyframes sg-viaje { to { left: calc(100% - 52px); } }
@keyframes sg-tramo { to { width: calc(100% - 40px); } }

/* sin movimiento: nada en bucle, y cada pieza queda en una pose que se entiende */
@media (prefers-reduced-motion: reduce) {
  .sg-etapa > i, .sg-etapa-ico, .sg-tramos i::after, .sg-nodo, .sg-nodo::after, .sg-ruta-punta, .sg-ruta-camion svg { animation: none !important; }
  .es-recibido .sg-etapa-ico path { stroke-dashoffset: 0; animation: none !important; }
  .sg-chispa { transform: scale(1) rotate(45deg); }
  .sg-tramos i.actual::after { transform: none; opacity: .55; }
  .sg-ruta-camion { left: calc(60% - 19px); animation: none !important; }
  .sg-ruta-hecho { width: 60%; animation: none !important; }
}
