:root {
      --cedife-yellow: #FFD700;
      --cedife-yellow-soft: #fff3b0;
      --cedife-yellow-border: #e6d36a;
      --cedife-bg: #f4f4f4;
      --cedife-ink: #333;
      --cedife-card: #fff;
      --cedife-line: #ddd;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: 'Poppins', Arial, sans-serif;
      background: var(--cedife-bg);
      color: var(--cedife-ink);
      min-height: 100vh;
    }
    a { color: var(--cedife-ink); }
    a:hover { color: #111; }
    /* Marca de agua técnica (login / registro) */
    .wm-tech {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      user-select: none;
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      justify-content: flex-start;
      gap: 10px 22px;
      padding: 88px 18px 28px;
      box-sizing: border-box;
    }
    .wm-tech span {
      color: #222;
      opacity: 0.11;
      font-weight: 700;
      letter-spacing: 0.04em;
      white-space: nowrap;
      line-height: 1.15;
      text-transform: uppercase;
    }
    .wm-tech .wm-s { font-size: 11px; font-weight: 600; opacity: 0.09; }
    .wm-tech .wm-m { font-size: 15px; opacity: 0.10; }
    .wm-tech .wm-l { font-size: 22px; opacity: 0.11; }
    .wm-tech .wm-xl { font-size: 30px; opacity: 0.12; }
    .wm-tech .wm-xxl { font-size: 40px; opacity: 0.125; }
    .topbar {
      position: relative;
      z-index: 2;
      background: var(--cedife-yellow);
      border-bottom: 2px solid #333;
      padding: 10px 18px;
    }
    .topbar-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    /* 5 bloques equidistantes en el banner (logo · portal · horarios · precintar · BNA) */
    .topbar-inner--nav {
      max-width: 1280px;
      width: 100%;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-items: center;
      justify-items: center;
      gap: 8px 10px;
      flex-wrap: nowrap;
    }
    .topbar-slot {
      width: 100%;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .topbar-logo {
      flex-direction: row;
      gap: 8px;
    }
    .brand-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }
    .brand-logo img {
      height: 48px;
      width: auto;
      display: block;
    }
    a.brand-text {
      text-decoration: none;
      color: inherit;
      line-height: 1.2;
    }
    a.brand-text strong { display: block; font-size: 15px; }
    a.brand-text span { font-size: 12px; font-style: italic; }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: inherit;
    }
    .brand img {
      height: 48px;
      width: auto;
      display: block;
    }
    .brand-text { line-height: 1.2; }
    .brand-text strong { display: block; font-size: 15px; }
    .brand-text span { font-size: 12px; font-style: italic; }
    .home-cedife-link {
      color: #111;
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
      white-space: nowrap;
      margin-left: auto;
    }
    .home-cedife-link:hover {
      text-decoration: underline;
      color: #111;
    }
    .horarios-atencion {
      line-height: 1.25;
      color: #111;
    }
    .horarios-atencion strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
    }
    .horarios-atencion span {
      display: block;
      font-size: 12px;
      font-weight: 500;
    }
    .partner-badge img {
      height: 54px;
      width: auto;
      max-width: 100%;
      display: block;
      object-fit: contain;
    }
    .tc-badge {
      background: #fff;
      border: 2px solid #333;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 1px 0 rgba(0,0,0,.08);
      width: auto;
      max-width: 100%;
    }
    .tc-badge em {
      font-style: normal;
      color: #111;
      font-weight: 700;
    }
    .tc-badge .tc-src {
      display: block;
      font-size: 11px;
      font-weight: 500;
      color: #555;
      margin-top: 2px;
    }
    .navwrap {
      background: #fff;
      border-bottom: 1px solid var(--cedife-line);
    }
    nav {
      max-width: 1100px;
      margin: 0 auto;
      padding: 10px 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
      font-weight: 600;
      font-size: 14px;
    }
    nav a { text-decoration: none; }
    nav a:hover { text-decoration: underline; }
    .wrap {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 18px;
      padding-bottom: 28px;
    }
    .site-legal {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 8px 18px 22px;
      text-align: center;
      color: #555;
      font-size: 10px;
      line-height: 1.35;
      letter-spacing: 0.01em;
    }
    .site-legal p {
      margin: 0 0 3px;
    }
    .site-legal p:last-child {
      margin-bottom: 0;
    }
    h1 { font-size: 28px; margin: 0 0 12px; }
    h2 { font-size: 18px; margin: 0 0 10px; }
    table { border-collapse: collapse; width: 100%; margin: 10px 0; background: #fff; }
    th, td { border: 1px solid #ccc; padding: 8px; font-size: 14px; }
    th { background: #fff3b0; text-align: left; }
    th .th-sub {
      display: block;
      font-size: 10px;
      font-weight: 500;
      color: #666;
      line-height: 1.2;
      margin-top: 2px;
    }
    #items-table th {
      text-align: center;
      vertical-align: middle;
    }
    #items-table td {
      text-align: center;
      vertical-align: middle;
    }
    #items-table td:nth-child(2) {
      text-align: left;
    }
    #items-table .cant-input {
      margin: 0 auto;
      display: inline-block;
      background: #fff6d6;
      border: 1px solid #e6d48a;
      border-radius: 6px;
      padding: 6px 8px;
      box-sizing: border-box;
    }
    #items-table .cant-input::placeholder {
      color: #b5b5b5;
      opacity: 1;
    }
    #items-table .cant-input:focus {
      outline: none;
      background: #fff9e6;
      border-color: #d4b84a;
      box-shadow: 0 0 0 2px rgba(212, 184, 74, 0.25);
    }
    /* Selector de producto: 1 línea, columna ancha, menú sin recortar */
    #items-table td.prod-cell {
      width: 52%;
      min-width: 320px;
      overflow: visible;
    }
    .prod-picker {
      position: relative;
      width: 100%;
      overflow: visible;
    }
    .prod-picker-btn {
      width: 100%;
      text-align: left;
      padding: 6px 28px 6px 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: #fff;
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      line-height: 1.35;
      height: 34px;
      min-height: 34px;
      color: #222;
      position: relative;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .prod-picker-btn::after {
      content: "▾";
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      color: #666;
      pointer-events: none;
    }
    .prod-picker-btn.prod-picker-empty {
      color: #b5b5b5;
    }
    .prod-picker-btn:focus {
      outline: none;
      border-color: #d4b84a;
      box-shadow: 0 0 0 2px rgba(212, 184, 74, 0.25);
    }
    .prod-picker-menu {
      position: absolute;
      z-index: 200;
      left: 0;
      min-width: 100%;
      width: max-content;
      max-width: min(920px, 92vw);
      max-height: 300px;
      overflow-x: auto;
      overflow-y: auto;
      margin: 2px 0 0;
      padding: 0;
      list-style: none;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: #fff;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }
    .prod-picker-menu[hidden] {
      display: none;
    }
    .prod-picker-menu li {
      padding: 7px 8px;
      cursor: pointer;
      font-size: 13px;
      line-height: 1.35;
      color: #222;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .prod-opt-desc {
      font-weight: 700;
    }
    .prod-picker-menu li.prod-picker-placeholder {
      color: #b5b5b5;
      font-style: italic;
    }
    .prod-picker-menu li:nth-child(odd):not(.prod-picker-placeholder) {
      background-color: #efefef;
    }
    .prod-picker-menu li:nth-child(even):not(.prod-picker-placeholder) {
      background-color: #ffffff;
    }
    .prod-picker-menu li:hover,
    .prod-picker-menu li.is-active {
      background-color: #fff9e6 !important;
    }
    /* Legacy select (si queda en alguna vista) */
    #items-table .prod-select {
      color: #222;
    }
    #items-table .prod-select:has(option[value=""]:checked) {
      color: #b5b5b5;
    }
    #items-table .prod-select option {
      color: #222;
    }
    #items-table .prod-select option:nth-child(odd) {
      background-color: #efefef;
    }
    #items-table .prod-select option:nth-child(even) {
      background-color: #ffffff;
    }
    .leyenda-netos {
      margin: 10px 0 0;
      text-align: right;
      font-size: 12px;
      font-weight: 700;
      color: #222;
    }
    .leyenda-netos.leyenda-tc {
      margin-top: 2px;
    }
    .tc-ref-banner {
      display: inline-block;
      margin: 8px 0 4px;
      padding: 8px 14px;
      background: #fff8d6;
      border: 1px solid #e6c200;
      border-radius: 8px;
      font-size: 14px;
      line-height: 1.35;
    }
    .tc-ref-banner .tc-ref-label {
      font-weight: 600;
      margin-right: 6px;
    }
    .tc-ref-banner .tc-ref-value {
      font-size: 18px;
      font-weight: 800;
      color: #111;
    }
    .tc-ref-banner .tc-ref-meta {
      font-size: 12px;
      font-weight: 500;
    }
    .tc-ref-table-hint {
      margin: 0 0 10px;
      font-size: 13px;
    }
    #items-table .th-sub {
      font-weight: 500;
      font-size: 10px;
      color: #666;
    }
    .listas-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin: 0 0 14px;
    }
    .listas-row-actions {
      white-space: nowrap;
    }
    .table-scroll {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 0 8px;
      border: 1px solid var(--cedife-line);
      border-radius: 8px;
    }
    .wrap:has(table.lista-ver) {
      max-width: 1280px;
    }
    .table-scroll:has(table.lista-ver) {
      overflow-x: hidden;
    }
    table.lista-ver {
      margin: 0;
      border: none;
      table-layout: fixed;
      width: 100%;
    }
    table.lista-ver th,
    table.lista-ver td {
      padding: 5px 6px;
      font-size: 12px;
      vertical-align: middle;
    }
    table.lista-ver th {
      position: sticky;
      top: 0;
      z-index: 1;
      white-space: normal;
      line-height: 1.15;
    }
    table.lista-ver td {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    table.lista-ver th:nth-child(1), table.lista-ver td:nth-child(1) { width: 8%; }
    table.lista-ver th:nth-child(2), table.lista-ver td:nth-child(2) { width: 11%; }
    table.lista-ver th:nth-child(3), table.lista-ver td:nth-child(3) { width: 24%; }
    table.lista-ver th:nth-child(4), table.lista-ver td:nth-child(4) { width: 7%; }
    table.lista-ver th:nth-child(5), table.lista-ver td:nth-child(5) { width: 8%; }
    table.lista-ver th:nth-child(6), table.lista-ver td:nth-child(6) { width: 6%; }
    table.lista-ver th:nth-child(7), table.lista-ver td:nth-child(7) { width: 7%; }
    table.lista-ver th:nth-child(8), table.lista-ver td:nth-child(8) { width: 5%; }
    table.lista-ver th:nth-child(9), table.lista-ver td:nth-child(9) { width: 8%; }
    table.lista-ver th:nth-child(10), table.lista-ver td:nth-child(10) { width: 7%; }
    table.lista-ver th:nth-child(11), table.lista-ver td:nth-child(11) { width: 9%; }
    table.lista-ver th.col-desc,
    table.lista-ver td.col-desc {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.25;
    }
    table.lista-ver td:nth-child(n+6) {
      overflow: visible;
      text-overflow: clip;
      text-align: right;
    }
    table.lista-ver tr.lista-row-a td { background: #f3f3f3; }
    table.lista-ver tr.lista-row-b td { background: #fff; }
    .flash {
      background: #fff8c6;
      border: 2px solid #c9a400;
      padding: 12px 14px;
      margin: 0 0 14px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 15px;
    }
    .aviso-primera {
      color: #1a7a2e;
      font-weight: 700;
      font-size: 16px;
      line-height: 1.45;
      text-align: center;
      margin: 0 0 16px;
      padding: 14px 16px;
      background: #f0fff3;
      border: 1px solid #9ed4a8;
      border-radius: 8px;
    }
    .muted { color: #666; font-size: 13px; }
    .help-steps {
      color: #333;
      font-size: 15.5px;
      line-height: 1.55;
      margin: 0 0 16px;
      padding: 12px 14px;
      background: #fffdf2;
      border: 1px solid var(--cedife-yellow-border);
      border-radius: 8px;
    }
    .help-steps ol {
      margin: 8px 0 0 1.2em;
      padding: 0;
    }
    .help-steps li { margin: 4px 0; }
    .help-steps .note {
      margin: 10px 0 0;
      color: #555;
      font-size: 14px;
    }
    input, select, button, textarea {
      padding: 8px 10px;
      margin: 2px 0;
      font-family: inherit;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }
    button, .btn {
      background: var(--cedife-yellow);
      border: 1px solid #333;
      color: #111;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }
    button:hover, .btn:hover { filter: brightness(0.97); }
    .docs-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
      white-space: normal;
    }
    .btn-confirmar {
      background: #1f7a3a;
      border: 2px solid #145228;
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      padding: 8px 12px;
      border-radius: 8px;
      box-shadow: 0 1px 0 rgba(0,0,0,.12);
    }
    .btn-confirmar:hover { filter: brightness(1.05); color: #fff; }
    .badge-ok {
      display: inline-block;
      background: #e8f7ec;
      border: 1px solid #1f7a3a;
      color: #145228;
      font-weight: 700;
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 999px;
    }
    .btn-nuevo {
      background: var(--cedife-yellow);
      border: 2px solid #333;
      color: #111;
      font-weight: 700;
      font-size: 15px;
      padding: 10px 18px;
      border-radius: 10px;
      box-shadow: 0 2px 0 #333;
      text-decoration: none;
      display: inline-block;
    }
    .btn-nuevo:hover {
      background: #ffe44d;
      filter: none;
      color: #111;
    }
    .btn-eliminar {
      background: #fff;
      border: 1px solid #b42318;
      color: #b42318;
      font-weight: 600;
      font-size: 12px;
      padding: 4px 8px;
      margin: 0;
      line-height: 1.2;
      min-height: 0;
      cursor: pointer;
      box-shadow: none;
    }
    .btn-eliminar:hover {
      background: #fef3f2;
      color: #912018;
      filter: none;
    }
    .box-clientes {
      overflow: hidden;
    }
    table.tabla-clientes {
      table-layout: fixed;
      width: 100%;
      white-space: normal;
    }
    table.tabla-clientes th,
    table.tabla-clientes td {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: middle;
    }
    table.tabla-clientes th:nth-child(1),
    table.tabla-clientes td:nth-child(1) { width: 20%; }
    table.tabla-clientes th:nth-child(2),
    table.tabla-clientes td:nth-child(2) { width: 16%; }
    table.tabla-clientes th:nth-child(3),
    table.tabla-clientes td:nth-child(3) { width: 20%; }
    table.tabla-clientes th:nth-child(4),
    table.tabla-clientes td:nth-child(4) { width: 14%; }
    table.tabla-clientes th:nth-child(5),
    table.tabla-clientes td:nth-child(5) { width: 5%; }
    table.tabla-clientes th:nth-child(6),
    table.tabla-clientes td:nth-child(6) {
      width: 25%;
      overflow: visible;
      vertical-align: middle;
      padding: 6px 8px;
    }
    .cli-actions {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }
    .cli-actions form {
      display: inline-flex;
      margin: 0;
      flex: 0 0 auto;
    }
    .cli-actions .btn,
    .cli-actions .btn-eliminar {
      flex: 0 0 auto;
      font-size: 11px;
      padding: 3px 7px;
      margin: 0;
      line-height: 1.2;
      min-height: 0;
      border-width: 1px;
      white-space: nowrap;
    }
    .box {
      background: var(--cedife-card);
      border: 1px solid var(--cedife-line);
      border-radius: 10px;
      padding: 14px;
      margin: 12px 0;
      box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }
    .page-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 8px;
    }
    .empresa-box {
      text-align: right;
      font-size: 13px;
      line-height: 1.35;
      color: #333;
      min-width: 220px;
      background: #fff;
      border: 1px solid var(--cedife-line);
      border-radius: 10px;
      padding: 10px 12px;
    }
    button.linkish {
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      color: #1a5fb4;
      cursor: pointer;
      font: inherit;
      text-decoration: underline;
      border-radius: 0;
      font-weight: 400;
    }
    .ficha-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
    @media (max-width: 800px) {
      .ficha-grid { grid-template-columns: 1fr; }
      .page-head { flex-direction: column; }
      .empresa-box { text-align: left; }
    }
    .ficha-title {
      font-size: 16px;
      margin: 0 0 12px;
      padding-bottom: 6px;
      border-bottom: 1px solid #ddd;
    }
    .ficha-col label { display: block; margin: 0 0 10px; font-size: 13px; }
    .ficha-col input,
    .ficha-col select { width: 100%; display: block; box-sizing: border-box; margin-top: 4px; }
    .ficha-col input.readonly { background: #f5f5f5; color: #444; }
    .ficha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ficha-spacer { display: block; }
    .ficha-comercial {
      background: #fafafa;
      border: 1px solid #eee;
      padding: 12px;
      border-radius: 8px;
    }
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin: 8px 0 16px;
    }
    .card {
      background: #fff;
      border: 1px solid var(--cedife-line);
      border-radius: 10px;
      padding: 14px;
      box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }
    .card .n { font-size: 28px; font-weight: 700; line-height: 1; }
    .card .l { font-size: 13px; color: #666; margin-top: 6px; }
    .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 8px; }
    .action {
      background: #fff;
      border: 2px solid #333;
      border-radius: 10px;
      padding: 14px 16px;
      text-decoration: none;
      font-weight: 600;
      box-shadow: 0 2px 0 #333;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
    }
    .action:hover { background: var(--cedife-yellow-soft); }
    .rubro-box { overflow: hidden; }
    .rubro-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
      gap: 10px;
      margin: 10px 0 6px;
      width: 100%;
      align-items: stretch;
    }
    .rubro-btn {
      margin: 0;
      width: 100%;
      min-height: 156px;
      padding: 6px 4px 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 4px;
      cursor: pointer;
      font: inherit;
      color: var(--cedife-ink);
      background: #fffce8; /* clarito — no seleccionado */
      border: 1.5px solid var(--cedife-yellow-border);
      border-radius: 12px;
      box-shadow: none;
      transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
    }
    .rubro-btn:hover {
      background: #fff7c2;
      border-color: #d4c04a;
    }
    .rubro-btn.is-active {
      background: var(--cedife-yellow); /* intenso — seleccionado */
      border-color: #c9b000;
      font-weight: 700;
      box-shadow: 0 2px 0 #333;
    }
    .rubro-thumb {
      width: 96%;
      max-width: 118px;
      aspect-ratio: 1 / 1;
      height: auto;
      border-radius: 8px;
      border: none;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex: 1 1 auto;
      min-height: 88px;
    }
    .rubro-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
      display: block;
    }
    .rubro-thumb-empty {
      background: transparent;
      border: none;
      min-height: 0;
      flex: 1 1 auto;
    }
    .rubro-label {
      display: block;
      width: 100%;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.15;
      min-height: 2.3em;
      margin-top: auto; /* pegado abajo del recuadro */
      padding: 0 2px 2px;
    }
    .rubro-btn-all .rubro-label {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-height: 2.3em;
      margin-top: auto;
      margin-bottom: 0;
      padding-bottom: 2px;
    }
    .login-split {
      display: grid;
      grid-template-columns: minmax(280px, 420px) 1fr;
      gap: 22px;
      align-items: start;
      margin: 24px 0;
    }
    .login-card {
      margin: 0;
      max-width: 420px;
      width: 100%;
      border: 3px solid var(--cedife-yellow);
      border-radius: 12px;
      box-shadow: 0 2px 0 #333, 0 4px 14px rgba(0,0,0,.08);
      padding: 18px 20px;
    }
    .login-forgot {
      margin: 8px 0 0;
      font-size: 11px;
      line-height: 1.2;
    }
    .login-forgot a {
      font-size: 11px;
      color: #555;
      font-weight: 400;
    }
    .login-benefits {
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .login-benefits-box {
      margin: 0;
      background: #fff;
      border: 3px solid var(--cedife-yellow);
      border-radius: 12px;
      box-shadow: 0 2px 0 #333;
      padding: 18px 20px;
      text-align: center;
    }
    .login-benefits-box-lg {
      padding: 28px 22px;
      min-height: 150px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--cedife-yellow-soft);
    }
    .login-benefits-title {
      margin: 0 0 14px;
      font-size: 19px;
      font-weight: 700;
      text-align: center;
      color: #111;
    }
    .login-benefits-list {
      margin: 0 auto;
      padding: 0;
      list-style: none;
      text-align: center;
      max-width: 100%;
    }
    .login-benefits-list li {
      margin: 0 0 12px;
      padding: 0;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.4;
      color: #222;
      text-align: center;
    }
    .login-benefits-list li:last-child { margin-bottom: 0; }
    .login-benefits-box-lg .login-benefits-list li {
      font-size: 18px;
      margin-bottom: 16px;
    }
    .brand-row {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 10px;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: #fff;
      border: 2px solid #333;
      border-radius: 10px;
      cursor: pointer;
    }
    .nav-toggle span {
      display: block;
      height: 2px;
      background: #111;
      border-radius: 2px;
    }
    .tc-label { display: inline; }

    /* ——— Móvil / tablet ——— */
    @media (max-width: 768px) {
      body { font-size: 15px; }
      .topbar { padding: 10px 12px; }
      .topbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }
      .topbar-inner--nav {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        justify-items: stretch;
      }
      .brand-row { width: 100%; }
      .topbar-logo {
        width: 100%;
        justify-content: flex-start;
        order: 1;
      }
      .brand-logo img,
      .brand img { height: 40px; }
      a.brand-text,
      .brand-text {
        order: 2;
        width: 100%;
        align-items: flex-start;
        text-align: left;
      }
      a.brand-text strong,
      .brand-text strong { font-size: 14px; }
      .horarios-atencion {
        order: 3;
        width: 100%;
        padding: 2px 0;
      }
      .horarios-atencion strong { font-size: 12px; }
      .horarios-atencion span { font-size: 11px; }
      .partner-badge {
        order: 4;
        width: 100%;
        padding: 4px 0;
      }
      .partner-badge img {
        height: 48px;
        max-width: 240px;
      }
      .tc-badge {
        order: 5;
        width: 100%;
        border-radius: 12px;
        white-space: normal;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
      }
      .tc-label { display: block; margin-bottom: 2px; }
      .tc-badge em { font-size: 18px; display: block; }
      .nav-toggle { display: inline-flex; }

      .navwrap {
        display: none;
        border-bottom: 1px solid var(--cedife-line);
        background: #fff;
      }
      body.nav-open .navwrap { display: block; }
      nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
      }
      nav a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
      }
      nav a:active { background: var(--cedife-yellow-soft); }

      .wrap { padding: 12px; padding-bottom: 28px; }
      h1 { font-size: 22px; }
      .page-head { flex-direction: column; gap: 10px; }
      .empresa-box {
        text-align: left;
        min-width: 0;
        width: 100%;
      }

      .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
      .card { padding: 12px; }
      .card .n { font-size: 24px; }
      .actions { grid-template-columns: 1fr; }
      .action {
        padding: 16px;
        font-size: 16px;
        text-align: center;
      }

      .btn-nuevo, .btn-confirmar, button[type="submit"], .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 15px;
      }
      .cli-actions .btn,
      .cli-actions .btn-eliminar,
      button.btn-eliminar {
        min-height: 0;
        padding: 4px 8px;
        font-size: 12px;
      }
      input, select, textarea, button {
        font-size: 16px; /* evita zoom iOS */
        max-width: 100%;
      }
      .ficha-2 { grid-template-columns: 1fr; }
      .ficha-col label { font-size: 14px; }
      .help-steps { font-size: 15px; padding: 12px; }

      /* tablas: scroll horizontal táctil */
      table:not(.lista-ver):not(.tabla-clientes) {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #ccc;
        border-radius: 8px;
      }
      table:not(.lista-ver):not(.tabla-clientes) thead,
      table:not(.lista-ver):not(.tabla-clientes) tbody,
      table:not(.lista-ver):not(.tabla-clientes) tr { width: max-content; min-width: 100%; }
      table:not(.lista-ver):not(.tabla-clientes) th,
      table:not(.lista-ver):not(.tabla-clientes) td {
        font-size: 13px;
        padding: 10px 8px;
        white-space: nowrap;
      }
      table.tabla-clientes {
        display: table;
        width: 100%;
        table-layout: fixed;
      }
      table.lista-ver {
        display: table;
        width: 100%;
      }
      table.lista-ver thead { display: table-header-group; }
      table.lista-ver tbody { display: table-row-group; }
      table.lista-ver tr { display: table-row; width: auto; min-width: 0; }
      table.lista-ver th,
      table.lista-ver td {
        font-size: 11px;
        padding: 5px 4px;
      }
      table.lista-ver td.col-desc { white-space: normal; }
      .prod-select { min-width: 220px; }
      .cant-input { width: 72px !important; }
      .rubro-grid {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 8px;
      }
      .rubro-btn {
        min-height: 148px;
        padding: 4px 3px 4px;
        margin: 0 !important;
        font-size: 12px;
        gap: 2px;
      }
      .rubro-thumb {
        max-width: 100%;
        min-height: 78px;
      }
      .rubro-label { font-size: 12px; min-height: 2.3em; }
      .docs-actions { gap: 10px; }
      .docs-actions .btn-confirmar { width: 100%; text-align: center; }
      .box { padding: 12px; }

      /* login */
      .login-split {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 12px 0;
      }
      .login-card { max-width: none; }
      .box[style*="max-width:420px"],
      .box[style*="max-width:520px"] {
        margin: 12px 0 !important;
        max-width: none !important;
      }
    }

    @media (max-width: 420px) {
      .cards { grid-template-columns: 1fr; }
      .brand-text span { display: none; }
    }
