/* Portal de la academia — tema oscuro, móvil primero, tipografía del sistema, sin recursos externos. */
:root {
  --bg: #0e1117; --panel: #161b24; --panel2: #1d2430; --borde: #2a3340;
  --texto: #e6eaf0; --suave: #9aa6b6; --acento: #5b8def; --acento-2: #7aa2f7;
  --ok: #3fb68b; --aviso: #e0a53a; --error: #e5636b;
  --radio: 14px; --pestanas: 64px;
  --seg-arriba: env(safe-area-inset-top, 0px); --seg-abajo: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--texto); line-height: 1.5;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; padding-bottom: calc(var(--pestanas) + var(--seg-abajo) + 12px);
}
body.admin { padding-bottom: 32px; }
a { color: var(--acento-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: .4rem 0 .8rem; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 0; }
h2.seccion { margin: 1.6rem 0 .6rem; color: var(--suave); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
small { font-weight: 400; }
code { background: var(--panel2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.suave { color: var(--suave); }
.centro { text-align: center; }
.en-linea { display: inline; margin: 0; }

/* cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--seg-arriba)) 16px 10px; background: rgba(14, 17, 23, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 650; letter-spacing: .01em; }
.marca:hover { text-decoration: none; }
.logo { display: block; height: 28px; width: auto; }
.nav-admin { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.nav-admin a.on { color: var(--texto); font-weight: 600; }
.enlace { background: none; border: 0; color: var(--acento-2); font: inherit; padding: 6px 0; cursor: pointer; }
.enlace:hover { text-decoration: underline; }

.contenido { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }
.admin .contenido { max-width: 980px; }

/* tarjetas */
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; margin: 0 0 14px; }
.tarjeta.estrecha { max-width: 440px; margin: 8px auto 14px; }
.tarjeta.texto h2 { margin: 1.3rem 0 .3rem; font-size: 1rem; }
.tarjeta.texto li { margin: .25rem 0; }
.gigante { font-size: 3.2rem; font-weight: 700; margin: 0; color: var(--suave); }
.enlace-tarjeta { display: block; color: inherit; margin: 0; }
.enlace-tarjeta:hover { text-decoration: none; border-color: var(--acento); }
.fila-enlace { display: block; color: inherit; }
.fila-enlace:hover { text-decoration: none; border-color: var(--acento); }
.fila-enlace p, .enlace-tarjeta p { margin: .3rem 0 0; }
.rejilla { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
.rejilla .tarjeta { margin: 0; }
@media (min-width: 640px) { .rejilla { grid-template-columns: repeat(3, 1fr); } }
.fila-titulo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fila-titulo h2 { word-break: break-word; }
.cifra { font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { margin: 0 0 12px; }
.atras { color: var(--suave); font-size: .9rem; }

/* progreso del pack */
.barra { width: 100%; height: 10px; margin: 12px 0 8px; border: 0; border-radius: 99px; overflow: hidden;
  background: var(--panel2); appearance: none; -webkit-appearance: none; }
.barra::-webkit-progress-bar { background: var(--panel2); }
.barra::-webkit-progress-value { background: linear-gradient(90deg, #5b8def, #3fb68b); border-radius: 99px; }
.barra::-moz-progress-bar { background: linear-gradient(90deg, #5b8def, #3fb68b); border-radius: 99px; }
.datos { display: flex; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.datos li { flex: 1; background: var(--panel2); border-radius: 10px; padding: 10px 6px; text-align: center; }
.datos strong { display: block; font-size: 1.3rem; }
.datos span { color: var(--suave); font-size: .8rem; }

/* formularios */
.formulario { display: grid; gap: 14px; }
.formulario label, .filtro label { display: grid; gap: 6px; font-size: .9rem; color: var(--suave); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--texto); background: var(--bg);
  border: 1px solid var(--borde); border-radius: 10px; }
input:focus, select:focus, .boton:focus-visible, a:focus-visible, .enlace:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.casilla { display: flex !important; gap: 10px; align-items: flex-start; line-height: 1.4; }
.casilla input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--acento); }
.pie { margin: 16px 0 0; font-size: .9rem; }
.filtro { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filtro label { flex: 1; max-width: 260px; }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; font: inherit;
  font-weight: 600; color: var(--texto); background: var(--panel2); border: 1px solid var(--borde); border-radius: 10px;
  cursor: pointer; }
.boton:hover { text-decoration: none; border-color: var(--acento); }
.boton.primario { background: var(--acento); border-color: var(--acento); color: #fff; }
.boton.primario:hover { filter: brightness(1.1); }
.boton.peligro { color: var(--error); border-color: #5a2a30; }

/* mensajes y etiquetas */
.msg { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: .95rem; }
.msg.error { background: rgba(229, 99, 107, .12); border: 1px solid #5a2a30; color: #ffb4b9; }
.msg.aviso { background: rgba(224, 165, 58, .1); border: 1px solid #5c4a1f; color: #f1d089; }
.msg.ok { background: rgba(63, 182, 139, .12); border: 1px solid #244d3e; color: #9fe3c8; }
.etiqueta { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  background: var(--panel2); color: var(--suave); white-space: nowrap; }
.etiqueta.libre, .etiqueta.e-terminado { background: rgba(63, 182, 139, .15); color: var(--ok); }
.etiqueta.usado, .etiqueta.e-recibido { background: var(--panel2); color: var(--suave); }
.etiqueta.e-editando { background: rgba(91, 141, 239, .16); color: var(--acento-2); }
.etiqueta.e-devuelto { background: rgba(229, 99, 107, .14); color: #ff9aa1; }

/* trabajos */
.trabajo p { margin: .4rem 0; }
.progreso { display: flex; list-style: none; margin: 12px 0 8px; padding: 0; gap: 6px; }
.progreso li { flex: 1; text-align: center; font-size: .78rem; color: var(--suave); padding-top: 10px; border-top: 4px solid var(--panel2);
  border-radius: 2px; }
.progreso li.hecho { color: var(--texto); border-top-color: var(--acento); }
.estado-terminado .progreso li.hecho { border-top-color: var(--ok); }
.estado-devuelto .progreso li.hecho { border-top-color: var(--error); }
.archivo { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px;
  padding: 10px 12px; background: var(--panel2); border-radius: 10px; }
.nombre-archivo { word-break: break-all; font-size: .9rem; }
.nombre-archivo small { color: var(--suave); display: block; }
.acciones { display: flex; gap: 8px; }

/* guion */
.guion-texto { white-space: pre-wrap; word-wrap: break-word; margin: 0; font: inherit; font-size: 1.05rem; line-height: 1.65; }
.pasos { padding-left: 1.2rem; } .pasos li { margin: .5rem 0; }

/* admin */
.tabla-marco { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: 14px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th, .tabla td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla th { color: var(--suave); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--panel); }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .motivo { display: block; max-width: 340px; }
.ficha { list-style: none; margin: 0; padding: 0; }
.ficha li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.ficha li:last-child { border-bottom: 0; } .ficha span { color: var(--suave); }
.codigo { font: 700 1.8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center;
  background: var(--bg); border: 1px dashed var(--acento); border-radius: 12px; padding: 18px 8px; user-select: all; word-break: break-all; }

/* pestañas inferiores (creador) */
.pestanas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; height: calc(var(--pestanas) + var(--seg-abajo));
  padding-bottom: var(--seg-abajo); background: rgba(22, 27, 36, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--borde);
}
.pestanas a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--suave);
  font-size: .72rem; }
.pestanas a:hover { text-decoration: none; }
.pestanas a.on { color: var(--acento-2); }
@media (min-width: 900px) { .pestanas { max-width: 520px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 1px solid var(--borde); } }


/* ══════════════════════════ SUBIDAS (la app de quien publica en TikTok) ══════════════════════════ */
.subidas .contenido { max-width: 820px; }
.boton.grande { min-height: 54px; font-size: 1.05rem; padding: 12px 22px; width: 100%; margin-top: 10px; }
@media (min-width: 640px) { .boton.grande { width: auto; } }
.dia-hoy { background: linear-gradient(135deg, #182033, #161b24 60%); border-color: #2d3a55; }
.anillo-fila { display: flex; gap: 18px; align-items: center; }
.anillo { position: relative; width: 112px; height: 112px; flex: none; }
.anillo-fondo { stroke: var(--panel2); }
.anillo-valor { stroke: #3fb68b; transition: stroke-dasharray .6s ease; }
.anillo-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.anillo-num strong { font-size: 2rem; }
.anillo-num span { color: var(--suave); font-size: .8rem; margin-top: 4px; }
.dia-texto h2 { font-size: 1.15rem; }
.animo { margin: .3rem 0 0; font-size: 1.05rem; }
.videos .video-fila, .fila-dia { display: flex; align-items: center; gap: 14px; color: inherit; padding: 14px 16px; }
.video-fila:hover { text-decoration: none; border-color: var(--acento); }
.video-fila .num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; background: var(--panel2); color: var(--suave); }
.estado-hecho .num { background: rgba(63, 182, 139, .18); color: var(--ok); }
.estado-en_marcha .num { background: rgba(91, 141, 239, .18); color: var(--acento-2); }
.estado-hecho .info strong { color: var(--suave); text-decoration: line-through; text-decoration-color: rgba(154, 166, 182, .6); }
.video-fila .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.video-fila .info strong { font-size: 1rem; line-height: 1.3; }
.video-fila .info small { color: var(--suave); font-size: .82rem; }
.barra.mini { height: 6px; margin: 6px 0 0; max-width: 220px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: var(--panel2); color: var(--suave); border: 1px solid var(--borde); }
.chip-hecho { background: rgba(63, 182, 139, .15); color: var(--ok); border-color: transparent; }
.chip-en_marcha { background: rgba(91, 141, 239, .16); color: var(--acento-2); border-color: transparent; }
.chip-musica { background: rgba(224, 165, 58, .14); color: #f1d089; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ficha del vídeo */
.video-cab { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.video-cab h1 { margin: 0 0 .2rem; font-size: 1.35rem; }
.video-cab p { margin: 0; }
.num.grande { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; background: var(--panel2); color: var(--acento-2); }
.num.grande.num-hecho { background: rgba(63, 182, 139, .18); color: var(--ok); }
.avisos { margin: .3rem 0 0; padding-left: 1.2rem; }
#pasos-texto { margin: -2px 0 10px; font-size: .85rem; }

.pasos-lista { list-style: none; margin: 0; padding: 0; }
.paso { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 16px 16px 14px;
  margin: 0 0 12px; transition: border-color .2s, background .2s; }
.paso.actual { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(91, 141, 239, .18); }
.paso.hecho { background: #131a1a; border-color: #244a3c; }
.paso.tipo-info { background: #1a1a22; }
.paso h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.paso .paso-texto { margin: 0; font-size: 1rem; line-height: 1.55; }
.paso.hecho h2, .paso.hecho .paso-texto { color: var(--suave); }
.paso.hecho h2 { text-decoration: line-through; text-decoration-color: rgba(63, 182, 139, .7); }
.paso-cuerpo { flex: 1; min-width: 0; }
.tachar { flex: none; align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tachar .check { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--borde);
  background: var(--bg); color: var(--suave); font-weight: 700; font-size: 1.05rem; transition: all .2s; position: relative; }
.paso.actual .tachar .check { border-color: var(--acento); color: var(--acento-2); }
.tachar .tick { display: none; font-size: 1.3rem; }
.paso.hecho .tachar .check { background: var(--ok); border-color: var(--ok); color: #06231a; transform: scale(1.04); }
.paso.hecho .tachar .n { display: none; } .paso.hecho .tachar .tick { display: block; }
.tachar:focus-visible .check { outline: 2px solid var(--acento); outline-offset: 2px; }
.copiable { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }
.copiable code { flex: 1; min-width: 0; padding: 10px 12px; font-size: 1rem; white-space: pre-wrap; word-break: break-word; background: var(--bg);
  border: 1px dashed var(--borde); border-radius: 10px; }
.descarga { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.qr { flex: none; background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.qr svg { width: 168px; height: 168px; display: block; }
.descarga-botones { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 180px; }
.descarga-botones p { margin: 2px 0 0; font-size: .82rem; word-break: break-all; }
.detalle { margin-top: 8px; color: var(--suave); font-size: .92rem; }
.detalle summary { cursor: pointer; color: var(--acento-2); }
.detalle p { margin: .4rem 0 0; }

.final { text-align: center; border-color: #244a3c; background: linear-gradient(160deg, #122a22, #161b24 70%); }
.final .celebra { font-size: 3rem; margin: 0; line-height: 1.1; }
.final h2 { font-size: 1.4rem; margin: .2rem 0 .4rem; }
.enlace-form { display: flex; gap: 8px; margin: 8px 0 4px; }
.enlace-form input { flex: 1; min-width: 0; }
.pie-fijo { position: fixed; left: 0; right: 0; bottom: calc(var(--pestanas) + var(--seg-abajo)); z-index: 5; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 8px 16px; background: rgba(14, 17, 23, .94); border-top: 1px solid var(--borde); backdrop-filter: blur(8px); }
.pie-fijo .boton { min-height: 40px; padding: 8px 16px; }
body.con-pie { padding-bottom: calc(var(--pestanas) + var(--seg-abajo) + 72px); }
@media (min-width: 900px) { .pie-fijo { max-width: 820px; left: 50%; transform: translateX(-50%); border: 1px solid var(--borde); border-radius: 12px 12px 0 0; } }

/* tostadas y confeti */
.tostada { position: fixed; left: 50%; bottom: calc(var(--pestanas) + var(--seg-abajo) + 90px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--panel2); color: var(--texto); border: 1px solid var(--borde); padding: 10px 16px; border-radius: 10px; z-index: 20; transition: all .3s; }
.tostada.ver { opacity: 1; transform: translate(-50%, 0); }
.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confeti i { position: absolute; top: -20px; border-radius: 2px; animation: caer linear forwards; opacity: .95; }
@keyframes caer { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }

/* nav con botón y chat */
.pestana-boton { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0;
  color: var(--acento-2); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.chat { position: fixed; right: 12px; left: 12px; bottom: calc(var(--pestanas) + var(--seg-abajo) + 10px); z-index: 25; max-width: 440px; margin-left: auto;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
  max-height: min(70vh, 560px); }
.chat[hidden] { display: none; }
.chat-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--borde); }
.chat-mensajes { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.burbuja { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.burbuja.suya { background: var(--panel2); align-self: flex-start; border-bottom-left-radius: 4px; }
.burbuja.mia { background: var(--acento); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.burbuja.pensando { color: var(--suave); animation: parpadeo 1s infinite; }
@keyframes parpadeo { 50% { opacity: .4; } }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borde); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; color: var(--texto); background: var(--bg); border: 1px solid var(--borde);
  border-radius: 10px; padding: 10px 12px; }
.chat-form .boton { align-self: flex-end; }

/* admin de subidas */
.rejilla-ficha { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rejilla-ficha { grid-template-columns: 1fr 1fr; } .rejilla-ficha .ancha { grid-column: 1 / -1; } }
.rejilla-ficha textarea { width: 100%; font: inherit; color: var(--texto); background: var(--bg); border: 1px solid var(--borde); border-radius: 10px; padding: 10px 12px; }
.en-fila { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.en-fila label { flex: 1; min-width: 240px; }

/* ── Mis datos (exports de TikTok Shop) ── */
.peq { font-size: .8rem; display: block; }
.datos.varias { flex-wrap: wrap; }
.datos.varias li { flex: 1 1 30%; min-width: 96px; }
.rejilla.dos { grid-template-columns: 1fr; }
@media (min-width: 640px) { .rejilla.dos { grid-template-columns: 1fr 1fr; } }
.lista-archivos { list-style: none; margin: 10px 0 0; padding: 0; }
.lista-archivos li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.lista-archivos li.on { background: var(--panel2); }
.lista-archivos a { display: grid; color: inherit; min-width: 0; }
.lista-archivos a:hover { text-decoration: none; color: var(--acento-2); }
.lista-archivos .suave { font-size: .82rem; }
.enlace.peligro { color: var(--error); }
.nombre-prod { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabla td .barra.mini { margin-top: 6px; max-width: 200px; }
.lista-videos-venta { list-style: none; margin: 0; padding: 0; counter-reset: pos; }
.lista-videos-venta li { border-top: 1px solid var(--borde); }
.lista-videos-venta li:first-child { border-top: 0; }
.lista-videos-venta a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; }
.lista-videos-venta a:hover { text-decoration: none; color: var(--acento-2); }
.lista-videos-venta .pos { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex: none; }
.lista-videos-venta .cuerpo { flex: 1; min-width: 0; display: grid; }
.lista-videos-venta .cuerpo strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.lista-videos-venta .fila { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lista-videos-venta .cifras { text-align: right; flex: none; display: grid; }
.lista-barras { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lista-barras li { display: grid; grid-template-columns: 56px 1fr 64px; align-items: center; gap: 10px; font-size: .9rem; }
.lista-barras.semanas li { grid-template-columns: 104px 1fr 80px; }
.lista-barras strong .peq { font-weight: 400; }
.lista-barras li span.ancho { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-barras .barra.mini { margin: 0; max-width: none; }
.lista-barras strong { text-align: right; white-space: nowrap; font-size: .85rem; }
input[type=file] { font: inherit; color: var(--texto); padding: 8px 0; max-width: 100%; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--suave); }
.casilla input { margin-top: 4px; flex: none; }

/* ── Mis productos ── */
.lista-productos { list-style: none; margin: 0; padding: 0; }
.lista-productos li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borde); }
.lista-productos li:first-child { border-top: 0; }
.lista-productos .casilla.producto { flex: 1; min-width: 0; color: var(--texto); font-size: 1rem; align-items: center; }
.lista-productos .casilla.producto input { width: 24px; height: 24px; margin-top: 0; }
.lista-productos li.tiene strong { color: var(--ok); }
.boton.pequeno { min-height: 36px; padding: 6px 12px; font-size: .85rem; white-space: nowrap; }
.tarjeta.apagado { opacity: .6; }
.pie-fijo span { margin-right: auto; }
