:root {
            --naranja-header: #f39c38;
            --naranja-activo: #e8963e;
            --naranja-placeholder: #efc392;
            --naranja-boton: #f7b975;
            --gris-icono: #888888;
            --rojo-error: #a80000;
            --gris-fondo-tarjeta: #fafafa;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
        body { background-color: #e0e0e0; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
        .mobile-container { width: 100%; max-width: 400px; background: #fff; height: 100vh; max-height: 850px; box-shadow: 0 4px 15px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; position: relative; }

        /* Header */
        .app-header { background: var(--naranja-header); display: flex; align-items: center; padding: 15px 20px; color: #fff; z-index: 10; }
        .back-btn { color: #fff; text-decoration: none; font-size: 20px; margin-right: 15px; }
        .logo-container { background: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-right: 15px; overflow: hidden; }
        .logo-container img { width: 100%; height: 100%; object-fit: cover; }
        .header-title { font-size: 22px; font-weight: 400; }

        /* Stepper */
        .app-content { padding: 30px 20px; flex-grow: 1; overflow-y: auto; position: relative; }
        .stepper { display: flex; flex-direction: column; height: 100%; }
        .step { display: flex; align-items: stretch; }
        .step-icon-col { display: flex; flex-direction: column; align-items: center; margin-right: 15px; width: 32px; }
        .icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; flex-shrink: 0; color: #fff; }
        .active-circle { background: var(--naranja-activo); }
        .inactive-circle { background: var(--gris-icono); }
        .vertical-line { width: 2px; background: #e0e0e0; flex-grow: 1; margin: 5px 0; min-height: 20px; }
        .step-content { flex-grow: 1; padding-bottom: 25px; min-width: 0; }
        .step-title { font-size: 16px; font-weight: 500; margin-top: 5px; }
        .active-text { color: var(--naranja-activo); }
        .inactive-text { color: var(--gris-icono); }

        /* Paso 1 */
        .form-container { margin-top: 15px; }
        .instruction-text { font-size: 15px; color: #333; line-height: 1.5; margin-bottom: 25px; }
        .input-group { display: flex; flex-direction: column; margin-bottom: 20px; }
        .input-wrapper { display: flex; align-items: center; border-bottom: 2px solid var(--naranja-activo); padding-bottom: 8px; }
        .svg-icon { fill: var(--gris-icono); width: 24px; height: 24px; margin-right: 10px; flex-shrink: 0; }
        .custom-input { border: none; outline: none; font-size: 16px; width: 100%; background: transparent; }
        .custom-input::placeholder { color: var(--naranja-placeholder); }
        .input-wrapper.error { border-bottom-color: var(--rojo-error); }
        .custom-input.error { color: var(--rojo-error); }
        .svg-icon.error { fill: var(--rojo-error); }
        .error-icon { color: var(--rojo-error); font-size: 20px; margin-left: 10px; display: none; }
        .error-icon.show { display: block; }
        .error-message { color: var(--rojo-error); font-size: 14px; margin-top: 6px; display: none; }
        .error-message.show { display: block; }
        .btn-search { background: var(--naranja-boton); color: #fff; border: none; padding: 12px 25px; font-size: 15px; border-radius: 4px; font-weight: 500; cursor: pointer; width: max-content; }
        .btn-search:disabled { opacity: .6; cursor: wait; }

        /* Paso 2 */
        #step2Content, #step3Content { display: none; margin-top: 15px; }
        .accounts-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-height: 45vh; overflow-y: auto; }
        .account-card { border: 1px solid #dcdcdc; border-radius: 4px; padding: 15px; cursor: pointer; transition: all .2s; }
        .account-card.selected { border-color: var(--naranja-activo); background: #fff9f2; }
        .account-name { color: var(--naranja-activo); font-size: 15px; margin-bottom: 5px; text-transform: uppercase; font-weight: 500; text-align: center; }
        .account-details { color: var(--gris-icono); font-size: 13px; line-height: 1.5; text-transform: uppercase; text-align: center; word-break: break-word; }
        .action-buttons { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 20px; }
        .btn-text { background: none; border: none; color: var(--naranja-activo); font-size: 15px; font-weight: 500; cursor: pointer; text-transform: uppercase; }
        .btn-next { background: var(--naranja-activo); color: #fff; border: none; padding: 10px 20px; font-size: 15px; border-radius: 4px; font-weight: 500; cursor: pointer; text-transform: uppercase; }
        .btn-next:disabled { background: #ccc; cursor: not-allowed; }

        /* Paso 3 */
        .info-card { border: 1px solid #dcdcdc; border-radius: 6px; padding: 20px; background: var(--gris-fondo-tarjeta); margin-bottom: 20px; }
        .info-card-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
        .info-card-header i { color: var(--naranja-activo); font-size: 28px; margin-top: 5px; }
        .info-card-title { font-size: 14px; color: #333; margin-bottom: 2px; }
        .info-card-service { font-size: 15px; font-weight: 500; color: #333; line-height: 1.3; }
        .info-card-body { font-size: 14px; color: #333; line-height: 1.6; }
        .estado-val { font-weight: bold; }
        .financial-summary { margin-top: 15px; text-align: right; color: var(--naranja-activo); font-size: 18px; line-height: 1.6; }
        .amount-card { border: 1px solid #dcdcdc; border-radius: 6px; padding: 20px; margin-bottom: 25px; }
        .amount-header { display: flex; align-items: center; gap: 15px; }
        .amount-header i { color: var(--naranja-activo); font-size: 24px; }
        .amount-label { font-size: 14px; color: var(--gris-icono); margin-bottom: 2px; }
        .amount-value { font-size: 22px; color: #333; }
        .amount-divider { border: none; border-top: 1px dashed var(--gris-icono); margin: 15px 0; }
        .btn-change { background: none; border: none; width: 100%; text-align: center; color: var(--gris-icono); font-size: 14px; cursor: pointer; text-transform: uppercase; letter-spacing: .5px; }
        .payment-buttons { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
        .btn-pay { background: var(--naranja-header); color: #fff; border: none; border-radius: 4px; padding: 15px; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,.1); transition: background-color .2s; }
        .btn-pay:hover:not(:disabled) { background: var(--naranja-activo); }
        .btn-pay:disabled { opacity: .5; cursor: not-allowed; }
        .btn-pay i { font-size: 18px; }
        .aviso-pago { color: var(--rojo-error); font-size: 13px; text-align: center; margin: -10px 0 15px; display: none; }
        .aviso-pago.show { display: block; }
        .btn-volver-final { background: none; border: none; color: var(--naranja-activo); font-size: 15px; font-weight: 500; cursor: pointer; text-transform: uppercase; display: block; margin: 0 auto; padding: 10px; }

        /* Modal */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; justify-content: center; align-items: center; z-index: 1000; }
        .modal-content { background: #fff; width: 85%; max-width: 320px; border-radius: 6px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,.2); }
        .modal-content h3 { font-size: 18px; color: #333; font-weight: 400; margin-bottom: 20px; }
        .modal-input-group { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--naranja-activo); padding-bottom: 5px; margin-bottom: 15px; }
        .modal-input-group i { color: var(--gris-icono); font-size: 20px; }
        .modal-input-wrapper { display: flex; flex-direction: column; flex-grow: 1; }
        .modal-input-wrapper label { font-size: 12px; color: var(--gris-icono); margin-bottom: 2px; }
        .modal-input-wrapper input { border: none; outline: none; font-size: 16px; color: #333; background: transparent; }
        .modal-hint { font-size: 13px; color: var(--gris-icono); margin-bottom: 20px; }
        .modal-actions { display: flex; align-items: center; gap: 15px; }
        .btn-modal-aceptar { background: var(--naranja-boton); color: #fff; border: none; padding: 10px 20px; font-size: 15px; border-radius: 4px; cursor: pointer; font-weight: 500; }
        .btn-modal-cancelar { background: none; border: none; color: var(--naranja-activo); font-size: 15px; cursor: pointer; font-weight: 500; }
		
		#cestelOverlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9998;
  display:none;align-items:center;justify-content:center;padding:16px}
#cestelOverlay.abierta{display:flex}
#cestelVentana{background:#fff;border-radius:12px;width:100%;max-width:520px;
  height:min(85vh,760px);overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,.4)}
#cestelBarra{display:flex;align-items:center;gap:10px;padding:13px 16px;
  background:#f4f6f8;border-bottom:1px solid #e2e6ea;
  font-family:system-ui,sans-serif;font-size:15px;font-weight:600;color:#2c3e50}
#cestelBarra .fa-lock{color:#0a6cb5;font-size:14px}
#cestelCerrar{margin-left:auto;border:0;background:transparent;font-size:24px;
  line-height:1;cursor:pointer;color:#8a949e;padding:0 2px}
#cestelCerrar:hover{color:#c0392b}
#cestelFrame{flex:1;border:0;width:100%}