/* ZELT Facturación — sistema visual
   Esquinas de 4 px, azul marino como color principal, iconos de línea y tipografía del sistema. */
:root {
  --bg: #f6f7f9; --panel: #fff; --borde: #e2e5ea; --borde-campo: #d3d8df; --linea: #eceef2;
  --texto: #18202f; --suave: #677084; --tenue: #9aa2b1;
  --marino: #1d2433; --marino-2: #2b3449; --azul: #2457c5; --azul-suave: #edf2fc; --foco: rgba(36, 87, 197, .18);
  --rojo: #b42318; --verde: #17734a; --ambar: #a15c07; --sidebar: #fbfbfc;
  --r: 4px; --r-panel: 6px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--texto); background: var(--bg); display: flex; min-height: 100vh;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ico { flex-shrink: 0; vertical-align: -3px; }

/* ---------- Barra lateral ---------- */
.sidebar { width: 224px; background: var(--sidebar); border-right: 1px solid var(--borde); padding: 16px 12px;
  position: sticky; top: 0; height: 100vh; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; }
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.sidebar .logo img { width: 32px; height: 32px; border-radius: 6px; }
.sidebar .logo span { font-weight: 700; letter-spacing: .06em; line-height: 1.15; display: flex; flex-direction: column; }
.sidebar .logo small { font-weight: 500; letter-spacing: 0; font-size: 11.5px; color: var(--suave); }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r);
  color: #3a4357; font-weight: 500; position: relative; }
.sidebar a .ico { color: var(--tenue); }
.sidebar a:hover { background: #f0f2f5; text-decoration: none; color: var(--texto); }
.sidebar a.activo { background: #eef0f4; color: var(--texto); font-weight: 600; }
.sidebar a.activo .ico { color: var(--marino); }
.sidebar a.activo::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px;
  background: var(--marino); border-radius: 0 2px 2px 0; }
.sidebar .sub { padding: 5px 10px 5px 36px; font-size: 13px; font-weight: 400; color: var(--suave); }
.sidebar .sidebar-pie { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--borde); }

/* ---------- Estructura ---------- */
main { flex: 1; padding: 24px 36px; min-width: 0; }
.cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
h1 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
h1 a.muted, a.volver { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--borde); border-radius: var(--r); background: #fff; color: var(--suave); }
h1 a.muted:hover, a.volver:hover { color: var(--texto); border-color: var(--borde-campo); text-decoration: none; }
.panel { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--r-panel); }
.barra { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--borde);
  flex-wrap: wrap; }
.muted { color: var(--suave); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--borde-campo); background: #fff; color: var(--texto); cursor: pointer; font: inherit;
  font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: #f6f7f9; border-color: #c4cad3; text-decoration: none; }
.btn.primario { background: var(--marino); color: #fff; border-color: var(--marino); }
.btn.primario:hover { background: var(--marino-2); border-color: var(--marino-2); }
/* Acciones de crear: el único elemento azul relleno de la pantalla */
.btn.crear { background: var(--azul); border-color: var(--azul); color: #fff; font-weight: 600; padding: 0 16px 0 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.btn.crear:hover { background: #1d48a8; border-color: #1d48a8; }
.btn.crear-2 { border-color: var(--azul); color: var(--azul); font-weight: 600; padding: 0 16px 0 12px; }
.btn.crear-2:hover { background: var(--azul-suave); border-color: var(--azul); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--foco); }

/* ---------- Pestañas segmentadas ---------- */
.pestanas, .seg { display: inline-flex; border: 1px solid var(--borde-campo); border-radius: var(--r); overflow: hidden;
  background: #fff; }
.pestanas a { padding: 6px 12px; color: var(--suave); font-weight: 500; border-right: 1px solid var(--borde); }
.pestanas a:last-child { border-right: 0; }
.pestanas a:hover { background: #f6f7f9; text-decoration: none; color: var(--texto); }
.pestanas a.activo { background: #eceff3; color: var(--texto); font-weight: 600; box-shadow: inset 0 -2px 0 var(--marino); }
.seg label { padding: 7px 12px; cursor: pointer; border-right: 1px solid var(--borde); }
.seg label:last-child { border-right: 0; }
.seg input { display: none; }
.seg input:checked + span { color: var(--marino); font-weight: 600; }

/* ---------- Formularios ---------- */
input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--borde-campo); border-radius: var(--r);
  background: #fff; color: var(--texto); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--foco); }
input[type=checkbox], input[type=radio] { accent-color: var(--marino); }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 12px; color: var(--suave); font-weight: 600; }
.campo.ancho { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }

/* ---------- Tablas ---------- */
.tabla-wrap { overflow-x: auto; }
table.lista { width: 100%; border-collapse: collapse; }
table.lista th { text-align: left; font-weight: 600; color: var(--suave); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--borde); background: #fafbfc; white-space: nowrap; }
table.lista td { padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
table.lista tr.fila:hover { background: #f8f9fb; cursor: pointer; }
table.lista td.num, table.lista th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recorte { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.lista.compacta td { white-space: nowrap; }
table.lista.compacta td, table.lista.compacta th { padding-left: 10px; padding-right: 10px; }
table.lista tfoot td { font-weight: 700; background: #fafbfc; }

/* ---------- Etiquetas de estado ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px; font-size: 11.5px;
  font-weight: 600; background: #eef0f3; color: #4a5367; white-space: nowrap; border: 1px solid transparent; line-height: 18px; }
.chip.azul { background: var(--azul-suave); color: var(--azul); }
.chip.verde { background: #e8f5ee; color: var(--verde); }
.chip.ambar { background: #fdf4e3; color: var(--ambar); }
.chip.rojo { background: #fdecea; color: var(--rojo); }

/* ---------- Avisos ---------- */
.aviso { padding: 10px 14px; border-radius: var(--r); background: #fdf8ee; color: #6b4708; margin: 8px 0;
  border: 1px solid #f1dfb8; border-left: 3px solid #d39a2c; }
.aviso.error { background: #fdf3f2; color: var(--rojo); border-color: #f4cdc9; border-left-color: var(--rojo); }
.aviso.ok { background: #f0f8f3; color: var(--verde); border-color: #c8e6d4; border-left-color: var(--verde); }

/* ---------- Ficha de contacto ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.form-cab { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; padding: 16px; align-items: end; }
.tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--borde); }
.tabs button { background: none; border: none; padding: 11px 0; color: var(--suave); cursor: pointer; font: inherit;
  font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.activo { color: var(--texto); border-bottom-color: var(--marino); font-weight: 600; }
.tab { display: none; padding: 16px; }
.tab.activo { display: block; }
.lateral .bloque { padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.lateral .bloque:last-child { border-bottom: none; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.pie-form { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--borde);
  background: #fafbfc; border-radius: 0 0 var(--r-panel) var(--r-panel); }

/* ---------- Documento ---------- */
.doc-cab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.totales { margin-left: auto; width: 320px; padding: 12px 16px; }
.totales .kv { font-variant-numeric: tabular-nums; }
.totales .kv.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--texto); padding-top: 8px; margin-top: 4px; }

/* ---------- Móvil ---------- */
.tabbar { display: none; }
.solo-movil { display: none; }
@media (max-width: 1000px) {
  .solo-movil { display: inline-flex; }
  .ficha { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  main { padding: 14px 12px 92px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff;
    border-top: 1px solid var(--borde); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px;
    font-weight: 500; color: var(--tenue); padding: 3px 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.activo { color: var(--marino); font-weight: 600; }
  .tabbar a.mas { color: var(--marino); }
  .tabbar a.mas span { background: var(--marino); color: #fff; border-radius: 5px; width: 30px; height: 22px;
    display: flex; align-items: center; justify-content: center; }
  h1 { font-size: 19px; }
  .cabecera { flex-wrap: wrap; }
  .grid2, .doc-cab, .form-cab { grid-template-columns: 1fr !important; }
  .totales { width: 100%; }
  .barra { gap: 8px; padding: 10px 12px; }
  .barra input[type=search] { max-width: none !important; flex: 1 1 100%; }
  input, select, textarea, .btn { font-size: 16px; }  /* evita el zoom automático de iOS */
  table.lista th, table.lista td { padding: 8px 8px; font-size: 13px; }
  .solo-escritorio { display: none !important; }
  [style*="grid-template-columns:minmax(0,1.3fr)"], [style*="grid-template-columns:minmax(0,1fr) 420px"],
  [style*="grid-template-columns:repeat(4,1fr)"], [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important; }
}

/* ===================== Editor de facturas ===================== */
.editor .doc-cab { gap: 14px 18px; padding: 18px; border-bottom: 1px solid var(--borde); }
.editor .ed { width: 100%; font: inherit; color: var(--texto); background: #fff; border: 1px solid var(--borde-campo);
  border-radius: var(--r); padding: 6px 9px; transition: border-color .12s, box-shadow .12s; }
.editor .ed:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--foco); }
.editor .ed::placeholder { color: #a4abb8; }

/* Tabla de líneas tipo hoja: celdas con rejilla, campos sin caja; la celda activa se marca en azul */
.editor table.lineas { width: 100%; border-collapse: collapse; table-layout: fixed; }
.editor table.lineas th { text-align: left; font-size: 13px; font-weight: 500; color: var(--suave); padding: 11px 14px;
  background: #f6f7f9; border-bottom: 1px solid var(--borde); white-space: nowrap; overflow: hidden; }
.editor table.lineas th.num { text-align: right; }
.editor table.lineas .c-mover { width: 36px; }
.editor table.lineas .c-quitar { width: 44px; }
.editor table.lineas:not(.ver-dto) .col-dto, .editor table.lineas:not(.ver-cuenta) .col-cuenta { display: none; }
.editor table.lineas td { padding: 0; border-bottom: 1px solid var(--borde); border-left: 1px solid var(--borde);
  vertical-align: top; position: relative; background: #fff; }
.editor table.lineas td.c-mover, .editor table.lineas td.c-concepto:first-child { border-left: 0; }
.editor table.lineas td:focus-within { box-shadow: inset 0 0 0 2px var(--azul); z-index: 1; }
.editor table.lineas td.c-mover:focus-within, .editor table.lineas td.c-quitar:focus-within { box-shadow: none; }
.editor table.lineas tr[data-tipo] .ed { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 12px 14px;
  min-height: 46px; line-height: 22px; }
.editor table.lineas tr[data-tipo] .ed:focus { box-shadow: none; }
.editor .ed-num { text-align: right; font-variant-numeric: tabular-nums; }
.editor .ed-cuenta { color: var(--suave); font-variant-numeric: tabular-nums; }
.editor .ed-concepto { padding-right: 38px !important; }
.editor .lupa { position: absolute; right: 12px; top: 15px; color: var(--suave); cursor: text; display: flex; }
.editor .ed-desc { display: block; resize: vertical; overflow: hidden; color: #3d4659; }
.editor .ed-titulo { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.editor tr[data-tipo="titulo"] td { background: #fafbfc; }
.editor .ed-total { font-weight: 600; }
.editor .asa { display: flex; align-items: center; justify-content: center; height: 46px; color: #a4abb8; cursor: grab; }
.editor .asa:hover { color: var(--texto); }
.editor tr.arrastrando td { opacity: .45; }
.editor .b-quitar { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px;
  border: 0; background: none; color: var(--suave); cursor: pointer; }
.editor .b-quitar:hover { color: var(--rojo); background: #fdf3f2; }

/* Impuestos como etiquetas */
.editor .tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 10px 10px; min-height: 46px; }
.editor .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 3px;
  background: #eceef2; color: var(--texto); font-size: 13.5px; line-height: 20px; white-space: nowrap; }
.editor .tag-x { display: flex; border: 0; background: none; padding: 0; color: #4a5367; cursor: pointer; }
.editor .tag-x:hover { color: var(--rojo); }
.editor .tag-suplido { margin: 10px 12px; background: #fdf4e3; color: var(--ambar); font-weight: 600; padding: 3px 9px; }
.editor select.tag-mas { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; padding: 0; border: 1px dashed #c4cad3;
  border-radius: 3px; background: #fff; color: var(--suave); text-align: center; text-align-last: center; font-size: 15px;
  cursor: pointer; opacity: 0; transition: opacity .12s; }
.editor tr:hover select.tag-mas, .editor select.tag-mas:focus, .editor .tags:not(:has(.tag)) select.tag-mas { opacity: 1; }
.editor select.tag-mas:hover { border-color: var(--azul); color: var(--azul); }

/* Suplidos */
.editor tr.es-suplido td.c-mover, .editor tr.sub-suplido > td { box-shadow: inset 3px 0 0 #d39a2c; }
.editor tr.es-suplido > td { border-bottom-color: transparent; }
.editor tr.sub-suplido > td { padding: 0 14px 14px 36px; border-left: 0; }
.editor .suplido-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px;
  background: #fdfaf4; border: 1px solid #f1e6cf; border-radius: var(--r); padding: 10px 12px; }
.editor .suplido-datos .campo label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.editor .adjuntar { display: flex !important; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #4a5367; font-size: 13px; text-transform: none !important;
  letter-spacing: 0 !important; font-weight: 500 !important; }

.editor .acciones-lineas { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; align-items: center; }
.editor .acciones-lineas .btn { height: 31px; padding: 0 11px; font-size: 13px; }
.editor .acciones-lineas .btn .ico { color: var(--suave); }
.editor .columnas { display: inline-flex; gap: 14px; align-items: center; margin-left: 8px; font-size: 13px; color: var(--suave); }
.editor .columnas .check { color: var(--texto); gap: 6px; }
.editor .totales .kv { padding: 5px 0; }
.editor .totales .kv.total { font-size: 17px; }

/* Editor en el móvil: cada línea como tarjeta */
@media (max-width: 1000px) {
  .editor table.lineas, .editor table.lineas tbody { display: block; }
  .editor table.lineas thead, .editor .c-mover { display: none; }
  .editor tr.linea, .editor tr[data-tipo="titulo"] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 14px 12px; border-bottom: 1px solid var(--borde); position: relative; }
  .editor table.lineas td { border: 1px solid var(--borde-campo) !important; border-radius: var(--r); }
  .editor table.lineas td.c-quitar { border: 0 !important; position: absolute; top: 10px; right: 6px; width: 40px; }
  .editor .b-quitar { height: 40px; }
  .editor td.c-concepto, .editor td.c-desc, .editor td.c-imp { grid-column: 1 / -1; }
  .editor td.c-concepto { margin-right: 44px; }
  .editor tr[data-tipo="titulo"] { grid-template-columns: 1fr; padding-right: 56px; }
  .editor tr[data-tipo="titulo"] td:not(.c-quitar) { grid-column: 1 / -1; }
  .editor tr.linea > td:not(.c-quitar)::before { display: block; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--suave); font-weight: 600; padding: 7px 12px 0; }
  .editor td.c-concepto::before { content: "Concepto"; }
  .editor td.c-desc::before { content: "Descripción"; }
  .editor td.c-cant::before { content: "Cantidad"; }
  .editor td.c-precio::before { content: "Precio"; }
  .editor td.c-dto::before { content: "Dto. %"; }
  .editor td.c-imp::before { content: "Impuestos"; }
  .editor td.c-cuenta::before { content: "Cuenta"; }
  .editor td.c-total::before { content: "Total"; }
  .editor table.lineas tr[data-tipo] .ed { padding: 2px 12px 9px; min-height: 0; }
  .editor .lupa { top: 26px; }
  .editor .tags { padding: 4px 12px 10px; min-height: 0; }
  .editor select.tag-mas { opacity: 1; }
  .editor tr.es-suplido { box-shadow: inset 3px 0 0 #d39a2c; }
  .editor tr.sub-suplido, .editor tr.sub-suplido > td { display: block; }
  .editor tr.sub-suplido > td { padding: 0 12px 14px !important; box-shadow: none; border: 0 !important; }
  .editor .suplido-datos { grid-template-columns: 1fr 1fr; }
}

/* Vista previa dentro de la misma página */
.previa { position: fixed; inset: 0; z-index: 50; background: rgba(16, 22, 34, .55); display: flex;
  align-items: stretch; justify-content: center; padding: 24px; }
.previa[hidden] { display: none; }
.previa-caja { background: #fff; border-radius: var(--r-panel); width: min(980px, 100%); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.previa-barra { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--borde); }
.previa-barra .muted { font-size: 12.5px; }
.previa iframe { flex: 1; width: 100%; border: 0; background: #525659; }
@media (max-width: 1000px) {
  .previa { padding: 0; }
  .previa-caja { border-radius: 0; }
  .previa-barra .muted { display: none; }
}

/* Estado y cobro en el detalle de factura */
.bloque-estado { margin: 0 16px 16px; border: 1px solid var(--borde); border-radius: var(--r); padding: 12px 14px; }
.bloque-estado-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bloque-estado .kv { max-width: 360px; }
.form-cobro { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 10px 0; }
.acciones-estado { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Ajustes: elección del diseño del PDF */
.disenos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 18px; }
.diseno { display: flex; flex-direction: column; border: 1px solid var(--borde); border-radius: var(--r-panel);
  overflow: hidden; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.diseno:hover { border-color: #b9c0ca; }
.diseno.elegido { border-color: var(--azul); box-shadow: 0 0 0 3px var(--foco); }
.diseno input { position: absolute; opacity: 0; pointer-events: none; }
.diseno img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; display: block;
  border-bottom: 1px solid var(--borde); background: #f6f7f9; }
.diseno .sin-muestra { aspect-ratio: 210 / 297; display: flex; align-items: center; justify-content: center; }
.diseno-pie { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.diseno-pie a { margin-left: auto; font-size: 13px; }
@media (max-width: 1000px) { .disenos { grid-template-columns: 1fr; } }

/* Menú «Más» (móvil) */
.menu-mas { display: flex; flex-direction: column; margin-bottom: 14px; overflow: hidden; }
.menu-mas a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--texto);
  border-bottom: 1px solid var(--linea); }
.menu-mas a:last-child { border-bottom: 0; }
.menu-mas a:hover { background: #f8f9fb; text-decoration: none; }
.menu-mas a > .ico:first-child { color: var(--marino); }
.menu-mas span { display: flex; flex-direction: column; flex: 1; }
.menu-mas small { color: var(--suave); font-size: 12.5px; }
.menu-mas .flecha { color: var(--tenue); }

.acciones-cabecera { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.solo-movil-bloque { display: none; }
@media (max-width: 1000px) {
  .solo-movil-bloque { display: block; margin-top: 3px; font-size: 12.5px; }
  .acciones-cabecera { width: 100%; }
  .acciones-cabecera .btn.primario { margin-left: auto; }
  .grid2 > .campo { min-width: 0; }
  .grid2 input, .grid2 select, .grid2 textarea { width: 100%; min-width: 0; }
  .lineas-detalle td .chip { margin-top: 2px; }
}
@media (max-width: 1000px) {
  .acciones-inicio .btn { flex: 1 1 auto; justify-content: center; }
  .acciones-inicio #ojo { flex: 0 0 auto; }
}
