* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 -webkit-tap-highlight-color: transparent;
 }
 /* BLOQUEO TOTAL DE SCROLL */
 html, body {
 height: 100%;
 width: 100%;
 overflow: hidden;
 position: fixed;
 inset: 0;
 }
 body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
 background: #FFFFFF;
 display: flex;
 justify-content: center;
 }
 .container {
 width: 100%;
 max-width: 420px;
 height: 100%;
 height: 100dvh;
 display: flex;
 flex-direction: column;
 position: relative;
 padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
 overflow: hidden;
 }
 /* SECCIÓN 1: TELÉFONO */
 .top-section {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 100%;
 }
 .coins-container {
 width: 100%;
 max-width: 100%;
 display: flex;
 justify-content: center;
 margin-bottom: 12px;
 }
 .coins-container img {
 width: 100%;
 height: auto;
 max-height: 150px;
 object-fit: contain;
 }
 .main-title {
 font-size: 19px;
 font-weight: 600;
 color: #1a1a1a;
 line-height: 1.3;
 text-align: left;
 width: 100%;
 }
 .subtitle {
 font-size: 13px;
 color: #666;
 margin-top: 4px;
 text-align: left;
 width: 100%;
 }
 .form-section {
 width: 100%;
 display: flex;
 flex-direction: column;
 flex: 1;
 }
 .input-group {
 margin-top: 30px;
 position: relative;
 }
 .phone-input {
 width: 100%;
 display: flex;
 align-items: center;
 border-bottom: 1px solid #E0E0E0;
 padding-bottom: 8px;
 }
 .country-code {
 padding-right: 12px;
 border-right: 1px solid #E0E0E0;
 font-size: 15px;
 color: #333;
 font-weight: 500;
 display: flex;
 align-items: center;
 gap: 5px;
 margin-right: 12px;
 }
 .country-code::after {
 content: '▼';
 font-size: 9px;
 color: #999;
 }
 .phone-number {
 flex: 1;
 border: none;
 font-size: 18px;
 outline: none;
 background: transparent;
 min-width: 0;
 color: #1a1a1a;
 }
 .phone-number::placeholder {
 color: #BDBDBD;
 font-size: 15px;
 }
 .clear-btn {
 position: absolute;
 right: 0;
 top: 5px;
 width: 16px;
 height: 16px;
 border-radius: 50%;
 background: #1a1a1a;
 color: #FFF;
 border: none;
 font-size: 10px;
 font-weight: 900;
 display: none;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 }
 .clear-btn.show { display: flex; }
 .bottom-block {
 margin-top: auto;
 display: flex;
 flex-direction: column;
 width: 100%;
 }
 .help-text {
 font-size: 12px;
 color: #757575;
 margin-bottom: 10px;
 text-align: left;
 }
 .continue-btn {
 width: 100%;
 padding: 14px;
 background: #BDBDBD;
 color: #FFFFFF;
 border: none;
 border-radius: 10px;
 font-size: 15px;
 font-weight: 600;
 cursor: not-allowed;
 transition: background 0.2s ease;
 }
 .continue-btn.active {
 background: #0056b3;
 cursor: pointer;
 }
 .checkbox-group {
 display: flex;
 align-items: flex-start;
 margin-top: 14px;
 font-size: 11px;
 color: #757575;
 line-height: 1.4;
 }
 .checkbox-group input {
 margin-right: 8px;
 margin-top: 2px;
 width: 16px;
 height: 16px;
 flex-shrink: 0;
 accent-color: #0056b3;
 }
 .checkbox-group a {
 color: #FF6B35;
 text-decoration: none;
 font-weight: bold;
 }
 /* SECCIÓN 2: NIP */
 .nip-section {
 display: none;
 width: 100%;
 height: 100%;
 flex-direction: column;
 justify-content: center;
 padding-bottom: 5vh;
 }
 .nip-section.show { display: flex; }
 .nip-title {
 font-size: 22px;
 font-weight: 900;
 color: #1a1a1a;
 margin-bottom: 6px;
 text-align: center;
 }
 .nip-subtitle {
 font-size: 13px;
 color: #757575;
 margin-bottom: 24px;
 text-align: center;
 }
 .nip-inputs {
 display: flex;
 justify-content: center;
 gap: 10px;
 margin-bottom: 32px;
 }
 .nip-digit {
 width: 40px;
 height: 50px;
 border: none;
 border-bottom: 2px solid #E0E0E0;
 font-size: 26px;
 text-align: center;
 outline: none;
 background: transparent;
 color: #1a1a1a;
 }
 .nip-digit::placeholder { color: #E0E0E0; }
 /* SECCIÓN 3: CÓDIGO */
 .code-section {
 display: none;
 width: 100%;
 height: 100%;
 flex-direction: column;
 padding-top: 8vh; /* Aire inicial para que no esté pegado arriba */
 }
 .code-section.show { display: flex; }
 .code-title {
 font-size: 22px;
 font-weight: 900;
 color: #1a1a1a;
 margin-bottom: 6px;
 text-align: center;
 line-height: 1.2;
 }
 .code-subtitle {
 font-size: 14px;
 color: #555;
 margin-bottom: 16px;
 text-align: center;
 }
 .error-message {
 display: none;
 background: #FFE5E5;
 color: #D32F2F;
 padding: 10px;
 border-radius: 8px;
 font-size: 12px;
 margin-bottom: 16px;
 text-align: center;
 }
 .error-message.show { display: block; }
 /* AQUÍ ESTÁ EL TRUCO PARA CENTRAR EL CÓDIGO */
 .code-inputs {
 display: flex;
 justify-content: space-between;
 align-items: flex-end;
 border-bottom: 1px solid #E0E0E0;
 padding-bottom: 8px;
 width: 100%;
 margin-top: 15vh; /* ESTO EMPUJA LOS CEROS HACIA EL MEDIO */
 margin-bottom: auto; /* ESTO EMPUJA EL BOTÓN HACIA ABAJO */
 }
 .code-digit {
 width: 40px;
 height: 45px;
 border: none;
 font-size: 28px;
 text-align: center;
 outline: none;
 background: transparent;
 color: #1a1a1a;
 }
 .code-digit::placeholder {
 color: #D3D3D3;
 }
 /* El bloque de abajo se queda anclado al fondo */
 .code-bottom {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 100%;
 margin-bottom: 10px;
 }
 .no-code-text {
 font-size: 13px;
 color: #1a56db;
 margin-bottom: 10px;
 text-align: center;
 cursor: pointer;
 }
 /* LOADING OVERLAY */
 .loading-overlay {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
 z-index: 1000;
 justify-content: center;
 align-items: center;
 }
 .loading-overlay.show { display: flex; }
 .spinner {
 width: 48px;
 height: 48px;
 border: 4px solid #E0E0E0;
 border-top: 4px solid #0056b3;
 border-radius: 50%;
 animation: spin 1s linear infinite;
 }
 @keyframes spin {
 0% { transform: rotate(0deg); }
 100% { transform: rotate(360deg); }
 }