/* MV Pedidos — hecho para el móvil del comercial, de pie y con una mano.
 * Letra Inter servida desde aquí, radios grandes, sombras suaves y el color
 * corporativo de Miguel Vergara. */

@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(tipos/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(tipos/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color corporativo de Grupo Miguel Vergara: marrón ocre #A8843C, sobre negro
     #1C1917 y fondo hueso #F7F6F3. El ocre se queda corto de contraste para letra
     pequeña: ahí va su versión oscura. */
  --marca: #1C1917;
  --marca-fuerte: #000000;
  --oro: #A8843C;
  --oro-texto: #7A5E24;
  --oro-boton: #8F6D2C;
  --oro-claro: #C4A565;
  --marca-suave: #F3ECDF;
  --acento: #A8843C;
  --bien: #2F6B3A;
  --bien-suave: #EAF3EA;
  --duda: #9A5B0B;
  --duda-suave: #FBF3E4;
  --mal: #B3261E;
  --fondo: #F7F6F3;
  --superficie: #FFFFFF;
  --superficie-2: #EEECE8;
  --borde: #E7E5E4;
  --texto: #1C1917;
  --texto-2: #57534E;
  --texto-3: #A8A29E;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(28,25,23,.05), 0 6px 18px rgba(28,25,23,.06);
  --abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 16px/1.4 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---- cabecera ---- */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: var(--oro); color: #fff;
  border-bottom: 1px solid #8C6C2E;
}
.cabecera .titulo { flex: 1; font-weight: 650; text-shadow: 0 1px 1px rgba(0,0,0,.12); font-size: 17px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera button {
  background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 12px;
  min-width: 40px; height: 40px; font-size: 22px; line-height: 1;
}
.cabecera button:active { background: rgba(255,255,255,.25); }

main { padding: 14px 16px calc(110px + var(--abajo)); max-width: 680px; margin: 0 auto; }

/* ---- piezas comunes ---- */
.tarjeta { background: var(--superficie); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; margin-bottom: 12px; }
.seccion { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); margin: 18px 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.seccion small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--texto-3); }
.suave { color: var(--texto-2); }
.tenue { color: var(--texto-3); font-size: 13px; }
.buscador {
  width: 100%; border: 1px solid var(--borde); background: var(--superficie); border-radius: 14px;
  padding: 13px 14px; font-size: 17px; outline: none;
}
.buscador:focus { border-color: var(--oro); box-shadow: 0 0 0 3px var(--marca-suave); }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 600;
  background: var(--superficie-2); color: var(--texto);
  transition: transform .12s ease;
}
.boton:active { transform: scale(.97); }
.boton.principal { background: var(--oro-boton); color: #fff; box-shadow: 0 2px 8px rgba(143,109,44,.28); }
.boton.principal:disabled { background: #CFC8BB; box-shadow: none; }
.boton.ancho { width: 100%; }
.boton.pequeno { padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--superficie-2); color: var(--texto-2); }
.etiqueta.mal { background: #FBE9E7; color: var(--mal); }
.etiqueta.duda { background: var(--duda-suave); color: var(--duda); }
.vacio { text-align: center; color: var(--texto-3); padding: 28px 10px; }

/* ---- entrar ---- */
.entrar { min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.entrar img { width: 190px; height: auto; }
.entrar .filo { width: 44px; height: 2px; background: var(--oro); border-radius: 2px; }
.entrar h1 { margin: 0; font-size: 24px; }
.entrar p { margin: 0; color: var(--texto-2); max-width: 300px; }

/* ---- listas ---- */
.lista { background: var(--superficie); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.fila { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--borde); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.fila:last-child { border-bottom: 0; }
.fila:active { background: var(--marca-suave); }
.fila .cuerpo { flex: 1; min-width: 0; }
.fila .nombre { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .detalle { font-size: 13px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .flecha { color: var(--texto-3); font-size: 20px; }
.fila .mas {
  flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0;
  background: var(--marca-suave); color: var(--oro-texto); font-size: 22px; font-weight: 600;
}
.fila.puesta .mas { background: var(--bien-suave); color: var(--bien); }

/* ---- ficha del cliente ---- */
.ficha h2 { margin: 0 0 2px; font-size: 19px; }
.ficha .avisos { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ficha .obs { margin-top: 8px; font-size: 14px; background: var(--duda-suave); color: #6B3E07; padding: 8px 10px; border-radius: 10px; }

/* ---- dictado ---- */
.dictado { display: flex; flex-direction: column; gap: 10px; }
.dictado textarea { width: 100%; min-height: 64px; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; resize: vertical; outline: none; font-size: 16px; }
.dictado textarea:focus { border-color: var(--marca); }
.dictado .botones { display: flex; gap: 8px; }
.dictado .botones .boton { flex: 1; }
.micro.escuchando { background: var(--mal); color: #fff; animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .75; } }

/* ---- líneas del pedido ---- */
.linea { padding: 12px 14px; border-bottom: 1px solid var(--borde); }
.linea:last-child { border-bottom: 0; }
.linea.duda { background: var(--duda-suave); }
.linea .arriba { display: flex; gap: 8px; align-items: flex-start; }
.linea .arriba .cuerpo { flex: 1; min-width: 0; }
.linea .quitar { flex: none; border: 0; background: none; color: var(--texto-3); font-size: 22px; width: 32px; height: 32px; border-radius: 10px; }
.linea .quitar:active { background: var(--superficie-2); }
.linea .abajo { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.linea .cantidad { width: 96px; border: 1px solid var(--borde); border-radius: 11px; padding: 9px 10px; font-size: 17px; font-weight: 600; text-align: right; outline: none; }
.linea .cantidad:focus { border-color: var(--marca); }
.linea select { border: 1px solid var(--borde); border-radius: 11px; padding: 9px 8px; background: var(--superficie); font-size: 15px; }
.linea .precio { margin-left: auto; font-size: 14px; color: var(--texto-2); white-space: nowrap; }
.linea .elegir { width: 100%; margin-top: 8px; border: 1px solid var(--duda); border-radius: 11px; padding: 9px 8px; background: var(--superficie); }
.linea .nota { width: 100%; margin-top: 8px; border: 1px dashed var(--borde); border-radius: 10px; padding: 7px 10px; font-size: 14px; outline: none; }

/* ---- entrega ---- */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.campo label { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo textarea { border: 1px solid var(--borde); border-radius: 12px; padding: 11px 12px; background: var(--superficie); outline: none; font-size: 16px; }
.campo textarea { min-height: 60px; resize: vertical; }

/* ---- barra de enviar ---- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  padding: 10px 16px calc(10px + var(--abajo));
  background: rgba(247,246,243,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--borde);
}
.barra .boton { width: 100%; max-width: 648px; margin: 0 auto; display: flex; font-size: 17px; padding: 15px; }

/* ---- hoja inferior ---- */
.hoja { position: fixed; inset: 0; z-index: 20; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(30,30,28,.45); }
.hoja-caja {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto;
  background: var(--fondo); border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + var(--abajo));
  max-width: 680px; margin: 0 auto;
  animation: sube .22s ease-out;
}
@keyframes sube { from { transform: translateY(30px); opacity: .6; } }
.hoja-caja h3 { margin: 0 0 4px; font-size: 19px; }
.resumen td { padding: 6px 4px; border-bottom: 1px solid var(--borde); vertical-align: top; font-size: 15px; }
.resumen { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.resumen td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.botonera { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ---- hecho ---- */
.hecho { text-align: center; padding: 30px 10px; }
.hecho .circulo { width: 72px; height: 72px; border-radius: 50%; background: var(--marca-suave); color: var(--oro); font-size: 38px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.hecho h2 { margin: 6px 0; }

/* ---- aviso flotante ---- */
.aviso {
  position: fixed; left: 50%; bottom: calc(88px + var(--abajo)); transform: translate(-50%, 20px);
  background: var(--texto); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 30; max-width: calc(100% - 32px);
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso.error { background: var(--mal); }

.cargando { height: 54px; border-radius: 14px; background: linear-gradient(90deg, var(--superficie-2), #F7F5F1, var(--superficie-2)); background-size: 200% 100%; animation: brillo 1.2s linear infinite; margin-bottom: 8px; }
@keyframes brillo { to { background-position: -200% 0; } }

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

/* ---- comercial fijo ---- */
.campo-agente { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; background: var(--superficie); border-radius: 14px; box-shadow: var(--sombra); padding: 6px 6px 6px 14px; }
.campo-agente span { font-size: 13px; font-weight: 650; color: var(--texto-2); text-transform: uppercase; letter-spacing: .04em; }
.selector-agente { flex: 1; min-width: 0; border: 0; background: var(--marca-suave); color: var(--oro-texto); font-weight: 600; border-radius: 10px; padding: 10px; font-size: 16px; }
.espacio { height: 8px; }
.linea .confirmar { margin-top: 8px; background: var(--bien-suave); color: var(--bien); }
.fila.ver-mas { justify-content: center; color: var(--oro-texto); font-weight: 600; }
a.boton { text-decoration: none; }

/* ---- portada al abrir: el logo en blanco y se desvanece ---- */
.portada {
  position: fixed; inset: 0; z-index: 100; background: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .45s ease, visibility .45s ease;
}
.portada img { width: 290px; max-width: 78vw; height: auto; animation: aparece .7s ease-out both; }
.portada .filo { width: 0; height: 2px; background: var(--oro); border-radius: 2px; animation: filo .9s .25s ease-out forwards; }
.portada.fuera { opacity: 0; visibility: hidden; }
@keyframes aparece { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes filo { to { width: 64px; } }
.cabecera .marca-mini { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

/* ---- inicio: saludo, comercial y los iconos ---- */
.bienvenida { margin: 4px 4px 14px; }
.bienvenida .hola { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bienvenida .tenue::first-letter { text-transform: uppercase; }
.mosaicos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.mosaico {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px;
  padding: 16px 14px 14px; box-shadow: var(--sombra); min-height: 128px;
  transition: transform .12s ease;
}
.mosaico:active { transform: scale(.97); }
.mosaico-icono {
  width: 44px; height: 44px; border-radius: 13px; background: var(--marca-suave); color: var(--oro-texto);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.mosaico-titulo { font-weight: 650; font-size: 16px; }
.mosaico-sub { font-size: 13px; color: var(--texto-2); line-height: 1.3; }
.mosaico.destacado { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #B8964F 0%, #A8843C 45%, #8F6D2C 100%); color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(143,109,44,.30); }
.mosaico.destacado .mosaico-icono { background: rgba(255,255,255,.22); color: #fff; margin: 0; }
.mosaico.destacado .mosaico-sub { color: rgba(255,255,255,.85); }
.mosaico.destacado .mosaico-titulo { font-size: 18px; }
.mosaico.destacado { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; }
.mosaico.destacado .mosaico-icono { grid-row: 1 / 3; }
.icono { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- ficha ---- */
.datos { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dato { display: flex; flex-direction: column; gap: 1px; }
.dato span { font-size: 12px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.dato b { font-weight: 550; }
.telefono { display: inline-flex; align-items: center; gap: 8px; color: var(--oro-texto); font-weight: 650; text-decoration: none; font-size: 17px; }
.telefono .icono { width: 18px; height: 18px; }
.precio-fila { font-weight: 650; white-space: nowrap; color: var(--texto); }
.enlaces { margin-top: 10px; }
.enlaces a { color: var(--oro-texto); font-weight: 600; font-size: 14px; text-decoration: none; }
.boton.repetir { margin-bottom: 12px; background: var(--marca-suave); color: var(--oro-texto); justify-content: flex-start; text-align: left; }
.fila.pulsable { cursor: pointer; }

/* ---- cantidades con − y + ---- */
.pasos { display: flex; align-items: stretch; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; background: var(--superficie); }
.pasos .cantidad { border: 0; border-radius: 0; width: 72px; text-align: center; padding: 9px 4px; }
.pasos .paso { border: 0; background: var(--marca-suave); color: var(--oro-texto); width: 40px; font-size: 22px; font-weight: 600; }
.pasos .paso:active { background: #E9DDC4; }
.linea .abajo { flex-wrap: wrap; }
.linea .precio { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.linea .precio b { color: var(--texto); font-size: 15px; }

/* ---- barra: texto e importe ---- */
.barra-texto { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.barra-texto small { font-size: 13px; font-weight: 500; opacity: .9; }

/* ---- resumen ---- */
.alerta { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FBE9E7; color: var(--mal); font-size: 14px; font-weight: 600; }
.resumen tr.total td { border-bottom: 0; padding-top: 10px; font-weight: 700; }

/* ---- usuarios ---- */
.opcion { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; font-size: 15px; }
.opcion input { width: 20px; height: 20px; accent-color: var(--oro-boton); flex: none; }
.opcion.apagada { opacity: .45; }
.campo .opcion + .opcion { margin-top: -2px; }
.interruptor { margin: 6px 0 4px; }
.campo input[type=email], .campo input[type=text] { border: 1px solid var(--borde); border-radius: 12px; padding: 11px 12px; background: var(--superficie); font-size: 16px; }
.campo input:disabled { background: var(--superficie-2); color: var(--texto-2); }
.fila.apagada .nombre { color: var(--texto-3); text-decoration: line-through; }
.etiqueta.bien { background: var(--bien-suave); color: var(--bien); }

/* ---- atajos de fecha ---- */
.chips { display: flex; gap: 8px; }
.chip { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--borde); background: var(--superficie); border-radius: 12px; padding: 8px 6px; font-weight: 600; font-size: 15px; }
.chip small { font-weight: 500; font-size: 12px; color: var(--texto-2); }
.chip.activo { background: var(--oro-boton); border-color: var(--oro-boton); color: #fff; }
.chip.activo small { color: rgba(255,255,255,.85); }

/* ════════ repaso visual del 24-sep (tarde) ════════ */

/* cabecera con un poco de profundidad */
.cabecera { box-shadow: 0 2px 10px rgba(143,109,44,.25); }

/* iniciales del cliente */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--marca-suave); color: var(--oro-texto); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.avatar.grande { width: 58px; height: 58px; font-size: 21px; background: linear-gradient(135deg, #B8964F, #8F6D2C); color: #fff; }

/* filas: un pelo más de aire y respuesta al tocar */
.fila { gap: 12px; min-height: 64px; }
.fila .boton-texto { background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.aviso-dias { color: var(--duda); font-weight: 650; }
.accion-redonda {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--oro-boton); color: #fff; text-decoration: none; box-shadow: 0 2px 6px rgba(143,109,44,.3);
}
.accion-redonda .icono { width: 19px; height: 19px; }
.accion-redonda:active { transform: scale(.94); }

/* inicio */
.bienvenida { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fecha-hoy { color: var(--texto-2); font-size: 14px; }
.fecha-hoy::first-letter { text-transform: uppercase; }
.hoy {
  flex: none; display: flex; flex-direction: column; align-items: center; min-width: 86px;
  background: var(--superficie); border-radius: 16px; padding: 8px 12px; box-shadow: var(--sombra); border: 1px solid var(--borde);
}
.hoy b { font-size: 24px; line-height: 1.1; color: var(--oro-texto); }
.hoy span { font-size: 12px; color: var(--texto-2); }
.hoy small { font-size: 12px; font-weight: 650; color: var(--texto); margin-top: 2px; }
.mosaico-icono { position: relative; }
.burbuja {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--mal); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.pie-datos { text-align: center; color: var(--texto-3); font-size: 12px; margin: 22px 0 0; }

/* filtros de la lista de clientes */
.chips.filtros { margin: 10px 0 0; }
.chips.filtros .chip { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; }

/* ficha */
.cabecera-cliente { display: flex; align-items: center; gap: 14px; }
.cabecera-cliente h2 { margin: 0 0 2px; font-size: 19px; line-height: 1.2; }
.cabecera-cliente .etiqueta { margin-top: 6px; }
.tarjeta.cabecera-cliente { padding: 16px; }
.ficha .cabecera-cliente { margin-bottom: 2px; }
.acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.accion {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px; box-shadow: var(--sombra);
  color: var(--texto); text-decoration: none; font-weight: 600; font-size: 14px;
}
.accion:active { transform: scale(.97); }
.accion-icono { width: 40px; height: 40px; border-radius: 12px; background: var(--marca-suave); color: var(--oro-texto); display: inline-flex; align-items: center; justify-content: center; }
.acciones .accion:first-child .accion-icono { background: var(--oro-boton); color: #fff; }
.obs { margin: 0 0 12px; }
.tarjeta.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tarjeta.datos .dato:first-child { grid-column: 1 / -1; }

/* tarjetas de cifras (cómo va, cuentas) */
.tarjeta.cifras { display: flex; flex-direction: column; gap: 6px; }
.tarjeta-titulo { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); margin-bottom: 4px; }
.fila-cifra { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.fila-cifra b { font-size: 18px; }
.fila-cifra.suave { color: var(--texto-2); font-size: 14px; }
.alerta-texto { color: var(--mal); }
.variacion { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0; text-transform: none; }
.variacion.sube { background: var(--bien-suave); color: var(--bien); }
.variacion.baja { background: #FBE9E7; color: var(--mal); }
.barra-cifra { height: 8px; border-radius: 4px; background: var(--superficie-2); overflow: hidden; margin: 2px 0 6px; }
.barra-cifra .relleno { height: 100%; width: 0; border-radius: 4px; transition: width .6s ease; }
.relleno.actual { background: linear-gradient(90deg, #B8964F, #8F6D2C); }
.relleno.pasado { background: #CFC6B6; }
.relleno.bien { background: var(--bien); }
.relleno.duda { background: #D08A2C; }
.relleno.mal { background: var(--mal); }
.nivel-bien { color: var(--bien); font-weight: 700; }
.nivel-duda { color: var(--duda); font-weight: 700; }
.nivel-mal { color: var(--mal); font-weight: 700; }
.cargando.alto { height: 96px; }
.avisos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.boton.compartir { background: var(--marca-suave); color: var(--oro-texto); }
.boton.compartir .icono { width: 18px; height: 18px; }

/* ---- entrar ---- */
body.sin-cabecera .cabecera { display: none; }
body.sin-cabecera { background: linear-gradient(180deg, #F3ECDF 0%, var(--fondo) 55%); }
.entrar { min-height: calc(100dvh - 40px); gap: 16px; }
.entrar-caja {
  width: 100%; max-width: 360px; background: var(--superficie); border-radius: 24px; padding: 34px 24px 26px;
  box-shadow: 0 10px 40px rgba(143,109,44,.16); display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.entrar-caja img { width: 200px; }
.entrar-caja h1 { font-size: 22px; }
.entrar .sin-acceso { background: #FBE9E7; color: var(--mal); padding: 10px 12px; border-radius: 12px; font-size: 14px; max-width: none; }
.boton-ms { width: 100%; background: #FFFFFF; color: #1C1917; border: 1px solid #D6D3D1; gap: 12px; font-size: 16px; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.boton-ms:active { background: #F5F5F4; }
.logo-ms { width: 20px; height: 20px; }
.entrar-pie { color: var(--oro-texto); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---- stock, equivalencias y estado del pedido ---- */
.info-linea { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.info-linea:empty { display: none; }
.equivale { font-size: 13px; color: var(--texto-2); background: var(--superficie-2); padding: 2px 8px; border-radius: 999px; }
.stock { font-size: 12.5px; color: var(--bien); font-weight: 600; }
.info-linea .stock { background: var(--bien-suave); padding: 2px 8px; border-radius: 999px; }
.stock.sin { color: var(--texto-3); font-weight: 500; }
.info-linea .stock.sin { background: var(--superficie-2); }
.stock.falta { color: var(--duda); }
.info-linea .stock.falta { background: var(--duda-suave); }
.estado-str { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.estado-str.bien { background: var(--bien-suave); color: var(--bien); }
.estado-str.duda { background: var(--duda-suave); color: #6B3E07; }
.hoy .sin-meter { color: var(--duda); }
.baja, .tres-meses .baja { color: var(--mal); font-weight: 700; }
.tres-meses .sube { color: var(--bien); font-weight: 700; }
