/* Demo de gestión para Tallers Massana. CSS a mano, sin estilos en línea (CSP). */
:root {
  --fondo: #f4f6f8;
  --papel: #ffffff;
  --tinta: #0f1a22;
  --suave: #5a6874;
  --tenue: #8a96a0;
  --linea: #e2e7ec;
  --linea-2: #eef1f4;
  --marca: #004466;
  --marca-2: #0b5b84;
  --marca-claro: #e5f0f5;
  --verde: #18794e; --verde-f: #e6f4ec;
  --ambar: #9a5b00; --ambar-f: #fdf1dc;
  --rojo: #b42318; --rojo-f: #fdecea;
  --azul: #0b5b84; --azul-f: #e5f0f5;
  --violeta: #5b3fb0; --violeta-f: #efebfb;
  --gris: #4d5a65; --gris-f: #eef1f4;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(15, 26, 34, .05), 0 4px 16px rgba(15, 26, 34, .04);
  --ancho-lateral: 232px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 14px/1.45 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 0;
}
a { color: var(--marca-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 650; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
small { color: var(--suave); font-size: 12px; }
code { font-size: 12px; background: var(--linea-2); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cinta-demo {
  position: sticky; top: 0; z-index: 30; text-align: center; font-size: 12px; font-weight: 500;
  padding: 6px 16px; color: var(--ambar); background: var(--ambar-f); border-bottom: 1px solid #f3dfb8;
}

/* ---------- Marco ---------- */
.marco { display: grid; grid-template-columns: var(--ancho-lateral) minmax(0, 1fr); min-height: calc(100vh - 30px); }
.principal { min-width: 0; display: flex; flex-direction: column; }
.lateral {
  position: sticky; top: 30px; height: calc(100vh - 30px); display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px; background: var(--papel); border-right: 1px solid var(--linea);
}
.marca { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.marca b { display: block; font-size: 15px; }
.marca-sello {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--marca); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
#menu { display: flex; flex-direction: column; gap: 2px; }
#menu a, #hoja-mas a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--suave); font-weight: 500; transition: background .15s, color .15s;
}
#menu a:hover, #hoja-mas a:hover { background: var(--linea-2); color: var(--tinta); text-decoration: none; }
#menu a.activo, #hoja-mas a.activo { background: var(--marca-claro); color: var(--marca); }
#menu em, #menu-movil em, #hoja-mas em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; display: grid; place-items: center; background: var(--rojo); color: #fff;
}
.lateral-pie { margin: auto 6px 0; font-size: 11px; color: var(--tenue); }
#vista { padding: 8px clamp(16px, 3vw, 40px) 64px; max-width: 1280px; width: 100%; outline: none; display: flex; flex-direction: column; gap: 18px; }
#menu-movil, #hoja-mas { display: none; }

/* ---------- Cabeceras ---------- */
.cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cabecera > div:first-child { min-width: 0; flex: 1 1 320px; }
.cabecera-acciones { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sobre { margin: 0 0 4px; color: var(--suave); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.sobre:first-letter { text-transform: uppercase; }
.sub { margin: 6px 0 0; color: var(--suave); max-width: 70ch; }
.volver { display: inline-flex; align-items: center; gap: 4px; color: var(--suave); font-weight: 500; margin-bottom: -8px; width: max-content; }
.volver .ic { width: 16px; height: 16px; }
.titulo-editable { font: inherit; font-size: 24px; font-weight: 650; width: 100%; border: 1px solid var(--linea); border-radius: 10px; padding: 4px 10px; background: var(--papel); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--papel); color: var(--tinta); font: inherit; font-weight: 550;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--linea-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 16px; height: 16px; }
.btn.primario { background: var(--marca); border-color: var(--marca); color: #fff; }
.btn.primario:hover { background: var(--marca-2); }
.btn.pequeno { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-icono { width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--suave); }
.btn-icono:hover { background: var(--linea-2); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--marca-2); outline-offset: 2px; }

/* ---------- Pastillas ---------- */
.pastilla { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.pastilla::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.pastilla.verde { color: var(--verde); background: var(--verde-f); }
.pastilla.ambar { color: var(--ambar); background: var(--ambar-f); }
.pastilla.rojo { color: var(--rojo); background: var(--rojo-f); }
.pastilla.azul { color: var(--azul); background: var(--azul-f); }
.pastilla.violeta { color: var(--violeta); background: var(--violeta-f); }
.pastilla.gris { color: var(--gris); background: var(--gris-f); }
.rojo-t { color: var(--rojo); } .verde-t { color: var(--verde); } .ambar-t { color: var(--ambar); font-weight: 550; }
.ref { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--suave); letter-spacing: .01em; }
.ubi { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--marca-claro); color: var(--marca); font-variant-numeric: tabular-nums; }
.ubi.furgo { background: var(--violeta-f); color: var(--violeta); }
.etiqueta { font-size: 12px; color: var(--suave); }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cifras.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cifra {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--papel);
  border: 1px solid var(--linea); border-radius: var(--radio); color: var(--tinta); min-width: 0;
}
a.cifra:hover { border-color: #c9d3db; text-decoration: none; }
.cifra span { font-size: 12px; color: var(--suave); font-weight: 500; }
.cifra b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cifra.alerta { border-color: #f4c7c2; background: linear-gradient(180deg, #fff, var(--rojo-f)); }
.cifra.alerta b { color: var(--rojo); }

/* ---------- Paneles ---------- */
.panel { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); min-width: 0; }
.panel.sin-relleno { padding: 0; overflow: hidden; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-cab.con-relleno { padding: 16px 16px 0; }
.panel .panel-cab + .panel-cab, .panel .botonera + .panel-cab { margin-top: 20px; }
.enlace { font-size: 13px; font-weight: 550; }
.rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rejilla-2.ancha-izq { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.columna { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vacio { color: var(--tenue); margin: 4px 0; }
.ayuda { color: var(--suave); font-size: 13px; margin: 0; }

/* ---------- Tablas ---------- */
.tabla-scroll { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th { text-align: left; font-size: 12px; font-weight: 550; color: var(--suave); padding: 10px 14px; border-bottom: 1px solid var(--linea); white-space: nowrap; background: #fafbfc; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--linea-2); vertical-align: middle; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tr[data-ir] { cursor: pointer; transition: background .12s; }
.tabla tr[data-ir]:hover { background: #f7f9fb; }
.tabla .fila-baja td:first-child { box-shadow: inset 3px 0 0 var(--rojo); }
.panel:not(.sin-relleno) .tabla th:first-child, .panel:not(.sin-relleno) .tabla td:first-child { padding-left: 0; }
.panel:not(.sin-relleno) .tabla th:last-child, .panel:not(.sin-relleno) .tabla td:last-child { padding-right: 0; }
.panel:not(.sin-relleno) .tabla th { background: transparent; }
.nivel { position: relative; display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--linea-2); }
.nivel i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--verde); }
.nivel.bajo i { background: var(--rojo); }
.nivel b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--tinta); opacity: .35; border-radius: 1px; }
input.mini, select.mini { height: 32px; border: 1px solid var(--linea); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--papel); width: 100%; min-width: 80px; }
input.mini.num { width: 80px; }

/* ---------- Filtros ---------- */
.barra-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.segmentos { display: inline-flex; padding: 3px; background: #e9edf1; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.segmentos a { padding: 6px 13px; border-radius: 999px; color: var(--suave); font-weight: 550; font-size: 13px; }
.segmentos a:hover { color: var(--tinta); text-decoration: none; }
.segmentos a.activo { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 2px rgba(15, 26, 34, .12); }
.buscador { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--papel); border: 1px solid var(--linea); border-radius: 999px; color: var(--tenue); max-width: 420px; }
.buscador:focus-within { border-color: var(--marca-2); }
.buscador input { border: 0; outline: 0; font: inherit; flex: 1; min-width: 0; background: transparent; color: var(--tinta); }
.selector { height: 38px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 999px; background: var(--papel); font: inherit; color: var(--tinta); }

/* ---------- Inicio ---------- */
.agenda { display: flex; flex-direction: column; }
.agenda-fila { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea-2); align-items: center; }
.agenda-fila:first-child { border-top: 0; padding-top: 0; }
.agenda-quien { display: flex; gap: 10px; align-items: center; }
.agenda-quien b { display: block; font-size: 13px; }
.agenda-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip-ot { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border-radius: 10px; background: var(--linea-2); color: var(--tinta); font-size: 13px; max-width: 100%; }
.chip-ot:hover { background: #e4e9ee; text-decoration: none; }
.vacio-linea { color: var(--tenue); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--marca-claro); color: var(--marca); font-weight: 650; font-size: 13px; flex: none; }
.avatar.mini { width: 20px; height: 20px; font-size: 10.5px; }
.avisos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.avisos a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--tinta); }
.avisos a:hover { background: var(--linea-2); text-decoration: none; }
.avisos b { display: block; font-weight: 550; }
.avisos small { display: block; }
.avisos .flecha { margin-left: auto; color: var(--tenue); width: 16px; height: 16px; }
.aviso-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.aviso-ic.rojo { background: var(--rojo-f); color: var(--rojo); }
.aviso-ic.ambar { background: var(--ambar-f); color: var(--ambar); }
.aviso-ic.azul { background: var(--azul-f); color: var(--azul); }

/* ---------- Órdenes ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tarjeta-ot { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); color: var(--tinta); box-shadow: var(--sombra); transition: border-color .15s, transform .15s; }
.tarjeta-ot:hover { border-color: #c4ced7; text-decoration: none; transform: translateY(-1px); }
.tot-cab { display: flex; justify-content: space-between; align-items: center; }
.tot-cliente { font-size: 15px; font-weight: 600; }
.tot-desc { margin: 0; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tot-pie { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--linea-2); }
.tot-tec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linea-2); align-items: center; }
.lista-simple li:first-child { border-top: 0; padding-top: 0; }
.lista-simple li > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.lista-simple li small { display: block; }
.lista-simple .suma { font-weight: 600; }
.lista-simple .ic { width: 15px; height: 15px; color: var(--tenue); }
.datos dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; }
.datos dt { color: var(--suave); font-size: 13px; }
.datos dd { margin: 0; }
.firma { display: flex; align-items: center; gap: 8px; margin: 0; }
.lista-enlaces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista-enlaces a { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linea-2); color: var(--tinta); flex-wrap: wrap; }
.lista-enlaces li:first-child a { border-top: 0; }
.aviso-panel { border-color: #f3dfb8; background: var(--ambar-f); }
.aviso-panel h3 { color: var(--ambar); margin-bottom: 6px; }
.aviso-panel ul { margin: 0 0 8px; padding-left: 18px; }
.ok-panel p { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--verde); font-weight: 550; }

/* ---------- Documento y líneas ---------- */
.totales, .lineas-totales { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 14px; }
.totales div, .lineas-totales div { display: flex; gap: 24px; min-width: 240px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totales span, .lineas-totales span { color: var(--suave); }
.totales .total, .lineas-totales .total { font-size: 18px; border-top: 1px solid var(--linea); padding-top: 6px; margin-top: 2px; }
.totales .total span, .lineas-totales .total span { color: var(--tinta); }
.lineas { display: flex; flex-direction: column; gap: 6px; }
.lineas-cab, .linea { display: grid; grid-template-columns: minmax(0, 1fr) 80px 96px 70px 100px 34px; gap: 8px; align-items: center; }
.lineas-cab { font-size: 12px; color: var(--suave); font-weight: 550; padding: 0 2px; }
.lineas-cab span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.linea { padding: 6px; border-radius: 10px; background: #fafbfc; border: 1px solid var(--linea-2); }
.linea input { height: 34px; border: 1px solid var(--linea); border-radius: 8px; padding: 0 9px; font: inherit; background: var(--papel); width: 100%; min-width: 0; }
.linea input.num { text-align: right; }
.linea-concepto { display: flex; gap: 6px; min-width: 0; }
.linea-ref { flex: 0 0 104px; font-weight: 600; }
.linea-tipo { flex: 0 0 104px; display: grid; place-items: center; height: 34px; border-radius: 8px; background: var(--marca-claro); color: var(--marca); font-size: 12px; font-weight: 600; }
.linea-imp { font-weight: 600; }
.lineas-acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hoja { max-width: 880px; padding: clamp(18px, 4vw, 40px); }
.hoja-cab { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--marca); margin-bottom: 18px; flex-wrap: wrap; }
.hoja-emisor { display: block; font-size: 20px; color: var(--marca); }
.hoja-num { text-align: right; display: flex; flex-direction: column; }
.hoja-num span { font-size: 12px; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.hoja-num b { font-size: 18px; }
.hoja-cliente { display: flex; flex-direction: column; margin-bottom: 18px; }
.hoja-cliente span { font-size: 12px; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.hoja-pie { margin: 24px 0 0; font-size: 12px; color: var(--tenue); }
.nota-legal { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ambar-f); color: #5e3a00; border: 1px solid #f3dfb8; }
.nota-legal p { margin: 0; }
.nota-legal .ic { color: var(--ambar); margin-top: 1px; }

/* ---------- Almacén ---------- */
.mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.huecos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hueco { display: flex; flex-direction: column; gap: 2px; padding: 9px; border-radius: 10px; border: 1px solid var(--linea); background: #fafbfc; color: var(--tinta); min-height: 64px; }
.hueco:hover { border-color: var(--marca-2); text-decoration: none; }
.hueco b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hueco small { font-size: 11px; font-variant-numeric: tabular-nums; }
.hueco.bajo { border-color: #f4c7c2; background: var(--rojo-f); }
.hueco.furgo { background: var(--violeta-f); border-color: #ddd4f6; }
.huecos:has(.furgo) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pedidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pedido { border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pedido header { display: flex; justify-content: space-between; gap: 8px; }
.pedido ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pedido li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pedido footer { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--linea-2); font-size: 13px; color: var(--suave); }
.pasos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.botonera { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Modal ---------- */
#modal { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 64px rgba(15, 26, 34, .25); color: var(--tinta); }
#modal.ancho { width: min(720px, calc(100vw - 24px)); }
#modal::backdrop { background: rgba(15, 26, 34, .35); }
#modal[open] { animation: modal-entra .18s ease-out; }
@keyframes modal-entra { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.modal-cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.modal-cab h2 { font-size: 17px; }
.modal-cuerpo { padding: 8px 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--linea-2); }
.modal-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--rojo-f); color: var(--rojo); font-weight: 550; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo > span { font-size: 12px; font-weight: 550; color: var(--suave); }
.campo input, .campo select, .campo textarea { font: inherit; height: 40px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 10px; background: var(--papel); color: var(--tinta); width: 100%; }
.campo textarea { height: auto; padding: 10px 12px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--marca-claro); border-color: var(--marca-2); }
.campo input[readonly] { background: var(--linea-2); }

#aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 550; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
#aviso.visible { opacity: 1; transform: translate(-50%, 0); }

