:root {
    --teal: #4fc8a0;
    --teal-bg: #eaf7f1;
    --blue: #2563eb;
    --blue-dark: #1442b0;
    --amber: #f5c842;
    --amber-bg: #fef8e8;
    --text-primary: #0b1120;
    --text-secondary: #465065;
    --text-muted: #667089;
    --border: #d9e0ec;
    --field-bg: #f4f6fa;
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  * { box-sizing: border-box; }
/* /// Start Custom */
  .lote-checkout-wrp {
/* /// End Custom */
    margin: 0;
    background: #f4f6fa;
    font-family: var(--font-body);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    padding: 32px 16px 80px;
  }

  .pais-select::-webkit-scrollbar,
  #prefijo::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    
  }

  .pais-select::-webkit-scrollbar-thumb,
  #prefijo::-webkit-scrollbar-thumb {

   background-color:rgb(213, 237, 250);
   border-radius: 30px;
  }

  .page { width: 100%; max-width: 420px; }

  .aviso-card {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px 20px 20px;
    position: relative;
    isolation: isolate;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 24px 50px -20px rgba(4, 10, 30, 0.28);
  }

  .aviso-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

  .aviso-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(150deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.6);
  }

  .aviso-icon svg { width: 17px; height: 17px; }

  .aviso-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
  }

  .manifiesto-autopilot {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 0 10px;
    padding-left: 1px;
  }

  .beneficios-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 16px; }

  .chip-beneficio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--teal-bg);
    border: 1px solid #cdeee0;
    border-radius: 999px;
    padding: 6px 11px 6px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0e6b4d;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  .chip-beneficio svg { width: 12px; height: 12px; flex-shrink: 0; }

  .campo { margin-bottom: 11px; }
  .campo label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
  .opcional { font-size: 10.5px; font-weight: 500; color: var(--text-muted); }

  .campo-error { display: none; font-size: 11.5px; color: #d43f3f; margin-top: 5px; }
  .campo.error .campo-error { display: block; }

  .campo select,
  .campo input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-primary);
    background: var(--field-bg);
    border: 1.75px solid var(--border);
    border-radius: 13px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .campo select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 38px;
  }

  .campo-lote input { font-family: var(--font-display); font-weight: 700; text-align: center; letter-spacing: 0.05em; font-size: 18px; }
  .campo input::placeholder, .campo select:invalid { color: var(--text-muted); }
  .campo input:focus, .campo select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
  .campo.error input, .campo.error select { border-color: #e15b5b; }

  .ejemplo-fuente { display: block; font-size: 11px; color: var(--text-muted); margin-top: 6px; }
  .ejemplo-fuente b { color: var(--blue); font-weight: 800; }

  .aviso-nota {
    display: block;
    font-size: 11.5px;
    color: var(--blue-dark);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 8px;
    padding: 7px 9px;
    margin-top: 8px;
  }

  .fila-precio {
    display: flex; justify-content: space-between; align-items: baseline;
    background: var(--field-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 11px 14px; margin: 4px 0 14px; font-size: 12.5px;
  }

  .fila-precio span:first-child { color: var(--text-primary); font-weight: 600; }
  .fila-precio span:last-child { font-family: var(--font-display); font-weight: 800; font-size: 16px; }

  .lote-info {
    background: var(--teal-bg);
    border: 1px solid #cdeee0;
    border-radius: 12px;
    padding: 4px 14px;
    margin: 4px 0 14px;
    font-size: 12.5px;
  }
  .lote-info .fila { display: flex; justify-content: space-between; padding: 3px 0; }
  .lote-info .fila span:first-child { color: var(--text-muted); }
  .lote-info .fila span:last-child { font-family: var(--font-display); font-weight: 700; }
  #loteUsuarioTexto { color: #8a6d1a; }
  #loteActualTexto { color: #0e6b4d; }
  .lote-info .faltan span:last-child { color: #8a6d1a; font-size: 15px; }

  .lote-actual-oficina {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: var(--teal-bg);
    border: 1px solid #cdeee0;
    border-radius: 10px;
    padding: 8px 12px;
    margin: -3px 0 11px;
    font-size: 12px;
  }

  .lote-actual-oficina span:first-child { color: var(--text-muted); }
  .lote-actual-oficina span:last-child { font-family: var(--font-display); font-weight: 700; color: #0e6b4d; }
  .info-oculto { display: none; }

  .resumen-personal {
    background: var(--field-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
  }

  .fila-r {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .fila-r:not(:last-child) { border-bottom: 1px solid var(--border); }
  .fila-r > span:first-child { color: var(--text-muted); flex-shrink: 0; }
  .fila-r > span:nth-child(2) { flex: 1; text-align: right; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); }
  .fila-actual-r { background: var(--teal-bg); }
  .fila-actual-r span:nth-child(2) { color: #0e6b4d; }
  .fila-faltan-r { background: var(--amber-bg); }
  .fila-faltan-r span:nth-child(2) { color: #8a6d1a; font-size: 15px; }

  .btn-editar-r {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
  }

  .whatsapp-row { display: flex; align-items: stretch; gap: 8px; }

  .pais-select {
    display: flex; align-items: center; width: 52px; height: 47px;
    background: var(--field-bg); border: 1.75px solid var(--border);
    border-radius: 13px; font-size: 14px; font-weight: 600; flex-shrink: 0;
  }

  .pais-select select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    border: none; background: transparent; font-family: var(--font-body);
    font-size: 14px; color: var(--text-primary); padding: 0 4px; margin: 0;
    height: 100%; line-height: 1; outline: none;
    text-align: center;
    cursor:pointer;
  }

  .whatsapp-row input { flex: 1; height: 47px; padding-top: 0; padding-bottom: 0; }

  .consentimientos {
    background: var(--field-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .consentimiento-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; cursor: pointer;
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .consentimiento-item:not(:last-child) { border-bottom: 1px solid var(--border); }
  .consentimiento-item input { width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
  .consentimiento-item span { margin-top: 2px;font-size: 11px; color: var(--text-secondary); }
  .consentimiento-item a { color: var(--blue); text-decoration: underline; }
  .consentimiento-item.error { background: rgba(225, 91, 91, 0.06); }

  .consentimiento-item.oculto {
    max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
    border-bottom-width: 0; overflow: hidden; pointer-events: none;
  }

  .btn-activar {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: none;
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 16px 28px -12px rgba(37, 99, 235, 0.65), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  }

  .btn-activar:hover { transform: translateY(-1px); }
  .btn-activar:active { transform: translateY(0); }
  .btn-activar:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
  .btn-activar svg { width: 16px; height: 16px; flex-shrink: 0; }

  .nota-seguro { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

  .aviso-metodos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .metodo { display: flex; align-items: center; gap: 3px; font-family: var(--font-body); font-weight: 700; font-size: 12px; color: var(--text-muted); }
  .metodo svg { height: 14px; width: auto; flex-shrink: 0; }
  .metodo.apple { color: var(--text-primary); }
  .metodo.visa { color: #1a1f71; }
  .metodo.bizum { color: #00c1de; font-style: italic; }
  .metodo.paypal { color: #003087; }

  .aviso-disclaimer-corto { text-align: center; font-size: 10.5px; color: var(--text-muted); margin-top: 10px; }

  @keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
  .shake { animation: shake 0.3s ease; }

  @media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

  .modal-overlay {
    position: fixed; inset: 0; background: rgba(10, 22, 40, 0.55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  }

  .modal-overlay.visible { opacity: 1; pointer-events: auto; }
/* /// Start Custom */
  .modal-lt {
/* /// End Custom */
    width: 100%; max-width: 340px; background: #fff; border-radius: 20px;
    padding: 24px 22px 20px; text-align: center;
    transform: translateY(8px) scale(0.98); transition: transform 0.2s ease;
    box-shadow: 0 40px 80px -20px rgba(4, 10, 30, 0.5);
  }

/* /// Start Custom */
  .modal-overlay.visible .modal-lt { transform: translateY(0) scale(1); }
/* /// End Custom */
  .modal-check {
    width: 48px; height: 48px; border-radius: 50%; background: rgba(79, 200, 160, 0.15);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  }

  .modal-check svg { width: 24px; height: 24px; color: var(--teal); }
/* /// Start Custom */
  .modal-lt h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-primary); margin: 0 0 4px; }
  .modal-lt p.sub { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 16px; }
/* /// End Custom */

  .modal-resumen {
    text-align: left; background: var(--field-bg); border: 1px solid var(--border);
    border-radius: 13px; padding: 12px 14px; margin-bottom: 16px;
  }

  .modal-resumen .fila { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px; }
  .modal-resumen .fila:not(:last-child) { border-bottom: 1px solid var(--border); }
  .modal-resumen .fila span:first-child { color: var(--text-muted); flex-shrink: 0; }
  .modal-resumen .fila span:last-child { color: var(--text-primary); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: break-word; }
  .modal-resumen .fila span:last-child .linea { display: block; }

  .modal-cerrar {
    width: 100%; border: none; border-radius: 13px; padding: 12px;
    background: linear-gradient(180deg, var(--blue), var(--blue-dark)); color: #fff;
    font-family: var(--font-body); font-weight: 700; font-size: 14px; cursor: pointer;
  }