﻿    :root {
      --azul: #0f2740;
      --azul2: #153757;
      --azul3: #1d4e89;
      --cyan: #00d4ff;
      --cyan2: #00b8e0;
      --gris: #f3f4f6;
      --gris2: #d1d5db;
      --texto: #111827;
    }

    html,
    body {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }


    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* ===== LOGIN ===== */
    #loginScreen {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      background: linear-gradient(135deg, #080808 0%, #111111 50%, #1a1a1a 100%);
      font-family: 'Nunito', sans-serif;
      position: fixed;
      inset: 0;
      z-index: 100;
      overflow: hidden;
    }

    #loginScreen::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 20% 50%, rgba(180, 140, 60, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 140, 60, 0.06) 0%, transparent 50%);
    }

    .login-grid {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(180, 140, 60, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 140, 60, 0.04) 1px, transparent 1px);
      background-size: 50px 50px;
    }

    .login-card {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 440px;
      padding: 48px 40px;
      background: rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(20px);
      border-radius: 20px;
      border: 1px solid rgba(180, 140, 60, 0.35);
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(180, 140, 60, 0.08);
      animation: fadeUp 0.6s ease both;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .login-logos {
      display: flex;
      gap: 20px;
      align-items: center;
      justify-content: center;
      margin-bottom: 32px;
    }

    .login-logos img {
      max-height: 120px;
      max-width: 300px;
      object-fit: contain;
    }

    .login-logos .divider-v {
      width: 1px;
      height: 40px;
      background: rgba(180, 140, 60, 0.4);
    }

    .login-title {
      text-align: center;
      margin-bottom: 8px;
    }

    .login-title h1 {
      font-family: 'Rajdhani', sans-serif;
      font-size: 26px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 1px;
    }

    .login-title p {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.45);
      margin-top: 4px;
    }

    .login-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(180, 140, 60, 0.5), transparent);
      margin: 24px 0;
    }

    .login-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
      margin-bottom: 8px;
    }

    .login-input-wrap {
      position: relative;
      margin-bottom: 20px;
    }

    .login-input-wrap input {
      width: 100%;
      padding: 14px 44px 14px 16px;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: 'Nunito', sans-serif;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .login-input-wrap input:focus {
      border-color: rgba(180, 140, 60, 0.7);
      box-shadow: 0 0 0 3px rgba(180, 140, 60, 0.12);
    }

    .eye-btn {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.35);
      font-size: 18px;
      padding: 0;
      transition: color 0.2s;
    }

    .eye-btn:hover {
      color: rgba(180, 140, 60, 0.9);
    }

    #loginError {
      display: none;
      font-size: 12px;
      color: #ff6b6b;
      margin: -12px 0 16px;
      text-align: center;
    }

    .login-btn {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, #c9a84c, #a07830);
      border: none;
      border-radius: 10px;
      color: #111111;
      font-size: 15px;
      font-weight: 800;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      letter-spacing: 0.5px;
      transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
      box-shadow: 0 4px 20px rgba(180, 140, 60, 0.35);
    }

    .login-btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
      box-shadow: 0 6px 24px rgba(180, 140, 60, 0.45);
    }

    .login-btn:active {
      transform: translateY(0);
    }

    .login-footer {
      text-align: center;
      margin-top: 24px;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.2);
      letter-spacing: 0.5px;
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
    }

    .orb-1 {
      width: 300px;
      height: 300px;
      background: rgba(180, 140, 60, 0.05);
      top: -100px;
      left: -100px;
    }

    .orb-2 {
      width: 400px;
      height: 400px;
      background: rgba(60, 40, 0, 0.12);
      bottom: -150px;
      right: -150px;
    }


    /* ===== HOME ===== */
    #homeScreen {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      min-height: 100vh;
      background: linear-gradient(135deg, #080808 0%, #111111 50%, #1a1a1a 100%);
      font-family: 'Nunito', sans-serif;
      position: fixed;
      inset: 0;
      z-index: 75;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 86px 20px 40px;
    }

    .home-grid {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(180, 140, 60, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 140, 60, 0.04) 1px, transparent 1px);
      background-size: 50px 50px;
      pointer-events: none;
    }

    .home-orb-1 {
      position: absolute;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      background: rgba(180, 140, 60, 0.04);
      filter: blur(100px);
      top: -150px;
      left: -150px;
      pointer-events: none;
    }

    .home-orb-2 {
      position: absolute;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: rgba(60, 40, 0, 0.08);
      filter: blur(120px);
      bottom: -200px;
      right: -200px;
      pointer-events: none;
    }

    #homeConnectLogo {
      max-height: 190px;
      max-width: 580px;
      object-fit: contain;
      display: block;
      position: relative;
      z-index: 2;
      margin-bottom: 12px;
    }

    .home-tagline {
      position: relative;
      z-index: 2;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 40px;
      text-align: center;
    }

    .home-section-title {
      position: relative;
      z-index: 2;
      font-family: 'Rajdhani', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 3px;
      color: rgba(180, 140, 60, 0.7);
      text-transform: uppercase;
      margin-bottom: 24px;
      text-align: center;
    }

    .home-countries {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      max-width: 900px;
      width: 100%;
    }

    .country-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      padding: 36px 28px;
      text-align: center;
      transition: all 0.25s ease;
      position: relative;
      overflow: hidden;
    }

    .country-card.active {
      border-color: rgba(180, 140, 60, 0.4);
      cursor: pointer;
    }

    .country-card.active::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(180, 140, 60, 0.06), transparent);
      border-radius: 20px;
    }

    .country-card.active:hover {
      border-color: rgba(180, 140, 60, 0.8);
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(180, 140, 60, 0.12);
    }

    .country-card.soon {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .country-soon-badge {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(180, 140, 60, 0.15);
      border: 1px solid rgba(180, 140, 60, 0.3);
      border-radius: 20px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.5px;
      color: rgba(180, 140, 60, 0.8);
      padding: 4px 10px;
    }

    .tasa-edit-input {
      width: 100%;
      padding: 6px 10px;
      border: 1.5px solid #e5e7eb;
      border-radius: 8px;
      font-size: 22px;
      font-weight: 800;
      color: #0f2740;
      font-family: 'Rajdhani', sans-serif;
      margin-top: 4px;
      text-align: right;
      background: #fff;
    }

    .tasa-edit-input:focus {
      outline: none;
      border-color: rgba(180, 140, 60, 0.6);
      box-shadow: 0 0 0 3px rgba(180, 140, 60, 0.1);
    }

    .country-flag {
      font-size: 52px;
      margin-bottom: 16px;
      display: block;
      line-height: 1;
    }

    .country-flag-wrap {
      width: 120px;
      height: 80px;
      margin: 0 auto 16px auto;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .country-flag-svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .country-name {
      font-family: 'Rajdhani', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 2px;
      margin-bottom: 8px;
    }

    .country-desc {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: 1px;
      margin-bottom: 20px;
    }

    .country-action {
      display: inline-block;
      padding: 10px 24px;
      background: linear-gradient(135deg, #c9a84c, #a07830);
      border-radius: 30px;
      color: #111;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.5px;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(180, 140, 60, 0.3);
    }

    .country-card.active:hover .country-action {
      filter: brightness(1.1);
      box-shadow: 0 6px 20px rgba(180, 140, 60, 0.45);
    }

    .home-footer {
      position: relative;
      z-index: 2;
      margin-top: 44px;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.15);
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .btn-add-row {
      background: rgba(255, 255, 255, 0.08);
      border: 1px dashed rgba(255, 255, 255, 0.35);
      border-radius: 6px;
      color: rgba(255, 255, 255, 0.75);
      font-size: 12px;
      font-weight: 700;
      padding: 5px 12px;
      cursor: pointer;
      margin-top: 6px;
      transition: all 0.15s;
      font-family: 'Nunito', sans-serif;
    }

    .btn-add-row:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.6);
      color: #fff;
    }

    .btn-add-row.active {
      color: #dc2626;
      border-color: rgba(220, 38, 38, 0.4);
    }

    .cot-topbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 999;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 28px; height: 46px;
      background: rgba(8,10,16,0.82); backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .cot-topbar-brand { display: flex; align-items: center; gap: 9px; }
    .cot-topbar-brand a {
      color: rgba(255,255,255,0.35); text-decoration: none;
      font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
      font-family: 'Nunito', sans-serif;
      transition: color .2s;
    }
    .cot-topbar-brand a:hover { color: rgba(255,255,255,0.75); }
    .cot-topbar-sep { color: rgba(255,255,255,0.2); font-size: 11px; }
    .cot-topbar-title {
      font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
      text-transform: uppercase; color: #d4b278;
      font-family: 'Nunito', sans-serif;
    }

    .btn-home {
      background: rgba(65, 200, 238, 0.08);
      border: 1px solid rgba(65, 200, 238, 0.25);
      color: rgba(65, 200, 238, 0.85);
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: all 0.2s;
      margin-right: 8px;
    }

    .btn-home:hover {
      background: rgba(180, 140, 60, 0.25);
      border-color: rgba(180, 140, 60, 0.6);
    }

    /* ===== APP ===== */
    body {
      font-family: 'Nunito', Arial, sans-serif;
      background: #e9edf2;
      color: var(--texto);
    }

    .app-tabs {
      display: flex;
      gap: 6px;
      padding: 10px 20px;
      padding-top: 56px;
      background: #0e1723;
      border-bottom: 2px solid rgba(65, 200, 238, 0.35);
      align-items: center;
    }

    .tab-btn {
      padding: 8px 20px;
      background: transparent;
      border: 1px solid rgba(65, 200, 238, 0.2);
      border-radius: 8px;
      color: rgba(255, 255, 255, 0.55);
      font-size: 13px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      transition: all 0.2s;
      letter-spacing: 0.4px;
    }

    .tab-btn.active {
      background: #41C8EE;
      border-color: #41C8EE;
      color: #0e1723;
    }

    .tab-btn:not(.active):hover {
      background: rgba(65, 200, 238, 0.1);
      border-color: rgba(65, 200, 238, 0.45);
      color: rgba(255, 255, 255, 0.9);
    }

    .tab-panel {
      display: none;
    }

    .tab-panel.active {
      display: block;
    }

    /* COTIZADOR */
    .wrap {
      display: grid;
      grid-template-columns: 460px 1fr;
      gap: 20px;
      padding: 20px;
      min-height: calc(100vh - 48px);
    }

    .panel {
      background: var(--azul);
      color: #fff;
      border-radius: 14px;
      padding: 20px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
      overflow: auto;
      max-height: calc(100vh - 88px);
    }

    .panel h1 {
      margin: 0 0 10px;
      font-size: 24px;
      font-weight: 800;
      font-family: 'Nunito', sans-serif;
      letter-spacing: 0;
    }

    .panel h2 {
      margin: 22px 0 10px;
      font-size: 14px;
      font-weight: 700;
      padding: 8px 10px;
      background: rgba(255, 255, 255, .08);
      border-radius: 8px;
    }

    .field {
      margin-bottom: 12px;
    }

    .field label {
      display: block;
      font-size: 13px;
      margin-bottom: 6px;
      font-weight: 700;
    }

    .field input,
    .field select {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid rgba(255, 255, 255, .15);
      border-radius: 8px;
      background: #fff;
      color: #111;
      font-size: 14px;
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .row-3 {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 10px;
      align-items: end;
    }

    .checks {
      display: grid;
      gap: 10px;
      margin-top: 8px;
    }

    .check-item {
      background: rgba(255, 255, 255, .07);
      padding: 10px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .08);
    }

    .check-grid {
      display: grid;
      grid-template-columns: 1fr 90px;
      gap: 10px;
      align-items: end;
      margin-top: 8px;
    }

    .check-item label {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      cursor: pointer;
      font-size: 13px;
      line-height: 1.35;
      margin: 0;
    }

    .btns {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }

    button {
      border: none;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .btn-primary {
      background: #ffffff;
      color: var(--azul);
      flex: 1;
    }

    .btn-secondary {
      background: #1d4e89;
      color: #fff;
      flex: 1;
    }

    .preview-wrap {
      overflow: auto;
    }

    .panel-title-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
    }

    .panel-title-wrap h1 {
      margin: 0;
    }

    .panel-copiloto-logo {
      height: 90px;
      object-fit: contain;
      display: block;
      filter: brightness(0) invert(1);
    }

    #quote {
      width: 900px;
      background: #fff;
      margin: 0 auto;
      padding: 0;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
      overflow: hidden;
    }

    .quote-top-bar {
      background: #212E41;
      padding: 14px 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 3px solid #41C8EE;
    }

    .quote-top-bar .brand-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
    }

    .quote-body {
      padding: 18px 28px;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
    }

    .title-block {
      flex: 1;
    }

    .title {
      font-size: 22px;
      font-weight: 700;
      color: #111;
      margin: 0 0 6px;
    }

    .date {
      font-size: 13px;
      margin-bottom: 10px;
    }

    .client-name {
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      margin: 10px 0 6px;
      letter-spacing: .4px;
    }

    .logos {
      display: flex;
      gap: 14px;
      align-items: center;
    }

    .logos img {
      max-height: 80px;
      max-width: 200px;
      object-fit: contain;
      display: block;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    thead th {
      border-bottom: 2px solid #111;
      padding: 5px 5px;
      text-align: left;
      font-weight: 700;
    }

    tbody td {
      border-bottom: 1px solid #d6d6d6;
      padding: 5px 5px;
      vertical-align: top;
    }

    .num {
      text-align: right;
      white-space: nowrap;
    }

    .center {
      text-align: center;
    }

    .summary {
      width: 280px;
      margin-left: auto;
      margin-top: 8px;
      font-size: 12px;
    }

    .summary .line {
      display: flex;
      justify-content: space-between;
      padding: 3px 0;
    }

    .summary .total {
      font-size: 16px;
      font-weight: 700;
      border-top: 2px solid #111;
      margin-top: 6px;
      padding-top: 6px;
    }

    .section-title {
      font-weight: 700;
      margin: 12px 0 5px;
      font-size: 13px;
    }

    .bullets {
      font-size: 11px;
      line-height: 1.35;
      margin: 0;
      padding-left: 16px;
    }

    .bullets li {
      margin-bottom: 2px;
    }

    .footer-text {
      font-size: 11px;
      line-height: 1.35;
      margin-top: 8px;
    }

    .small {
      font-size: 10px;
      line-height: 1.35;
    }

    .email {
      margin-top: 12px;
      font-size: 13px;
    }

    .muted {
      color: #4b5563;
    }

    .quote-box {
      border-top: 1px solid #d1d5db;
      margin-top: 14px;
      padding-top: 14px;
    }

    @media (max-width:1200px) {
      .wrap {
        grid-template-columns: 1fr
      }

      .panel {
        max-height: none
      }

      #quote {
        width: 100%
      }
    }

    /* MAESTRO - COSTOS */
    .tasas-box {
      display: flex;
      gap: 16px;
      margin-bottom: 20px;
      align-items: stretch;
    }

    .tasa-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
      padding: 16px 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex: 1;
    }

    .tasa-card .tasa-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #6b7280;
      margin-bottom: 4px;
    }

    .tasa-card .tasa-val {
      font-size: 22px;
      font-weight: 800;
      color: #0f2740;
      font-family: 'Rajdhani', sans-serif;
    }

    .tasa-card .tasa-badge {
      background: #e0f2fe;
      color: #0369a1;
      font-size: 10px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 10px;
      letter-spacing: 1px;
    }

    .tasa-card .tasa-badge.usd {
      background: #fef3c7;
      color: #92400e;
    }

    .tasa-sync-note {
      font-size: 11px;
      color: #9ca3af;
      margin-top: 2px;
    }

    .maestro-table th.col-costo {
      background: #fffbeb;
      color: #92400e;
    }

    .maestro-table th.col-margen {
      background: #f0fdf4;
      color: #166534;
    }

    .maestro-table td.col-margen {
      font-weight: 700;
    }

    .margen-pos {
      color: #16a34a;
    }

    .margen-neg {
      color: #dc2626;
    }

    .cost-input {
      width: 100px;
      padding: 7px 10px;
      border: 1px solid #fbbf24;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      text-align: right;
      color: #92400e;
      background: #fffbeb;
    }

    .cost-input:focus {
      outline: none;
      border-color: #d97706;
      box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    }

    .moneda-badge {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 10px;
      letter-spacing: 1px;
      margin-left: 4px;
    }

    .moneda-clp {
      background: #e0f2fe;
      color: #0369a1;
    }

    .moneda-usd {
      background: #fef3c7;
      color: #92400e;
    }

    .moneda-uf {
      background: #d1fae5;
      color: #065f46;
    }

    /* MAESTRO */
    .maestro-wrap {
      padding: 24px;
      max-width: 900px;
      margin: 0 auto;
    }

    .maestro-header {
      background: var(--azul);
      color: #fff;
      border-radius: 14px;
      padding: 20px 24px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .maestro-header h2 {
      font-family: 'Rajdhani', sans-serif;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .maestro-header p {
      font-size: 13px;
      opacity: 0.6;
      margin-top: 2px;
    }

    .maestro-section {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
      margin-bottom: 16px;
      overflow: hidden;
    }

    .maestro-section-title {
      background: var(--azul2);
      color: #fff;
      padding: 12px 18px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .maestro-table {
      width: 100%;
      border-collapse: collapse;
    }

    .maestro-table th {
      padding: 10px 14px;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #6b7280;
      background: #f9fafb;
      text-align: left;
      border-bottom: 1px solid #e5e7eb;
    }

    .maestro-table td {
      padding: 10px 14px;
      border-bottom: 1px solid #f3f4f6;
      font-size: 14px;
      vertical-align: middle;
    }

    .maestro-table tr:last-child td {
      border-bottom: none;
    }

    .maestro-table .item-name {
      font-weight: 600;
      color: #111;
    }

    .maestro-table .item-type {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      background: #e0f2fe;
      color: #0369a1;
    }

    .maestro-table .item-type.usd {
      background: #fef3c7;
      color: #92400e;
    }

    .maestro-table .item-type.uf {
      background: #d1fae5;
      color: #065f46;
    }

    .maestro-table .item-type.cotizar {
      background: #f3f4f6;
      color: #6b7280;
    }

    .precio-input {
      width: 130px;
      padding: 7px 10px;
      border: 1px solid #d1d5db;
      border-radius: 7px;
      font-size: 14px;
      font-weight: 600;
      text-align: right;
      color: #111;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .precio-input:focus {
      outline: none;
      border-color: #0f2740;
      box-shadow: 0 0 0 3px rgba(15, 39, 64, 0.08);
    }

    .precio-input:disabled {
      background: #f3f4f6;
      color: #9ca3af;
      cursor: not-allowed;
    }

    .maestro-save-btn {
      background: linear-gradient(135deg, #0f2740, #1d4e89);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 12px 28px;
      font-size: 14px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 16px rgba(15, 39, 64, 0.25);
      transition: all 0.2s;
    }

    .maestro-save-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(15, 39, 64, 0.35);
    }

    /* ── IMPORTAR EXCEL ── */
    .import-panel {
      background: rgba(15,39,64,0.35); border: 1px solid rgba(0,180,224,0.2);
      border-radius: 14px; padding: 20px 24px; margin-bottom: 24px;
    }
    .import-panel-title {
      font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
      color: #00c8f0; margin-bottom: 14px;
    }
    .import-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .import-select {
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
      color: #e0e8f0; font-family: 'Nunito', sans-serif; font-size: 13px;
      padding: 8px 12px; border-radius: 8px; cursor: pointer; outline: none;
    }
    .import-select option { background: #0e1723; }
    .import-btn {
      background: rgba(0,180,224,0.12); border: 1px solid rgba(0,180,224,0.35);
      color: #00c8f0; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
      padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: all .2s;
      letter-spacing: 0.05em;
    }
    .import-btn:hover { background: rgba(0,180,224,0.22); border-color: rgba(0,180,224,0.6); }
    .import-btn.gold {
      background: rgba(184,151,90,0.12); border-color: rgba(184,151,90,0.35);
      color: #d4b278;
    }
    .import-btn.gold:hover { background: rgba(184,151,90,0.22); border-color: rgba(184,151,90,0.6); }
    .import-status {
      font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 10px; min-height: 16px;
    }
    .import-status.ok  { color: #4ade80; }
    .import-status.err { color: #f87171; }
    #import-file-input { display: none; }

    /* Locked price/cost inputs */
    .precio-input:disabled,
    .cost-input:disabled {
      background: #f1f5f9;
      color: #94a3b8;
      cursor: not-allowed;
      border-color: #e2e8f0 !important;
    }

    /* Edit unlock button */
    .maestro-unlock-btn {
      background: linear-gradient(135deg, #92400e, #d97706);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 12px 22px;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 14px rgba(180, 100, 0, 0.25);
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .maestro-unlock-btn.unlocked {
      background: linear-gradient(135deg, #166534, #16a34a);
      box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
    }

    .maestro-unlock-btn:hover {
      transform: translateY(-1px);
    }

    /* Add service button */
    .maestro-add-svc-btn {
      background: linear-gradient(135deg, #0e7490, #0891b2);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 12px 22px;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .maestro-add-svc-btn:hover {
      transform: translateY(-1px);
    }

    /* Modal overlay */
    .m-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10, 20, 40, 0.55);
      z-index: 10000;
      align-items: center;
      justify-content: center;
    }

    .m-modal-overlay.open {
      display: flex;
    }

    /* Modal box */
    .m-modal {
      background: #fff;
      border-radius: 16px;
      padding: 36px 40px 32px;
      max-width: 460px;
      width: 94%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
      position: relative;
    }

    .m-modal-title {
      font-size: 18px;
      font-weight: 800;
      color: #0f2740;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .m-modal label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: #374151;
      margin-bottom: 4px;
      margin-top: 14px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .m-modal label:first-of-type {
      margin-top: 0;
    }

    .m-modal input[type=text],
    .m-modal input[type=password],
    .m-modal input[type=number],
    .m-modal select {
      width: 100%;
      border: 1.5px solid #d1d5db;
      border-radius: 8px;
      padding: 9px 13px;
      font-size: 14px;
      font-family: 'Nunito', sans-serif;
      color: #1f2937;
      background: #f9fafb;
      box-sizing: border-box;
      outline: none;
      transition: border 0.15s;
    }

    .m-modal input:focus,
    .m-modal select:focus {
      border-color: #41C8EE;
      background: #fff;
    }

    .m-modal-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .m-modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 24px;
      justify-content: flex-end;
    }

    .m-modal-btn-primary {
      background: linear-gradient(135deg, #0f2740, #1d4e89);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 24px;
      font-size: 14px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      box-shadow: 0 3px 10px rgba(15, 39, 64, 0.2);
      transition: all 0.15s;
    }

    .m-modal-btn-primary:hover {
      transform: translateY(-1px);
    }

    .m-modal-btn-cancel {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 600;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
    }

    .m-modal-error {
      color: #dc2626;
      font-size: 12px;
      font-weight: 600;
      margin-top: 8px;
      display: none;
    }

    /* Custom row delete button - only visible in edit mode */
    .custom-del-btn {
      display: none;
      align-items: center;
      justify-content: center;
      background: none;
      border: 1.5px solid #fca5a5;
      border-radius: 6px;
      color: #ef4444;
      font-size: 13px;
      font-weight: 700;
      width: 28px;
      height: 28px;
      cursor: pointer;
      padding: 0;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .custom-del-btn:hover {
      background: #fee2e2;
      border-color: #ef4444;
    }

    /* Show delete buttons only when maestro is in edit mode */
    .maestro-edit-mode .custom-del-btn {
      display: inline-flex;
    }

    .m-modal-close {
      position: absolute;
      top: 14px;
      right: 18px;
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: #9ca3af;
      line-height: 1;
    }

    /* ===== SOLUTION PICKER ===== */
    #solutionScreen {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      min-height: 100vh;
      background: linear-gradient(135deg, #080808 0%, #111111 50%, #1a1a1a 100%);
      font-family: 'Nunito', sans-serif;
      position: fixed;
      inset: 0;
      z-index: 75;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 86px 20px 40px;
    }

    .svc-grid-bg {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(65, 200, 238, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 200, 238, 0.03) 1px, transparent 1px);
      background-size: 50px 50px;
      pointer-events: none;
    }

    .svc-back-btn {
      position: absolute;
      top: 58px;
      left: 28px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: rgba(255, 255, 255, 0.6);
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
      transition: all 0.2s;
      z-index: 2;
    }

    .svc-back-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    #svcConnectLogo {
      max-height: 190px;
      max-width: 580px;
      object-fit: contain;
      position: relative;
      z-index: 2;
      margin-bottom: 6px;
    }

    .svc-country-badge {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2.5px;
      color: rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
      margin-bottom: 36px;
      position: relative;
      z-index: 2;
    }

    .svc-section-title {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: #41C8EE;
      margin-bottom: 28px;
      position: relative;
      z-index: 2;
    }

    .svc-cards {
      display: flex;
      gap: 24px;
      justify-content: center;
      flex-wrap: wrap;
      position: relative;
      z-index: 2;
    }

    .svc-card {
      width: 300px;
      padding: 32px 24px 28px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      cursor: pointer;
      transition: all 0.25s;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .svc-card.copiloto {
      background: linear-gradient(145deg, #0a1626, #0f2740);
      border-color: rgba(65, 200, 238, 0.35);
      box-shadow: 0 0 40px rgba(65, 200, 238, 0.08);
    }

    .svc-card.copiloto:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(65, 200, 238, 0.2);
      border-color: rgba(65, 200, 238, 0.65);
    }

    .svc-card.dimo {
      background: linear-gradient(145deg, #180808, #240e0e);
      border-color: rgba(255, 50, 50, 0.2);
    }

    .svc-card.wicar {
      background: linear-gradient(145deg, #180c04, #251408);
      border-color: rgba(255, 122, 32, 0.2);
    }

    .svc-card.svc-soon {
      opacity: 0.65;
      cursor: not-allowed;
    }

    .svc-card.svc-soon:hover {
      transform: none;
    }

    .svc-soon-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.5px;
      padding: 4px 10px;
      border-radius: 20px;
      text-transform: uppercase;
    }

    .svc-card.dimo .svc-soon-badge {
      background: rgba(255, 50, 50, 0.15);
      color: rgba(255, 80, 80, 0.9);
      border: 1px solid rgba(255, 50, 50, 0.3);
    }

    .svc-card.wicar .svc-soon-badge {
      background: rgba(255, 122, 32, 0.15);
      color: rgba(255, 140, 60, 0.9);
      border: 1px solid rgba(255, 122, 32, 0.3);
    }

    .svc-logo-wrap {
      width: 100%;
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      padding: 10px 0;
    }

    .svc-logo-wrap img {
      max-width: 260px;
      max-height: 150px;
      object-fit: contain;
    }

    .svc-name {
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #fff;
      margin-bottom: 8px;
    }

    .svc-card.copiloto .svc-name {
      color: #41C8EE;
    }

    .svc-card.dimo .svc-name {
      color: #ff5050;
    }

    .svc-card.wicar .svc-name {
      color: #ff8c3a;
    }

    .svc-desc {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.45);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .svc-action {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1px;
      padding: 9px 22px;
      border-radius: 24px;
      border: none;
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
      transition: all 0.2s;
    }

    .svc-card.copiloto .svc-action {
      background: #41C8EE;
      color: #0e1723;
    }

    .svc-card.copiloto .svc-action:hover {
      background: #5dd5f2;
    }

    .svc-footer {
      position: relative;
      z-index: 2;
      margin-top: 40px;
      font-size: 11px;
      letter-spacing: 2px;
      color: rgba(255, 255, 255, 0.2);
      text-transform: uppercase;
    }

    .save-toast {
      display: none;
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #111;
      color: #fff;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
      animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
      from {
        transform: translateX(100px);
        opacity: 0;
      }

      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* ====== COWIDI WIDGET ====== */
    #cowidiWidget {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      font-family: 'Nunito', sans-serif;
    }

    #cowidiToggleBtn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #212E41;
      border: 1px solid rgba(65, 200, 238, 0.5);
      border-radius: 50px;
      padding: 10px 18px 10px 10px;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(65, 200, 238, 0.12);
      transition: all 0.2s;
      color: #41C8EE;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    #cowidiToggleBtn:hover {
      border-color: rgba(65, 200, 238, 0.85);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(65, 200, 238, 0.2);
    }

    .cowidi-icon-wrap {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #41C8EE, #1d9fc2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 900;
      color: #fff;
      letter-spacing: -0.5px;
    }

    #cowidiPanel {
      position: absolute;
      bottom: 56px;
      right: 0;
      width: 370px;
      background: #1a2535;
      border: 1px solid rgba(65, 200, 238, 0.25);
      border-radius: 16px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(65, 200, 238, 0.06);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-height: 520px;
      transform-origin: bottom right;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    #cowidiPanel.cowidi-hidden {
      transform: scale(0.85) translateY(10px);
      opacity: 0;
      pointer-events: none;
    }

    .cowidi-header {
      background: #212E41;
      border-bottom: 2px solid #41C8EE;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .cowidi-header-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cowidi-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #41C8EE, #1d9fc2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 900;
      color: #fff;
    }

    .cowidi-header-name {
      font-size: 14px;
      font-weight: 800;
      color: #41C8EE;
      letter-spacing: 0.5px;
    }

    .cowidi-header-status {
      font-size: 11px;
      color: #4ade80;
      font-weight: 600;
    }

    .cowidi-header-btn {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.4);
      font-size: 20px;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      line-height: 1;
      transition: color 0.15s;
    }

    .cowidi-header-btn:hover {
      color: #41C8EE;
    }

    .cowidi-messages {
      flex: 1;
      overflow-y: auto;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 280px;
      max-height: 360px;
      background: #1a2535;
    }

    .cowidi-messages::-webkit-scrollbar {
      width: 4px;
    }

    .cowidi-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    .cowidi-messages::-webkit-scrollbar-thumb {
      background: rgba(65, 200, 238, 0.3);
      border-radius: 2px;
    }

    .cowidi-msg {
      max-width: 88%;
      padding: 10px 13px;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
    }

    .cowidi-msg.bot {
      background: #212E41;
      border: 1px solid rgba(65, 200, 238, 0.18);
      color: #e2eaf4;
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }

    .cowidi-msg.user {
      background: rgba(65, 200, 238, 0.15);
      border: 1px solid rgba(65, 200, 238, 0.3);
      color: rgba(255, 255, 255, 0.92);
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }

    .cowidi-msg strong {
      color: #41C8EE;
    }

    .cowidi-msg .cowidi-tag {
      display: inline-block;
      background: rgba(65, 200, 238, 0.12);
      border: 1px solid rgba(65, 200, 238, 0.3);
      color: #41C8EE;
      border-radius: 4px;
      padding: 1px 6px;
      font-size: 11px;
      font-weight: 700;
      margin: 2px 0;
    }

    .cowidi-input-row {
      padding: 10px 12px;
      border-top: 1px solid rgba(65, 200, 238, 0.15);
      display: flex;
      gap: 8px;
      background: #212E41;
    }

    #cowidiInput {
      flex: 1;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(65, 200, 238, 0.25);
      border-radius: 8px;
      padding: 8px 12px;
      color: #fff;
      font-size: 13px;
      font-family: 'Nunito', sans-serif;
      outline: none;
      transition: border-color 0.2s;
    }

    #cowidiInput:focus {
      border-color: rgba(65, 200, 238, 0.7);
    }

    #cowidiInput::placeholder {
      color: rgba(255, 255, 255, 0.3);
    }

    #cowidiSendBtn {
      background: #41C8EE;
      border: none;
      border-radius: 8px;
      padding: 8px 14px;
      color: #212E41;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.2s;
      font-weight: 900;
    }

    #cowidiSendBtn:hover {
      background: #5dd4f0;
    }

    .cowidi-quick-btns {
      padding: 0 12px 10px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      background: #212E41;
    }

    .cowidi-quick-btn {
      background: rgba(65, 200, 238, 0.1);
      border: 1px solid rgba(65, 200, 238, 0.25);
      border-radius: 20px;
      padding: 4px 10px;
      font-size: 11px;
      color: rgba(65, 200, 238, 0.85);
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .cowidi-quick-btn:hover {
      background: rgba(65, 200, 238, 0.2);
      color: #41C8EE;
      border-color: rgba(65, 200, 238, 0.5);
    }

/* ===== GENERIC APP SCREEN (DIMO / WiCar) ===== */
    #genericAppScreen {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 80;
      overflow-y: auto;
      background: #f3f4f6;
      padding-top: 58px;
      font-family: 'Nunito', sans-serif;
    }
    .g-tabs {
      display: flex;
      gap: 0;
      background: #fff;
      border-bottom: 2px solid #e5e7eb;
      padding: 0 24px;
      position: sticky;
      top: 58px;
      z-index: 10;
    }
    .g-tab {
      padding: 14px 22px;
      font-size: 13px;
      font-weight: 700;
      color: #6b7280;
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
      transition: all 0.2s;
      margin-bottom: -2px;
    }
    .g-tab.active { color: #0f2740; border-bottom-color: #0f2740; }
    .g-tab-content { display: none; padding: 28px 24px 60px; max-width: 900px; margin: 0 auto; }
    .g-tab-content.active { display: block; }
    /* Maestro */
    .g-maestro-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
    }
    .g-maestro-title { font-size: 18px; font-weight: 800; color: #0f2740; }
    .g-maestro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .g-btn {
      padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
      cursor: pointer; font-family: 'Nunito', sans-serif; border: none; transition: all 0.2s;
    }
    .g-btn-primary { background: #0f2740; color: #fff; }
    .g-btn-primary:hover { background: #1d4e89; }
    .g-btn-secondary { background: #e5e7eb; color: #374151; }
    .g-btn-secondary:hover { background: #d1d5db; }
    .g-btn-danger { background: #fee2e2; color: #b91c1c; }
    .g-btn-danger:hover { background: #fecaca; }
    .g-btn-sm { padding: 5px 12px; font-size: 11px; border-radius: 6px; }
    /* Lock screen */
    .g-lock-screen {
      background: #fff; border-radius: 14px; padding: 40px;
      text-align: center; border: 1px solid #e5e7eb;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .g-lock-icon { font-size: 40px; margin-bottom: 16px; }
    .g-lock-title { font-size: 18px; font-weight: 800; color: #0f2740; margin-bottom: 8px; }
    .g-lock-desc { font-size: 13px; color: #6b7280; margin-bottom: 24px; }
    .g-lock-input {
      border: 1.5px solid #d1d5db; border-radius: 8px; padding: 10px 14px;
      font-size: 14px; font-family: 'Nunito', sans-serif; width: 240px;
      margin-right: 10px; outline: none;
    }
    .g-lock-input:focus { border-color: #0f2740; }
    /* Service table */
    .g-service-table {
      width: 100%; border-collapse: collapse; background: #fff;
      border-radius: 12px; overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-top: 8px;
    }
    .g-service-table th {
      background: #0f2740; color: #fff; padding: 12px 16px;
      font-size: 11px; font-weight: 800; letter-spacing: 1px;
      text-transform: uppercase; text-align: left;
    }
    .g-service-table td {
      padding: 12px 16px; font-size: 13px; color: #374151;
      border-bottom: 1px solid #f3f4f6; vertical-align: middle;
    }
    .g-service-table tr:last-child td { border-bottom: none; }
    .g-service-table tr:hover td { background: #f9fafb; }
    .g-empty-state {
      text-align: center; padding: 60px 20px; background: #fff;
      border-radius: 12px; border: 2px dashed #e5e7eb;
      color: #9ca3af; font-size: 14px;
    }
    .g-empty-icon { font-size: 40px; margin-bottom: 12px; }
    .g-category-badge {
      display: inline-block; padding: 3px 10px; border-radius: 20px;
      font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    }
    .g-cat-hardware  { background: #dbeafe; color: #1d4ed8; }
    .g-cat-software  { background: #dcfce7; color: #15803d; }
    .g-cat-servicio  { background: #fef9c3; color: #a16207; }
    .g-cat-membresia { background: #f3e8ff; color: #7e22ce; }
    .g-cat-otro      { background: #f3f4f6; color: #374151; }
    /* Cotizador genérico */
    .g-cot-section { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; border: 1px solid #e5e7eb; }
    .g-cot-section-title { font-size: 13px; font-weight: 800; color: #0f2740; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
    .g-client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .g-field-label { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
    .g-field-input {
      width: 100%; border: 1.5px solid #d1d5db; border-radius: 8px;
      padding: 9px 12px; font-size: 13px; font-family: 'Nunito', sans-serif; outline: none;
    }
    .g-field-input:focus { border-color: #0f2740; }
    .g-service-picker { display: flex; flex-direction: column; gap: 10px; }
    .g-picker-row {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
      background: #fafafa; transition: border-color 0.2s;
    }
    .g-picker-row:hover { border-color: #0f2740; }
    .g-picker-check { width: 18px; height: 18px; cursor: pointer; accent-color: #0f2740; }
    .g-picker-name { flex: 1; font-size: 13px; font-weight: 700; color: #0f2740; }
    .g-picker-desc { font-size: 11px; color: #6b7280; }
    .g-picker-price { font-size: 13px; font-weight: 700; color: #0f2740; white-space: nowrap; }
    .g-picker-qty {
      width: 70px; border: 1.5px solid #d1d5db; border-radius: 6px;
      padding: 6px 8px; font-size: 13px; font-family: 'Nunito', sans-serif;
      text-align: center; outline: none;
    }
    .g-picker-qty:focus { border-color: #0f2740; }
    /* Quote total */
    .g-quote-total {
      background: #0f2740; color: #fff; border-radius: 12px;
      padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    }
    .g-quote-total-label { font-size: 13px; font-weight: 700; opacity: 0.7; }
    .g-quote-total-amount { font-size: 28px; font-weight: 800; color: #41C8EE; }
    /* Modal */
    #gServiceModal {
      display: none; position: fixed; inset: 0; z-index: 200;
      background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
    }
    #gServiceModal.open { display: flex; }
    .g-modal-box {
      background: #fff; border-radius: 16px; padding: 32px;
      width: 520px; max-width: 95vw; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .g-modal-title { font-size: 18px; font-weight: 800; color: #0f2740; margin-bottom: 24px; }
    .g-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .g-modal-full { grid-column: 1 / -1; }
    .g-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
    /* ── CSP migration: classes replacing inline style="" (2026-08) ── */
    .is-hidden.is-hidden { display: none; }
    .login-error-msg { color: #94a3b8; font-size: 13px; text-align: center; padding: 8px 0; }
    .svc-logo-invert { filter: brightness(0) invert(1); }
    .app-screen-base { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #0b1525; }
    .rate-fecha-label { font-weight: 400; color: #9ca3af; font-size: 11px; }
    .rate-input-readonly { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
    .row-3--mt { margin-top: 8px; }
    .field--flush { margin: 0; }
    .label-sm { font-size: 12px; }
    .field--mt12 { margin-top: 12px; }
    .mem2-row { margin-top: 8px; }
    .logo-black { filter: brightness(0); }
    .col-item { width: 55px; }
    .col-unidad { width: 80px; }
    .col-cantidad { width: 85px; }
    .col-precio { width: 150px; }
    .col-subtotal { width: 140px; }
    .pais-label-accent { color: #00c8f0; font-weight: 700; }
    .header-actions-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
    .import-ctx-accent { color: #d4b278; }
    .tasa-card--note { background: #f0fdf4; flex: 1.5; }
    .full-width { width: 100%; }
    .tasa-label--green { color: #166534; }
    .tasa-note-text { font-size: 12px; color: #374151; margin-top: 4px; line-height: 1.5; }
    .cost-input--disabled-text { color: #9ca3af; }
    .svc-back-btn--fixed-alt { position: fixed; top: 68px; left: 20px; z-index: 90; }
    .g-cot-section--flush { padding: 0; overflow: hidden; }
    .g-quote-client-label { font-size: 11px; opacity: 0.5; margin-top: 2px; }
    .g-actions-row { display: flex; gap: 12px; margin-top: 16px; }
    .g-maestro-sub-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
    .g-btn--label { margin: 0; cursor: pointer; }
    .g-modal-margen-preview { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
    .cowidi-avatar-img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
    .cowidi-icon-img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
    /* Dinámicas (generadas por cotizador.js) */
    .empty-row { padding: 18px; }
    .g-svc-desc-sub { color: #6b7280; font-size: 11px; }
    .g-actions-cell { white-space: nowrap; }
    .g-picker-info { flex: 1; }
    .g-picker-unit { font-size: 10px; color: #9ca3af; }
