/* Estilos específicos para la página de Añadir Fondos */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
}

/* Payment Methods Section */
.payment-methods-section {
    margin-bottom: 30px;
}

.payment-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Payment Method Selector */
.payment-method-selector {
    margin-bottom: 30px;
}

.payment-method-selector .form-select {
    font-size: 14px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    font-weight: 500;
}

.payment-method-selector .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Payment Instructions */
.payment-instructions {
    margin-bottom: 30px;
}

.payment-instructions h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-content {
    display: none;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.instruction-content.active {
    display: block;
}

.payment-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.payment-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.payment-status {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status.active {
    background: #10b981;
}

.payment-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.instruction-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-steps li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

.instruction-steps li:last-child {
    border-bottom: none;
}

.payment-features {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.feature {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
}

/* QR Section for Yape */
.qr-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: #1e293b;
    border-radius: 8px;
    color: white;
}

.qr-code {
    flex-shrink: 0;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    gap: 8px;
}

.qr-placeholder i {
    font-size: 24px;
    color: #94a3b8;
}

.payment-details {
    flex: 1;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-holder {
    font-size: 14px;
    color: #cbd5e1;
}

.exchange-rate {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.exchange-rate p {
    margin: 5px 0;
    font-size: 14px;
    color: #374151;
}

/* Bank Accounts */
.bank-accounts {
    background: #1e293b;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
}

.bank-accounts::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #3b82f6;
    border-right: 2px solid #3b82f6;
}

.bank-accounts::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #3b82f6;
    border-left: 2px solid #3b82f6;
}

.bank-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #334155;
}

.bank-account:last-child {
    border-bottom: none;
}

.bank-info h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f8fafc;
}

.bank-info p {
    font-size: 12px;
    color: #cbd5e1;
    margin: 2px 0;
}

.bank-logo {
    background: #10b981;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.account-holder {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #334155;
    margin-top: 15px;
}

/* Payment Form */
.payment-form {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.payment-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.payment-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-form .form-input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.payment-form .form-actions {
    text-align: center;
    margin-top: 25px;
}

.payment-form .btn-primary {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.payment-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.4);
}

/* Additional Information */
.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card, .support-hours {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-card h4, .support-hours h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.support-hours p {
    font-size: 14px;
    color: #374151;
    margin: 8px 0;
}

.bonus-note {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 15px !important;
}

/* Links */
.instruction-steps a {
    color: #3b82f6;
    text-decoration: none;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.instruction-steps a:hover {
    background: #dbeafe;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .qr-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .payment-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .bank-account {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .bank-logo {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .payment-header h3 {
        font-size: 18px;
    }
    
    .payment-method-selector .form-select {
        font-size: 12px;
        padding: 12px;
    }
    
    .instruction-content {
        padding: 15px;
    }
    
    .payment-logo-img {
        height: 30px;
    }
    
    .phone-number {
        font-size: 20px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Sidebar para móviles */
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -280px; /* Hidden by default */
        z-index: 1001;
        transition: left 0.3s ease;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        padding: 20px 0;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        left: 0; /* Slide in */
    }

    /* Main content adjustments */
    .main-content {
        padding-top: 80px; /* Space for the hamburger button */
        margin-left: 0;
    }

    /* Header adjustments */
    .top-header {
        margin-top: 20px;
    }

    /* Mejorar la navegación móvil */
    .nav-item {
        padding: 16px 20px;
        margin-bottom: 4px;
        border-radius: 0;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: #3b82f6;
    }

    .nav-item.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-left-color: #60a5fa;
    }

    /* Logo mejorado para móvil */
    .logo {
        padding: 20px;
        margin-bottom: 30px;
        border-bottom: 1px solid #475569;
    }

    .logo-text {
        font-size: 22px;
    }
}
