/* CSS MarLogic */

  :root{
    --blue:#3465B0;
    --blue-dark:#23477D;
    --blue-tint:#E7EEF7;
    --ink:#1B2943;
    --yellow:#FBBD06;
    --secondary:#5B6B78;
    --muted:#8A97A2;
    --bg-page:#F2F6F8;
    --surface:#FFFFFF;
    --border:#E3E9EC;
    --success:#2E9B5D;
    --success-tint:#DBF0E4;
    --alert:#D9822B;
    --alert-tint:#FCEEDE;
    --warning:#A33B3B;
    --warning-tint:#FBE9E9;
    --font-display: "Poppins","Helvetica Neue",Arial,sans-serif;
    --font-body: -apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    --font-mono: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  }

  *{box-sizing:border-box;}
  html, body{height:100%;}
  body{
    margin:0;
    padding:40px 16px;
    background:#DCE4E8;
    font-family:var(--font-body);
    display:flex;
    justify-content:center;
    min-height:100vh;
  }

  .device{
    width:380px;
    max-width:100%;
    background:#0F1A22;
    border-radius:34px;
    padding:12px;
  }

  .screen{
    position: relative;
    background:var(--bg-page);
    border-radius:24px;
    overflow:hidden;
    min-height:680px;
    padding-bottom: 50px;
  }

  #SyncNote {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .topbar{
    display:flex;
    align-items:center;
    gap:12px;
    padding:22px 18px 16px;
    background:var(--surface);
    border-bottom:1px solid var(--border);
    min-height: 80px;
  }
  
  .loginForm{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;      /* esto lo centra */
  }

  .brand{display:flex;align-items:center;gap:10px;}
  .brand-mark{
    width:36px;height:36px;border-radius:9px;
    background:#FFFFFF;
    /*border:1px solid var(--border);*/
    display:flex;align-items:center;justify-content:center;
    overflow:hidden;
  }
  .brand-mark img{width:100%;height:100%;object-fit:contain;}
  .brand-name{
    font-family:var(--font-display);
    font-weight:700;
    font-size:19px;
    color:var(--ink);
    line-height:1.1;
  }
  .brand-sub{
    font-size:14px;
    color:var(--secondary);
	font-weight:600;
  }
  .search-box{
    margin:10px 12px 10px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .search-box svg{flex-shrink:0;}
  .search-box input{
    border:none;
    outline:none;
    background:transparent;
    font-size:14px;
    font-family:var(--font-body);
    color:var(--ink);
    width:100%;
  }
  .search-box input::placeholder{color:var(--muted);}

  .section-label{
    font-family:var(--font-display);
    font-weight:600;
    font-size:12.5px;
    color:var(--secondary);
    padding:16px 10px 8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }

  .section-label.tab{
    padding:16px 0px 8px;
  }

  .section-period{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
  }
  .year-tabs{display:flex;gap:6px;flex-wrap:wrap;}
  .year-tab{
    font-family:var(--font-mono);
    font-size:12px;
    font-weight:600;
    color:var(--secondary);
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    padding:4px 10px;
    cursor:pointer;
  }
  .year-tab.active{
    background:var(--blue);
    border-color:var(--blue);
    color:#FFFFFF;
  }
  .client-list{padding:0 12px;display:flex;flex-direction:column;gap: 8px;}
  .client-row{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:8px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
  }
  .client-row:active{background:var(--blue-tint);}
  .client-row .name{
    font-size:12px;
    font-weight:600;
    color:var(--ink);
  }
  .client-row .zone{
    font-size:12px;
    color:var(--secondary);
    margin-top:2px;
  }
  .client-row .code{
    font-family:var(--font-mono);
    font-size:12px;
    color:var(--muted);
    text-align:right;
  }
  .badge-dot{
    display:inline-block;
    width:7px;height:7px;
    border-radius:50%;
    margin-right:5px;
    vertical-align:1px;
  }
  .dot-ok{background:var(--success);}
  .dot-alert{background:var(--alert);}

  .detail-top{padding:18px 14px 14px;background:var(--surface);border-bottom:1px solid var(--border);}

  .back-btn{
    width:34px;height:34px;
    border-radius:8px;
    border:1px solid var(--border);
    background:var(--surface);
    font-size:16px;
    color:var(--ink);
    cursor:pointer;
    margin-left: auto
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-display);
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px;
    background: var(--border);
  }
  .client-title{
    font-family:var(--font-display);
    font-weight:700;
    font-size:18px;
    color:var(--ink);
    line-height: 1.25;
  }
  .client-code{
    font-family:var(--font-mono);
    font-size:11.5px;
    color:var(--muted);
    margin-top:1px;
  }

  .stats-row{
    display:flex;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    /*padding:16px 12px 4px;*/
    padding: 0px;
  }
  .stats-row.tab{
    margin:10px;
  }
  .stat-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:6px 4px;
    text-align:center;
    flex: 1 1 0; /* reparte el espacio a partes iguales */
    min-width: 0; /* evita que el contenido largo desborde la tarjeta */
  }
  .stat-card.tone-alert{background:var(--alert-tint);border-color:#F0D2AC;}
  .stat-card.tone-ok{background:var(--success-tint);border-color:#BCE2C9;}
  .stat-value{
    font-family:var(--font-mono);
    font-weight:600;
    font-size:16px;
    color:var(--ink);
  }
  .tone-alert .stat-value{color:#9A5A17;}
  .tone-ok .stat-value{color:#1E6E42;}
  .stat-label{
    font-size:10.5px;
    color:var(--secondary);
    margin-top:3px;
    line-height:1.25;
  }
  .tone-alert .stat-label{color:#A9701F;}
  .tone-ok .stat-label{color:#2C7A4C;}

  .bar.selected{outline:2px solid var(--blue-dark);outline-offset:1px;}

  .chart{
    margin:4px 10px 16px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:14px 10px 8px;
    display:flex;
    align-items:flex-end;
    gap:5px;
    height:90px;
  }

  .chart.tab{
    margin:4px 0px 16px;
  }

  .bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;}
  .bar{
    width:100%;
    background:#BFE3F3;
    border-radius:3px 3px 0 0;
  }
  .bar.peak{background:var(--blue);}
  .bar-m{
    font-size:10px;
    color:var(--muted);
    margin-top:4px;
    font-family:var(--font-mono);
  }

  .product-list{padding:0 12px;display:flex;flex-direction:column;gap: 8px;}
  .product-list.tab{padding:0px 0px;}

  .product-row{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    padding:9px 12px;
  }
  .product-row .p-top{display:flex;justify-content:space-between;font-size:12px;color:var(--ink);margin-bottom:6px;}
  .product-row .p-qty{font-family:var(--font-mono);color:var(--muted);}
  .product-row.clickable{cursor:pointer;}
  .product-row.clickable:active{background:var(--blue-tint);}
  .product-row.clickable .p-top span:first-child{color:var(--blue);}

  .p-bar-track{background:var(--border);height:5px;border-radius:3px;overflow:hidden;}
  .p-bar-fill{background:var(--blue);height:100%;}

    .ticket-list{padding:0 12px 20px;display:flex;flex-direction:column;gap: 8px;}
  .ticket-list.tab{padding:0px 0px 16px;}

  .ticket{
    position:relative;
    background:var(--surface);
    border:1px solid var(--border);
    border-left:3px solid var(--blue);
    border-radius:8px;
    padding:4px 12px;
    padding-bottom: 4px;
    margin-bottom: 4px;
  }
  .ticket.anomaly{border-left-color:var(--alert);background:var(--alert-tint);}

  .ticket-head{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    border-bottom: 1px solid;
    padding-bottom: 4px;
    border-color: var(--border);
  }

  .ticket-head-left{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
  .badge-sm{font-size:10px;padding:1px 6px;border-radius:6px;white-space:nowrap;}

  .ticket-code{font-size:12px;color:var(--ink);font-weight:600; text-transform: capitalize;}
  .ticket-date{font-family:var(--font-mono);font-size:12px;color:var(--ink);font-weight:600; text-transform: capitalize;}
  .ticket-units{font-family:var(--font-mono);font-size:11.5px;color:var(--muted); text-transform: capitalize;}
  .ticket-lines{font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    text-transform: capitalize;
    text-align: right;
    font-weight: 600;}
  .ticket.clickable{cursor:pointer;}
  .ticket.clickable:active{background:var(--blue-tint);}
  .ticket.clickable .p-top span:first-child{color:var(--blue);}
  .ticket-flag{
    margin-top:7px;
    font-size:11.5px;
    color:#9A5A17;
    display:flex;
    gap:6px;
    align-items:flex-start;
  }
  
  .ticket-code.es-abono{color:var(--warning);}

  /* Estado de factura (histórico de pedidos del cliente): estfac de FactuSOL
   (0 sin estado, 1 Pte., 2 Pte. Parcial, 3 Cobrada, 4 Devuelta, 5 Anulada).
   Reutiliza .badge + los tonos ya definidos, sin colores nuevos. */
  .badge-estado-cobrada {
      background: var(--success-tint);
      color: var(--success);
  }
  .badge-estado-pendiente {
      background: var(--alert-tint);
      color: var(--alert);
  }
  .badge-estado-devuelta {
      background: var(--warning-tint);
      color: var(--warning);
  }
  .badge-estado-anulada,
  .badge-estado-neutral {
      background: #E7EEF7;
      color: #6B7C93;
      text-decoration: line-through;
  }
  .badge-estado-neutral {
      text-decoration: none;
  }


  /* Login */
  .login-view{
    min-height:640px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:32px 28px;
  }
  .login-logo{
    width:64px;height:64px;border-radius:14px;
    background:#FFFFFF;
    border:1px solid var(--border);
    overflow:hidden;
    margin:0 auto 14px;
  }
  .login-logo img{width:100%;height:100%;object-fit:contain;}
  .login-title{
    font-family:var(--font-display);
    font-weight:700;
    font-size:21px;
    color:var(--ink);
    text-align:center;
  }
  .login-sub{
    font-size:12.5px;
    color:var(--secondary);
    text-align:center;
    margin-top:2px;
    margin-bottom:28px;
  }
  .field-label{
    font-size:13px;
    font-weight:600;
    color:var(--ink);
    margin-bottom:6px;
    display:block;
  }
  .field-group{margin-bottom:16px;}
  .field-input, .field-select{
    width:100%;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:10px 12px;
    font-size:13px;
    font-family:var(--font-body);
    color:var(--ink);
    outline:none;
  }
  .field-input:focus, .field-select:focus{border-color:var(--blue);}
  .field-hint{font-size:12px;color:var(--muted);margin-top:5px;}

  .btn-primary{
    width:100%;
    background:var(--blue);
    color:#FFFFFF;
    border:none;
    border-radius:10px;
    padding:12px;
    font-size:14.5px;
    font-weight:600;
    font-family:var(--font-body);
    cursor:pointer;
    margin-top:6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btn-primary:active{background:var(--blue-dark);}

  .btn-primary:disabled {
    background: #C9D2DE;
    color: #8A97A2;
    cursor: not-allowed;
  }

  .btn-secondary {
    width:40%;
    background:var(--FFFFFF);
    color: var(--secondary);
    border: 1px solid #D6DCE5;
    border-radius:10px;
    padding:12px;
    font-size:14.5px;
    font-weight:600;
    font-family:var(--font-body);
    cursor:pointer;
    margin-top:6px;
  }

  .btn-secondary:hover {
      background: #F5F7FA;
  }

  /* Home */
  .home-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px 10px;
    background:var(--surface);
    border-bottom:1px solid var(--border);
  }
  .home-greeting{font-size:15px;font-weight:600;color:var(--ink);}
  .home-role{font-size:11.5px;color:var(--secondary);margin-top:1px;}
  .logout-btn{
    width:34px;height:34px;
    border-radius:8px;
    border:1px solid var(--border);
    background:var(--surface);
    cursor:pointer;
    display:flex;
	align-items:center;
	justify-content:center;
	margin-left: auto;
  }

  .menu-container{
    display:flex;
  }
  
  .menu-grid{
    display:flex;
    flex-direction:column;
    gap: 10px;
    padding: 20px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .menu-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:14px;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
  }

  .menu-card:active{background:var(--blue-tint);}
  .menu-card.disabled{cursor:default;opacity:0.55;}

  .menu-card:hover{background-color: var(--blue-tint);}
  .menu-card.disabled:hover{background-color: var(--surface); }

  .menu-icon{
    width:40px;height:40px;
    border-radius:10px;
    background:var(--blue-tint);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .menu-icon svg{stroke:var(--blue-dark);}
  .menu-card.disabled .menu-icon{background:#EEF1F3;}
  .menu-card.disabled .menu-icon svg{stroke:var(--muted);}
  .menu-title{font-size:14.5px;font-weight:600;color:var(--ink);}
  .menu-sub{font-size:13px;color:var(--secondary);margin-top:2px;}
  .menu-badge{
    margin-left:auto;
    font-size:10px;
    font-weight:600;
    color:var(--muted);
    background:#EEF1F3;
    padding:3px 8px;
    border-radius:20px;
    white-space:nowrap;
  }


  /* Transporte */
  .transport-view{
    min-height:680px;
    padding-bottom:24px;
  }

  .transport-form{
    padding:8px 12px 4px;
  }

  .transport-form.tab{
    padding:8px 0px 4px;
  }

  .transport-form .field-group{
    margin-bottom:14px;
  }
  .transport-query-btn{
    margin-top:2px;
  }
  .transport-error{
    display:none;
    margin:10px 12px 0;
    padding:10px 12px;
    background:var(--alert-tint);
    border:1px solid #F0D2AC;
    border-radius:9px;
    color:#9A5A17;
    font-size:12px;
    line-height:1.4;
  }
  .transport-result{
    display:none;
  }
  .transport-summary{
    margin:10px 0px 0;
    padding:10px 12px;
    background:var(--blue-tint);
    border:1px solid #D5E1F0;
    border-radius:10px;
    color:var(--ink);
  }
  .transport-summary-title{
    font-family:var(--font-display);
    font-size:14px;
    font-weight:700;
  }
  .transport-summary-sub{
    margin-top:2px;
    font-size:11.5px;
    color:var(--secondary);
  }
  .transport-table-wrap{
    margin:12px 0px 0;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
  }
  .transport-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
  }
  .transport-table th{
    background: var(--border);
    color:var(--secondary);
    font-size:10.5px;
    font-weight:700;
    text-align:right;
    padding:9px 8px;
    border-bottom:1px solid var(--border);
  }
  .transport-table th:first-child{
    text-align:left;
    width:54%;
  }

  .transport-table td{
    padding:9px 8px;
    border-bottom:1px solid var(--border);
    vertical-align:middle;
    font-family: var(--font-body);
    font-size: 11px;
  }

  .transport-table td.tipo{
    padding:0px 0px;
    text-align: right;
  }

  .transport-table td.valor{
    text-align: right;
  }

  .transport-table tr:last-child td{
    border-bottom:none;
  }
  .transport-format{
    font-size:12px;
    font-weight:600;
    /*color:var(--ink);*/
    line-height:1.3;
  }
  .transport-price{
    text-align:right;
    font-family:var(--font-mono);
    font-size:12px;
    /*font-weight:600;*/
    /*color:var(--ink);*/
    white-space:nowrap;
  }
  .transport-empty{
    color:var(--muted);
  }
  .transport-note{
    padding:10px 12px 0;
    font-size:10.5px;
    color:var(--muted);
    line-height:1.4;
    text-align: center;
  }
  .transport-loading{
    display:none;
    padding:16px 12px;
    color:var(--muted);
    font-size:12.5px;
    text-align:center;
  }

  .combobox-dropdown{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    max-height:220px;
    overflow-y:auto;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    margin:4px 0 0;
    padding:4px;
    list-style:none;
    z-index:1000;
    box-shadow:0 8px 20px rgba(27,41,67,0.12);
  }
  .combobox-dropdown li{
    padding:9px 10px;
    border-radius:7px;
    font-size:13px;
    color:var(--ink);
    cursor:pointer;
    text-transform: capitalize;
  }
  .combobox-dropdown li:hover,
  .combobox-dropdown li.active{
    background:var(--blue-tint);
  }

  .login-logo, .brand-mark{position:relative;}
  .login-logo img.bucket, .brand-mark img.bucket{display:block;width:100%;height:100%;object-fit:contain;}
  .login-logo svg.nodes, .brand-mark svg.nodes{position:absolute;top:0;left:0;width:100%;height:100%;}

.detail-top {
  display: flex;
  align-items: center;
  position: relative;
}

.detail-client-info {
  flex: 1;
  min-width: 0;
}

.detail-actions {
  position: relative;
  margin-left: auto;
}

.actions-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #333;
}

.actions-btn:hover {
  background: #f0f3f6;
}

.actions-menu {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;

  width: 215px;

  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

  padding: 6px;
  z-index: 1000;
}

.actions-menu.open {
  display: block;
}

.actions-menu button {
  width: 100%;
  border: 0;
  background: transparent;

  padding: 9px 8px;
  border-radius: 8px;

  text-align: left;
  font-size: 14px;
  color: #102a43;

  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;
}

.actions-menu button:hover {
  background: #f2f5f8;
}

.action-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;
  background: #e8f0fa;
  color: #2d5fa7;
}

.action-icon svg {
  width: 18px;
  height: 18px;
}

.actions-menu button:disabled {
  color: #a0a8b0;
  cursor: not-allowed;
}

.actions-menu button:disabled:hover {
  background: transparent;
}

.actions-menu button:disabled .action-icon {
  background: #f1f3f5;
  color: #a0a8b0;
}

/* ============================================================
   ANÁLISIS COMERCIAL
   ============================================================ */

.commercial-analysis {
  margin: 12px 0 12px;
  padding: 6px 2px 0px;
  /*border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);*/
}

.commercial-analysis-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.commercial-analysis-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.commercial-analysis-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* Estado */

.commercial-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.commercial-status.normal {
  color: var(--success);
  background: var(--success-tint);
}

.commercial-status.vigilancia {
  color: #8A6515;
  background: #FFF4D6;
}

.commercial-status.oportunidad {
  color: #28627A;
  background: #E5F3F8;
}

.commercial-status.alto {
  color: #A33B3B;
  background: #FBE9E9;
}

/* Lectura */

.commercial-analysis-reading {
  margin-top: 12.5px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

/* Acción recomendada */

.commercial-analysis-action {
  margin-top: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  background: var(--surface, #F7F8FA);
}

.commercial-action-label {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.commercial-action-text {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

/* Métricas */

.commercial-analysis-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    /* margin-top: 14px; */
    padding-top: 13px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-bottom: 13px;
}

.commercial-analysis-metrics > div {
  min-width: 0;
}

.commercial-analysis-metrics span {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.commercial-analysis-metrics strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   DOCUMENTOS — listado
   ============================================================ */

.document-list{padding:0 12px;display:flex;flex-direction:column;gap: 8px;}
.document-row{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.document-row:active{background:var(--blue-tint);}
.document-row .name{
  font-size:12px;
  font-weight:600;
  color:var(--ink);
}
.document-row .code{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--muted);
  text-transform: capitalize;
  text-wrap: nowrap;
}
.document-row .family{
  font-size:12px;
  color:var(--secondary);
  margin-top:2px;
}
/* ============================================================
   ARTÍCULOS — listado
   ============================================================ */

.article-list{padding:0 12px;display:flex;flex-direction:column;gap: 8px;}
.article-row{
	/*background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;*/
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;

  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 8px 10px;
}
.article-row:active{background:var(--blue-tint);}
.article-row .name{
  font-size:12px;
  font-weight:600;
  color:var(--ink);
}
.article-row .code{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--muted);
  text-align:right;
}
.article-row .family{
  font-size:12px;
  color:var(--secondary);
  margin-top:2px;
}

/* ============================================================
   ARTÍCULOS — ficha de detalle
   ============================================================ */

.article-status {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/*.article-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:700;
  background:var(--success-tint);
  color:#1E6E42;
  margin-left: auto;
}*/

.article-status.normal {
    color: var(--success);
    background: var(--success-tint);
    border: 0.5px solid var(--surface);
}
.article-status.vigilancia {
  color: #8A6515;
  background: #FFF4D6;
  border: 0.5px solid #8A6515;
}

.article-status.oportunidad {
  color: #28627A;
  background: #E5F3F8;
  border: 0.5px solid #28627A;
}

.article-status.alto {
  color: #A33B3B;
  background: #FBE9E9;
  border: 0.5px solid #A33B3B;
}

.article-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  color:var(--ink);
  line-height: 1.25;
}

.article-code{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--muted);
  margin-top:1px;
}

.detail-article-info {
flex: 1;
min-width: 0;
}


.article-fields{
  padding:0px;
  /*margin:10px 18px 0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:2px 14px;*/
}
.article-fields .field-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--border);
}
.article-fields .field-row:last-child{border-bottom:none;}
.article-fields .f-label{
  font-size:12px;
  color:var(--secondary);
}
.article-fields .f-value{
  font-size:12px;
  font-weight:600;
  color:var(--ink);
  text-align:right;
  text-transform: capitalize;
}

.pack-note{
  margin-top:14px;
  background:#F7F9FA;
  border:1px dashed var(--border);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  color:var(--secondary);
  line-height:1.5;
}
.pack-note b{color:var(--ink);}

/* Tabla genérica de datos (usada por Tarifas; misma estética que transport-table) */
.data-table-wrap{
  margin:10px 12px 0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}
.data-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.data-table th{
  background:#F7F9FA;
  color:var(--secondary);
  font-size:10.5px;
  font-weight:700;
  text-align:right;
  padding:9px 8px;
  border-bottom:1px solid var(--border);
}
.data-table th:first-child{text-align:left;width:48%;}
.data-table td{
  padding:6px 8px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}
.data-table tr:last-child td{border-bottom:none;}
.data-table .tarifa-name{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  text-transform: capitalize;
  font-family: monospace;
}
.data-table .tarifa-name .tag{
  display:inline-block;
  font-size:9px;
  font-weight:700;
  color:var(--blue);
  background:var(--blue-tint);
  padding:2px 6px;
  border-radius:6px;
  margin-left:6px;
  vertical-align:middle;
}
.data-table .price{
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.data-table .price.pvp{color:var(--blue);}

.badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #d0e1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.badge svg {
    width: 16px;
    height: 16px;
    stroke:var(--blue-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 10px 10px;
    margin: 12px 10px 2px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;

    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--secondary);
    gap: 8px;
  }

  .section-label-article{
    font-family:var(--font-display);
    font-weight:600;
    font-size:13px;
    color:var(--secondary);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }

  .cost-price{
    font-family:var(--font-mono);
    font-size:12px;
    font-weight:700;
    text-align:right;
    color:var(--warning);
    background:var(--warning-tint);
  }

  .cost-price-label{
    color:var(--warning);
    background:var(--warning-tint);
    font-family: monospace;
  }

  .documents{
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .docs-link{
    cursor: pointer;
    color: var(--blue)
  }

.article-documents-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
}

.article-documents-box {
  width: min(520px, 100%);
  max-height: 80vh;
  overflow-y: auto;

  background: var(--card, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.article-documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.article-documents-title {
  font-size: 17px;
  font-weight: 700;
}

.article-documents-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.article-documents-close {
  border: 0;
  background: transparent;
  cursor: pointer;

  font-size: 28px;
  line-height: 1;
  color: var(--muted, #6b7280);
}

.article-documents-list {
  padding: 8px 16px 16px;
}

.article-document-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.article-document-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background-color: var(--blue-tint);
  font-size: 12px;
  margin-bottom: 6px;
}

.article-document-row:last-child {
  border-bottom: 0;
}

.article-document-icon {
  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--blue);
}

.article-document-info {
  flex: 1;
  min-width: 0;
}

.article-document-name {
  font-size: 13px;
  font-weight: 600;
}

.article-document-meta {
  /*margin-top: 3px;*/
  font-size: 12px;
  color: var(--muted, #6b7280);
}

.article-document-view {
  flex: 0 0 auto;

  border: 0;
  background: transparent;

  color: var(--blue);
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
  padding: 6px 0;
}

.article-document-view:hover {
  text-decoration: underline;
}

.article-documents-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 14px;
}


.detail-tabs {
  display: flex;
  gap: 4px;
  padding: 0 10px;
  margin-top: 10px;
}

.detail-tab-btn {
  border: none;
  cursor: pointer;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7C93;
  background: #E3E7EE;
  border-radius: 10px 10px 0 0;
  position: relative;
  top: 1px;
}

.detail-tab-btn.active {
  background: #FFFFFF;
  color: #1B2943;
}

.detail-tab-panel {
  background: #FFFFFF;
  border-radius: 0 10px 10px 10px;
  padding: 12px;
  margin: 0 10px 12px;
  box-shadow: 0 1px 3px rgba(27,41,67,0.08);
}

.transport-tab-btn {
  border: none;
  cursor: pointer;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7C93;
  background: #E3E7EE;
  border-radius: 10px 10px 0 0;
  position: relative;
  top: 1px;
}

.transport-tab-btn.active {
  background: #FFFFFF;
  color: #1B2943;
}

.transport-tab-panel {
  background: #FFFFFF;
  border-radius: 0 10px 10px 10px;
  padding: 12px;
  margin: 0 12px 12px;
  box-shadow: 0 1px 3px rgba(27,41,67,0.08);
}

.commercial-info-card {
  margin-bottom: 8px;
}

.commercial-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F0F2F5;
}

.commercial-info-label {
  font-size: 13px;
  color: var(--secondary);
}

.commercial-info-value {
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}

.special-price-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F0F2F5;
  font-size: 13px;
}

.commercial-loading {
  font-size: 13px;
  color: #6B7C93;
  text-align: center;
  padding: 24px 0;
}


/*PRECIOS ESPECIALES*/

.tabla-precios-especiales {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 11px;
  margin-top: 14px;
}

.tabla-precios-especiales thead th {
  text-align: left;
  padding: 4px;
  background-color: var(--muted);;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
}

.tabla-precios-especiales tbody td {
  padding: 6px;
  border-bottom: 1px solid #E7EEF7;
  color: var(--ink);
}

.tabla-precios-especiales tbody tr:nth-child(even) {
  background-color: #E7EEF7;
}

.tabla-precios-especiales tbody tr:hover {
  background-color: rgba(52, 101, 176, 0.08);
}

.tabla-precios-especiales tbody td.valor {
  text-align: right;
}

.empty-state {
  padding: 14px 8px;
  text-align: center;
  color: #6B7C93;
  font-size: 13px;
}

.error {
  padding: 0.75rem;
  background-color: #FDECEC;
  border: 1px solid #E57373;
  border-radius: 6px;
  color: #B3261E;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
}
/* ============================================================
   MODAL SELECCIÓN DE TELÉFONO
   ============================================================ */

.phone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,41,67,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.phone-modal {
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding: 16px;
  width: 100%;
  max-width: 420px;
}

.phone-modal-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  text-align: center;
}

.phone-modal-option {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.phone-modal-option:active {
  background: var(--blue);
  color: #FFFFFF;
}

.phone-modal-cancel {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px;
  cursor: pointer;
  font-weight: 400;
}

/* ============================================================
   Vehículos y rutas de reparto
   Añadir a style.css. Usa la paleta MarLogic ya establecida:
   #3465B0 (acento) / #1B2943 (texto fuerte) / #6B7C93 (texto
   secundario) / #E7EEF7 (fondos suaves)
   ============================================================ */

.avisos-vencimiento {
    background: var(--alert-tint);
    border: 1px solid var(--alert);
    padding: 10px 14px;
    margin-bottom: 2px;
    font-size: 13px;
    color: var(--alert);
}

.aviso-item + .aviso-item {
    margin-top: 4px;
}

.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #E0E4EA;
    padding: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 2px 12px;
    font-size: 14px;
    color: #6B7C93;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #1B2943;
    font-weight: 500;
    border-bottom-color: #3465B0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    padding: 12px;
}

.tab-panel-header {
    /*display: flex;*/
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.contador-registros {
    font-size: 13px;
    color: #6B7C93;
    margin-bottom: 6px;
    font-weight: 600;
}



/* ============================================================
   .tabla-datos — bloque COMPLETO y autocontenido.
   Sustituye cualquier definición anterior de .tabla-datos que
   tengas en tu CSS (la original de Vehículos/Rutas + el añadido
   de después), no la pegues junto a las otras.
   ============================================================ */

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabla-datos thead tr {
    background: #E7EEF7;
}

.tabla-datos th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1B2943;
}

.tabla-datos td {
    padding: 8px 8px;
    font-size: 13px;
    color: #1B2943;
    border-bottom: 1px solid #EEF1F5;
}

.tabla-datos tbody tr:nth-child(even) {
    background: #F7F9FC;
}

.tabla-datos tbody tr:hover {
    background: #EEF3FA;
}

.tabla-datos tr.fila-inactiva td {
    color: #A2ACB8;
}

/* Primera columna destacada (p.ej. Hora en consulta de entregas) */
.tabla-datos td.col-destacada {
    color: #3465B0;
    font-weight: 600;
}

/* Badge para valores tipo estado dentro de celdas (p.ej. forma de pago) */
.badge-celda {
    font-size: 11px;
    background: #E7EEF7;
    color: #3465B0;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.alerta-exito {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #E7F5EA;
    border: 1px solid #A9D9B6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.alerta-exito-titulo {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E5A2A;
    margin: 0 0 2px;
}

.alerta-exito-detalle {
    font-size: 12.5px;
    color: #2E7D32;
    margin: 0;
}

.acciones-celda {
    text-align: right;
    white-space: nowrap;
}

.btn-icono {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6B7C93;
    display: inline-flex;
    align-items: center;
}

.btn-icono:hover {
    color: #3465B0;
}

.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-success {
    background: #E3F3E7;
    color: #237A3F;
}

.badge-neutral {
    background: #E7EEF7;
    color: #6B7C93;
}

.texto-muted {
    color: #A2ACB8;
    font-size: 12px;
}

.texto-aviso {
    color: var(--alert);
    font-size: 12px;
}

.texto-vencido {
    color: var(--warning);
    font-size: 12px;
    font-weight: 500;
}

/* ---------------- Modal ---------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 41, 67, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 12px;
    width: 480px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px 24px;
}

.modal-card-sm {
    width: 360px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1B2943;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #6B7C93;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    font-size: 12px;
    color: #6B7C93;
    margin-bottom: 4px;
}

.form-field input[type="text"],
.form-field input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #D6DCE5;
    border-radius: 6px;
    font-size: 13px;
    color: #1B2943;
    box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="date"]:focus {
    outline: none;
    border-color: #3465B0;
}

.form-divider {
    font-size: 12px;
    color: #6B7C93;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-top: 1px solid #EEF1F5;
    margin: 16px 0 12px;
    padding-top: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.form-field input[type="text"]:disabled {
    background: #F5F7FA;
    color: #A2ACB8;
    cursor: not-allowed;
}

.form-field select{
  font-family: var(--font-body);
  color: var(--muted);
  border: 1px solid #D6DCE5;
  border-color: var(--muted);
  padding: 6px;
  border-radius: 6px;
}

.f-label{
  font-size: 13px;
}

/* ============================================================
   ESTADÍSTICAS · FACTURACIÓN
   Añadir a style.css. Reutiliza .stat-card, .stats-row, .section-label,
   .product-list/.product-row/.p-bar-track/.p-bar-fill y .bar-m ya
   existentes (mismo patrón que "Productos habituales" en Ficha de
   Cliente); solo se añaden las reglas nuevas de abajo.
   ============================================================ */

.stat-delta {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted, #8A97A2);
}
.stat-delta.up { color: #2E7D32; }
.stat-delta.down { color: #B23B3B; }

/* Gráfico de dos series (año actual vs. año anterior). Distinto de
   .bar-col/.bar (una sola serie, usado en Histórico de cliente) para no
   interferir con ese componente. */
.chart-dual-legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted, #8A97A2);
  margin: 4px 10px 12px;
}
.chart-dual-legend span { display: flex; align-items: center; gap: 5px; }
.chart-dual-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.chart-dual-swatch-prev { background: var(--muted); }
.chart-dual-swatch-cur { background: var(--blue); }

.chart-dual {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 120px;
  padding: 0 10px;
}

.chart-dual-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-transform: capitalize;
}
.chart-dual-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  justify-content: center;
}
.chart-dual-bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  cursor: pointer;
}
.chart-dual-bar.selected {
  outline: 2px solid var(--blue-dark);
  outline-offset: 1px;
}

/* Lector táctil del gráfico de evolución mensual: sustituye al title
   (tooltip nativo) en móvil, donde no hay hover para verlo. Se actualiza
   al tocar/clicar una barra (ver wireChartEvolucionMensualReadout en
   marlogic.js). */
.chart-dual-readout {
  margin: 6px 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
}
.chart-dual-readout.has-value {
  background: var(--blue-tint);
  border: 1px solid #D5E1F0;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
}
.chart-dual-bar-prev { background: var(--muted); }
.chart-dual-bar-cur { background: var(--blue); }

/* Cajetín de previsión de cierre de año: reutiliza exactamente la misma
   maquetación que tenía el antiguo "ayer vs. mismo día año pasado", solo
   cambia el contenido (ver index.html y loadEstadisticasFacturacion en
   marlogic.js). */
.day-compare-header {
  display:flex;
  align-items:center;  
  margin-bottom: 10px;
}

.day-compare-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 10px;
}
.day-compare-title {
  font-size: 12.5px;
  color: var(--muted, #8A97A2);
  font-weight: 600;
}
.day-compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.day-compare-point {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.day-compare-label {
  font-size: 11px;
  color: var(--muted, #8A97A2);
}
.day-compare-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1B2943);
}
.day-compare-arrow {
  color: var(--muted, #8A97A2);
  flex: 0 0 auto;
}
.day-compare-delta {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
}
.day-compare-delta.up { background: #E6F5EC; color: #2E7D32; }
.day-compare-delta.down { background: #FBEAE7; color: #B23B3B; }

/* Botones "Facturación" / "Rentabilidad" del selector de la evolución
   mensual, justificados a la derecha. #evolucionMensualTabs va anidado
   dentro de un .section-label (display:flex) como único hijo, así que
   justify-content en el propio contenedor no tiene espacio que repartir;
   se empuja con margin-left:auto, el truco estándar para un solo item
   flex. Se usa el id (no .year-tabs genérico) para no afectar al
   selector de años de la ficha de cliente, que reutiliza esa misma clase
   en otro contexto. */
#evolucionMensualTabs {
  margin-left: auto;
}

.provider{
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.card-container{
  display: block;
}

/* Responsive */
/*
@media (max-width: 400px) {
  .commercial-analysis {
    padding: 14px;
  }

  .commercial-analysis-metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
  }
}*/

/* Móvil real: la app ocupa toda la pantalla, sin el marco de maqueta */
@media (max-width: 480px){
  body{
    padding:0;
    background:var(--bg-page);
    align-items:stretch;
    }

  .device{
    width:100%;
    max-width:none;
    background:transparent;
    border-radius:0;
    padding:0;
  }
  .screen{
    border-radius:0;
    min-height:100vh;
  }
  .card-container{
    display: block;
  }
}

/* Escritorio: Ocupa 1024px, sin el marco de maqueta */
@media (min-width: 1024px){
  body{
    padding:0;
    background:var(--secondary);
    align-items:stretch;
  }
  
  .device{
    width:1024px;
    max-width:none;
    background:var(--bg-page);
    border-radius:0;
    padding:0;
  }
  .screen{
    border-radius:0;
    min-height:100vh;
    border-right: solid 1px;
    border-left: solid 1px;
  }

  .card-container{
    display: flex;
  }
}