/* ===================================
   METRO BY T-MOBILE - EXACT REPLICA
   Basado en capturas originales
   =================================== */

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

:root {
    --metro-purple: #510F75;
    --metro-purple-hover: #3d0b58;
    --metro-text-dark: #000000;
    --metro-text-medium: #666666;
    --metro-text-light: #999999;
    --metro-border-light: #d0d0d0;
    --metro-white: #ffffff;
    --metro-error: #d32f2f;
    --metro-pink: #E20074;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--metro-text-dark);
    background-color: var(--metro-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===================
   HEADER
   =================== */

.main-header {
    background: var(--metro-white);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--metro-text-dark);
}

.t-mobile {
    color: var(--metro-pink);
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--metro-text-dark);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.menu-btn {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===================
   PROMO BANNER
   =================== */

.promo-banner {
    background: var(--metro-purple);
    padding: 16px 20px;
}

.promo-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.promo-content p {
    color: var(--metro-white);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.promo-link {
    color: var(--metro-white);
    text-decoration: underline;
    font-weight: 500;
}

/* ===================
   MAIN CONTENT
   =================== */

.main-content {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

/* TÍTULO "Payments" - MORADO COMO ORIGINAL */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--metro-purple);
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

/* Section Title */
.section-title,
.section-title-login {
    font-size: 18px;
    font-weight: 700;
    color: var(--metro-text-dark);
    margin: 0 0 20px 0;
}

/* ===================
   FORMS
   =================== */

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    margin: 0;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--metro-text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--metro-text-dark);
    background: var(--metro-white);
    border: 1px solid var(--metro-border-light);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input::placeholder {
    color: #b3b3b3;
    font-weight: 300;
}

.form-input:focus {
    border-color: var(--metro-purple);
}

/* Amount Input */
.input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 500;
    color: var(--metro-text-dark);
    pointer-events: none;
}

.amount-input {
    padding-left: 32px;
}

/* Phone Display */
.phone-display {
    background: #f7f7f7;
    padding: 14px 16px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.phone-label {
    font-weight: 600;
    color: var(--metro-text-dark);
}

.phone-value {
    font-weight: 400;
    color: var(--metro-text-medium);
    margin-left: 8px;
}

/* Error Message */
.error-message {
    display: none;
    padding: 12px 16px;
    background: #ffebee;
    color: var(--metro-error);
    border-left: 4px solid var(--metro-error);
    border-radius: 4px;
    font-size: 14px;
}

.error-message.show {
    display: block;
}

/* ===================
   BUTTONS - EXACTOS AL ORIGINAL
   =================== */

/* Botón "Next" - BLANCO con borde (como original) */
.btn-next {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--metro-text-dark);
    background: var(--metro-white);
    border: 2px solid var(--metro-border-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-next:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Botón "Log in" - MORADO sólido (como original) */
.btn-login {
    height: 48px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--metro-white);
    background: var(--metro-purple);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background: var(--metro-purple-hover);
}

/* Botón "Pagar" - MORADO full width */
.btn-pay {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--metro-white);
    background: var(--metro-purple);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-pay:hover {
    background: var(--metro-purple-hover);
}

.btn-pay:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* ===================
   DIVIDER
   =================== */

.divider {
    height: 1px;
    background: #e5e5e5;
    margin: 40px 0;
}

/* ===================
   MODAL
   =================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--metro-white);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-body {
    padding: 40px 32px;
    text-align: center;
}

.success-icon {
    margin: 0 auto 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--metro-text-dark);
    margin: 0 0 12px 0;
}

.modal-text {
    font-size: 15px;
    color: var(--metro-text-medium);
    margin: 0 0 32px 0;
}

.btn-modal {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: var(--metro-white);
    background: var(--metro-purple);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-modal:hover {
    background: var(--metro-purple-hover);
}

/* Loading */
.btn-pay.loading {
    position: relative;
    color: transparent;
}

.btn-pay.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================
   RESPONSIVE
   =================== */

@media (max-width: 768px) {
    .nav-btn span {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .main-content {
        padding: 30px 16px 50px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 56px;
        padding: 0 16px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .main-content {
        padding: 24px 16px 40px;
    }

    .page-title {
        font-size: 26px;
    }

    .form-input {
        height: 48px;
    }
}
