/* La Central · MotoXperts. Letra grande y contraste alto: la usan personas mayores, de día, en la oficina. */
:root {
  --papel: #EEF0ED;
  --papel-hondo: #E1E5E0;
  --hoja: #FFFFFF;
  --tinta: #18201C;
  --tinta-2: #4A524D;
  --linea: #CDD3CC;
  --foco: #1D4ED8;

  --pm: #004D44;
  --nero: #C8141D;
  --mtx: #2F2A95;
  --todas: #18201C;

  --urgente: #B42318;  --urgente-fondo: #FDECEA;
  --esperando: #4A524D; --esperando-fondo: #EEEBE4;
  --marcha: #8A4B00;   --marcha-fondo: #FCEFD8;
  --listo: #0B6B3A;    --listo-fondo: #E4F4EA;

  --radio: 14px;
  --sombra: 0 1px 2px rgba(24, 32, 28, .06), 0 8px 24px -12px rgba(24, 32, 28, .22);
  --t: 180ms cubic-bezier(.16, 1, .3, 1);
  font-size: 19px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
::selection { background: #1D4ED833; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.saltar:focus { left: 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(238, 240, 237, .94); border-bottom: 1px solid var(--linea);
  backdrop-filter: saturate(1.2) blur(8px);
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca svg { width: 40px; height: 40px; }
.marca svg rect { fill: var(--tinta); }
.marca svg circle { fill: none; stroke: var(--papel); stroke-width: 3; }
.marca span { display: grid; line-height: 1.1; }
.marca b { font-size: 1.15rem; font-weight: 800; }
.marca small { font-size: .78rem; color: var(--tinta-2); }
.barra-acciones { display: flex; gap: 8px; align-items: center; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; border: 2px solid var(--tinta); background: var(--tinta); color: var(--papel);
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.boton:hover { box-shadow: 0 6px 16px -8px rgba(24, 32, 28, .55); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.boton-suave { background: var(--hoja); color: var(--tinta); border-color: var(--linea); }
.boton-suave:hover { border-color: var(--tinta); }
.boton-texto { background: transparent; border-color: transparent; color: var(--tinta-2); padding: 0 12px; }
.boton-texto:hover { color: var(--tinta); box-shadow: none; text-decoration: underline; }
.boton-peligro { background: var(--hoja); color: var(--urgente); border-color: #E7B4AE; }
.boton-peligro:hover { background: var(--urgente); color: #fff; border-color: var(--urgente); }
.boton-grande { min-height: 64px; font-size: 1.1rem; padding: 0 30px; }

main { padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 96px; max-width: 1160px; margin: 0 auto; outline: none; }
.titulo-pagina { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.titulo-pagina h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.titulo-pagina p { color: var(--tinta-2); margin-top: 6px; max-width: 60ch; }

/* Entrada */
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.entrada form { width: min(460px, 100%); display: grid; gap: 22px; }
.entrada .marca svg { width: 56px; height: 56px; }
.entrada .marca b { font-size: 1.6rem; }
.entrada h1 { font-size: 1.5rem; font-weight: 700; }
.campo { display: grid; gap: 8px; }
.campo label, .campo .etiqueta { font-weight: 700; }
.campo .ayuda { color: var(--tinta-2); font-size: .9rem; }
input[type=text], input[type=password], input[type=date], input[type=search], textarea, select {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--linea); background: var(--hoja);
  transition: border-color var(--t);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--tinta); outline: none; box-shadow: 0 0 0 3px #1D4ED840; }
::placeholder { color: #6B716D; }
.error { color: var(--urgente); font-weight: 700; }

/* Inicio */
.saludo { margin-bottom: 28px; }
.saludo h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.saludo p { font-size: 1.15rem; color: var(--tinta-2); margin-top: 8px; }
.saludo p b { color: var(--tinta); }
.inicio { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; display: grid; align-content: space-between; gap: 18px; min-height: 172px; padding: 24px;
  border-radius: var(--radio); background: var(--hoja); border: 2px solid var(--linea); text-decoration: none; cursor: pointer;
  text-align: left; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.tile:hover { border-color: var(--tinta); box-shadow: var(--sombra); transform: translateY(-2px); }
.tile .ico { width: 40px; height: 40px; stroke-width: 1.75; }
.tile b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.tile small { display: block; color: var(--tinta-2); font-size: .95rem; margin-top: 4px; }
.tile-principal { grid-column: span 4; grid-row: span 2; background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.tile-principal small { color: #C9CCC5; }
.tile-principal b { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tile-principal .ico { width: 56px; height: 56px; }
.tile-principal .flecha { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 18px; padding: 12px 20px; border-radius: 999px; background: var(--papel); color: var(--tinta); width: fit-content; }
.externo { display: block; font-size: .8rem; color: var(--tinta-2); margin-top: 6px; }

/* Filtros por marca */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filtro {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--linea); background: var(--hoja); font-weight: 700; cursor: pointer; transition: border-color var(--t), background var(--t);
}
.filtro .punto { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--todas)); }
.filtro[aria-pressed=true] { border-color: var(--tinta); background: var(--tinta); color: var(--papel); }
.filtro[aria-pressed=true] .punto { box-shadow: 0 0 0 2px var(--papel); }
.filtro.m-todas[aria-pressed=true] .punto { background: var(--papel); }
main:focus, main:focus-visible { outline: none; }

/* Semáforo */
.grupos { display: grid; gap: 32px; }
.grupo-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--linea); margin-bottom: 12px; }
.grupo-cab h2 { font-size: 1.35rem; font-weight: 800; }
.grupo-cab .cuenta { color: var(--tinta-2); font-weight: 700; }
.grupo-cab .ayuda { color: var(--tinta-2); font-size: .9rem; margin-left: auto; }
.luz { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--cf); flex: none; }
.grupo[data-drop=si] .lista { background: var(--cf); outline: 2px dashed var(--c); outline-offset: 4px; border-radius: var(--radio); }
.lista { display: grid; gap: 10px; min-height: 64px; transition: background var(--t); }
.vacio { padding: 18px; color: var(--tinta-2); border: 2px dashed var(--linea); border-radius: var(--radio); }

.fila {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--hoja); border: 2px solid var(--linea); border-radius: var(--radio); transition: border-color var(--t), box-shadow var(--t), opacity var(--t);
}
.fila:hover { border-color: #A9B1A8; }
.fila.arrastrando { opacity: .4; }
.asa { width: 28px; height: 44px; display: grid; place-items: center; color: #6B716D; cursor: grab; border: 0; background: none; border-radius: 8px; }
.asa:hover { color: var(--tinta); background: var(--papel); }
.sin-asa { width: 6px; height: 44px; border-radius: 3px; background: var(--c); }
.fila-cuerpo { min-width: 0; cursor: pointer; background: none; border: 0; text-align: left; padding: 0; }
.fila-titulo { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.fila-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--tinta-2); font-size: .92rem; }
.fila-meta span { display: inline-flex; align-items: center; gap: 6px; }
.chip-marca { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); }
.chip-marca::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.vence-tarde { color: var(--urgente); font-weight: 700; }
.siguiente { white-space: nowrap; }
.estado-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; background: var(--cf); color: var(--c); white-space: nowrap; }
.estado-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.e-urgente { --c: var(--urgente); --cf: var(--urgente-fondo); }
.e-esperando { --c: var(--esperando); --cf: var(--esperando-fondo); }
.e-marcha { --c: var(--marcha); --cf: var(--marcha-fondo); }
.e-listo { --c: var(--listo); --cf: var(--listo-fondo); }
.m-pm { --c: var(--pm); } .m-nero { --c: var(--nero); } .m-mtx { --c: var(--mtx); } .m-todas { --c: var(--todas); }

/* Ficha de una tarea */
.ficha-fondo { position: fixed; inset: 0; background: rgba(24, 32, 28, .38); z-index: 30; opacity: 0; transition: opacity var(--t); }
.ficha-fondo.abierta { opacity: 1; }
.ficha {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--papel); z-index: 31; overflow: auto;
  padding: 28px clamp(18px, 4vw, 36px) 48px; box-shadow: -24px 0 48px -24px rgba(24, 32, 28, .4);
  transform: translateX(24px); opacity: 0; transition: transform 260ms cubic-bezier(.16, 1, .3, 1), opacity 200ms;
}
.ficha.abierta { transform: none; opacity: 1; }
.ficha-cab { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.ficha-cab h2 { font-size: 1.6rem; font-weight: 800; }
.ficha .num { color: var(--tinta-2); font-weight: 700; }
.ficha section { padding: 20px 0; border-top: 1px solid var(--linea); display: grid; gap: 12px; }
.ficha h3 { font-size: 1.05rem; font-weight: 800; }
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.datos dt { color: var(--tinta-2); }
.datos dd { margin: 0; font-weight: 700; }
.estados { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.estados button { min-height: 56px; border-radius: 12px; border: 2px solid var(--linea); background: var(--hoja); font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.estados button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.estados button[aria-pressed=true] { border-color: var(--c); background: var(--cf); color: var(--c); }
.paso { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 1.02rem; }
.paso input { width: 26px; height: 26px; accent-color: var(--listo); flex: none; }
.paso.hecho span { text-decoration: line-through; color: var(--tinta-2); }
.nota { background: var(--hoja); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 16px; }
.nota small { display: block; color: var(--tinta-2); font-size: .85rem; margin-bottom: 4px; }
.nota p { white-space: pre-wrap; }
.fila-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Pedido paso a paso */
.asistente { max-width: 760px; }
.progreso { display: flex; gap: 6px; margin-bottom: 10px; }
.progreso i { height: 6px; flex: 1; border-radius: 3px; background: var(--linea); transition: background var(--t); }
.progreso i.lleno { background: var(--tinta); }
.paso-de { color: var(--tinta-2); font-weight: 700; margin-bottom: 8px; }
.pregunta { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 24px; }
.opciones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .opciones { grid-template-columns: 1fr; } }
.opcion {
  display: grid; gap: 6px; align-content: start; min-height: 120px; padding: 20px; border-radius: var(--radio); border: 2px solid var(--linea);
  background: var(--hoja); text-align: left; cursor: pointer; transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.opcion:hover { border-color: var(--tinta); transform: translateY(-1px); box-shadow: var(--sombra); }
.opcion[aria-pressed=true] { border-color: var(--c, var(--tinta)); box-shadow: 0 0 0 3px var(--c, var(--tinta)); }
.opcion b { font-size: 1.2rem; }
.opcion small { color: var(--tinta-2); }
.opcion .franja { width: 36px; height: 6px; border-radius: 3px; background: var(--c, var(--tinta)); }
.navegar { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.parecido { margin-top: 24px; padding: 18px 20px; border-radius: var(--radio); background: var(--marcha-fondo); color: #5A3200; display: grid; gap: 10px; }
.parecido b { color: var(--tinta); }
.parecido ul { margin: 0; padding-left: 1.2em; }
.resumen { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; padding: 22px; background: var(--hoja); border: 2px solid var(--linea); border-radius: var(--radio); margin: 0; }
.resumen dt { color: var(--tinta-2); }
.resumen dd { margin: 0; font-weight: 700; white-space: pre-wrap; }
.hecho-grande { text-align: center; max-width: 620px; margin: 40px auto; display: grid; gap: 18px; justify-items: center; }
.hecho-grande .ico { width: 72px; height: 72px; color: var(--listo); }
.hecho-grande h1 { font-size: 2.2rem; font-weight: 800; }

/* Archivos */
.marcas-archivos { display: grid; gap: 16px; }
.archivo-marca { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--hoja); border: 2px solid var(--linea); border-radius: var(--radio); }
.archivo-marca .sello { width: 56px; height: 56px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.archivo-marca h2 { font-size: 1.35rem; font-weight: 800; }
.archivo-marca p { color: var(--tinta-2); }
.archivo-marca .fila-botones { justify-content: end; }

/* Motix */
.motix-logo { flex: none; }
.motix-logo .ml-tinta { fill: currentColor; }
.motix-logo .ml-tinta-trazo { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.motix-logo .ml-visor { fill: var(--papel); }
.motix-logo .ml-luz { fill: #E8A33D; }
.motix-logo .ml-rueda { fill: none; stroke: currentColor; stroke-width: 2.2; }
.motix-tile { width: 52px; height: 52px; }
.motix-cab { justify-content: flex-start; align-items: center; flex-wrap: nowrap; }
.motix-grande { width: 96px; height: 96px; }
.motix-grande .ml-luz { animation: parpadeo 2.4s ease-in-out infinite; }
@keyframes parpadeo { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .35; } }
@media (max-width: 560px) { .motix-cab { flex-wrap: wrap; } .motix-grande { width: 72px; height: 72px; } }
.motix { max-width: 820px; display: grid; gap: 22px; }
.motix-caja { display: flex; gap: 10px; }
.motix-caja input { font-size: 1.15rem; }
.sugerencias { display: flex; flex-wrap: wrap; gap: 10px; }
.sugerencias button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--linea); background: var(--hoja); cursor: pointer; font-weight: 700; }
.sugerencias button:hover { border-color: var(--tinta); }
.respuesta { display: grid; gap: 10px; }
.resultado { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--hoja); border: 2px solid var(--linea); border-radius: var(--radio); text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.resultado:hover { border-color: var(--tinta); }
.resultado small { display: block; color: var(--tinta-2); }
.nota-motix { padding: 16px 20px; border-radius: var(--radio); background: var(--papel-hondo); color: var(--tinta-2); }

/* Motix se mueve: salto con aplaste, rueda que gira, antena que destella y ojos que parpadean */
.motix-logo .ml-rueda, .motix-logo .ml-luz { transform-box: fill-box; transform-origin: center; }
.saltando .motix-logo { animation: motix-salto 620ms cubic-bezier(.22, 1, .36, 1); transform-origin: 50% 100%; }
.saltando .motix-logo .ml-rueda { animation: motix-rueda 620ms cubic-bezier(.22, 1, .36, 1); }
.saltando .motix-logo .ml-luz { animation: motix-luz 620ms ease-out; }
.saltando .motix-logo .ml-visor { animation: motix-parpadeo 620ms ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes motix-salto {
  0% { transform: none; } 18% { transform: scale(1.08, .9); } 45% { transform: translateY(-9px) scale(.96, 1.06) rotate(-4deg); }
  70% { transform: translateY(0) scale(1.05, .95); } 85% { transform: rotate(2deg); } 100% { transform: none; }
}
@keyframes motix-rueda { to { transform: rotate(-360deg); } }
@keyframes motix-luz { 0%, 100% { transform: none; } 40% { transform: scale(1.7); fill: #FFD27A; } }
@keyframes motix-parpadeo { 0%, 100% { transform: none; } 50% { transform: scaleY(.25); } }

/* Celebración: tarjeta que entra con rebote y confeti con los colores de las marcas */
.festejo { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.festejo-tarjeta { pointer-events: auto; background: var(--hoja); border-radius: 22px; padding: 30px 34px 26px; width: min(420px, calc(100vw - 32px)); text-align: center; display: grid; justify-items: center; gap: 10px;
  box-shadow: 0 2px 6px rgba(24,32,28,.08), 0 30px 60px -20px rgba(24,32,28,.45); animation: festejo-entra 520ms cubic-bezier(.34, 1.56, .64, 1) both; }
.festejo-tarjeta.sale { animation: festejo-sale 260ms ease-in forwards; }
.festejo-tarjeta .motix-logo { width: 84px; height: 84px; animation: motix-salto 700ms 180ms cubic-bezier(.22, 1, .36, 1) both; transform-origin: 50% 100%; }
.festejo-tarjeta .motix-logo .ml-rueda { animation: motix-rueda 700ms 180ms cubic-bezier(.22, 1, .36, 1); }
.festejo-tarjeta h2 { font-size: 1.8rem; font-weight: 800; }
.festejo-tarjeta p { color: var(--tinta-2); font-size: 1.1rem; }
.festejo-tarjeta .listo-check { width: 56px; height: 56px; border-radius: 50%; background: var(--listo); display: grid; place-items: center; animation: festejo-check 480ms 120ms cubic-bezier(.34, 1.56, .64, 1) both; }
.festejo-tarjeta .listo-check svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo 360ms 420ms ease-out forwards; }
.confeti { position: fixed; width: 10px; height: 14px; border-radius: 2px; z-index: 61; pointer-events: none; left: var(--x); top: var(--y);
  animation: confeti var(--dur) cubic-bezier(.15, .7, .35, 1) forwards; }
.confeti.redondo { border-radius: 50%; width: 9px; height: 9px; }
@keyframes confeti {
  0% { transform: translate(-50%, -50%) rotate(0) scale(.6); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; }
}
@keyframes festejo-entra { from { opacity: 0; transform: translateY(18px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes festejo-sale { to { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes festejo-check { from { transform: scale(0); } to { transform: none; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .confeti { display: none; } }

/* Respuesta conversada de Motix */
.motix-dice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--papel-hondo); }
.motix-dice p { font-size: 1.05rem; line-height: 1.45; white-space: pre-wrap; }
.md-cuerpo { display: grid; gap: 10px; flex: 1; min-width: 0; }
.md-recomendados { display: grid; gap: 8px; }
.md-recomendados:empty { display: none; }

/* Bóveda (solo admins) */
.boveda { margin-top: 32px; padding: 22px 24px; border-radius: var(--radio); background: var(--hoja); border: 2px dashed var(--linea); display: grid; gap: 14px; }
.boveda h2 { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.boveda p { color: var(--tinta-2); }
.boveda-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.boveda-form input { flex: 1 1 260px; }
.boveda-form .error { flex-basis: 100%; }

/* Motix flotante */
#motix-flotante { position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 25; display: grid; justify-items: end; gap: 12px; }
.mf-boton { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--linea); background: var(--hoja); color: var(--tinta); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sombra); transition: transform var(--t), border-color var(--t); }
.mf-boton:hover { transform: translateY(-2px); border-color: var(--tinta); }
.mf-boton .motix-logo { width: 52px; height: 52px; }
.mf-saludo, .mf-panel { background: var(--hoja); border: 2px solid var(--linea); border-radius: 18px; box-shadow: 0 2px 4px rgba(24,32,28,.06), 0 18px 40px -16px rgba(24,32,28,.35); padding: 18px 20px; animation: mf-entra 320ms cubic-bezier(.16, 1, .3, 1); }
.mf-saludo { max-width: 300px; display: grid; gap: 14px; position: relative; }
.mf-saludo::after { content: ""; position: absolute; right: 30px; bottom: -9px; width: 16px; height: 16px; background: var(--hoja); border-right: 2px solid var(--linea); border-bottom: 2px solid var(--linea); transform: rotate(45deg); }
.mf-saludo p { font-size: 1.1rem; }
.mf-panel { width: min(440px, calc(100vw - 28px)); max-height: min(70vh, 620px); overflow: auto; display: grid; gap: 14px; }
.mf-cab { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.mf-cab .boton-texto { margin-left: auto; min-height: 44px; }
.mf-logo-chico { width: 36px; height: 36px; }
.mf-panel .motix-caja input { min-height: 52px; font-size: 1rem; }
.mf-panel .resultado { padding: 12px 14px; }
.mf-panel .resultado b { font-size: .95rem; }
.mf-todo { font-weight: 700; }
@keyframes mf-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Aviso flotante */
.aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinta); color: var(--papel); padding: 14px 22px; border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 40; max-width: calc(100% - 32px); }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .inicio { grid-template-columns: 1fr 1fr; }
  .tile, .tile-principal { grid-column: span 1; grid-row: auto; }
  .tile-principal { grid-column: span 2; }
}
@media (max-width: 560px) {
  :root { font-size: 18px; }
  .inicio { grid-template-columns: 1fr; }
  .tile-principal { grid-column: span 1; }
  .tile { min-height: 0; grid-template-columns: auto 1fr; align-items: center; }
  .fila { grid-template-columns: auto 1fr; }
  .fila .siguiente { grid-column: 1 / -1; width: 100%; }
  .archivo-marca { grid-template-columns: auto 1fr; }
  .archivo-marca .fila-botones { grid-column: 1 / -1; justify-content: start; }
  .rejilla-2, .estados { grid-template-columns: 1fr; }
  .marca small { display: none; }
  .boton { padding: 0 16px; }
  .grupo-cab .ayuda { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }
