/* estilos/cliente.css — Portal de clientes (cliente.html). Complementa Tailwind compilado y tema.css.
   Paleta: la del logo de DC Tecnology (rojo #FF0033 / neón #FF2A5F sobre fondo #0B0F19), con modo claro vía tema.css. */

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
[hidden] { display: none !important; }
.sin-scrollbar { scrollbar-width: none; }
.sin-scrollbar::-webkit-scrollbar { display: none; }
.dc-text-glow { text-shadow: 0 0 14px rgb(255 0 51 / .5); }

/* Fondo con dos halos rojos lentos (solo transform) */
.fondo-portal { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fondo-portal span { position: absolute; border-radius: 999px; filter: blur(90px); }
.fondo-portal span:nth-child(1) { width: 34rem; height: 34rem; top: -14rem; right: -8rem; background: rgb(255 0 51 / .14); animation: deriva 26s ease-in-out infinite alternate; }
.fondo-portal span:nth-child(2) { width: 26rem; height: 26rem; bottom: -10rem; left: -8rem; background: rgb(255 42 95 / .09); animation: deriva 30s ease-in-out infinite alternate-reverse; }
@keyframes deriva { to { transform: translate(-10vw, 14vh) scale(1.15); } }
.tema-claro .fondo-portal { opacity: .5; }

/* ---------- Navegación ---------- */
.nav-sup { padding: .55rem .9rem; border-radius: .9rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--tinta) / .6); transition: color .2s, background-color .2s; }
.nav-sup:hover { color: rgb(var(--tinta)); background: rgb(var(--tinta) / .05); }
.nav-sup.activo { color: rgb(var(--tinta)); background: rgb(255 0 51 / .12); box-shadow: inset 0 0 0 1px rgb(255 0 51 / .35); }

.menu-inferior {
    position: fixed; z-index: 45; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: .35rem; border-radius: 1.6rem;
    background: rgb(var(--tarjeta) / .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 0 0 1px rgb(var(--tinta) / .08), 0 18px 40px -12px rgb(0 0 0 / .6);
}
@media (min-width: 768px) { .menu-inferior { display: none; } } /* en escritorio manda la barra superior */
.menu-inferior a, .menu-inferior button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; border-radius: 1.2rem; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--tinta) / .5); transition: color .2s, transform .2s; }
.menu-inferior i { font-size: 20px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.menu-inferior .activo { color: #FF2A5F; }
.menu-inferior .activo i { transform: translateY(-2px) scale(1.12); }
.menu-inferior .activo::after { content: ''; position: absolute; bottom: 4px; width: 18px; height: 3px; border-radius: 3px; background: #FF2A5F; box-shadow: 0 0 10px #FF2A5F; }
.menu-inferior .central { margin-top: -1.6rem; width: 58px; height: 58px; min-height: 0; justify-self: center; border-radius: 1.2rem; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 10px 24px -6px rgb(255 42 95 / .8), 0 0 0 4px rgb(var(--fondo)); }
.menu-inferior .central i { font-size: 20px; }
.contador { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font-size: 10px; font-weight: 900; color: #fff; background: #FF0033; box-shadow: 0 0 0 2px rgb(var(--fondo)); }
.contador.salta { animation: salta .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes salta { 40% { transform: scale(1.45); } }

/* ---------- Vistas: transición suave al cambiar de sección ---------- */
.vista.entrando { animation: entrar .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: .18s ease-out both salir-vt; }
::view-transition-new(root) { animation: .32s cubic-bezier(.2, .8, .2, 1) both entrar; }
@keyframes salir-vt { to { opacity: 0; } }

/* ---------- Bloques ---------- */
.hero { padding: 1.5rem; border-radius: 1.75rem; background: linear-gradient(160deg, rgb(255 0 51 / .10), rgb(var(--tarjeta) / .5) 55%); box-shadow: inset 0 0 0 1px rgb(255 0 51 / .25); }
.pasos-inicio { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .pasos-inicio { grid-template-columns: repeat(4, 1fr); } }
.pasos-inicio li { display: grid; gap: 3px; padding: 1rem; border-radius: 1.2rem; background: rgb(var(--tinta) / .045); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .08); font-size: 12.5px; color: rgb(var(--tinta) / .6); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.pasos-inicio li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .45), 0 14px 28px -18px rgb(255 42 95 / .7); }
.pasos-inicio i { width: 42px; height: 42px; margin-bottom: .45rem; display: grid; place-items: center; border-radius: .95rem; font-size: 18px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 8px 18px -8px rgb(255 42 95 / .9); }
.pasos-inicio b { color: rgb(var(--tinta)); font: 800 15px/1.2 Outfit, Inter, sans-serif; }
.titulo-sec { display: flex; align-items: center; gap: .6rem; margin: 2.2rem 0 1rem; font: 900 17px/1 Outfit, Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.titulo-sec::before { content: ''; width: 5px; height: 1.15em; border-radius: 3px; background: linear-gradient(180deg, #FF2A5F, #E50914); box-shadow: 0 0 12px rgb(255 42 95 / .8); }
.tarjeta { padding: 1.1rem; border-radius: 1.4rem; background: rgb(var(--tarjeta) / .6); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .08); }
.etiqueta { display: block; margin-bottom: .5rem; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--tinta) / .55); }
.campo { width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 1rem; font-size: 16px; color: rgb(var(--tinta)); background: rgb(var(--fondo) / .7); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); outline: none; }
.campo:focus { box-shadow: inset 0 0 0 2px rgb(255 0 51 / .6); }
.btn-p, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.3rem; border-radius: 1rem; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; transition: transform .2s, box-shadow .25s, filter .2s; }
.btn-p { color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 8px 22px -8px rgb(255 42 95 / .85); }
.btn-s { color: rgb(var(--tinta)); background: rgb(var(--tinta) / .05); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .12); }
.btn-p:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgb(255 120 150 / .9), 0 0 22px rgb(255 42 95 / .6); }
.btn-p:active, .btn-s:active { transform: scale(.96); }
.btn-p:disabled { opacity: .45; pointer-events: none; }
.btn-w { color: #fff; background: #059669; box-shadow: 0 8px 22px -10px rgb(5 150 105 / .9); }

.buscador { position: relative; display: block; }
.buscador i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgb(var(--tinta) / .4); }
.buscador input { width: 100%; min-height: 52px; padding: 0 1rem 0 2.75rem; border-radius: 1.1rem; font-size: 16px; color: rgb(var(--tinta)); background: rgb(var(--tarjeta) / .6); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); outline: none; }
.buscador input:focus { box-shadow: inset 0 0 0 2px rgb(255 0 51 / .6); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; min-height: 42px; padding: 0 1rem; border-radius: .9rem; font-size: 12px; font-weight: 800; color: rgb(var(--tinta) / .65); background: rgb(var(--tinta) / .04); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); transition: all .2s; white-space: nowrap; }
.chip[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 6px 16px -6px rgb(255 42 95 / .8); }

.categoria { position: relative; overflow: hidden; display: grid; gap: .45rem; justify-items: start; min-height: 9.5rem; padding: 1.15rem; border-radius: 1.4rem; background: linear-gradient(160deg, rgb(var(--tarjeta) / .85), rgb(var(--tarjeta) / .55)); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .09); text-align: left; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; animation: entrar .45s cubic-bezier(.2, .8, .2, 1) both; }
.categoria::before { content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 7rem; height: 7rem; border-radius: 999px; background: radial-gradient(closest-side, rgb(255 42 95 / .22), transparent); transition: transform .5s; }
.categoria:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .6), 0 20px 38px -20px rgb(255 42 95 / .8); }
.categoria:hover::before { transform: scale(1.5); }
.categoria:active { transform: scale(.97); }
.categoria i { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 1.05rem; font-size: 22px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 10px 22px -8px rgb(255 42 95 / .95), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.categoria:hover i { transform: rotate(-8deg) scale(1.08); }
.categoria b { position: relative; margin-top: .3rem; font: 800 16px/1.2 Outfit, Inter, sans-serif; }
.categoria span { position: relative; font-size: 12px; color: rgb(var(--tinta) / .55); }
.categoria:nth-child(2) { animation-delay: .04s; } .categoria:nth-child(3) { animation-delay: .08s; } .categoria:nth-child(4) { animation-delay: .12s; }
.categoria:nth-child(5) { animation-delay: .16s; } .categoria:nth-child(6) { animation-delay: .2s; } .categoria:nth-child(7) { animation-delay: .24s; }

/* ---------- Tarjeta de producto ---------- */
.rejilla { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rejilla { gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: .75rem; border-radius: 1.5rem; background: linear-gradient(180deg, rgb(var(--tarjeta) / .9), rgb(var(--tarjeta) / .6)); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .09), 0 18px 36px -28px rgb(0 0 0 / .8); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; animation: entrar .5s cubic-bezier(.2, .8, .2, 1) both; }
.prod::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .14) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s ease; }
.prod:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .6), 0 26px 44px -22px rgb(255 42 95 / .75); }
.prod:hover::after { transform: translateX(120%); }
.prod:active { transform: scale(.98); }
.prod .vitrina { position: relative; display: grid; place-items: center; height: 10.5rem; border-radius: 1.15rem; overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, rgb(255 42 95 / .2), transparent 70%), linear-gradient(180deg, #19213A, #0E1320); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
.prod .vitrina img { width: 100%; height: 118px; object-fit: contain; filter: drop-shadow(0 12px 16px rgb(0 0 0 / .55)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.prod:hover .vitrina img { transform: scale(1.12) translateY(-4px); }
.prod .desc { position: absolute; z-index: 3; top: 1.1rem; left: 1.1rem; padding: .3rem .6rem; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 6px 14px -4px rgb(255 42 95 / .9); }
.prod h3 { margin-top: .75rem; font: 800 14.5px/1.3 Outfit, Inter, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.prod .precio { margin-top: auto; padding-top: .6rem; display: flex; align-items: end; justify-content: space-between; gap: .4rem; }
.prod .precio b { font: 900 19px/1 Outfit, Inter, sans-serif; letter-spacing: -.01em; }
.prod .precio small { display: block; margin-bottom: 3px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--tinta) / .5); }
.prod .agregar { position: relative; z-index: 3; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: .95rem; font-size: 17px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 10px 20px -8px rgb(255 42 95 / .95), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.prod:hover .agregar { transform: rotate(90deg); }
.prod .agregar:active { transform: scale(.88); }
.prod.elegido { box-shadow: inset 0 0 0 2px #FF2A5F, 0 0 30px -8px rgb(255 42 95 / .8); }
.prod.elegido:hover .agregar { transform: none; }
.prod .marca-check { position: absolute; z-index: 3; top: 1.1rem; right: 1.1rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #FF0033; box-shadow: 0 0 0 3px rgb(var(--tarjeta)); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.prod.elegido .marca-check { transform: scale(1); }
.rejilla > .prod:nth-child(2) { animation-delay: .04s; } .rejilla > .prod:nth-child(3) { animation-delay: .08s; } .rejilla > .prod:nth-child(4) { animation-delay: .12s; }
.rejilla > .prod:nth-child(5) { animation-delay: .16s; } .rejilla > .prod:nth-child(6) { animation-delay: .2s; } .rejilla > .prod:nth-child(n+7) { animation-delay: .24s; }

/* Carrusel (promociones y más pedidos): tarjetas grandes que se deslizan con imán */
.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 19rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; margin-inline: -1rem; padding: .35rem 1rem 1.1rem; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .carrusel { grid-auto-columns: calc((100% - 3rem) / 4); margin-inline: 0; padding-inline: 0; } }
.carrusel > .prod { scroll-snap-align: start; padding: .9rem; }
.carrusel > .prod .vitrina { height: 13rem; }
.carrusel > .prod .vitrina img { height: 150px; }
.carrusel > .prod h3 { font-size: 16px; }
.carrusel > .prod .precio b { font-size: 22px; }
.carrusel > .prod:nth-child(2) { animation-delay: .06s; } .carrusel > .prod:nth-child(3) { animation-delay: .12s; } .carrusel > .prod:nth-child(n+4) { animation-delay: .18s; }

/* ---------- Pasos (carrito, combos, soporte) ---------- */
.stepper { display: flex; gap: .4rem; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .55rem .6rem; border-radius: .9rem; font-size: 11px; font-weight: 800; color: rgb(var(--tinta) / .45); background: rgb(var(--tinta) / .04); transition: all .3s; }
.stepper li span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 999px; font-size: 11px; background: rgb(var(--tinta) / .08); }
.stepper li.activo { color: rgb(var(--tinta)); background: rgb(255 0 51 / .1); box-shadow: inset 0 0 0 1px rgb(255 0 51 / .35); }
.stepper li.activo span, .stepper li.hecho span { color: #fff; background: #FF0033; }
.stepper li.hecho { color: rgb(var(--tinta) / .7); }

.opcion { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; padding: .6rem 1rem; border-radius: 1rem; text-align: left; background: rgb(var(--fondo) / .6); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); transition: all .2s; }
.opcion:hover { box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .3); }
.opcion[aria-pressed="true"] { background: rgb(255 0 51 / .1); box-shadow: inset 0 0 0 2px rgb(255 0 51 / .6); }
.opcion .radio { width: 18px; height: 18px; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 2px rgb(var(--tinta) / .3); }
.opcion[aria-pressed="true"] .radio { background: #FF0033; box-shadow: inset 0 0 0 4px rgb(var(--fondo)), 0 0 0 2px #FF0033; }

/* ---------- Hoja modal (sube desde abajo en móvil, centrada en escritorio) ---------- */
.hoja { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .hoja { align-items: center; } }
.hoja-fondo { position: absolute; inset: 0; background: rgb(0 0 0 / .65); backdrop-filter: blur(4px); animation: aparecer .25s ease both; }
.tema-claro .hoja-fondo { background: rgb(15 17 26 / .45); }
.hoja-panel { position: relative; width: 100%; max-width: 32rem; max-height: 92vh; overflow-y: auto; padding: 1.25rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)); border-radius: 1.75rem 1.75rem 0 0; background: rgb(var(--tarjeta) / .97); box-shadow: 0 0 0 1px rgb(var(--tinta) / .1), 0 -20px 60px -20px rgb(0 0 0 / .7); animation: subir .38s cubic-bezier(.2, .8, .2, 1) both; }
@media (min-width: 640px) { .hoja-panel { border-radius: 1.75rem; animation-name: acercar; } }
.hoja.cerrando .hoja-fondo { animation: aparecer .2s ease reverse both; }
.hoja.cerrando .hoja-panel { animation: subir .22s ease-in reverse both; }
.hoja-asa { width: 44px; height: 5px; margin: -.25rem auto .9rem; border-radius: 99px; background: rgb(var(--tinta) / .15); }
@media (min-width: 640px) { .hoja-asa { display: none; } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes acercar { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.linea-carrito { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 1rem; background: rgb(var(--fondo) / .55); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .07); animation: entrar .3s ease both; }
.linea-carrito img { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: .8rem; background: #121826; padding: 4px; }
.total-fila { display: flex; justify-content: space-between; font-size: 13px; color: rgb(var(--tinta) / .6); }
.total-fila.grande { font-size: 15px; color: rgb(var(--tinta)); font-weight: 900; }
.alerta-red { padding: .8rem 1rem; border-radius: 1rem; font-size: 12px; color: #FCD34D; background: rgb(245 158 11 / .1); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .35); }
.tema-claro .alerta-red { color: #B45309; }

/* Descuento por combo (reglas de wo-029) */
.reglas-combo { display: flex; flex-wrap: wrap; gap: .5rem; }
.reglas-combo span { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .85rem; border-radius: 999px; font-size: 12px; font-weight: 700; color: rgb(var(--tinta) / .65); background: rgb(var(--tinta) / .04); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); transition: all .3s cubic-bezier(.34, 1.56, .64, 1); }
.reglas-combo span i { color: #FF2A5F; }
.reglas-combo span b { color: rgb(var(--tinta)); }
.reglas-combo span.alcanzada { color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 6px 18px -6px rgb(255 42 95 / .85); transform: scale(1.04); }
.reglas-combo span.alcanzada i, .reglas-combo span.alcanzada b { color: #fff; }
.sello-combo { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }

.barra-combo {background: rgb(var(--tarjeta) / .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .35), 0 12px 30px -12px rgb(0 0 0 / .5); }

/* ---------- Mis pedidos con sesión (sesion.js, WO-028 fase 1) ---------- */
.entrando-suave { animation: entrar .4s cubic-bezier(.2, .8, .2, 1) both; }
.acceso { position: relative; overflow: hidden; padding: 1.5rem; text-align: left; background: linear-gradient(160deg, rgb(255 0 51 / .09), rgb(var(--tarjeta) / .6) 60%); box-shadow: inset 0 0 0 1px rgb(255 0 51 / .22); }
.acceso-icono { width: 54px; height: 54px; margin-bottom: 1rem; display: grid; place-items: center; border-radius: 1.1rem; font-size: 24px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 10px 26px -8px rgb(255 42 95 / .85); animation: latido 2.6s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 10px 34px -4px rgb(255 42 95 / .95), 0 0 0 8px rgb(255 42 95 / .08); } }
.acceso .volver { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; margin: -.5rem 0 .5rem; font-size: 12px; font-weight: 800; color: rgb(var(--tinta) / .55); transition: color .2s; }
.acceso .volver:hover { color: #FF2A5F; }
.campo-prefijo { display: flex; align-items: center; border-radius: 1rem; background: rgb(var(--fondo) / .7); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); transition: box-shadow .2s; }
.campo-prefijo:focus-within { box-shadow: inset 0 0 0 2px rgb(255 0 51 / .6); }
.campo-prefijo > span { padding: 0 .2rem 0 1rem; font: 800 15px/1 ui-monospace, monospace; color: rgb(var(--tinta) / .5); }
.campo-prefijo .campo { background: transparent; box-shadow: none; padding-left: .5rem; letter-spacing: .06em; }
.ventajas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.25rem; }
.ventajas li { display: grid; justify-items: center; gap: .35rem; padding: .7rem .4rem; border-radius: 1rem; font-size: 10.5px; font-weight: 700; text-align: center; color: rgb(var(--tinta) / .6); background: rgb(var(--tinta) / .04); }
.ventajas i { color: #FF2A5F; font-size: 15px; }

/* Caja de 6 dígitos */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 3.3rem)); justify-content: center; gap: .5rem; }
.otp input { width: 100%; aspect-ratio: 4 / 5; border-radius: 1rem; text-align: center; font: 900 1.6rem/1 Outfit, Inter, sans-serif; color: rgb(var(--tinta)); background: rgb(var(--fondo) / .75); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .14); outline: none; caret-color: #FF2A5F; transition: box-shadow .2s, transform .2s; }
.otp input:focus { box-shadow: inset 0 0 0 2px #FF2A5F, 0 0 18px -4px rgb(255 42 95 / .7); transform: translateY(-2px); }
.otp input.lleno { animation: pop .25s cubic-bezier(.34, 1.56, .64, 1); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .55); }
.otp.ocupado input { opacity: .6; }
.otp.error { animation: sacudir .42s cubic-bezier(.36, .07, .19, .97); }
.otp.error input { box-shadow: inset 0 0 0 2px #FF0033; }
.otp.exito input { color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 8px 20px -10px rgb(255 42 95 / .9); animation: pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.otp.exito input:nth-child(2) { animation-delay: .04s; } .otp.exito input:nth-child(3) { animation-delay: .08s; }
.otp.exito input:nth-child(4) { animation-delay: .12s; } .otp.exito input:nth-child(5) { animation-delay: .16s; } .otp.exito input:nth-child(6) { animation-delay: .2s; }
@keyframes pop { 50% { transform: scale(1.12); } }
@keyframes sacudir { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.reloj-otp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; font-size: 12px; color: rgb(var(--tinta) / .6); }
.reloj-otp .reenviar { min-height: 40px; padding: 0 .9rem; border-radius: .8rem; font-weight: 800; color: #FF2A5F; background: rgb(255 42 95 / .08); transition: background-color .2s; }
.reloj-otp .reenviar:disabled { color: rgb(var(--tinta) / .4); background: transparent; }

/* Cabecera de la sesión y resumen */
.cabecera-sesion { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-radius: 1.4rem; background: linear-gradient(135deg, rgb(255 0 51 / .12), rgb(var(--tarjeta) / .6)); box-shadow: inset 0 0 0 1px rgb(255 0 51 / .25); }
.cabecera-sesion .avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: .95rem; font-size: 20px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); }
.icono-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: .9rem; color: rgb(var(--tinta) / .65); background: rgb(var(--tinta) / .05); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); transition: color .2s, transform .2s; }
.icono-btn:hover { color: #FF2A5F; }
.icono-btn:active { transform: scale(.92); }
.resumen-sesion { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .75rem; }
.resumen-sesion div { display: grid; gap: 2px; padding: .8rem; border-radius: 1.1rem; background: rgb(var(--tarjeta) / .6); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .08); animation: entrar .4s cubic-bezier(.2, .8, .2, 1) both; }
.resumen-sesion div:nth-child(2) { animation-delay: .05s; } .resumen-sesion div:nth-child(3) { animation-delay: .1s; }
.resumen-sesion b { font: 900 1.5rem/1 Outfit, Inter, sans-serif; }
.resumen-sesion span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--tinta) / .5); }

/* Tarjeta de pedido con línea de tiempo */
.pedido { padding: 1.1rem; border-radius: 1.4rem; background: rgb(var(--tarjeta) / .65); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .08); animation: entrar .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i, 0), 8) * 55ms); transition: box-shadow .3s; }
.pedido:hover { box-shadow: inset 0 0 0 1px rgb(255 42 95 / .35), 0 16px 34px -22px rgb(255 42 95 / .6); }
.pedido header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.pedido h3 { font: 800 15px/1.3 Outfit, Inter, sans-serif; }
.pedido .estado { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tono-curso .estado { color: #FF2A5F; background: rgb(255 42 95 / .1); }
.tono-bueno .estado { color: #34D399; background: rgb(16 185 129 / .12); }
.tono-aviso .estado { color: #FCD34D; background: rgb(245 158 11 / .12); }
.tono-malo .estado { color: #FF6B81; background: rgb(255 0 51 / .14); }
.tono-apagado .estado { color: rgb(var(--tinta) / .5); background: rgb(var(--tinta) / .06); }
.tema-claro .tono-bueno .estado { color: #047857; }
.tema-claro .tono-aviso .estado { color: #B45309; }
.tema-claro .tono-malo .estado { color: #C8102E; }
.tono-apagado { opacity: .8; }
.linea-tiempo { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.1rem; }
.linea-tiempo::before, .linea-tiempo::after { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: rgb(var(--tinta) / .1); }
.linea-tiempo::after { background: linear-gradient(90deg, #E50914, #FF2A5F); box-shadow: 0 0 10px rgb(255 42 95 / .6); transform-origin: left; transform: scaleX(var(--avance)); animation: llenar .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes llenar { from { transform: scaleX(0); } }
.linea-tiempo li { position: relative; z-index: 1; display: grid; justify-items: center; gap: .4rem; text-align: center; }
.linea-tiempo li span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; font-size: 12px; color: rgb(var(--tinta) / .35); background: rgb(var(--tarjeta)); box-shadow: inset 0 0 0 2px rgb(var(--tinta) / .12); transition: all .3s; }
.linea-tiempo li small { font-size: 10px; font-weight: 800; line-height: 1.2; color: rgb(var(--tinta) / .4); }
.linea-tiempo li.hecho span { color: #fff; background: #FF0033; box-shadow: none; }
.linea-tiempo li.hecho small, .linea-tiempo li.actual small { color: rgb(var(--tinta) / .85); }
.linea-tiempo li.actual span { color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 0 0 4px rgb(255 42 95 / .2); animation: pulso 2s ease-in-out infinite; }
.tono-bueno .linea-tiempo li.actual span { animation: none; }
@keyframes pulso { 50% { box-shadow: 0 0 0 8px rgb(255 42 95 / .05), 0 0 18px rgb(255 42 95 / .6); } }
.garantia { margin-top: 1rem; padding: .75rem .9rem; border-radius: 1rem; background: rgb(16 185 129 / .07); box-shadow: inset 0 0 0 1px rgb(16 185 129 / .2); }
.garantia p { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 12px; color: #6EE7B7; }
.garantia p span { margin-left: auto; color: rgb(var(--tinta) / .45); }
.tema-claro .garantia p { color: #047857; }
.garantia .barra { height: 6px; margin-top: .5rem; border-radius: 6px; background: rgb(var(--tinta) / .08); overflow: hidden; }
.garantia .barra i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10B981, #34D399); transform-origin: left; transform: scaleX(var(--resto)); animation: llenar 1s .25s cubic-bezier(.2, .8, .2, 1) both; }
.garantia.vencida { background: rgb(var(--tinta) / .04); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .08); }
.garantia.vencida p { color: rgb(var(--tinta) / .5); }
.pedido .acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin-top: 1rem; }
.pedido .acciones:empty { display: none; }

/* Hoja de accesos: velada hasta que el cliente la toca */
.accesos-caja { position: relative; border-radius: 1rem; background: rgb(var(--fondo) / .8); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .3); }
.accesos-caja pre { margin: 0; padding: 1rem; min-height: 4.5rem; white-space: pre-wrap; word-break: break-all; font-size: 15px; line-height: 1.6; user-select: all; transition: filter .35s; }
.accesos-caja .velo { position: absolute; inset: 0; display: grid; place-content: center; gap: .3rem; border-radius: 1rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--tinta) / .8); opacity: 0; pointer-events: none; transition: opacity .3s; }
.accesos-caja.oculto pre { filter: blur(9px); user-select: none; }
.accesos-caja.oculto .velo { opacity: 1; pointer-events: auto; }

/* Accesos dentro de la tarjeta del pedido (fase 2) */
.accesos-inline { margin-top: 1rem; padding: .9rem; border-radius: 1.2rem; background: linear-gradient(160deg, rgb(255 0 51 / .1), rgb(var(--fondo) / .55)); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .4), 0 0 26px -12px rgb(255 42 95 / .7); animation: desplegar .4s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top; }
.accesos-inline.cerrando { animation: desplegar .25s ease-in reverse both; }
@keyframes desplegar { from { opacity: 0; transform: translateY(-8px) scaleY(.92); } }
.accesos-cabecera { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.accesos-cabecera > span:first-child { font: 900 12px/1 Outfit, Inter, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: #FF2A5F; }
.accesos-cabecera [data-cerrar] { margin-left: auto; }
.accesos-lineas { display: grid; gap: .35rem; padding: .5rem; }
.linea-acceso { display: flex; align-items: center; gap: .5rem; padding: .25rem .25rem .25rem .6rem; border-radius: .8rem; background: rgb(var(--tinta) / .04); }
.linea-acceso pre { flex: 1; min-width: 0; margin: 0; padding: .35rem 0; min-height: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; user-select: all; transition: filter .35s; }
.accesos-caja.oculto .linea-acceso pre { filter: blur(8px); user-select: none; }
.accesos-caja.oculto .linea-acceso button { visibility: hidden; }

/* Pago en la web + comprobante (carrito.js, fase 2) */
.orden-cabecera { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.2rem; background: linear-gradient(135deg, rgb(255 0 51 / .16), rgb(var(--tarjeta) / .6)); box-shadow: inset 0 0 0 1px rgb(255 42 95 / .35); }
.orden-cabecera small { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--tinta) / .55); }
.orden-cabecera b { font: 900 1.35rem/1.2 Outfit, Inter, sans-serif; }
.dato-pago { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem .7rem 1rem; border-radius: 1rem; background: rgb(var(--fondo) / .6); box-shadow: inset 0 0 0 1px rgb(var(--tinta) / .1); }
.dato-pago span { min-width: 0; }
.dato-pago small { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--tinta) / .5); }
.dato-pago b { display: block; font-size: 15px; word-break: break-all; }
.qr-pago { width: 190px; margin: .5rem auto 0; border-radius: 1rem; background: #fff; padding: .5rem; }
.zona-archivo { display: grid; place-items: center; min-height: 9rem; padding: 1rem; border-radius: 1.2rem; text-align: center; cursor: pointer; border: 2px dashed rgb(255 42 95 / .45); background: rgb(255 42 95 / .05); transition: border-color .2s, background-color .2s, transform .2s; }
.zona-archivo:hover { border-color: #FF2A5F; background: rgb(255 42 95 / .1); }
.zona-archivo:active { transform: scale(.98); }
.zona-archivo:focus-within { outline: 2px solid #FF2A5F; outline-offset: 2px; }
.zona-archivo [data-vista-previa] { display: grid; justify-items: center; gap: .35rem; }
.zona-archivo i { font-size: 30px; color: #FF2A5F; }
.zona-archivo b { font-size: 13px; }
.zona-archivo small { font-size: 11px; color: rgb(var(--tinta) / .5); }
.zona-archivo img { max-height: 11rem; border-radius: .8rem; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .7); animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.zona-archivo.con-archivo { border-style: solid; }
.exito-check { width: 84px; height: 84px; margin: 0 auto; display: grid; place-items: center; border-radius: 999px; font-size: 36px; color: #fff; background: linear-gradient(135deg, #FF2A5F, #E50914); box-shadow: 0 0 0 10px rgb(255 42 95 / .12), 0 16px 34px -10px rgb(255 42 95 / .9); animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Consulta como invitado (plegable) */
.invitado summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; }
.invitado summary::-webkit-details-marker { display: none; }
.invitado .flecha { color: rgb(var(--tinta) / .45); transition: transform .3s; }
.invitado[open] .flecha { transform: rotate(180deg); }
.invitado[open] form { animation: entrar .3s ease both; }

/* Toasts (ui.js): arriba, para no tapar los botones de la hoja ni el menú inferior */
#toasts { top: calc(env(safe-area-inset-top) + 4.75rem); bottom: auto !important; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.skeleton { position: relative; overflow: hidden; border-radius: 1.3rem; background: rgb(var(--tinta) / .05); min-height: 12rem; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 0 51 / .12), transparent); animation: brillo 1.4s infinite; }
@keyframes brillo { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
